Skip to main content

privacy_budget_templates

Creates, updates, deletes or gets a privacy_budget_template resource or lists privacy_budget_templates in a region

Overview

Nameprivacy_budget_templates
TypeResource
DescriptionRepresents a privacy budget within a collaboration
Idaws.cleanrooms.privacy_budget_templates

Fields

NameDatatypeDescription
arnstring
collaboration_arnstring
collaboration_identifierstring
privacy_budget_template_identifierstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms privacy budget template.
auto_refreshstring
privacy_budget_typestring
parametersobject
membership_arnstring
membership_identifierstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAutoRefresh, PrivacyBudgetType, Parameters, MembershipIdentifier, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all privacy_budget_templates in a region.

SELECT
region,
arn,
collaboration_arn,
collaboration_identifier,
privacy_budget_template_identifier,
tags,
auto_refresh,
privacy_budget_type,
parameters,
membership_arn,
membership_identifier
FROM aws.cleanrooms.privacy_budget_templates
WHERE region = 'us-east-1';

Gets all properties from an individual privacy_budget_template.

SELECT
region,
arn,
collaboration_arn,
collaboration_identifier,
privacy_budget_template_identifier,
tags,
auto_refresh,
privacy_budget_type,
parameters,
membership_arn,
membership_identifier
FROM aws.cleanrooms.privacy_budget_templates
WHERE region = 'us-east-1' AND data__Identifier = '<PrivacyBudgetTemplateIdentifier>|<MembershipIdentifier>';

INSERT example

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

/*+ create */
INSERT INTO aws.cleanrooms.privacy_budget_templates (
AutoRefresh,
PrivacyBudgetType,
Parameters,
MembershipIdentifier,
region
)
SELECT
'{{ AutoRefresh }}',
'{{ PrivacyBudgetType }}',
'{{ Parameters }}',
'{{ MembershipIdentifier }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

cleanrooms:CreatePrivacyBudgetTemplate,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetPrivacyBudgetTemplate,
cleanrooms:ListPrivacyBudgetTemplates

Read

cleanrooms:GetPrivacyBudgetTemplate,
cleanrooms:ListTagsForResource

Update

cleanrooms:UpdatePrivacyBudgetTemplate,
cleanrooms:GetPrivacyBudgetTemplate,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:UntagResource

Delete

cleanrooms:DeletePrivacyBudgetTemplate,
cleanrooms:GetPrivacyBudgetTemplate,
cleanrooms:ListPrivacyBudgetTemplates,
cleanrooms:ListTagsForResource,
cleanrooms:UntagResource

List

cleanrooms:ListPrivacyBudgetTemplates