All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.devcenter.Gallery Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.devcenter;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.devcenter.GalleryArgs;
import com.pulumi.azure.devcenter.inputs.GalleryState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Manages a Dev Center Gallery.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * 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.authorization.UserAssignedIdentity;
 * import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
 * import com.pulumi.azure.devcenter.DevCenter;
 * import com.pulumi.azure.devcenter.DevCenterArgs;
 * import com.pulumi.azure.devcenter.inputs.DevCenterIdentityArgs;
 * import com.pulumi.azure.compute.SharedImageGallery;
 * import com.pulumi.azure.compute.SharedImageGalleryArgs;
 * import com.pulumi.azure.devcenter.Gallery;
 * import com.pulumi.azure.devcenter.GalleryArgs;
 * 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-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var testUserAssignedIdentity = new UserAssignedIdentity("testUserAssignedIdentity", UserAssignedIdentityArgs.builder()
 *             .name("example-uai")
 *             .location(testAzurermResourceGroup.location())
 *             .resourceGroupName(testAzurermResourceGroup.name())
 *             .build());
 * 
 *         var test = new DevCenter("test", DevCenterArgs.builder()
 *             .name("example-devcenter")
 *             .resourceGroupName(testAzurermResourceGroup.name())
 *             .location(testAzurermResourceGroup.location())
 *             .identity(DevCenterIdentityArgs.builder()
 *                 .type("UserAssigned")
 *                 .identityIds(testUserAssignedIdentity.id())
 *                 .build())
 *             .build());
 * 
 *         var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
 *             .name("example-image-gallery")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 * 
 *         var exampleGallery = new Gallery("exampleGallery", GalleryArgs.builder()
 *             .devCenterId(exampleAzurermDevCenter.id())
 *             .sharedGalleryId(exampleSharedImageGallery.id())
 *             .name("example")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## 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`. * */ @ResourceType(type="azure:devcenter/gallery:Gallery") public class Gallery extends com.pulumi.resources.CustomResource { /** * 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. * */ @Export(name="devCenterId", refs={String.class}, tree="[0]") private Output devCenterId; /** * @return 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. * */ public Output devCenterId() { return this.devCenterId; } /** * Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of this Dev Center Gallery. Changing this forces a new Dev Center Gallery to be created. * */ public Output name() { return this.name; } /** * 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. * */ @Export(name="sharedGalleryId", refs={String.class}, tree="[0]") private Output sharedGalleryId; /** * @return 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. * */ public Output sharedGalleryId() { return this.sharedGalleryId; } /** * * @param name The _unique_ name of the resulting resource. */ public Gallery(java.lang.String name) { this(name, GalleryArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Gallery(java.lang.String name, GalleryArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Gallery(java.lang.String name, GalleryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:devcenter/gallery:Gallery", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Gallery(java.lang.String name, Output id, @Nullable GalleryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:devcenter/gallery:Gallery", name, state, makeResourceOptions(options, id), false); } private static GalleryArgs makeArgs(GalleryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? GalleryArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 * @param options Optional settings to control the behavior of the CustomResource. */ public static Gallery get(java.lang.String name, Output id, @Nullable GalleryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Gallery(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy