-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-connectcampaignsv2): Amazon Connect Outbound Campaigns V2…
… / Features : Adds support for Event-Triggered Campaigns.
- Loading branch information
awstools
committed
Dec 2, 2024
1 parent
7447521
commit 1bea595
Showing
11 changed files
with
673 additions
and
1 deletion.
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
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
141 changes: 141 additions & 0 deletions
141
clients/client-connectcampaignsv2/src/commands/PutProfileOutboundRequestBatchCommand.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,141 @@ | ||
// 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 { | ||
ConnectCampaignsV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../ConnectCampaignsV2Client"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { PutProfileOutboundRequestBatchRequest, PutProfileOutboundRequestBatchResponse } from "../models/models_0"; | ||
import { | ||
de_PutProfileOutboundRequestBatchCommand, | ||
se_PutProfileOutboundRequestBatchCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link PutProfileOutboundRequestBatchCommand}. | ||
*/ | ||
export interface PutProfileOutboundRequestBatchCommandInput extends PutProfileOutboundRequestBatchRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link PutProfileOutboundRequestBatchCommand}. | ||
*/ | ||
export interface PutProfileOutboundRequestBatchCommandOutput | ||
extends PutProfileOutboundRequestBatchResponse, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* Takes in a list of profile outbound requests to be placed as part of an outbound campaign. This API is idempotent. | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ConnectCampaignsV2Client, PutProfileOutboundRequestBatchCommand } from "@aws-sdk/client-connectcampaignsv2"; // ES Modules import | ||
* // const { ConnectCampaignsV2Client, PutProfileOutboundRequestBatchCommand } = require("@aws-sdk/client-connectcampaignsv2"); // CommonJS import | ||
* const client = new ConnectCampaignsV2Client(config); | ||
* const input = { // PutProfileOutboundRequestBatchRequest | ||
* id: "STRING_VALUE", // required | ||
* profileOutboundRequests: [ // ProfileOutboundRequestList // required | ||
* { // ProfileOutboundRequest | ||
* clientToken: "STRING_VALUE", // required | ||
* profileId: "STRING_VALUE", // required | ||
* expirationTime: new Date("TIMESTAMP"), | ||
* }, | ||
* ], | ||
* }; | ||
* const command = new PutProfileOutboundRequestBatchCommand(input); | ||
* const response = await client.send(command); | ||
* // { // PutProfileOutboundRequestBatchResponse | ||
* // successfulRequests: [ // SuccessfulProfileOutboundRequestList | ||
* // { // SuccessfulProfileOutboundRequest | ||
* // clientToken: "STRING_VALUE", | ||
* // id: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // failedRequests: [ // FailedProfileOutboundRequestList | ||
* // { // FailedProfileOutboundRequest | ||
* // clientToken: "STRING_VALUE", | ||
* // id: "STRING_VALUE", | ||
* // failureCode: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param PutProfileOutboundRequestBatchCommandInput - {@link PutProfileOutboundRequestBatchCommandInput} | ||
* @returns {@link PutProfileOutboundRequestBatchCommandOutput} | ||
* @see {@link PutProfileOutboundRequestBatchCommandInput} for command's `input` shape. | ||
* @see {@link PutProfileOutboundRequestBatchCommandOutput} for command's `response` shape. | ||
* @see {@link ConnectCampaignsV2ClientResolvedConfig | config} for ConnectCampaignsV2Client's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* You do not have sufficient access to perform this action. | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* The request could not be processed because of conflict in the current state of the resource. | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* Request processing failed because of an error or failure with the service. | ||
* | ||
* @throws {@link InvalidCampaignStateException} (client fault) | ||
* The request could not be processed because of conflict in the current state of the campaign. | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* The specified resource was not found. | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* The request was denied due to request throttling. | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* The input fails to satisfy the constraints specified by an AWS service. | ||
* | ||
* @throws {@link ConnectCampaignsV2ServiceException} | ||
* <p>Base exception class for all service exceptions from ConnectCampaignsV2 service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class PutProfileOutboundRequestBatchCommand extends $Command | ||
.classBuilder< | ||
PutProfileOutboundRequestBatchCommandInput, | ||
PutProfileOutboundRequestBatchCommandOutput, | ||
ConnectCampaignsV2ClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: ConnectCampaignsV2ClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AmazonConnectCampaignServiceV2", "PutProfileOutboundRequestBatch", {}) | ||
.n("ConnectCampaignsV2Client", "PutProfileOutboundRequestBatchCommand") | ||
.f(void 0, void 0) | ||
.ser(se_PutProfileOutboundRequestBatchCommand) | ||
.de(de_PutProfileOutboundRequestBatchCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: PutProfileOutboundRequestBatchRequest; | ||
output: PutProfileOutboundRequestBatchResponse; | ||
}; | ||
sdk: { | ||
input: PutProfileOutboundRequestBatchCommandInput; | ||
output: PutProfileOutboundRequestBatchCommandOutput; | ||
}; | ||
}; | ||
} |
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.