Skip to main content

template_alias

Creates, updates, deletes, gets or lists a template_alias resource.

Overview

Nametemplate_alias
TypeResource
Idaws.quicksight.template_alias

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.
template_aliasobjectInformation about the template alias.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_template_aliasselectaws_account_id, template_id, alias_name, regionDescribes the template alias for a template.
create_template_aliasinsertaws_account_id, template_id, alias_name, region, TemplateVersionNumberCreates a template alias for a template.
update_template_aliasupdateaws_account_id, template_id, alias_name, region, TemplateVersionNumberUpdates the template alias of a template.
delete_template_aliasdeleteaws_account_id, template_id, alias_name, regionDeletes the item that the specified template alias points to. If you provide a specific alias, you delete the version of the template that the alias points to.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
alias_namestringThe name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword $LATEST in the AliasName parameter.
aws_account_idstringThe ID of the Amazon Web Services account that contains the item to delete.
regionstringAWS region (default: us-east-1)
template_idstringThe ID for the template that the specified alias is for.

SELECT examples

Describes the template alias for a template.

SELECT
request_id,
status,
template_alias
FROM aws.quicksight.template_alias
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND template_id = '{{ template_id }}' -- required
AND alias_name = '{{ alias_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a template alias for a template.

INSERT INTO aws.quicksight.template_alias (
TemplateVersionNumber,
aws_account_id,
template_id,
alias_name,
region
)
SELECT
{{ TemplateVersionNumber }} /* required */,
'{{ aws_account_id }}',
'{{ template_id }}',
'{{ alias_name }}',
'{{ region }}'
RETURNING
request_id,
status,
template_alias
;

UPDATE examples

Updates the template alias of a template.

UPDATE aws.quicksight.template_alias
SET
TemplateVersionNumber = {{ TemplateVersionNumber }}
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND template_id = '{{ template_id }}' --required
AND alias_name = '{{ alias_name }}' --required
AND region = '{{ region }}' --required
AND TemplateVersionNumber = '{{ TemplateVersionNumber }}' --required
RETURNING
request_id,
status,
template_alias;

DELETE examples

Deletes the item that the specified template alias points to. If you provide a specific alias, you delete the version of the template that the alias points to.

DELETE FROM aws.quicksight.template_alias
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND template_id = '{{ template_id }}' --required
AND alias_name = '{{ alias_name }}' --required
AND region = '{{ region }}' --required
;