Skip to content

Commit 783dbc1

Browse files
author
awstools
committed
feat(client-cleanrooms): This release introduces data access budgets to control how many times a table can be used for queries and jobs in a collaboration.
1 parent 629c630 commit 783dbc1

15 files changed

+18169
-17439
lines changed

clients/client-cleanrooms/src/commands/BatchGetSchemaCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export interface BatchGetSchemaCommandOutput extends BatchGetSchemaOutput, __Met
9191
* // analysisType: "DIRECT_ANALYSIS" || "ADDITIONAL_ANALYSIS", // required
9292
* // },
9393
* // ],
94+
* // resourceArn: "STRING_VALUE",
9495
* // schemaTypeProperties: { // SchemaTypeProperties Union: only one key present
9596
* // idMappingTable: { // IdMappingTableSchemaTypeProperties
9697
* // idMappingTableInputSource: [ // IdMappingTableInputSourceList // required

clients/client-cleanrooms/src/commands/CreatePrivacyBudgetTemplateCommand.ts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,23 @@ export interface CreatePrivacyBudgetTemplateCommandOutput extends CreatePrivacyB
4242
* const client = new CleanRoomsClient(config);
4343
* const input = { // CreatePrivacyBudgetTemplateInput
4444
* membershipIdentifier: "STRING_VALUE", // required
45-
* autoRefresh: "CALENDAR_MONTH" || "NONE", // required
46-
* privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
45+
* autoRefresh: "CALENDAR_MONTH" || "NONE",
46+
* privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
4747
* parameters: { // PrivacyBudgetTemplateParametersInput Union: only one key present
4848
* differentialPrivacy: { // DifferentialPrivacyTemplateParametersInput
4949
* epsilon: Number("int"), // required
5050
* usersNoisePerQuery: Number("int"), // required
5151
* },
52+
* accessBudget: { // AccessBudgetsPrivacyTemplateParametersInput
53+
* budgetParameters: [ // BudgetParameters // required
54+
* { // BudgetParameter
55+
* type: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
56+
* budget: Number("int"), // required
57+
* autoRefresh: "ENABLED" || "DISABLED",
58+
* },
59+
* ],
60+
* resourceArn: "STRING_VALUE", // required
61+
* },
5262
* },
5363
* tags: { // TagMap
5464
* "<keys>": "STRING_VALUE",
@@ -66,13 +76,23 @@ export interface CreatePrivacyBudgetTemplateCommandOutput extends CreatePrivacyB
6676
* // collaborationArn: "STRING_VALUE", // required
6777
* // createTime: new Date("TIMESTAMP"), // required
6878
* // updateTime: new Date("TIMESTAMP"), // required
69-
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
79+
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
7080
* // autoRefresh: "CALENDAR_MONTH" || "NONE", // required
7181
* // parameters: { // PrivacyBudgetTemplateParametersOutput Union: only one key present
7282
* // differentialPrivacy: { // DifferentialPrivacyTemplateParametersOutput
7383
* // epsilon: Number("int"), // required
7484
* // usersNoisePerQuery: Number("int"), // required
7585
* // },
86+
* // accessBudget: { // AccessBudgetsPrivacyTemplateParametersOutput
87+
* // budgetParameters: [ // BudgetParameters // required
88+
* // { // BudgetParameter
89+
* // type: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
90+
* // budget: Number("int"), // required
91+
* // autoRefresh: "ENABLED" || "DISABLED",
92+
* // },
93+
* // ],
94+
* // resourceArn: "STRING_VALUE", // required
95+
* // },
7696
* // },
7797
* // },
7898
* // };

clients/client-cleanrooms/src/commands/GetCollaborationPrivacyBudgetTemplateCommand.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,23 @@ export interface GetCollaborationPrivacyBudgetTemplateCommandOutput
6060
* // creatorAccountId: "STRING_VALUE", // required
6161
* // createTime: new Date("TIMESTAMP"), // required
6262
* // updateTime: new Date("TIMESTAMP"), // required
63-
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
63+
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
6464
* // autoRefresh: "CALENDAR_MONTH" || "NONE", // required
6565
* // parameters: { // PrivacyBudgetTemplateParametersOutput Union: only one key present
6666
* // differentialPrivacy: { // DifferentialPrivacyTemplateParametersOutput
6767
* // epsilon: Number("int"), // required
6868
* // usersNoisePerQuery: Number("int"), // required
6969
* // },
70+
* // accessBudget: { // AccessBudgetsPrivacyTemplateParametersOutput
71+
* // budgetParameters: [ // BudgetParameters // required
72+
* // { // BudgetParameter
73+
* // type: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
74+
* // budget: Number("int"), // required
75+
* // autoRefresh: "ENABLED" || "DISABLED",
76+
* // },
77+
* // ],
78+
* // resourceArn: "STRING_VALUE", // required
79+
* // },
7080
* // },
7181
* // },
7282
* // };

clients/client-cleanrooms/src/commands/GetPrivacyBudgetTemplateCommand.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,23 @@ export interface GetPrivacyBudgetTemplateCommandOutput extends GetPrivacyBudgetT
5353
* // collaborationArn: "STRING_VALUE", // required
5454
* // createTime: new Date("TIMESTAMP"), // required
5555
* // updateTime: new Date("TIMESTAMP"), // required
56-
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
56+
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
5757
* // autoRefresh: "CALENDAR_MONTH" || "NONE", // required
5858
* // parameters: { // PrivacyBudgetTemplateParametersOutput Union: only one key present
5959
* // differentialPrivacy: { // DifferentialPrivacyTemplateParametersOutput
6060
* // epsilon: Number("int"), // required
6161
* // usersNoisePerQuery: Number("int"), // required
6262
* // },
63+
* // accessBudget: { // AccessBudgetsPrivacyTemplateParametersOutput
64+
* // budgetParameters: [ // BudgetParameters // required
65+
* // { // BudgetParameter
66+
* // type: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
67+
* // budget: Number("int"), // required
68+
* // autoRefresh: "ENABLED" || "DISABLED",
69+
* // },
70+
* // ],
71+
* // resourceArn: "STRING_VALUE", // required
72+
* // },
6373
* // },
6474
* // },
6575
* // };

clients/client-cleanrooms/src/commands/GetSchemaCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export interface GetSchemaCommandOutput extends GetSchemaOutput, __MetadataBeare
8888
* // analysisType: "DIRECT_ANALYSIS" || "ADDITIONAL_ANALYSIS", // required
8989
* // },
9090
* // ],
91+
* // resourceArn: "STRING_VALUE",
9192
* // schemaTypeProperties: { // SchemaTypeProperties Union: only one key present
9293
* // idMappingTable: { // IdMappingTableSchemaTypeProperties
9394
* // idMappingTableInputSource: [ // IdMappingTableInputSourceList // required

clients/client-cleanrooms/src/commands/ListCollaborationPrivacyBudgetTemplatesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface ListCollaborationPrivacyBudgetTemplatesCommandOutput
6262
* // collaborationId: "STRING_VALUE", // required
6363
* // collaborationArn: "STRING_VALUE", // required
6464
* // creatorAccountId: "STRING_VALUE", // required
65-
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
65+
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
6666
* // createTime: new Date("TIMESTAMP"), // required
6767
* // updateTime: new Date("TIMESTAMP"), // required
6868
* // },

clients/client-cleanrooms/src/commands/ListCollaborationPrivacyBudgetsCommand.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ export interface ListCollaborationPrivacyBudgetsCommandOutput
4444
* const client = new CleanRoomsClient(config);
4545
* const input = { // ListCollaborationPrivacyBudgetsInput
4646
* collaborationIdentifier: "STRING_VALUE", // required
47-
* privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
47+
* privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
4848
* maxResults: Number("int"),
4949
* nextToken: "STRING_VALUE",
50+
* accessBudgetResourceArn: "STRING_VALUE",
5051
* };
5152
* const command = new ListCollaborationPrivacyBudgetsCommand(input);
5253
* const response = await client.send(command);
@@ -59,7 +60,7 @@ export interface ListCollaborationPrivacyBudgetsCommandOutput
5960
* // collaborationId: "STRING_VALUE", // required
6061
* // collaborationArn: "STRING_VALUE", // required
6162
* // creatorAccountId: "STRING_VALUE", // required
62-
* // type: "DIFFERENTIAL_PRIVACY", // required
63+
* // type: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
6364
* // createTime: new Date("TIMESTAMP"), // required
6465
* // updateTime: new Date("TIMESTAMP"), // required
6566
* // budget: { // PrivacyBudget Union: only one key present
@@ -73,6 +74,20 @@ export interface ListCollaborationPrivacyBudgetsCommandOutput
7374
* // ],
7475
* // epsilon: Number("int"), // required
7576
* // },
77+
* // accessBudget: { // AccessBudget
78+
* // resourceArn: "STRING_VALUE", // required
79+
* // details: [ // AccessBudgetDetailsList // required
80+
* // { // AccessBudgetDetails
81+
* // startTime: new Date("TIMESTAMP"), // required
82+
* // endTime: new Date("TIMESTAMP"),
83+
* // remainingBudget: Number("int"), // required
84+
* // budget: Number("int"), // required
85+
* // budgetType: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
86+
* // autoRefresh: "ENABLED" || "DISABLED",
87+
* // },
88+
* // ],
89+
* // aggregateRemainingBudget: Number("int"), // required
90+
* // },
7691
* // },
7792
* // },
7893
* // ],

clients/client-cleanrooms/src/commands/ListPrivacyBudgetTemplatesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface ListPrivacyBudgetTemplatesCommandOutput extends ListPrivacyBudg
5454
* // membershipArn: "STRING_VALUE", // required
5555
* // collaborationId: "STRING_VALUE", // required
5656
* // collaborationArn: "STRING_VALUE", // required
57-
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
57+
* // privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
5858
* // createTime: new Date("TIMESTAMP"), // required
5959
* // updateTime: new Date("TIMESTAMP"), // required
6060
* // },

clients/client-cleanrooms/src/commands/ListPrivacyBudgetsCommand.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export interface ListPrivacyBudgetsCommandOutput extends ListPrivacyBudgetsOutpu
3939
* const client = new CleanRoomsClient(config);
4040
* const input = { // ListPrivacyBudgetsInput
4141
* membershipIdentifier: "STRING_VALUE", // required
42-
* privacyBudgetType: "DIFFERENTIAL_PRIVACY", // required
42+
* privacyBudgetType: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
4343
* nextToken: "STRING_VALUE",
4444
* maxResults: Number("int"),
45+
* accessBudgetResourceArn: "STRING_VALUE",
4546
* };
4647
* const command = new ListPrivacyBudgetsCommand(input);
4748
* const response = await client.send(command);
@@ -55,7 +56,7 @@ export interface ListPrivacyBudgetsCommandOutput extends ListPrivacyBudgetsOutpu
5556
* // membershipArn: "STRING_VALUE", // required
5657
* // collaborationId: "STRING_VALUE", // required
5758
* // collaborationArn: "STRING_VALUE", // required
58-
* // type: "DIFFERENTIAL_PRIVACY", // required
59+
* // type: "DIFFERENTIAL_PRIVACY" || "ACCESS_BUDGET", // required
5960
* // createTime: new Date("TIMESTAMP"), // required
6061
* // updateTime: new Date("TIMESTAMP"), // required
6162
* // budget: { // PrivacyBudget Union: only one key present
@@ -69,6 +70,20 @@ export interface ListPrivacyBudgetsCommandOutput extends ListPrivacyBudgetsOutpu
6970
* // ],
7071
* // epsilon: Number("int"), // required
7172
* // },
73+
* // accessBudget: { // AccessBudget
74+
* // resourceArn: "STRING_VALUE", // required
75+
* // details: [ // AccessBudgetDetailsList // required
76+
* // { // AccessBudgetDetails
77+
* // startTime: new Date("TIMESTAMP"), // required
78+
* // endTime: new Date("TIMESTAMP"),
79+
* // remainingBudget: Number("int"), // required
80+
* // budget: Number("int"), // required
81+
* // budgetType: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
82+
* // autoRefresh: "ENABLED" || "DISABLED",
83+
* // },
84+
* // ],
85+
* // aggregateRemainingBudget: Number("int"), // required
86+
* // },
7287
* // },
7388
* // },
7489
* // ],

clients/client-cleanrooms/src/commands/ListSchemasCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface ListSchemasCommandOutput extends ListSchemasOutput, __MetadataB
5959
* // "AGGREGATION" || "LIST" || "CUSTOM" || "ID_MAPPING_TABLE",
6060
* // ],
6161
* // analysisMethod: "DIRECT_QUERY" || "DIRECT_JOB" || "MULTIPLE",
62+
* // resourceArn: "STRING_VALUE",
6263
* // selectedAnalysisMethods: [ // SelectedAnalysisMethods
6364
* // "DIRECT_QUERY" || "DIRECT_JOB",
6465
* // ],

0 commit comments

Comments
 (0)