Skip to content

Commit f151936

Browse files
author
awstools
committed
feat(client-cleanrooms): Added support for running incremental ID mapping for rule-based workflows.
1 parent 6106ad2 commit f151936

File tree

5 files changed

+47
-16
lines changed

5 files changed

+47
-16
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ export interface CreatePrivacyBudgetTemplateCommandOutput extends CreatePrivacyB
9797
* @throws {@link ResourceNotFoundException} (client fault)
9898
* <p>Request references a resource which does not exist.</p>
9999
*
100+
* @throws {@link ServiceQuotaExceededException} (client fault)
101+
* <p>Request denied because service quota has been exceeded.</p>
102+
*
100103
* @throws {@link ThrottlingException} (client fault)
101104
* <p>Request was denied due to request throttling.</p>
102105
*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface PopulateIdMappingTableCommandOutput extends PopulateIdMappingTa
4040
* const input = { // PopulateIdMappingTableInput
4141
* idMappingTableIdentifier: "STRING_VALUE", // required
4242
* membershipIdentifier: "STRING_VALUE", // required
43+
* jobType: "BATCH" || "INCREMENTAL" || "DELETE_ONLY",
4344
* };
4445
* const command = new PopulateIdMappingTableCommand(input);
4546
* const response = await client.send(command);

clients/client-cleanrooms/src/models/models_0.ts

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7083,6 +7083,21 @@ export interface ListIdMappingTablesOutput {
70837083
nextToken?: string | undefined;
70847084
}
70857085

7086+
/**
7087+
* @public
7088+
* @enum
7089+
*/
7090+
export const JobType = {
7091+
BATCH: "BATCH",
7092+
DELETE_ONLY: "DELETE_ONLY",
7093+
INCREMENTAL: "INCREMENTAL",
7094+
} as const;
7095+
7096+
/**
7097+
* @public
7098+
*/
7099+
export type JobType = (typeof JobType)[keyof typeof JobType];
7100+
70867101
/**
70877102
* @public
70887103
*/
@@ -7098,6 +7113,12 @@ export interface PopulateIdMappingTableInput {
70987113
* @public
70997114
*/
71007115
membershipIdentifier: string | undefined;
7116+
7117+
/**
7118+
* <p>The job type of the rule-based ID mapping job. Valid values include:</p> <p> <code>INCREMENTAL</code>: Processes only new or changed data since the last job run. This is the default job type if the ID mapping workflow was created in Entity Resolution with <code>incrementalRunConfig</code> specified.</p> <p> <code>BATCH</code>: Processes all data from the input source, regardless of previous job runs. This is the default job type if the ID mapping workflow was created in Entity Resolution but <code>incrementalRunConfig</code> wasn't specified.</p> <p> <code>DELETE_ONLY</code>: Processes only deletion requests from <code>BatchDeleteUniqueId</code>, which is set in Entity Resolution.</p> <p>For more information about <code>incrementalRunConfig</code> and <code>BatchDeleteUniqueId</code>, see the <a href="https://docs.aws.amazon.com/entityresolution/latest/apireference/Welcome.html">Entity Resolution API Reference</a>.</p>
7119+
* @public
7120+
*/
7121+
jobType?: JobType | undefined;
71017122
}
71027123

71037124
/**
@@ -7805,20 +7826,6 @@ export interface MembershipPaymentConfiguration {
78057826
jobCompute?: MembershipJobComputePaymentConfig | undefined;
78067827
}
78077828

7808-
/**
7809-
* @public
7810-
* @enum
7811-
*/
7812-
export const MembershipQueryLogStatus = {
7813-
DISABLED: "DISABLED",
7814-
ENABLED: "ENABLED",
7815-
} as const;
7816-
7817-
/**
7818-
* @public
7819-
*/
7820-
export type MembershipQueryLogStatus = (typeof MembershipQueryLogStatus)[keyof typeof MembershipQueryLogStatus];
7821-
78227829
/**
78237830
* @internal
78247831
*/

clients/client-cleanrooms/src/models/models_1.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
MembershipPaymentConfiguration,
1010
MembershipProtectedJobResultConfiguration,
1111
MembershipProtectedQueryResultConfiguration,
12-
MembershipQueryLogStatus,
1312
MLMemberAbilities,
1413
PrivacyBudget,
1514
PrivacyBudgetTemplateAutoRefresh,
@@ -18,6 +17,20 @@ import {
1817
ProtectedQueryS3OutputConfiguration,
1918
} from "./models_0";
2019

20+
/**
21+
* @public
22+
* @enum
23+
*/
24+
export const MembershipQueryLogStatus = {
25+
DISABLED: "DISABLED",
26+
ENABLED: "ENABLED",
27+
} as const;
28+
29+
/**
30+
* @public
31+
*/
32+
export type MembershipQueryLogStatus = (typeof MembershipQueryLogStatus)[keyof typeof MembershipQueryLogStatus];
33+
2134
/**
2235
* @public
2336
*/

clients/client-cleanrooms/src/protocols/Aws_restJson1.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,11 +1904,18 @@ export const se_PopulateIdMappingTableCommand = async (
19041904
context: __SerdeContext
19051905
): Promise<__HttpRequest> => {
19061906
const b = rb(input, context);
1907-
const headers: any = {};
1907+
const headers: any = {
1908+
"content-type": "application/json",
1909+
};
19081910
b.bp("/memberships/{membershipIdentifier}/idmappingtables/{idMappingTableIdentifier}/populate");
19091911
b.p("idMappingTableIdentifier", () => input.idMappingTableIdentifier!, "{idMappingTableIdentifier}", false);
19101912
b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false);
19111913
let body: any;
1914+
body = JSON.stringify(
1915+
take(input, {
1916+
jobType: [],
1917+
})
1918+
);
19121919
b.m("POST").h(headers).b(body);
19131920
return b.build();
19141921
};

0 commit comments

Comments
 (0)