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
Idawscc.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.

For more information, see AWS::CleanRooms::PrivacyBudgetTemplate.

Methods

NameResourceAccessible byRequired Params
create_resourceprivacy_budget_templatesINSERTAutoRefresh, PrivacyBudgetType, Parameters, MembershipIdentifier, region
delete_resourceprivacy_budget_templatesDELETEIdentifier, region
update_resourceprivacy_budget_templatesUPDATEIdentifier, PatchDocument, region
list_resourcesprivacy_budget_templates_list_onlySELECTregion
get_resourceprivacy_budget_templatesSELECTIdentifier, region

SELECT examples

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 awscc.cleanrooms.privacy_budget_templates
WHERE
region = '{{ region }}' AND
Identifier = '{{ privacy_budget_template_identifier }}|{{ membership_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cleanrooms.privacy_budget_templates (
AutoRefresh,
PrivacyBudgetType,
Parameters,
MembershipIdentifier,
region
)
SELECT
'{{ auto_refresh }}',
'{{ privacy_budget_type }}',
'{{ parameters }}',
'{{ membership_identifier }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.cleanrooms.privacy_budget_templates
SET PatchDocument = string('{{ {
"Tags": tags,
"Parameters": parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ privacy_budget_template_identifier }}|{{ membership_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.cleanrooms.privacy_budget_templates
WHERE
Identifier = '{{ privacy_budget_template_identifier }}|{{ membership_identifier }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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