Package com.pulumi.aws.quicksight
Class Template
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.quicksight.Template
-
public class Template extends com.pulumi.resources.CustomResource
Resource for managing a QuickSight Template. ## Example Usage ### From Source Template ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.quicksight.Template; import com.pulumi.aws.quicksight.TemplateArgs; import com.pulumi.aws.quicksight.inputs.TemplateSourceEntityArgs; import com.pulumi.aws.quicksight.inputs.TemplateSourceEntitySourceTemplateArgs; 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 Template("example", TemplateArgs.builder() .templateId("example-id") .versionDescription("version") .sourceEntity(TemplateSourceEntityArgs.builder() .sourceTemplate(TemplateSourceEntitySourceTemplateArgs.builder() .arn(aws_quicksight_template.source().arn()) .build()) .build()) .build()); } } ``` ### With Definition ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.quicksight.Template; import com.pulumi.aws.quicksight.TemplateArgs; 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 Template("example", TemplateArgs.builder() .definition(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference)) .templateId("example-id") .versionDescription("version") .build()); } } ``` ## Import Using `pulumi import`, import a QuickSight Template using the AWS account ID and template ID separated by a comma (`,`). For example: ```sh $ pulumi import aws:quicksight/template:Template example 123456789012,example-id ```
-
-
Constructor Summary
Constructors Constructor Description Template(java.lang.String name)
Template(java.lang.String name, TemplateArgs args)
Template(java.lang.String name, TemplateArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.lang.String>
awsAccountId()
com.pulumi.core.Output<java.lang.String>
createdTime()
static Template
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TemplateState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
lastUpdatedTime()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<java.util.List<TemplatePermission>>>
permissions()
com.pulumi.core.Output<java.util.Optional<TemplateSourceEntity>>
sourceEntity()
com.pulumi.core.Output<java.lang.String>
sourceEntityArn()
com.pulumi.core.Output<java.lang.String>
status()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
com.pulumi.core.Output<java.lang.String>
templateId()
com.pulumi.core.Output<java.lang.String>
versionDescription()
com.pulumi.core.Output<java.lang.Integer>
versionNumber()
-
-
-
Constructor Detail
-
Template
public Template(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Template
public Template(java.lang.String name, TemplateArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Template
public Template(java.lang.String name, TemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The Amazon Resource Name (ARN) of the resource.
-
awsAccountId
public com.pulumi.core.Output<java.lang.String> awsAccountId()
- Returns:
- AWS account ID.
-
createdTime
public com.pulumi.core.Output<java.lang.String> createdTime()
- Returns:
- The time that the template was created.
-
lastUpdatedTime
public com.pulumi.core.Output<java.lang.String> lastUpdatedTime()
- Returns:
- The time that the template was last updated.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Display name for the template.
-
permissions
public com.pulumi.core.Output<java.util.Optional<java.util.List<TemplatePermission>>> permissions()
- Returns:
- A set of resource permissions on the template. Maximum of 64 items. See permissions.
-
sourceEntity
public com.pulumi.core.Output<java.util.Optional<TemplateSourceEntity>> sourceEntity()
- Returns:
- The entity that you are using as a source when you create the template (analysis or template). Only one of `definition` or `source_entity` should be configured. See source_entity.
-
sourceEntityArn
public com.pulumi.core.Output<java.lang.String> sourceEntityArn()
- Returns:
- Amazon Resource Name (ARN) of an analysis or template that was used to create this template.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- The template creation status.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
templateId
public com.pulumi.core.Output<java.lang.String> templateId()
- Returns:
- Identifier for the template.
-
versionDescription
public com.pulumi.core.Output<java.lang.String> versionDescription()
- Returns:
- A description of the current template version being created/updated. The following arguments are optional:
-
versionNumber
public com.pulumi.core.Output<java.lang.Integer> versionNumber()
- Returns:
- The version number of the template version.
-
get
public static Template get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-