Template

class Template : KotlinCustomResource

Resource for managing a QuickSight Template.

Example Usage

From Source Template

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

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

A QuickSight Template can be imported using the AWS account ID and template ID separated by a comma (,) e.g.,

$ pulumi import aws:quicksight/template:Template example 123456789012,example-id

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the resource.

Link copied to clipboard
val awsAccountId: Output<String>

AWS account ID.

Link copied to clipboard
val createdTime: Output<String>

The time that the template was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastUpdatedTime: Output<String>

The time that the template was last updated.

Link copied to clipboard
val name: Output<String>

Display name for the template.

Link copied to clipboard

A set of resource permissions on the template. Maximum of 64 items. See permissions.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
val sourceEntityArn: Output<String>

Amazon Resource Name (ARN) of an analysis or template that was used to create this template.

Link copied to clipboard
val status: Output<String>

The template creation status.

Link copied to clipboard
val tags: Output<Map<String, String>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val templateId: Output<String>

Identifier for the template.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

A description of the current template version being created/updated. The following arguments are optional:

Link copied to clipboard
val versionNumber: Output<Int>

The version number of the template version.