|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { getSerdePlugin } from "@smithy/middleware-serde"; |
| 4 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 5 | +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 6 | + |
| 7 | +import { |
| 8 | + ConnectParticipantClientResolvedConfig, |
| 9 | + ServiceInputTypes, |
| 10 | + ServiceOutputTypes, |
| 11 | +} from "../ConnectParticipantClient"; |
| 12 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 13 | +import { CancelParticipantAuthenticationRequest, CancelParticipantAuthenticationResponse } from "../models/models_0"; |
| 14 | +import { |
| 15 | + de_CancelParticipantAuthenticationCommand, |
| 16 | + se_CancelParticipantAuthenticationCommand, |
| 17 | +} from "../protocols/Aws_restJson1"; |
| 18 | + |
| 19 | +/** |
| 20 | + * @public |
| 21 | + */ |
| 22 | +export type { __MetadataBearer }; |
| 23 | +export { $Command }; |
| 24 | +/** |
| 25 | + * @public |
| 26 | + * |
| 27 | + * The input for {@link CancelParticipantAuthenticationCommand}. |
| 28 | + */ |
| 29 | +export interface CancelParticipantAuthenticationCommandInput extends CancelParticipantAuthenticationRequest {} |
| 30 | +/** |
| 31 | + * @public |
| 32 | + * |
| 33 | + * The output of {@link CancelParticipantAuthenticationCommand}. |
| 34 | + */ |
| 35 | +export interface CancelParticipantAuthenticationCommandOutput |
| 36 | + extends CancelParticipantAuthenticationResponse, |
| 37 | + __MetadataBearer {} |
| 38 | + |
| 39 | +/** |
| 40 | + * <p>Cancels the authentication session. The opted out branch of the Authenticate Customer |
| 41 | + * flow block will be taken.</p> |
| 42 | + * <note> |
| 43 | + * <p>The current supported channel is chat. This API is not supported for Apple |
| 44 | + * Messages for Business, WhatsApp, or SMS chats.</p> |
| 45 | + * </note> |
| 46 | + * @example |
| 47 | + * Use a bare-bones client and the command you need to make an API call. |
| 48 | + * ```javascript |
| 49 | + * import { ConnectParticipantClient, CancelParticipantAuthenticationCommand } from "@aws-sdk/client-connectparticipant"; // ES Modules import |
| 50 | + * // const { ConnectParticipantClient, CancelParticipantAuthenticationCommand } = require("@aws-sdk/client-connectparticipant"); // CommonJS import |
| 51 | + * const client = new ConnectParticipantClient(config); |
| 52 | + * const input = { // CancelParticipantAuthenticationRequest |
| 53 | + * SessionId: "STRING_VALUE", // required |
| 54 | + * ConnectionToken: "STRING_VALUE", // required |
| 55 | + * }; |
| 56 | + * const command = new CancelParticipantAuthenticationCommand(input); |
| 57 | + * const response = await client.send(command); |
| 58 | + * // {}; |
| 59 | + * |
| 60 | + * ``` |
| 61 | + * |
| 62 | + * @param CancelParticipantAuthenticationCommandInput - {@link CancelParticipantAuthenticationCommandInput} |
| 63 | + * @returns {@link CancelParticipantAuthenticationCommandOutput} |
| 64 | + * @see {@link CancelParticipantAuthenticationCommandInput} for command's `input` shape. |
| 65 | + * @see {@link CancelParticipantAuthenticationCommandOutput} for command's `response` shape. |
| 66 | + * @see {@link ConnectParticipantClientResolvedConfig | config} for ConnectParticipantClient's `config` shape. |
| 67 | + * |
| 68 | + * @throws {@link AccessDeniedException} (client fault) |
| 69 | + * <p>You do not have sufficient access to perform this action.</p> |
| 70 | + * |
| 71 | + * @throws {@link InternalServerException} (server fault) |
| 72 | + * <p>This exception occurs when there is an internal failure in the Amazon Connect service.</p> |
| 73 | + * |
| 74 | + * @throws {@link ThrottlingException} (client fault) |
| 75 | + * <p>The request was denied due to request throttling.</p> |
| 76 | + * |
| 77 | + * @throws {@link ValidationException} (client fault) |
| 78 | + * <p>The input fails to satisfy the constraints specified by Amazon Connect.</p> |
| 79 | + * |
| 80 | + * @throws {@link ConnectParticipantServiceException} |
| 81 | + * <p>Base exception class for all service exceptions from ConnectParticipant service.</p> |
| 82 | + * |
| 83 | + * @public |
| 84 | + */ |
| 85 | +export class CancelParticipantAuthenticationCommand extends $Command |
| 86 | + .classBuilder< |
| 87 | + CancelParticipantAuthenticationCommandInput, |
| 88 | + CancelParticipantAuthenticationCommandOutput, |
| 89 | + ConnectParticipantClientResolvedConfig, |
| 90 | + ServiceInputTypes, |
| 91 | + ServiceOutputTypes |
| 92 | + >() |
| 93 | + .ep(commonParams) |
| 94 | + .m(function (this: any, Command: any, cs: any, config: ConnectParticipantClientResolvedConfig, o: any) { |
| 95 | + return [ |
| 96 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 97 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 98 | + ]; |
| 99 | + }) |
| 100 | + .s("AmazonConnectParticipantServiceLambda", "CancelParticipantAuthentication", {}) |
| 101 | + .n("ConnectParticipantClient", "CancelParticipantAuthenticationCommand") |
| 102 | + .f(void 0, void 0) |
| 103 | + .ser(se_CancelParticipantAuthenticationCommand) |
| 104 | + .de(de_CancelParticipantAuthenticationCommand) |
| 105 | + .build() { |
| 106 | + /** @internal type navigation helper, not in runtime. */ |
| 107 | + protected declare static __types: { |
| 108 | + api: { |
| 109 | + input: CancelParticipantAuthenticationRequest; |
| 110 | + output: {}; |
| 111 | + }; |
| 112 | + sdk: { |
| 113 | + input: CancelParticipantAuthenticationCommandInput; |
| 114 | + output: CancelParticipantAuthenticationCommandOutput; |
| 115 | + }; |
| 116 | + }; |
| 117 | +} |
0 commit comments