import * as pulumi from "@pulumi/pulumi"; /** * Manages a Dev Center Gallery. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const testUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("test", { * name: "example-uai", * location: testAzurermResourceGroup.location, * resourceGroupName: testAzurermResourceGroup.name, * }); * const test = new azure.devcenter.DevCenter("test", { * name: "example-devcenter", * resourceGroupName: testAzurermResourceGroup.name, * location: testAzurermResourceGroup.location, * identity: { * type: "UserAssigned", * identityIds: [testUserAssignedIdentity.id], * }, * }); * const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", { * name: "example-image-gallery", * location: example.location, * resourceGroupName: example.name, * }); * const exampleGallery = new azure.devcenter.Gallery("example", { * devCenterId: exampleAzurermDevCenter.id, * sharedGalleryId: exampleSharedImageGallery.id, * name: "example", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DevCenter` - 2025-02-01 * * ## Import * * An existing Dev Center Gallery can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:devcenter/gallery:Gallery example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devCenters/{devCenterName}/galleries/{galleryName} * ``` * * * Where `{subscriptionId}` is the ID of the Azure Subscription where the Dev Center Gallery exists. For example `12345678-1234-9876-4563-123456789012`. * * Where `{resourceGroupName}` is the name of Resource Group where this Dev Center Gallery exists. For example `example-resource-group`. * * Where `{devCenterName}` is the name of the Dev Center. For example `devCenterValue`. * * Where `{galleryName}` is the name of the Gallery. For example `galleryValue`. */ export declare class Gallery extends pulumi.CustomResource { /** * Get an existing Gallery 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?: GalleryState, opts?: pulumi.CustomResourceOptions): Gallery; /** * Returns true if the given object is an instance of Gallery. 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 Gallery; /** * Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. */ readonly devCenterId: pulumi.Output; /** * Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ readonly name: pulumi.Output; /** * The ID of the Shared Gallery which should be connected to the Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ readonly sharedGalleryId: pulumi.Output; /** * Create a Gallery 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: GalleryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Gallery resources. */ export interface GalleryState { /** * Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. */ devCenterId?: pulumi.Input; /** * Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ name?: pulumi.Input; /** * The ID of the Shared Gallery which should be connected to the Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ sharedGalleryId?: pulumi.Input; } /** * The set of arguments for constructing a Gallery resource. */ export interface GalleryArgs { /** * Specifies the ID of the Dev Center within which this Dev Center Gallery should exist. Changing this forces a new Dev Center Gallery to be created. */ devCenterId: pulumi.Input; /** * Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ name?: pulumi.Input; /** * The ID of the Shared Gallery which should be connected to the Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. */ sharedGalleryId: pulumi.Input; }