
com.pulumi.azure.compute.kotlin.GalleryApplicationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin
import com.pulumi.azure.compute.GalleryApplicationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Gallery Application.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-rg",
* location: "West Europe",
* });
* const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
* name: "examplegallery",
* resourceGroupName: example.name,
* location: example.location,
* });
* const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
* name: "example-app",
* galleryId: exampleSharedImageGallery.id,
* location: example.location,
* supportedOsType: "Linux",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-rg",
* location="West Europe")
* example_shared_image_gallery = azure.compute.SharedImageGallery("example",
* name="examplegallery",
* resource_group_name=example.name,
* location=example.location)
* example_gallery_application = azure.compute.GalleryApplication("example",
* name="example-app",
* gallery_id=example_shared_image_gallery.id,
* location=example.location,
* supported_os_type="Linux")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-rg",
* Location = "West Europe",
* });
* var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("example", new()
* {
* Name = "examplegallery",
* ResourceGroupName = example.Name,
* Location = example.Location,
* });
* var exampleGalleryApplication = new Azure.Compute.GalleryApplication("example", new()
* {
* Name = "example-app",
* GalleryId = exampleSharedImageGallery.Id,
* Location = example.Location,
* SupportedOsType = "Linux",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-rg"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "example", &compute.SharedImageGalleryArgs{
* Name: pulumi.String("examplegallery"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* })
* if err != nil {
* return err
* }
* _, err = compute.NewGalleryApplication(ctx, "example", &compute.GalleryApplicationArgs{
* Name: pulumi.String("example-app"),
* GalleryId: exampleSharedImageGallery.ID(),
* Location: example.Location,
* SupportedOsType: pulumi.String("Linux"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.compute.SharedImageGallery;
* import com.pulumi.azure.compute.SharedImageGalleryArgs;
* import com.pulumi.azure.compute.GalleryApplication;
* import com.pulumi.azure.compute.GalleryApplicationArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-rg")
* .location("West Europe")
* .build());
* var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
* .name("examplegallery")
* .resourceGroupName(example.name())
* .location(example.location())
* .build());
* var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()
* .name("example-app")
* .galleryId(exampleSharedImageGallery.id())
* .location(example.location())
* .supportedOsType("Linux")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-rg
* location: West Europe
* exampleSharedImageGallery:
* type: azure:compute:SharedImageGallery
* name: example
* properties:
* name: examplegallery
* resourceGroupName: ${example.name}
* location: ${example.location}
* exampleGalleryApplication:
* type: azure:compute:GalleryApplication
* name: example
* properties:
* name: example-app
* galleryId: ${exampleSharedImageGallery.id}
* location: ${example.location}
* supportedOsType: Linux
* ```
*
* ## Import
* Gallery Applications can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:compute/galleryApplication:GalleryApplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1
* ```
* @property description A description of the Gallery Application.
* @property endOfLifeDate The end of life date in RFC3339 format of the Gallery Application.
* @property eula The End User Licence Agreement of the Gallery Application.
* @property galleryId The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
* @property location The Azure Region where the Gallery Application exists. Changing this forces a new resource to be created.
* @property name The name of the Gallery Application. Changing this forces a new resource to be created.
* @property privacyStatementUri The URI containing the Privacy Statement associated with the Gallery Application.
* @property releaseNoteUri The URI containing the Release Notes associated with the Gallery Application.
* @property supportedOsType The type of the Operating System supported for the Gallery Application. Possible values are `Linux` and `Windows`. Changing this forces a new resource to be created.
* @property tags A mapping of tags to assign to the Gallery Application.
*/
public data class GalleryApplicationArgs(
public val description: Output? = null,
public val endOfLifeDate: Output? = null,
public val eula: Output? = null,
public val galleryId: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val privacyStatementUri: Output? = null,
public val releaseNoteUri: Output? = null,
public val supportedOsType: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy