import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Gallery Application Version. * * ## 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", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplestorage", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleContainer = new azure.storage.Container("example", { * name: "example-container", * storageAccountName: exampleAccount.name, * containerAccessType: "blob", * }); * const exampleBlob = new azure.storage.Blob("example", { * name: "scripts", * storageAccountName: exampleAccount.name, * storageContainerName: exampleContainer.name, * type: "Block", * sourceContent: "[scripts file content]", * }); * const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("example", { * name: "0.0.1", * galleryApplicationId: exampleGalleryApplication.id, * location: exampleGalleryApplication.location, * manageAction: { * install: "[install command]", * remove: "[remove command]", * }, * source: { * mediaLink: exampleBlob.id, * }, * targetRegions: [{ * name: exampleGalleryApplication.location, * regionalReplicaCount: 1, * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Compute` - 2022-03-03 * * ## Import * * Gallery Application Versions can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:compute/galleryApplicationVersion:GalleryApplicationVersion example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1 * ``` */ export declare class GalleryApplicationVersion extends pulumi.CustomResource { /** * Get an existing GalleryApplicationVersion resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: GalleryApplicationVersionState, opts?: pulumi.CustomResourceOptions): GalleryApplicationVersion; /** * Returns true if the given object is an instance of GalleryApplicationVersion. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is GalleryApplicationVersion; /** * Specifies the name of the config file on the VM. Changing this forces a new resource to be created. */ readonly configFile: pulumi.Output; /** * Should the Gallery Application reports health. Defaults to `false`. */ readonly enableHealthCheck: pulumi.Output; /** * The end of life date in RFC3339 format of the Gallery Application Version. */ readonly endOfLifeDate: pulumi.Output; /** * Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`. */ readonly excludeFromLatest: pulumi.Output; /** * The ID of the Gallery Application. Changing this forces a new resource to be created. */ readonly galleryApplicationId: pulumi.Output; /** * The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * A `manageAction` block as defined below. */ readonly manageAction: pulumi.Output; /** * The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the name of the package file on the VM. Changing this forces a new resource to be created. */ readonly packageFile: pulumi.Output; /** * A `source` block as defined below. */ readonly source: pulumi.Output; /** * A mapping of tags to assign to the Gallery Application Version. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * One or more `targetRegion` blocks as defined below. */ readonly targetRegions: pulumi.Output; /** * Create a GalleryApplicationVersion resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GalleryApplicationVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GalleryApplicationVersion resources. */ export interface GalleryApplicationVersionState { /** * Specifies the name of the config file on the VM. Changing this forces a new resource to be created. */ configFile?: pulumi.Input; /** * Should the Gallery Application reports health. Defaults to `false`. */ enableHealthCheck?: pulumi.Input; /** * The end of life date in RFC3339 format of the Gallery Application Version. */ endOfLifeDate?: pulumi.Input; /** * Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`. */ excludeFromLatest?: pulumi.Input; /** * The ID of the Gallery Application. Changing this forces a new resource to be created. */ galleryApplicationId?: pulumi.Input; /** * The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * A `manageAction` block as defined below. */ manageAction?: pulumi.Input; /** * The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the name of the package file on the VM. Changing this forces a new resource to be created. */ packageFile?: pulumi.Input; /** * A `source` block as defined below. */ source?: pulumi.Input; /** * A mapping of tags to assign to the Gallery Application Version. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * One or more `targetRegion` blocks as defined below. */ targetRegions?: pulumi.Input[]>; } /** * The set of arguments for constructing a GalleryApplicationVersion resource. */ export interface GalleryApplicationVersionArgs { /** * Specifies the name of the config file on the VM. Changing this forces a new resource to be created. */ configFile?: pulumi.Input; /** * Should the Gallery Application reports health. Defaults to `false`. */ enableHealthCheck?: pulumi.Input; /** * The end of life date in RFC3339 format of the Gallery Application Version. */ endOfLifeDate?: pulumi.Input; /** * Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`. */ excludeFromLatest?: pulumi.Input; /** * The ID of the Gallery Application. Changing this forces a new resource to be created. */ galleryApplicationId: pulumi.Input; /** * The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * A `manageAction` block as defined below. */ manageAction: pulumi.Input; /** * The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the name of the package file on the VM. Changing this forces a new resource to be created. */ packageFile?: pulumi.Input; /** * A `source` block as defined below. */ source: pulumi.Input; /** * A mapping of tags to assign to the Gallery Application Version. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * One or more `targetRegion` blocks as defined below. */ targetRegions: pulumi.Input[]>; }