Skip to main content

analysis_templates

Creates, updates, deletes or gets an analysis_template resource or lists analysis_templates in a region

Overview

Nameanalysis_templates
TypeResource
DescriptionRepresents a stored analysis within a collaboration
Idaws.cleanrooms.analysis_templates

Fields

NameDatatypeDescription
arnstring
collaboration_arnstring
collaboration_identifierstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms analysis template.
analysis_parametersarrayThe member who can query can provide this placeholder for a literal data value in an analysis template
analysis_template_identifierstring
descriptionstring
membership_arnstring
membership_identifierstring
namestring
schemaobject
sourceobject
formatstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSource, Format, Name, MembershipIdentifier, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all analysis_templates in a region.

SELECT
region,
arn,
collaboration_arn,
collaboration_identifier,
tags,
analysis_parameters,
analysis_template_identifier,
description,
membership_arn,
membership_identifier,
name,
schema,
source,
format
FROM aws.cleanrooms.analysis_templates
WHERE region = 'us-east-1';

Gets all properties from an individual analysis_template.

SELECT
region,
arn,
collaboration_arn,
collaboration_identifier,
tags,
analysis_parameters,
analysis_template_identifier,
description,
membership_arn,
membership_identifier,
name,
schema,
source,
format
FROM aws.cleanrooms.analysis_templates
WHERE region = 'us-east-1' AND data__Identifier = '<AnalysisTemplateIdentifier>|<MembershipIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new analysis_template resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cleanrooms.analysis_templates (
MembershipIdentifier,
Name,
Source,
Format,
region
)
SELECT
'{{ MembershipIdentifier }}',
'{{ Name }}',
'{{ Source }}',
'{{ Format }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cleanrooms.analysis_templates
WHERE data__Identifier = '<AnalysisTemplateIdentifier|MembershipIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the analysis_templates resource, the following permissions are required:

Create

cleanrooms:CreateAnalysisTemplate,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetAnalysisTemplate,
cleanrooms:ListAnalysisTemplates

Read

cleanrooms:GetAnalysisTemplate,
cleanrooms:ListTagsForResource

Update

cleanrooms:UpdateAnalysisTemplate,
cleanrooms:GetAnalysisTemplate,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:UntagResource

Delete

cleanrooms:DeleteAnalysisTemplate,
cleanrooms:GetAnalysisTemplate,
cleanrooms:ListAnalysisTemplates,
cleanrooms:ListTagsForResource,
cleanrooms:UntagResource

List

cleanrooms:ListAnalysisTemplates