Skip to main content

privacy_budget_templates

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

Overview

Nameprivacy_budget_templates
TypeResource
Idaws.cleanrooms.privacy_budget_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the privacy budget template. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
arnstringThe ARN of the privacy budget template. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:privacybudgettemplate/[\d\w-]+</code>)
auto_refreshstringHow often the privacy budget refreshes. If you plan to regularly bring new data into the collaboration, use CALENDAR_MONTH to automatically get a new privacy budget for the collaboration every calendar month. Choosing this option allows arbitrary amounts of information to be revealed about rows of the data when repeatedly queried across refreshes. Avoid choosing this if the same rows will be repeatedly queried between privacy budget refreshes. (CALENDAR_MONTH, NONE)
collaboration_arnstringThe ARN of the collaboration that contains this privacy budget template. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:collaboration/[\d\w-]+</code>)
collaboration_idstringThe unique ID of the collaboration that contains this privacy budget template. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
create_timestring (date-time)The time at which the privacy budget template was created.
membership_arnstringThe Amazon Resource Name (ARN) of the member who created the privacy budget template. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:membership/[\d\w-]+</code>)
membership_idstringThe identifier for a membership resource. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
parametersobjectSpecifies the epsilon and noise parameters for the privacy budget template.
privacy_budget_typestringSpecifies the type of the privacy budget template. (DIFFERENTIAL_PRIVACY, ACCESS_BUDGET)
update_timestring (date-time)The most recent time at which the privacy budget template was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_privacy_budget_templateselectmembership_identifier, privacy_budget_template_identifier, regionReturns details for a specified privacy budget template.
list_privacy_budget_templatesselectmembership_identifier, regionnextToken, maxResultsReturns detailed information about the privacy budget templates in a specified membership.
create_privacy_budget_templateinsertmembership_identifier, region, privacyBudgetType, parametersCreates a privacy budget template for a specified collaboration. Each collaboration can have only one privacy budget template. If you need to change the privacy budget template, use the UpdatePrivacyBudgetTemplate operation.
update_privacy_budget_templateupdatemembership_identifier, privacy_budget_template_identifier, region, privacyBudgetTypeUpdates the privacy budget template for the specified collaboration.
delete_privacy_budget_templatedeletemembership_identifier, privacy_budget_template_identifier, regionDeletes a privacy budget template for a specified collaboration.

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
membership_identifierstringA unique identifier for one of your memberships for a collaboration. The privacy budget template is deleted from the collaboration that this membership belongs to. Accepts a membership ID.
privacy_budget_template_identifierstringA unique identifier for your privacy budget template.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that are returned for an API request call. The service chooses a default number if you don't set one. The service might return a nextToken even if the maxResults value has not been met.
nextTokenstringThe pagination token that's used to fetch the next set of results.

SELECT examples

Returns details for a specified privacy budget template.

SELECT
id,
arn,
auto_refresh,
collaboration_arn,
collaboration_id,
create_time,
membership_arn,
membership_id,
parameters,
privacy_budget_type,
update_time
FROM aws.cleanrooms.privacy_budget_templates
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND privacy_budget_template_identifier = '{{ privacy_budget_template_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a privacy budget template for a specified collaboration. Each collaboration can have only one privacy budget template. If you need to change the privacy budget template, use the UpdatePrivacyBudgetTemplate operation.

INSERT INTO aws.cleanrooms.privacy_budget_templates (
autoRefresh,
privacyBudgetType,
parameters,
tags,
membership_identifier,
region
)
SELECT
'{{ autoRefresh }}',
'{{ privacyBudgetType }}' /* required */,
'{{ parameters }}' /* required */,
'{{ tags }}',
'{{ membership_identifier }}',
'{{ region }}'
RETURNING
privacy_budget_template
;

UPDATE examples

Updates the privacy budget template for the specified collaboration.

UPDATE aws.cleanrooms.privacy_budget_templates
SET
privacyBudgetType = '{{ privacyBudgetType }}',
parameters = '{{ parameters }}'
WHERE
membership_identifier = '{{ membership_identifier }}' --required
AND privacy_budget_template_identifier = '{{ privacy_budget_template_identifier }}' --required
AND region = '{{ region }}' --required
AND privacyBudgetType = '{{ privacyBudgetType }}' --required
RETURNING
privacy_budget_template;

DELETE examples

Deletes a privacy budget template for a specified collaboration.

DELETE FROM aws.cleanrooms.privacy_budget_templates
WHERE membership_identifier = '{{ membership_identifier }}' --required
AND privacy_budget_template_identifier = '{{ privacy_budget_template_identifier }}' --required
AND region = '{{ region }}' --required
;