
com.pulumi.azurenative.resources.TemplateSpec 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.resources;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.resources.TemplateSpecArgs;
import com.pulumi.azurenative.resources.outputs.SystemDataResponse;
import com.pulumi.azurenative.resources.outputs.TemplateSpecVersionInfoResponse;
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;
/**
* Template Spec object.
* Azure REST API version: 2022-02-01. Prior API version in Azure Native 1.x: 2022-02-01.
*
* ## Example Usage
* ### TemplateSpecsCreateUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.TemplateSpec;
* import com.pulumi.azurenative.resources.TemplateSpecArgs;
* 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 templateSpec = new TemplateSpec("templateSpec", TemplateSpecArgs.builder()
* .description("A very simple Template Spec")
* .location("eastus")
* .resourceGroupName("templateSpecRG")
* .templateSpecName("simpleTemplateSpec")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:resources:TemplateSpec simpleTemplateSpec /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
* ```
*
*/
@ResourceType(type="azure-native:resources:TemplateSpec")
public class TemplateSpec extends com.pulumi.resources.CustomResource {
/**
* Template Spec description.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Template Spec description.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Template Spec display name.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return Template Spec display name.
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
*
*/
public Output location() {
return this.location;
}
/**
* The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
*
*/
@Export(name="metadata", refs={Object.class}, tree="[0]")
private Output* @Nullable */ Object> metadata;
/**
* @return The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
*
*/
public Output> metadata() {
return Codegen.optional(this.metadata);
}
/**
* 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;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* 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;
}
/**
* High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
*
*/
@Export(name="versions", refs={Map.class,String.class,TemplateSpecVersionInfoResponse.class}, tree="[0,1,2]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy