create_template
¶
create_template(
aws_account_id: AwsAccountId,
template_id: ShortRestrictiveResourceId,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
name: Optional[TemplateName] = None,
permissions: Optional[ResourcePermissionList] = None,
source_entity: Optional[TemplateSourceEntity] = None,
tags: Optional[TagList] = None,
version_description: Optional[VersionDescription] = None,
definition: Optional[TemplateVersionDefinition] = None,
validation_strategy: Optional[ValidationStrategy] = None,
) -> CreateTemplateResponse
Creates a template either from a TemplateDefinition or from an existing Quick Sight analysis or template. You can use the resulting template to create additional dashboards, templates, or analyses.
A template is an entity in Quick Sight that encapsulates the metadata required to create an analysis and that you can use to create s dashboard. A template adds a layer of abstraction by using placeholders to replace the dataset associated with the analysis. You can use templates to create dashboards by replacing dataset placeholders with datasets that follow the same schema that was used to create the source analysis and template.
Parameters:
-
aws_account_id(AwsAccountId) –The ID for the Amazon Web Services account that the group is in. You use the ID for the Amazon Web Services account that contains your Amazon Quick Sight account.
-
template_id(ShortRestrictiveResourceId) –An ID for the template that you want to create. This template is unique per Amazon Web Services Region; in each Amazon Web Services account.
-
name(Optional[TemplateName], default:None) –A display name for the template.
-
permissions(Optional[ResourcePermissionList], default:None) –A list of resource permissions to be set on the template.
-
source_entity(Optional[TemplateSourceEntity], default:None) –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:SourceTemplatefor a template orSourceAnalysisfor 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. TheSourceTemplateARN can contain any Amazon Web Services account and any Quick Sight-supported Amazon Web Services Region.Use the
DataSetReferencesentity withinSourceTemplateorSourceAnalysisto list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder. Use theTopicReferencesentity to list the replacement topics for the topic placeholders listed in the original. The schema in each topic must match its placeholder.Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
tags(Optional[TagList], default:None) –Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.
-
version_description(Optional[VersionDescription], default:None) –A description of the current template version being created. This API operation creates the first version of the template. Every time
UpdateTemplateis called, a new version is created. Each version of the template maintains a description of the version in theVersionDescriptionfield. -
definition(Optional[TemplateVersionDefinition], default:None) –The definition of a template.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
validation_strategy(Optional[ValidationStrategy], default:None) –TThe option to relax the validation needed to create a template with definition objects. This skips the validation step for specific errors.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 | |