-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-entityresolution): Support Batch Unique IDs Deletion.
- Loading branch information
awstools
committed
Apr 24, 2024
1 parent
6844bc3
commit 87c90f1
Showing
8 changed files
with
531 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
clients/client-entityresolution/src/commands/BatchDeleteUniqueIdCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { EntityResolutionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EntityResolutionClient"; | ||
import { BatchDeleteUniqueIdInput, BatchDeleteUniqueIdOutput } from "../models/models_0"; | ||
import { de_BatchDeleteUniqueIdCommand, se_BatchDeleteUniqueIdCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link BatchDeleteUniqueIdCommand}. | ||
*/ | ||
export interface BatchDeleteUniqueIdCommandInput extends BatchDeleteUniqueIdInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link BatchDeleteUniqueIdCommand}. | ||
*/ | ||
export interface BatchDeleteUniqueIdCommandOutput extends BatchDeleteUniqueIdOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Deletes multiple unique IDs in a matching workflow.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { EntityResolutionClient, BatchDeleteUniqueIdCommand } from "@aws-sdk/client-entityresolution"; // ES Modules import | ||
* // const { EntityResolutionClient, BatchDeleteUniqueIdCommand } = require("@aws-sdk/client-entityresolution"); // CommonJS import | ||
* const client = new EntityResolutionClient(config); | ||
* const input = { // BatchDeleteUniqueIdInput | ||
* workflowName: "STRING_VALUE", // required | ||
* inputSource: "STRING_VALUE", | ||
* uniqueIds: [ // UniqueIdList // required | ||
* "STRING_VALUE", | ||
* ], | ||
* }; | ||
* const command = new BatchDeleteUniqueIdCommand(input); | ||
* const response = await client.send(command); | ||
* // { // BatchDeleteUniqueIdOutput | ||
* // status: "COMPLETED" || "ACCEPTED", // required | ||
* // errors: [ // DeleteUniqueIdErrorsList // required | ||
* // { // DeleteUniqueIdError | ||
* // uniqueId: "STRING_VALUE", // required | ||
* // errorType: "SERVICE_ERROR" || "VALIDATION_ERROR", // required | ||
* // }, | ||
* // ], | ||
* // deleted: [ // DeletedUniqueIdList // required | ||
* // { // DeletedUniqueId | ||
* // uniqueId: "STRING_VALUE", // required | ||
* // }, | ||
* // ], | ||
* // disconnectedUniqueIds: [ // DisconnectedUniqueIdsList // required | ||
* // "STRING_VALUE", | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param BatchDeleteUniqueIdCommandInput - {@link BatchDeleteUniqueIdCommandInput} | ||
* @returns {@link BatchDeleteUniqueIdCommandOutput} | ||
* @see {@link BatchDeleteUniqueIdCommandInput} for command's `input` shape. | ||
* @see {@link BatchDeleteUniqueIdCommandOutput} for command's `response` shape. | ||
* @see {@link EntityResolutionClientResolvedConfig | config} for EntityResolutionClient's `config` shape. | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>This exception occurs when there is an internal failure in the Entity Resolution | ||
* service. <code>HTTP Status Code: 500</code> | ||
* </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The resource could not be found. <code>HTTP Status Code: 404</code> | ||
* </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input fails to satisfy the constraints specified by Entity Resolution. <code>HTTP | ||
* Status Code: 400</code> | ||
* </p> | ||
* | ||
* @throws {@link EntityResolutionServiceException} | ||
* <p>Base exception class for all service exceptions from EntityResolution service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class BatchDeleteUniqueIdCommand extends $Command | ||
.classBuilder< | ||
BatchDeleteUniqueIdCommandInput, | ||
BatchDeleteUniqueIdCommandOutput, | ||
EntityResolutionClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: EntityResolutionClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSVeniceService", "BatchDeleteUniqueId", {}) | ||
.n("EntityResolutionClient", "BatchDeleteUniqueIdCommand") | ||
.f(void 0, void 0) | ||
.ser(se_BatchDeleteUniqueIdCommand) | ||
.de(de_BatchDeleteUniqueIdCommand) | ||
.build() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.