com.pulumi.azurenative.blueprint.PublishedBlueprint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.blueprint;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.blueprint.PublishedBlueprintArgs;
import com.pulumi.azurenative.blueprint.outputs.BlueprintStatusResponse;
import com.pulumi.azurenative.blueprint.outputs.ParameterDefinitionResponse;
import com.pulumi.azurenative.blueprint.outputs.ResourceGroupDefinitionResponse;
import com.pulumi.core.Alias;
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 java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Represents a published blueprint.
* Azure REST API version: 2018-11-01-preview. Prior API version in Azure Native 1.x: 2018-11-01-preview.
*
* Other available API versions: 2017-11-11-preview.
*
* ## Example Usage
* ### PublishedManagementGroupBlueprint_Publish
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.blueprint.PublishedBlueprint;
* import com.pulumi.azurenative.blueprint.PublishedBlueprintArgs;
* 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 publishedBlueprint = new PublishedBlueprint("publishedBlueprint", PublishedBlueprintArgs.builder()
* .blueprintName("simpleBlueprint")
* .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
* .versionId("v2")
* .build());
*
* }
* }
*
* }
*
* ### PublishedSubscriptionBlueprint_Publish
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.blueprint.PublishedBlueprint;
* import com.pulumi.azurenative.blueprint.PublishedBlueprintArgs;
* 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 publishedBlueprint = new PublishedBlueprint("publishedBlueprint", PublishedBlueprintArgs.builder()
* .blueprintName("simpleBlueprint")
* .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
* .versionId("v2")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:blueprint:PublishedBlueprint v2 /{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}/versions/{versionId}
* ```
*
*/
@ResourceType(type="azure-native:blueprint:PublishedBlueprint")
public class PublishedBlueprint extends com.pulumi.resources.CustomResource {
/**
* Name of the published blueprint definition.
*
*/
@Export(name="blueprintName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> blueprintName;
/**
* @return Name of the published blueprint definition.
*
*/
public Output> blueprintName() {
return Codegen.optional(this.blueprintName);
}
/**
* Version-specific change notes.
*
*/
@Export(name="changeNotes", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> changeNotes;
/**
* @return Version-specific change notes.
*
*/
public Output> changeNotes() {
return Codegen.optional(this.changeNotes);
}
/**
* Multi-line explain this resource.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Multi-line explain this resource.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* One-liner string explain this resource.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return One-liner string explain this resource.
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* Name of this resource.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of this resource.
*
*/
public Output name() {
return this.name;
}
/**
* Parameters required by this blueprint definition.
*
*/
@Export(name="parameters", refs={Map.class,String.class,ParameterDefinitionResponse.class}, tree="[0,1,2]")
private Output* @Nullable */ Map> parameters;
/**
* @return Parameters required by this blueprint definition.
*
*/
public Output>> parameters() {
return Codegen.optional(this.parameters);
}
/**
* Resource group placeholders defined by this blueprint definition.
*
*/
@Export(name="resourceGroups", refs={Map.class,String.class,ResourceGroupDefinitionResponse.class}, tree="[0,1,2]")
private Output* @Nullable */ Map> resourceGroups;
/**
* @return Resource group placeholders defined by this blueprint definition.
*
*/
public Output>> resourceGroups() {
return Codegen.optional(this.resourceGroups);
}
/**
* Status of the blueprint. This field is readonly.
*
*/
@Export(name="status", refs={BlueprintStatusResponse.class}, tree="[0]")
private Output status;
/**
* @return Status of the blueprint. This field is readonly.
*
*/
public Output status() {
return this.status;
}
/**
* The scope where this blueprint definition can be assigned.
*
*/
@Export(name="targetScope", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> targetScope;
/**
* @return The scope where this blueprint definition can be assigned.
*
*/
public Output> targetScope() {
return Codegen.optional(this.targetScope);
}
/**
* Type of this resource.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Type of this resource.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public PublishedBlueprint(java.lang.String name) {
this(name, PublishedBlueprintArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public PublishedBlueprint(java.lang.String name, PublishedBlueprintArgs 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 PublishedBlueprint(java.lang.String name, PublishedBlueprintArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:blueprint:PublishedBlueprint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private PublishedBlueprint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:blueprint:PublishedBlueprint", name, null, makeResourceOptions(options, id), false);
}
private static PublishedBlueprintArgs makeArgs(PublishedBlueprintArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? PublishedBlueprintArgs.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())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:blueprint/v20181101preview:PublishedBlueprint").build())
))
.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 options Optional settings to control the behavior of the CustomResource.
*/
public static PublishedBlueprint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new PublishedBlueprint(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy