com.pulumi.azurenative.blueprint.Blueprint 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.BlueprintArgs;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Represents a Blueprint definition.
* 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
* ### ManagementGroupBlueprint
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.blueprint.Blueprint;
* import com.pulumi.azurenative.blueprint.BlueprintArgs;
* 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 blueprint = new Blueprint("blueprint", BlueprintArgs.builder()
* .blueprintName("simpleBlueprint")
* .description("blueprint contains all artifact kinds {'template', 'rbac', 'policy'}")
* .parameters(Map.ofEntries(
* Map.entry("costCenter", Map.ofEntries(
* Map.entry("displayName", "force cost center tag for all resources under given subscription."),
* Map.entry("type", "string")
* )),
* Map.entry("owners", Map.ofEntries(
* Map.entry("displayName", "assign owners to subscription along with blueprint assignment."),
* Map.entry("type", "array")
* )),
* Map.entry("storageAccountType", Map.ofEntries(
* Map.entry("displayName", "storage account type."),
* Map.entry("type", "string")
* ))
* ))
* .resourceGroups(Map.of("storageRG", Map.ofEntries(
* Map.entry("description", "Contains storageAccounts that collect all shoebox logs."),
* Map.entry("displayName", "storage resource group")
* )))
* .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
* .targetScope("subscription")
* .build());
*
* }
* }
*
* }
*
* ### ResourceGroupWithTags
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.blueprint.Blueprint;
* import com.pulumi.azurenative.blueprint.BlueprintArgs;
* 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 blueprint = new Blueprint("blueprint", BlueprintArgs.builder()
* .blueprintName("simpleBlueprint")
* .description("An example blueprint containing an RG with two tags.")
* .resourceGroups(Map.of("myRGName", Map.ofEntries(
* Map.entry("displayName", "My Resource Group"),
* Map.entry("location", "westus"),
* Map.entry("name", "myRGName"),
* Map.entry("tags", Map.ofEntries(
* Map.entry("costcenter", "123456"),
* Map.entry("nameOnlyTag", "")
* ))
* )))
* .resourceScope("providers/Microsoft.Management/managementGroups/{ManagementGroupId}")
* .targetScope("subscription")
* .build());
*
* }
* }
*
* }
*
* ### SubscriptionBlueprint
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.blueprint.Blueprint;
* import com.pulumi.azurenative.blueprint.BlueprintArgs;
* 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 blueprint = new Blueprint("blueprint", BlueprintArgs.builder()
* .blueprintName("simpleBlueprint")
* .description("blueprint contains all artifact kinds {'template', 'rbac', 'policy'}")
* .parameters(Map.ofEntries(
* Map.entry("costCenter", Map.ofEntries(
* Map.entry("displayName", "force cost center tag for all resources under given subscription."),
* Map.entry("type", "string")
* )),
* Map.entry("owners", Map.ofEntries(
* Map.entry("displayName", "assign owners to subscription along with blueprint assignment."),
* Map.entry("type", "array")
* )),
* Map.entry("storageAccountType", Map.ofEntries(
* Map.entry("displayName", "storage account type."),
* Map.entry("type", "string")
* ))
* ))
* .resourceGroups(Map.of("storageRG", Map.ofEntries(
* Map.entry("description", "Contains storageAccounts that collect all shoebox logs."),
* Map.entry("displayName", "storage resource group")
* )))
* .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
* .targetScope("subscription")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:blueprint:Blueprint simpleBlueprint /{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}
* ```
*
*/
@ResourceType(type="azure-native:blueprint:Blueprint")
public class Blueprint extends com.pulumi.resources.CustomResource {
/**
* 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);
}
/**
* Layout view of the blueprint definition for UI reference.
*
*/
@Export(name="layout", refs={Object.class}, tree="[0]")
private Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy