Class CfnTemplate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate>
- Enclosing class:
CfnTemplate
CfnTemplate
.-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId
(String awsAccountId) The ID for the AWS account that the group is in.build()
static CfnTemplate.Builder
definition
(IResolvable definition) A display name for the template.permissions
(List<? extends Object> permissions) A list of resource permissions to be set on the template.permissions
(IResolvable permissions) A list of resource permissions to be set on the template.sourceEntity
(IResolvable sourceEntity) The entity that you are using as a source when you create the template.sourceEntity
(CfnTemplate.TemplateSourceEntityProperty sourceEntity) The entity that you are using as a source when you create the template.Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.templateId
(String templateId) An ID for the template that you want to create.validationStrategy
(IResolvable validationStrategy) The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects.validationStrategy
(CfnTemplate.ValidationStrategyProperty validationStrategy) The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects.versionDescription
(String versionDescription) A description of the current template version being created.
-
Method Details
-
create
@Stability(Stable) public static CfnTemplate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTemplate.Builder
.
-
awsAccountId
The ID for the AWS account that the group is in.You use the ID for the AWS account that contains your Amazon QuickSight account.
- Parameters:
awsAccountId
- The ID for the AWS account that the group is in. This parameter is required.- Returns:
this
- See Also:
-
templateId
An ID for the template that you want to create.This template is unique per AWS Region ; in each AWS account.
- Parameters:
templateId
- An ID for the template that you want to create. This parameter is required.- Returns:
this
- See Also:
-
definition
- Parameters:
definition
- This parameter is required.- Returns:
this
- See Also:
-
definition
@Stability(Stable) public CfnTemplate.Builder definition(CfnTemplate.TemplateVersionDefinitionProperty definition) - Parameters:
definition
- This parameter is required.- Returns:
this
- See Also:
-
name
A display name for the template.- Parameters:
name
- A display name for the template. This parameter is required.- Returns:
this
- See Also:
-
permissions
A list of resource permissions to be set on the template.- Parameters:
permissions
- A list of resource permissions to be set on the template. This parameter is required.- Returns:
this
- See Also:
-
permissions
A list of resource permissions to be set on the template.- Parameters:
permissions
- A list of resource permissions to be set on the template. This parameter is required.- Returns:
this
- See Also:
-
sourceEntity
The entity that you are using as a source when you create the template.In
SourceEntity
, you specify the type of object you're using as source:SourceTemplate
for a template orSourceAnalysis
for an analysis. Both of these require an Amazon Resource Name (ARN). ForSourceTemplate
, specify the ARN of the source template. ForSourceAnalysis
, specify the ARN of the source analysis. TheSourceTemplate
ARN can contain any AWS account and any Amazon QuickSight-supported AWS Region .Use the
DataSetReferences
entity withinSourceTemplate
orSourceAnalysis
to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.Either a
SourceEntity
or aDefinition
must be provided in order for the request to be valid.- Parameters:
sourceEntity
- The entity that you are using as a source when you create the template. This parameter is required.- Returns:
this
- See Also:
-
sourceEntity
@Stability(Stable) public CfnTemplate.Builder sourceEntity(CfnTemplate.TemplateSourceEntityProperty sourceEntity) The entity that you are using as a source when you create the template.In
SourceEntity
, you specify the type of object you're using as source:SourceTemplate
for a template orSourceAnalysis
for an analysis. Both of these require an Amazon Resource Name (ARN). ForSourceTemplate
, specify the ARN of the source template. ForSourceAnalysis
, specify the ARN of the source analysis. TheSourceTemplate
ARN can contain any AWS account and any Amazon QuickSight-supported AWS Region .Use the
DataSetReferences
entity withinSourceTemplate
orSourceAnalysis
to list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder.Either a
SourceEntity
or aDefinition
must be provided in order for the request to be valid.- Parameters:
sourceEntity
- The entity that you are using as a source when you create the template. This parameter is required.- Returns:
this
- See Also:
-
tags
Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.- Parameters:
tags
- Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. This parameter is required.- Returns:
this
- See Also:
-
validationStrategy
The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects.When you set this value to
LENIENT
, validation is skipped for specific errors.- Parameters:
validationStrategy
- The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects. This parameter is required.- Returns:
this
- See Also:
-
validationStrategy
@Stability(Stable) public CfnTemplate.Builder validationStrategy(CfnTemplate.ValidationStrategyProperty validationStrategy) The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects.When you set this value to
LENIENT
, validation is skipped for specific errors.- Parameters:
validationStrategy
- The option to relax the validation that is required to create and update analyses, dashboards, and templates with definition objects. This parameter is required.- Returns:
this
- See Also:
-
versionDescription
A description of the current template version being created.This API operation creates the first version of the template. Every time
UpdateTemplate
is called, a new version is created. Each version of the template maintains a description of the version in theVersionDescription
field.- Parameters:
versionDescription
- A description of the current template version being created. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate>
- Returns:
- a newly built instance of
CfnTemplate
.
-