diff --git a/clients/client-lex-models-v2/README.md b/clients/client-lex-models-v2/README.md index a7c9997f173e0..919bbc2b5df0e 100644 --- a/clients/client-lex-models-v2/README.md +++ b/clients/client-lex-models-v2/README.md @@ -258,6 +258,14 @@ CreateBotLocale [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/CreateBotLocaleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/CreateBotLocaleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/CreateBotLocaleCommandOutput/) + +
+ +CreateBotReplica + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/CreateBotReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/CreateBotReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/CreateBotReplicaCommandOutput/) +
@@ -354,6 +362,14 @@ DeleteBotLocale [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/DeleteBotLocaleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DeleteBotLocaleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DeleteBotLocaleCommandOutput/) +
+
+ +DeleteBotReplica + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/DeleteBotReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DeleteBotReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DeleteBotReplicaCommandOutput/) +
@@ -474,6 +490,14 @@ DescribeBotRecommendation [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/DescribeBotRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DescribeBotRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DescribeBotRecommendationCommandOutput/) +
+
+ +DescribeBotReplica + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/DescribeBotReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DescribeBotReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/DescribeBotReplicaCommandOutput/) +
@@ -610,6 +634,14 @@ ListBotAliases [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotAliasesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotAliasesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotAliasesCommandOutput/) +
+
+ +ListBotAliasReplicas + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotAliasReplicasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotAliasReplicasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotAliasReplicasCommandOutput/) +
@@ -626,6 +658,14 @@ ListBotRecommendations [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotRecommendationsCommandOutput/) +
+
+ +ListBotReplicas + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotReplicasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotReplicasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotReplicasCommandOutput/) +
@@ -642,6 +682,14 @@ ListBots [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotsCommandOutput/) +
+
+ +ListBotVersionReplicas + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lex-models-v2/command/ListBotVersionReplicasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotVersionReplicasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lex-models-v2/Interface/ListBotVersionReplicasCommandOutput/) +
diff --git a/clients/client-lex-models-v2/src/LexModelsV2.ts b/clients/client-lex-models-v2/src/LexModelsV2.ts index ec64507605ec9..db51be180179a 100644 --- a/clients/client-lex-models-v2/src/LexModelsV2.ts +++ b/clients/client-lex-models-v2/src/LexModelsV2.ts @@ -33,6 +33,11 @@ import { CreateBotLocaleCommandInput, CreateBotLocaleCommandOutput, } from "./commands/CreateBotLocaleCommand"; +import { + CreateBotReplicaCommand, + CreateBotReplicaCommandInput, + CreateBotReplicaCommandOutput, +} from "./commands/CreateBotReplicaCommand"; import { CreateBotVersionCommand, CreateBotVersionCommandInput, @@ -85,6 +90,11 @@ import { DeleteBotLocaleCommandInput, DeleteBotLocaleCommandOutput, } from "./commands/DeleteBotLocaleCommand"; +import { + DeleteBotReplicaCommand, + DeleteBotReplicaCommandInput, + DeleteBotReplicaCommandOutput, +} from "./commands/DeleteBotReplicaCommand"; import { DeleteBotVersionCommand, DeleteBotVersionCommandInput, @@ -152,6 +162,11 @@ import { DescribeBotRecommendationCommandInput, DescribeBotRecommendationCommandOutput, } from "./commands/DescribeBotRecommendationCommand"; +import { + DescribeBotReplicaCommand, + DescribeBotReplicaCommandInput, + DescribeBotReplicaCommandOutput, +} from "./commands/DescribeBotReplicaCommand"; import { DescribeBotResourceGenerationCommand, DescribeBotResourceGenerationCommandInput, @@ -237,6 +252,11 @@ import { ListBotAliasesCommandInput, ListBotAliasesCommandOutput, } from "./commands/ListBotAliasesCommand"; +import { + ListBotAliasReplicasCommand, + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput, +} from "./commands/ListBotAliasReplicasCommand"; import { ListBotLocalesCommand, ListBotLocalesCommandInput, @@ -247,12 +267,22 @@ import { ListBotRecommendationsCommandInput, ListBotRecommendationsCommandOutput, } from "./commands/ListBotRecommendationsCommand"; +import { + ListBotReplicasCommand, + ListBotReplicasCommandInput, + ListBotReplicasCommandOutput, +} from "./commands/ListBotReplicasCommand"; import { ListBotResourceGenerationsCommand, ListBotResourceGenerationsCommandInput, ListBotResourceGenerationsCommandOutput, } from "./commands/ListBotResourceGenerationsCommand"; import { ListBotsCommand, ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand"; +import { + ListBotVersionReplicasCommand, + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput, +} from "./commands/ListBotVersionReplicasCommand"; import { ListBotVersionsCommand, ListBotVersionsCommandInput, @@ -436,6 +466,7 @@ const commands = { CreateBotCommand, CreateBotAliasCommand, CreateBotLocaleCommand, + CreateBotReplicaCommand, CreateBotVersionCommand, CreateExportCommand, CreateIntentCommand, @@ -448,6 +479,7 @@ const commands = { DeleteBotCommand, DeleteBotAliasCommand, DeleteBotLocaleCommand, + DeleteBotReplicaCommand, DeleteBotVersionCommand, DeleteCustomVocabularyCommand, DeleteExportCommand, @@ -463,6 +495,7 @@ const commands = { DescribeBotAliasCommand, DescribeBotLocaleCommand, DescribeBotRecommendationCommand, + DescribeBotReplicaCommand, DescribeBotResourceGenerationCommand, DescribeBotVersionCommand, DescribeCustomVocabularyMetadataCommand, @@ -480,10 +513,13 @@ const commands = { GetTestExecutionArtifactsUrlCommand, ListAggregatedUtterancesCommand, ListBotAliasesCommand, + ListBotAliasReplicasCommand, ListBotLocalesCommand, ListBotRecommendationsCommand, + ListBotReplicasCommand, ListBotResourceGenerationsCommand, ListBotsCommand, + ListBotVersionReplicasCommand, ListBotVersionsCommand, ListBuiltInIntentsCommand, ListBuiltInSlotTypesCommand, @@ -632,6 +668,23 @@ export interface LexModelsV2 { cb: (err: any, data?: CreateBotLocaleCommandOutput) => void ): void; + /** + * @see {@link CreateBotReplicaCommand} + */ + createBotReplica( + args: CreateBotReplicaCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createBotReplica( + args: CreateBotReplicaCommandInput, + cb: (err: any, data?: CreateBotReplicaCommandOutput) => void + ): void; + createBotReplica( + args: CreateBotReplicaCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateBotReplicaCommandOutput) => void + ): void; + /** * @see {@link CreateBotVersionCommand} */ @@ -800,6 +853,23 @@ export interface LexModelsV2 { cb: (err: any, data?: DeleteBotLocaleCommandOutput) => void ): void; + /** + * @see {@link DeleteBotReplicaCommand} + */ + deleteBotReplica( + args: DeleteBotReplicaCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteBotReplica( + args: DeleteBotReplicaCommandInput, + cb: (err: any, data?: DeleteBotReplicaCommandOutput) => void + ): void; + deleteBotReplica( + args: DeleteBotReplicaCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteBotReplicaCommandOutput) => void + ): void; + /** * @see {@link DeleteBotVersionCommand} */ @@ -1016,6 +1086,23 @@ export interface LexModelsV2 { cb: (err: any, data?: DescribeBotRecommendationCommandOutput) => void ): void; + /** + * @see {@link DescribeBotReplicaCommand} + */ + describeBotReplica( + args: DescribeBotReplicaCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeBotReplica( + args: DescribeBotReplicaCommandInput, + cb: (err: any, data?: DescribeBotReplicaCommandOutput) => void + ): void; + describeBotReplica( + args: DescribeBotReplicaCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeBotReplicaCommandOutput) => void + ): void; + /** * @see {@link DescribeBotResourceGenerationCommand} */ @@ -1284,6 +1371,23 @@ export interface LexModelsV2 { cb: (err: any, data?: ListBotAliasesCommandOutput) => void ): void; + /** + * @see {@link ListBotAliasReplicasCommand} + */ + listBotAliasReplicas( + args: ListBotAliasReplicasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listBotAliasReplicas( + args: ListBotAliasReplicasCommandInput, + cb: (err: any, data?: ListBotAliasReplicasCommandOutput) => void + ): void; + listBotAliasReplicas( + args: ListBotAliasReplicasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListBotAliasReplicasCommandOutput) => void + ): void; + /** * @see {@link ListBotLocalesCommand} */ @@ -1315,6 +1419,20 @@ export interface LexModelsV2 { cb: (err: any, data?: ListBotRecommendationsCommandOutput) => void ): void; + /** + * @see {@link ListBotReplicasCommand} + */ + listBotReplicas( + args: ListBotReplicasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listBotReplicas(args: ListBotReplicasCommandInput, cb: (err: any, data?: ListBotReplicasCommandOutput) => void): void; + listBotReplicas( + args: ListBotReplicasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListBotReplicasCommandOutput) => void + ): void; + /** * @see {@link ListBotResourceGenerationsCommand} */ @@ -1343,6 +1461,23 @@ export interface LexModelsV2 { cb: (err: any, data?: ListBotsCommandOutput) => void ): void; + /** + * @see {@link ListBotVersionReplicasCommand} + */ + listBotVersionReplicas( + args: ListBotVersionReplicasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listBotVersionReplicas( + args: ListBotVersionReplicasCommandInput, + cb: (err: any, data?: ListBotVersionReplicasCommandOutput) => void + ): void; + listBotVersionReplicas( + args: ListBotVersionReplicasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListBotVersionReplicasCommandOutput) => void + ): void; + /** * @see {@link ListBotVersionsCommand} */ diff --git a/clients/client-lex-models-v2/src/LexModelsV2Client.ts b/clients/client-lex-models-v2/src/LexModelsV2Client.ts index d00c93448e4d4..cdb58420ce9d0 100644 --- a/clients/client-lex-models-v2/src/LexModelsV2Client.ts +++ b/clients/client-lex-models-v2/src/LexModelsV2Client.ts @@ -64,6 +64,7 @@ import { BuildBotLocaleCommandInput, BuildBotLocaleCommandOutput } from "./comma import { CreateBotAliasCommandInput, CreateBotAliasCommandOutput } from "./commands/CreateBotAliasCommand"; import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand"; import { CreateBotLocaleCommandInput, CreateBotLocaleCommandOutput } from "./commands/CreateBotLocaleCommand"; +import { CreateBotReplicaCommandInput, CreateBotReplicaCommandOutput } from "./commands/CreateBotReplicaCommand"; import { CreateBotVersionCommandInput, CreateBotVersionCommandOutput } from "./commands/CreateBotVersionCommand"; import { CreateExportCommandInput, CreateExportCommandOutput } from "./commands/CreateExportCommand"; import { CreateIntentCommandInput, CreateIntentCommandOutput } from "./commands/CreateIntentCommand"; @@ -85,6 +86,7 @@ import { CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput } from "./com import { DeleteBotAliasCommandInput, DeleteBotAliasCommandOutput } from "./commands/DeleteBotAliasCommand"; import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand"; import { DeleteBotLocaleCommandInput, DeleteBotLocaleCommandOutput } from "./commands/DeleteBotLocaleCommand"; +import { DeleteBotReplicaCommandInput, DeleteBotReplicaCommandOutput } from "./commands/DeleteBotReplicaCommand"; import { DeleteBotVersionCommandInput, DeleteBotVersionCommandOutput } from "./commands/DeleteBotVersionCommand"; import { DeleteCustomVocabularyCommandInput, @@ -112,6 +114,7 @@ import { DescribeBotRecommendationCommandInput, DescribeBotRecommendationCommandOutput, } from "./commands/DescribeBotRecommendationCommand"; +import { DescribeBotReplicaCommandInput, DescribeBotReplicaCommandOutput } from "./commands/DescribeBotReplicaCommand"; import { DescribeBotResourceGenerationCommandInput, DescribeBotResourceGenerationCommandOutput, @@ -153,16 +156,25 @@ import { ListAggregatedUtterancesCommandOutput, } from "./commands/ListAggregatedUtterancesCommand"; import { ListBotAliasesCommandInput, ListBotAliasesCommandOutput } from "./commands/ListBotAliasesCommand"; +import { + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput, +} from "./commands/ListBotAliasReplicasCommand"; import { ListBotLocalesCommandInput, ListBotLocalesCommandOutput } from "./commands/ListBotLocalesCommand"; import { ListBotRecommendationsCommandInput, ListBotRecommendationsCommandOutput, } from "./commands/ListBotRecommendationsCommand"; +import { ListBotReplicasCommandInput, ListBotReplicasCommandOutput } from "./commands/ListBotReplicasCommand"; import { ListBotResourceGenerationsCommandInput, ListBotResourceGenerationsCommandOutput, } from "./commands/ListBotResourceGenerationsCommand"; import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand"; +import { + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput, +} from "./commands/ListBotVersionReplicasCommand"; import { ListBotVersionsCommandInput, ListBotVersionsCommandOutput } from "./commands/ListBotVersionsCommand"; import { ListBuiltInIntentsCommandInput, ListBuiltInIntentsCommandOutput } from "./commands/ListBuiltInIntentsCommand"; import { @@ -274,6 +286,7 @@ export type ServiceInputTypes = | CreateBotAliasCommandInput | CreateBotCommandInput | CreateBotLocaleCommandInput + | CreateBotReplicaCommandInput | CreateBotVersionCommandInput | CreateExportCommandInput | CreateIntentCommandInput @@ -286,6 +299,7 @@ export type ServiceInputTypes = | DeleteBotAliasCommandInput | DeleteBotCommandInput | DeleteBotLocaleCommandInput + | DeleteBotReplicaCommandInput | DeleteBotVersionCommandInput | DeleteCustomVocabularyCommandInput | DeleteExportCommandInput @@ -301,6 +315,7 @@ export type ServiceInputTypes = | DescribeBotCommandInput | DescribeBotLocaleCommandInput | DescribeBotRecommendationCommandInput + | DescribeBotReplicaCommandInput | DescribeBotResourceGenerationCommandInput | DescribeBotVersionCommandInput | DescribeCustomVocabularyMetadataCommandInput @@ -317,10 +332,13 @@ export type ServiceInputTypes = | GenerateBotElementCommandInput | GetTestExecutionArtifactsUrlCommandInput | ListAggregatedUtterancesCommandInput + | ListBotAliasReplicasCommandInput | ListBotAliasesCommandInput | ListBotLocalesCommandInput | ListBotRecommendationsCommandInput + | ListBotReplicasCommandInput | ListBotResourceGenerationsCommandInput + | ListBotVersionReplicasCommandInput | ListBotVersionsCommandInput | ListBotsCommandInput | ListBuiltInIntentsCommandInput @@ -375,6 +393,7 @@ export type ServiceOutputTypes = | CreateBotAliasCommandOutput | CreateBotCommandOutput | CreateBotLocaleCommandOutput + | CreateBotReplicaCommandOutput | CreateBotVersionCommandOutput | CreateExportCommandOutput | CreateIntentCommandOutput @@ -387,6 +406,7 @@ export type ServiceOutputTypes = | DeleteBotAliasCommandOutput | DeleteBotCommandOutput | DeleteBotLocaleCommandOutput + | DeleteBotReplicaCommandOutput | DeleteBotVersionCommandOutput | DeleteCustomVocabularyCommandOutput | DeleteExportCommandOutput @@ -402,6 +422,7 @@ export type ServiceOutputTypes = | DescribeBotCommandOutput | DescribeBotLocaleCommandOutput | DescribeBotRecommendationCommandOutput + | DescribeBotReplicaCommandOutput | DescribeBotResourceGenerationCommandOutput | DescribeBotVersionCommandOutput | DescribeCustomVocabularyMetadataCommandOutput @@ -418,10 +439,13 @@ export type ServiceOutputTypes = | GenerateBotElementCommandOutput | GetTestExecutionArtifactsUrlCommandOutput | ListAggregatedUtterancesCommandOutput + | ListBotAliasReplicasCommandOutput | ListBotAliasesCommandOutput | ListBotLocalesCommandOutput | ListBotRecommendationsCommandOutput + | ListBotReplicasCommandOutput | ListBotResourceGenerationsCommandOutput + | ListBotVersionReplicasCommandOutput | ListBotVersionsCommandOutput | ListBotsCommandOutput | ListBuiltInIntentsCommandOutput diff --git a/clients/client-lex-models-v2/src/commands/CreateBotReplicaCommand.ts b/clients/client-lex-models-v2/src/commands/CreateBotReplicaCommand.ts new file mode 100644 index 0000000000000..bd6ef72c43058 --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/CreateBotReplicaCommand.ts @@ -0,0 +1,111 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { CreateBotReplicaRequest, CreateBotReplicaResponse } from "../models/models_0"; +import { de_CreateBotReplicaCommand, se_CreateBotReplicaCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateBotReplicaCommand}. + */ +export interface CreateBotReplicaCommandInput extends CreateBotReplicaRequest {} +/** + * @public + * + * The output of {@link CreateBotReplicaCommand}. + */ +export interface CreateBotReplicaCommandOutput extends CreateBotReplicaResponse, __MetadataBearer {} + +/** + * @public + *

Action to create a replication of the source bot in the secondary region.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, CreateBotReplicaCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, CreateBotReplicaCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // CreateBotReplicaRequest + * botId: "STRING_VALUE", // required + * replicaRegion: "STRING_VALUE", // required + * }; + * const command = new CreateBotReplicaCommand(input); + * const response = await client.send(command); + * // { // CreateBotReplicaResponse + * // botId: "STRING_VALUE", + * // replicaRegion: "STRING_VALUE", + * // sourceRegion: "STRING_VALUE", + * // creationDateTime: new Date("TIMESTAMP"), + * // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed", + * // }; + * + * ``` + * + * @param CreateBotReplicaCommandInput - {@link CreateBotReplicaCommandInput} + * @returns {@link CreateBotReplicaCommandOutput} + * @see {@link CreateBotReplicaCommandInput} for command's `input` shape. + * @see {@link CreateBotReplicaCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link ConflictException} (client fault) + *

The action that you tried to perform couldn't be completed because + * the resource is in a conflicting state. For example, deleting a bot + * that is in the CREATING state. Try your request again.

+ * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link PreconditionFailedException} (client fault) + *

Your request couldn't be completed because one or more request + * fields aren't valid. Check the fields in your request and try + * again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class CreateBotReplicaCommand extends $Command + .classBuilder< + CreateBotReplicaCommandInput, + CreateBotReplicaCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "CreateBotReplica", {}) + .n("LexModelsV2Client", "CreateBotReplicaCommand") + .f(void 0, void 0) + .ser(se_CreateBotReplicaCommand) + .de(de_CreateBotReplicaCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/DeleteBotReplicaCommand.ts b/clients/client-lex-models-v2/src/commands/DeleteBotReplicaCommand.ts new file mode 100644 index 0000000000000..4eceb99881416 --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/DeleteBotReplicaCommand.ts @@ -0,0 +1,109 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { DeleteBotReplicaRequest, DeleteBotReplicaResponse } from "../models/models_0"; +import { de_DeleteBotReplicaCommand, se_DeleteBotReplicaCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteBotReplicaCommand}. + */ +export interface DeleteBotReplicaCommandInput extends DeleteBotReplicaRequest {} +/** + * @public + * + * The output of {@link DeleteBotReplicaCommand}. + */ +export interface DeleteBotReplicaCommandOutput extends DeleteBotReplicaResponse, __MetadataBearer {} + +/** + * @public + *

The action to delete the replicated bot in the secondary region.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, DeleteBotReplicaCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, DeleteBotReplicaCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // DeleteBotReplicaRequest + * botId: "STRING_VALUE", // required + * replicaRegion: "STRING_VALUE", // required + * }; + * const command = new DeleteBotReplicaCommand(input); + * const response = await client.send(command); + * // { // DeleteBotReplicaResponse + * // botId: "STRING_VALUE", + * // replicaRegion: "STRING_VALUE", + * // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed", + * // }; + * + * ``` + * + * @param DeleteBotReplicaCommandInput - {@link DeleteBotReplicaCommandInput} + * @returns {@link DeleteBotReplicaCommandOutput} + * @see {@link DeleteBotReplicaCommandInput} for command's `input` shape. + * @see {@link DeleteBotReplicaCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link ConflictException} (client fault) + *

The action that you tried to perform couldn't be completed because + * the resource is in a conflicting state. For example, deleting a bot + * that is in the CREATING state. Try your request again.

+ * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link PreconditionFailedException} (client fault) + *

Your request couldn't be completed because one or more request + * fields aren't valid. Check the fields in your request and try + * again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class DeleteBotReplicaCommand extends $Command + .classBuilder< + DeleteBotReplicaCommandInput, + DeleteBotReplicaCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "DeleteBotReplica", {}) + .n("LexModelsV2Client", "DeleteBotReplicaCommand") + .f(void 0, void 0) + .ser(se_DeleteBotReplicaCommand) + .de(de_DeleteBotReplicaCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/DescribeBotRecommendationCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeBotRecommendationCommand.ts index 9451910814a1a..51fdecdd821cd 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeBotRecommendationCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeBotRecommendationCommand.ts @@ -6,11 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { DescribeBotRecommendationRequest } from "../models/models_0"; import { - DescribeBotRecommendationRequest, DescribeBotRecommendationResponse, DescribeBotRecommendationResponseFilterSensitiveLog, -} from "../models/models_0"; +} from "../models/models_1"; import { de_DescribeBotRecommendationCommand, se_DescribeBotRecommendationCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-lex-models-v2/src/commands/DescribeBotReplicaCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeBotReplicaCommand.ts new file mode 100644 index 0000000000000..9b3194cb1b5d4 --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/DescribeBotReplicaCommand.ts @@ -0,0 +1,108 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { DescribeBotReplicaRequest, DescribeBotReplicaResponse } from "../models/models_1"; +import { de_DescribeBotReplicaCommand, se_DescribeBotReplicaCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DescribeBotReplicaCommand}. + */ +export interface DescribeBotReplicaCommandInput extends DescribeBotReplicaRequest {} +/** + * @public + * + * The output of {@link DescribeBotReplicaCommand}. + */ +export interface DescribeBotReplicaCommandOutput extends DescribeBotReplicaResponse, __MetadataBearer {} + +/** + * @public + *

Monitors the bot replication status through the UI console.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, DescribeBotReplicaCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, DescribeBotReplicaCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // DescribeBotReplicaRequest + * botId: "STRING_VALUE", // required + * replicaRegion: "STRING_VALUE", // required + * }; + * const command = new DescribeBotReplicaCommand(input); + * const response = await client.send(command); + * // { // DescribeBotReplicaResponse + * // botId: "STRING_VALUE", + * // replicaRegion: "STRING_VALUE", + * // sourceRegion: "STRING_VALUE", + * // creationDateTime: new Date("TIMESTAMP"), + * // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed", + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param DescribeBotReplicaCommandInput - {@link DescribeBotReplicaCommandInput} + * @returns {@link DescribeBotReplicaCommandOutput} + * @see {@link DescribeBotReplicaCommandInput} for command's `input` shape. + * @see {@link DescribeBotReplicaCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

You asked to describe a resource that doesn't exist. Check the + * resource that you are requesting and try again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class DescribeBotReplicaCommand extends $Command + .classBuilder< + DescribeBotReplicaCommandInput, + DescribeBotReplicaCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "DescribeBotReplica", {}) + .n("LexModelsV2Client", "DescribeBotReplicaCommand") + .f(void 0, void 0) + .ser(se_DescribeBotReplicaCommand) + .de(de_DescribeBotReplicaCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/DescribeBotResourceGenerationCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeBotResourceGenerationCommand.ts index a23a05a610bf7..7c8ff5a948811 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeBotResourceGenerationCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeBotResourceGenerationCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; -import { DescribeBotResourceGenerationRequest, DescribeBotResourceGenerationResponse } from "../models/models_0"; +import { DescribeBotResourceGenerationRequest, DescribeBotResourceGenerationResponse } from "../models/models_1"; import { de_DescribeBotResourceGenerationCommand, se_DescribeBotResourceGenerationCommand, diff --git a/clients/client-lex-models-v2/src/commands/DescribeBotVersionCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeBotVersionCommand.ts index 7301076c750a9..e4d8630f940ca 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeBotVersionCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeBotVersionCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; -import { DescribeBotVersionRequest, DescribeBotVersionResponse } from "../models/models_0"; +import { DescribeBotVersionRequest, DescribeBotVersionResponse } from "../models/models_1"; import { de_DescribeBotVersionCommand, se_DescribeBotVersionCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-lex-models-v2/src/commands/DescribeCustomVocabularyMetadataCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeCustomVocabularyMetadataCommand.ts index ba3e15e044b46..3db77b52b6f90 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeCustomVocabularyMetadataCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeCustomVocabularyMetadataCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; -import { DescribeCustomVocabularyMetadataRequest, DescribeCustomVocabularyMetadataResponse } from "../models/models_0"; +import { DescribeCustomVocabularyMetadataRequest, DescribeCustomVocabularyMetadataResponse } from "../models/models_1"; import { de_DescribeCustomVocabularyMetadataCommand, se_DescribeCustomVocabularyMetadataCommand, diff --git a/clients/client-lex-models-v2/src/commands/DescribeExportCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeExportCommand.ts index d424dc1b0a549..d416beee0023d 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeExportCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeExportCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; -import { DescribeExportRequest, DescribeExportResponse } from "../models/models_0"; +import { DescribeExportRequest, DescribeExportResponse } from "../models/models_1"; import { de_DescribeExportCommand, se_DescribeExportCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts b/clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts index 39cb2a8fa8396..635ba5e297596 100644 --- a/clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts +++ b/clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; -import { DescribeImportRequest } from "../models/models_0"; -import { DescribeImportResponse } from "../models/models_1"; +import { DescribeImportRequest, DescribeImportResponse } from "../models/models_1"; import { de_DescribeImportCommand, se_DescribeImportCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-lex-models-v2/src/commands/ListBotAliasReplicasCommand.ts b/clients/client-lex-models-v2/src/commands/ListBotAliasReplicasCommand.ts new file mode 100644 index 0000000000000..27fd04d8e95ef --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/ListBotAliasReplicasCommand.ts @@ -0,0 +1,114 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { ListBotAliasReplicasRequest, ListBotAliasReplicasResponse } from "../models/models_1"; +import { de_ListBotAliasReplicasCommand, se_ListBotAliasReplicasCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListBotAliasReplicasCommand}. + */ +export interface ListBotAliasReplicasCommandInput extends ListBotAliasReplicasRequest {} +/** + * @public + * + * The output of {@link ListBotAliasReplicasCommand}. + */ +export interface ListBotAliasReplicasCommandOutput extends ListBotAliasReplicasResponse, __MetadataBearer {} + +/** + * @public + *

The action to list the replicated bots created from the source bot alias.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, ListBotAliasReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, ListBotAliasReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // ListBotAliasReplicasRequest + * botId: "STRING_VALUE", // required + * replicaRegion: "STRING_VALUE", // required + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * }; + * const command = new ListBotAliasReplicasCommand(input); + * const response = await client.send(command); + * // { // ListBotAliasReplicasResponse + * // botId: "STRING_VALUE", + * // sourceRegion: "STRING_VALUE", + * // replicaRegion: "STRING_VALUE", + * // botAliasReplicaSummaries: [ // BotAliasReplicaSummaryList + * // { // BotAliasReplicaSummary + * // botAliasId: "STRING_VALUE", + * // botAliasReplicationStatus: "Creating" || "Updating" || "Available" || "Deleting" || "Failed", + * // botVersion: "STRING_VALUE", + * // creationDateTime: new Date("TIMESTAMP"), + * // lastUpdatedDateTime: new Date("TIMESTAMP"), + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListBotAliasReplicasCommandInput - {@link ListBotAliasReplicasCommandInput} + * @returns {@link ListBotAliasReplicasCommandOutput} + * @see {@link ListBotAliasReplicasCommandInput} for command's `input` shape. + * @see {@link ListBotAliasReplicasCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class ListBotAliasReplicasCommand extends $Command + .classBuilder< + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "ListBotAliasReplicas", {}) + .n("LexModelsV2Client", "ListBotAliasReplicasCommand") + .f(void 0, void 0) + .ser(se_ListBotAliasReplicasCommand) + .de(de_ListBotAliasReplicasCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/ListBotReplicasCommand.ts b/clients/client-lex-models-v2/src/commands/ListBotReplicasCommand.ts new file mode 100644 index 0000000000000..2df7e1efbad50 --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/ListBotReplicasCommand.ts @@ -0,0 +1,107 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { ListBotReplicasRequest, ListBotReplicasResponse } from "../models/models_1"; +import { de_ListBotReplicasCommand, se_ListBotReplicasCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListBotReplicasCommand}. + */ +export interface ListBotReplicasCommandInput extends ListBotReplicasRequest {} +/** + * @public + * + * The output of {@link ListBotReplicasCommand}. + */ +export interface ListBotReplicasCommandOutput extends ListBotReplicasResponse, __MetadataBearer {} + +/** + * @public + *

The action to list the replicated bots.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, ListBotReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, ListBotReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // ListBotReplicasRequest + * botId: "STRING_VALUE", // required + * }; + * const command = new ListBotReplicasCommand(input); + * const response = await client.send(command); + * // { // ListBotReplicasResponse + * // botId: "STRING_VALUE", + * // sourceRegion: "STRING_VALUE", + * // botReplicaSummaries: [ // BotReplicaSummaryList + * // { // BotReplicaSummary + * // replicaRegion: "STRING_VALUE", + * // creationDateTime: new Date("TIMESTAMP"), + * // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed", + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListBotReplicasCommandInput - {@link ListBotReplicasCommandInput} + * @returns {@link ListBotReplicasCommandOutput} + * @see {@link ListBotReplicasCommandInput} for command's `input` shape. + * @see {@link ListBotReplicasCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class ListBotReplicasCommand extends $Command + .classBuilder< + ListBotReplicasCommandInput, + ListBotReplicasCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "ListBotReplicas", {}) + .n("LexModelsV2Client", "ListBotReplicasCommand") + .f(void 0, void 0) + .ser(se_ListBotReplicasCommand) + .de(de_ListBotReplicasCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/ListBotVersionReplicasCommand.ts b/clients/client-lex-models-v2/src/commands/ListBotVersionReplicasCommand.ts new file mode 100644 index 0000000000000..65ef3a8411957 --- /dev/null +++ b/clients/client-lex-models-v2/src/commands/ListBotVersionReplicasCommand.ts @@ -0,0 +1,116 @@ +// 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 { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client"; +import { ListBotVersionReplicasRequest, ListBotVersionReplicasResponse } from "../models/models_1"; +import { de_ListBotVersionReplicasCommand, se_ListBotVersionReplicasCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListBotVersionReplicasCommand}. + */ +export interface ListBotVersionReplicasCommandInput extends ListBotVersionReplicasRequest {} +/** + * @public + * + * The output of {@link ListBotVersionReplicasCommand}. + */ +export interface ListBotVersionReplicasCommandOutput extends ListBotVersionReplicasResponse, __MetadataBearer {} + +/** + * @public + *

Contains information about all the versions replication statuses applicable for Global Resiliency.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { LexModelsV2Client, ListBotVersionReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import + * // const { LexModelsV2Client, ListBotVersionReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import + * const client = new LexModelsV2Client(config); + * const input = { // ListBotVersionReplicasRequest + * botId: "STRING_VALUE", // required + * replicaRegion: "STRING_VALUE", // required + * maxResults: Number("int"), + * nextToken: "STRING_VALUE", + * sortBy: { // BotVersionReplicaSortBy + * attribute: "BotVersion", // required + * order: "Ascending" || "Descending", // required + * }, + * }; + * const command = new ListBotVersionReplicasCommand(input); + * const response = await client.send(command); + * // { // ListBotVersionReplicasResponse + * // botId: "STRING_VALUE", + * // sourceRegion: "STRING_VALUE", + * // replicaRegion: "STRING_VALUE", + * // botVersionReplicaSummaries: [ // BotVersionReplicaSummaryList + * // { // BotVersionReplicaSummary + * // botVersion: "STRING_VALUE", + * // botVersionReplicationStatus: "Creating" || "Available" || "Deleting" || "Failed", + * // creationDateTime: new Date("TIMESTAMP"), + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // nextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListBotVersionReplicasCommandInput - {@link ListBotVersionReplicasCommandInput} + * @returns {@link ListBotVersionReplicasCommandOutput} + * @see {@link ListBotVersionReplicasCommandInput} for command's `input` shape. + * @see {@link ListBotVersionReplicasCommandOutput} for command's `response` shape. + * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape. + * + * @throws {@link InternalServerException} (server fault) + *

The service encountered an unexpected condition. Try your request + * again.

+ * + * @throws {@link ServiceQuotaExceededException} (client fault) + *

You have reached a quota for your bot.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Your request rate is too high. Reduce the frequency of + * requests.

+ * + * @throws {@link ValidationException} (client fault) + *

One of the input parameters in your request isn't valid. Check the + * parameters and try your request again.

+ * + * @throws {@link LexModelsV2ServiceException} + *

Base exception class for all service exceptions from LexModelsV2 service.

+ * + */ +export class ListBotVersionReplicasCommand extends $Command + .classBuilder< + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput, + LexModelsV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: LexModelsV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("LexModelBuildingServiceV2", "ListBotVersionReplicas", {}) + .n("LexModelsV2Client", "ListBotVersionReplicasCommand") + .f(void 0, void 0) + .ser(se_ListBotVersionReplicasCommand) + .de(de_ListBotVersionReplicasCommand) + .build() {} diff --git a/clients/client-lex-models-v2/src/commands/index.ts b/clients/client-lex-models-v2/src/commands/index.ts index be2caf65e6050..3dcf21e797d48 100644 --- a/clients/client-lex-models-v2/src/commands/index.ts +++ b/clients/client-lex-models-v2/src/commands/index.ts @@ -6,6 +6,7 @@ export * from "./BuildBotLocaleCommand"; export * from "./CreateBotAliasCommand"; export * from "./CreateBotCommand"; export * from "./CreateBotLocaleCommand"; +export * from "./CreateBotReplicaCommand"; export * from "./CreateBotVersionCommand"; export * from "./CreateExportCommand"; export * from "./CreateIntentCommand"; @@ -18,6 +19,7 @@ export * from "./CreateUploadUrlCommand"; export * from "./DeleteBotAliasCommand"; export * from "./DeleteBotCommand"; export * from "./DeleteBotLocaleCommand"; +export * from "./DeleteBotReplicaCommand"; export * from "./DeleteBotVersionCommand"; export * from "./DeleteCustomVocabularyCommand"; export * from "./DeleteExportCommand"; @@ -33,6 +35,7 @@ export * from "./DescribeBotAliasCommand"; export * from "./DescribeBotCommand"; export * from "./DescribeBotLocaleCommand"; export * from "./DescribeBotRecommendationCommand"; +export * from "./DescribeBotReplicaCommand"; export * from "./DescribeBotResourceGenerationCommand"; export * from "./DescribeBotVersionCommand"; export * from "./DescribeCustomVocabularyMetadataCommand"; @@ -49,10 +52,13 @@ export * from "./DescribeTestSetGenerationCommand"; export * from "./GenerateBotElementCommand"; export * from "./GetTestExecutionArtifactsUrlCommand"; export * from "./ListAggregatedUtterancesCommand"; +export * from "./ListBotAliasReplicasCommand"; export * from "./ListBotAliasesCommand"; export * from "./ListBotLocalesCommand"; export * from "./ListBotRecommendationsCommand"; +export * from "./ListBotReplicasCommand"; export * from "./ListBotResourceGenerationsCommand"; +export * from "./ListBotVersionReplicasCommand"; export * from "./ListBotVersionsCommand"; export * from "./ListBotsCommand"; export * from "./ListBuiltInIntentsCommand"; diff --git a/clients/client-lex-models-v2/src/models/models_0.ts b/clients/client-lex-models-v2/src/models/models_0.ts index 693f81422c0ae..ff83bdbbc8800 100644 --- a/clients/client-lex-models-v2/src/models/models_0.ts +++ b/clients/client-lex-models-v2/src/models/models_0.ts @@ -3029,6 +3029,65 @@ export interface BotAliasLocaleSettings { codeHookSpecification?: CodeHookSpecification; } +/** + * @public + * @enum + */ +export const BotAliasReplicationStatus = { + Available: "Available", + Creating: "Creating", + Deleting: "Deleting", + Failed: "Failed", + Updating: "Updating", +} as const; + +/** + * @public + */ +export type BotAliasReplicationStatus = (typeof BotAliasReplicationStatus)[keyof typeof BotAliasReplicationStatus]; + +/** + * @public + *

Contains information about all the aliases replication statuses applicable for global resiliency.

+ */ +export interface BotAliasReplicaSummary { + /** + * @public + *

The bot alias ID for all the alias bot replications.

+ */ + botAliasId?: string; + + /** + * @public + *

The replication statuses for all the alias bot replications.

+ */ + botAliasReplicationStatus?: BotAliasReplicationStatus; + + /** + * @public + *

The bot version for all the alias bot replications.

+ */ + botVersion?: string; + + /** + * @public + *

The creation time and date for all the alias bot replications.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The last time and date updated for all the alias bot replications.

+ */ + lastUpdatedDateTime?: Date; + + /** + * @public + *

The reasons for failure for the aliases bot replications.

+ */ + failureReasons?: string[]; +} + /** * @public * @enum @@ -3771,6 +3830,52 @@ export interface BotRecommendationSummary { lastUpdatedDateTime?: Date; } +/** + * @public + * @enum + */ +export const BotReplicaStatus = { + Deleting: "Deleting", + Enabled: "Enabled", + Enabling: "Enabling", + Failed: "Failed", +} as const; + +/** + * @public + */ +export type BotReplicaStatus = (typeof BotReplicaStatus)[keyof typeof BotReplicaStatus]; + +/** + * @public + *

Contains summary information about all the replication statuses applicable for global resiliency.

+ */ +export interface BotReplicaSummary { + /** + * @public + *

The replica region used in the replication statuses summary.

+ */ + replicaRegion?: string; + + /** + * @public + *

The creation time and date for the replicated bots.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The operation status for the replicated bot applicable.

+ */ + botReplicaStatus?: BotReplicaStatus; + + /** + * @public + *

The reasons for the failure for the replicated bot.

+ */ + failureReasons?: string[]; +} + /** * @public * @enum @@ -3899,6 +4004,85 @@ export interface BotVersionLocaleDetails { sourceBotVersion: string | undefined; } +/** + * @public + * @enum + */ +export const BotVersionReplicaSortAttribute = { + BotVersion: "BotVersion", +} as const; + +/** + * @public + */ +export type BotVersionReplicaSortAttribute = + (typeof BotVersionReplicaSortAttribute)[keyof typeof BotVersionReplicaSortAttribute]; + +/** + * @public + *

The sort category for the version replicated bots.

+ */ +export interface BotVersionReplicaSortBy { + /** + * @public + *

The attribute of the sort category for the version replicated bots.

+ */ + attribute: BotVersionReplicaSortAttribute | undefined; + + /** + * @public + *

The order of the sort category for the version replicated bots.

+ */ + order: SortOrder | undefined; +} + +/** + * @public + * @enum + */ +export const BotVersionReplicationStatus = { + Available: "Available", + Creating: "Creating", + Deleting: "Deleting", + Failed: "Failed", +} as const; + +/** + * @public + */ +export type BotVersionReplicationStatus = + (typeof BotVersionReplicationStatus)[keyof typeof BotVersionReplicationStatus]; + +/** + * @public + *

Contains summary information for all the version replication statuses applicable for Global resiliency.

+ */ +export interface BotVersionReplicaSummary { + /** + * @public + *

The bot version for the summary information for all the version replication statuses.

+ */ + botVersion?: string; + + /** + * @public + *

The version replication status for all the replicated bots.

+ */ + botVersionReplicationStatus?: BotVersionReplicationStatus; + + /** + * @public + *

The creation date and time of the replication status for all the replicated bots.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The reasons for replication failure for all the replicated bots.

+ */ + failureReasons?: string[]; +} + /** * @public * @enum @@ -5355,6 +5539,58 @@ export interface CreateBotLocaleResponse { generativeAISettings?: GenerativeAISettings; } +/** + * @public + */ +export interface CreateBotReplicaRequest { + /** + * @public + *

The request for the unique bot ID of the source bot to be replicated in the secondary region.

+ */ + botId: string | undefined; + + /** + * @public + *

The request for the secondary region that will be used in the replication of the source bot.

+ */ + replicaRegion: string | undefined; +} + +/** + * @public + */ +export interface CreateBotReplicaResponse { + /** + * @public + *

The unique bot ID of the replicated bot generated.

+ */ + botId?: string; + + /** + * @public + *

The region of the replicated bot generated.

+ */ + replicaRegion?: string; + + /** + * @public + *

The source region for the source bot used for the replicated bot generated.

+ */ + sourceRegion?: string; + + /** + * @public + *

The creation date and time of the replicated bot generated.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The operational status of the replicated bot generated.

+ */ + botReplicaStatus?: BotReplicaStatus; +} + /** * @public */ @@ -7039,6 +7275,46 @@ export interface DeleteBotLocaleResponse { botLocaleStatus?: BotLocaleStatus; } +/** + * @public + */ +export interface DeleteBotReplicaRequest { + /** + * @public + *

The unique ID of the replicated bot to be deleted from the secondary region

+ */ + botId: string | undefined; + + /** + * @public + *

The secondary region of the replicated bot that will be deleted.

+ */ + replicaRegion: string | undefined; +} + +/** + * @public + */ +export interface DeleteBotReplicaResponse { + /** + * @public + *

The unique bot ID of the replicated bot generated.

+ */ + botId?: string; + + /** + * @public + *

The region of the replicated bot generated.

+ */ + replicaRegion?: string; + + /** + * @public + *

The operational status of the replicated bot generated.

+ */ + botReplicaStatus?: BotReplicaStatus; +} + /** * @public */ @@ -8015,479 +8291,12 @@ export interface TranscriptSourceSetting { } /** - * @public + * @internal */ -export interface DescribeBotRecommendationResponse { - /** - * @public - *

The identifier of the bot associated with the bot - * recommendation.

- */ - botId?: string; - - /** - * @public - *

The version of the bot associated with the bot - * recommendation.

- */ - botVersion?: string; - - /** - * @public - *

The identifier of the language and locale of the bot recommendation - * to describe.

- */ - localeId?: string; - - /** - * @public - *

The status of the bot recommendation. If the status is Failed, then - * the reasons for the failure are listed in the failureReasons field. - *

- */ - botRecommendationStatus?: BotRecommendationStatus; - - /** - * @public - *

The identifier of the bot recommendation being described.

- */ - botRecommendationId?: string; - - /** - * @public - *

If botRecommendationStatus is Failed, Amazon Lex explains why.

- */ - failureReasons?: string[]; - - /** - * @public - *

The date and time that the bot recommendation was created.

- */ - creationDateTime?: Date; - - /** - * @public - *

The date and time that the bot recommendation was last - * updated.

- */ - lastUpdatedDateTime?: Date; - - /** - * @public - *

The object representing the Amazon S3 bucket containing the transcript, - * as well as the associated metadata.

- */ - transcriptSourceSetting?: TranscriptSourceSetting; - - /** - * @public - *

The object representing the passwords that were used to encrypt the - * data related to the bot recommendation results, as well as the KMS key - * ARN used to encrypt the associated metadata.

- */ - encryptionSetting?: EncryptionSetting; - - /** - * @public - *

The object representing the URL of the bot definition, the URL of - * the associated transcript and a statistical summary of the bot - * recommendation results.

- */ - botRecommendationResults?: BotRecommendationResults; -} - -/** - * @public - */ -export interface DescribeBotResourceGenerationRequest { - /** - * @public - *

The unique identifier of the bot for which to return the generation details.

- */ - botId: string | undefined; - - /** - * @public - *

The version of the bot for which to return the generation details.

- */ - botVersion: string | undefined; - - /** - * @public - *

The locale of the bot for which to return the generation details.

- */ - localeId: string | undefined; - - /** - * @public - *

The unique identifier of the generation request for which to - * return the generation details.

- */ - generationId: string | undefined; -} - -/** - * @public - * @enum - */ -export const GenerationStatus = { - Complete: "Complete", - Failed: "Failed", - InProgress: "InProgress", -} as const; - -/** - * @public - */ -export type GenerationStatus = (typeof GenerationStatus)[keyof typeof GenerationStatus]; - -/** - * @public - */ -export interface DescribeBotResourceGenerationResponse { - /** - * @public - *

The unique identifier of the bot for which the generation request was - * made.

- */ - botId?: string; - - /** - * @public - *

The version of the bot for which the generation request was made.

- */ - botVersion?: string; - - /** - * @public - *

The locale of the bot for which the generation request was made.

- */ - localeId?: string; - - /** - * @public - *

The generation ID for which to return the generation details.

- */ - generationId?: string; - - /** - * @public - *

A list of reasons why the generation of bot resources through natural language description failed.

- */ - failureReasons?: string[]; - - /** - * @public - *

The status of the generation request.

- */ - generationStatus?: GenerationStatus; - - /** - * @public - *

The prompt used in the generation request.

- */ - generationInputPrompt?: string; - - /** - * @public - *

The Amazon S3 location of the generated bot locale configuration.

- */ - generatedBotLocaleUrl?: string; - - /** - * @public - *

The date and time at which the item was generated.

- */ - creationDateTime?: Date; - - /** - * @public - *

The ARN of the model used to generate the bot resources.

- */ - modelArn?: string; - - /** - * @public - *

The date and time at which the generated item was updated.

- */ - lastUpdatedDateTime?: Date; -} - -/** - * @public - */ -export interface DescribeBotVersionRequest { - /** - * @public - *

The identifier of the bot containing the version to return metadata - * for.

- */ - botId: string | undefined; - - /** - * @public - *

The version of the bot to return metadata for.

- */ - botVersion: string | undefined; -} - -/** - * @public - */ -export interface DescribeBotVersionResponse { - /** - * @public - *

The identifier of the bot that contains the version.

- */ - botId?: string; - - /** - * @public - *

The name of the bot that contains the version.

- */ - botName?: string; - - /** - * @public - *

The version of the bot that was described.

- */ - botVersion?: string; - - /** - * @public - *

The description specified for the bot.

- */ - description?: string; - - /** - * @public - *

The Amazon Resource Name (ARN) of an IAM role that has permission to - * access the bot version.

- */ - roleArn?: string; - - /** - * @public - *

Data privacy settings for the bot version.

- */ - dataPrivacy?: DataPrivacy; - - /** - * @public - *

The number of seconds that a session with the bot remains active - * before it is discarded by Amazon Lex.

- */ - idleSessionTTLInSeconds?: number; - - /** - * @public - *

The current status of the bot. When the status is - * Available, the bot version is ready for use.

- */ - botStatus?: BotStatus; - - /** - * @public - *

If the botStatus is Failed, this contains - * a list of reasons that the version couldn't be built.

- */ - failureReasons?: string[]; - - /** - * @public - *

A timestamp of the date and time that the bot version was - * created.

- */ - creationDateTime?: Date; - - /** - * @public - *

A list of the networks to which the bot version you described belongs.

- */ - parentBotNetworks?: ParentBotNetwork[]; - - /** - * @public - *

The type of the bot in the version that was described.

- */ - botType?: BotType; - - /** - * @public - *

The members of bot network in the version that was described.

- */ - botMembers?: BotMember[]; -} - -/** - * @public - */ -export interface DescribeCustomVocabularyMetadataRequest { - /** - * @public - *

The unique identifier of the bot that contains the custom vocabulary.

- */ - botId: string | undefined; - - /** - * @public - *

The bot version of the bot to return metadata for.

- */ - botVersion: string | undefined; - - /** - * @public - *

The locale to return the custom vocabulary information for. - * The locale must be en_GB.

- */ - localeId: string | undefined; -} - -/** - * @public - */ -export interface DescribeCustomVocabularyMetadataResponse { - /** - * @public - *

The identifier of the bot that contains the custom vocabulary.

- */ - botId?: string; - - /** - * @public - *

The version of the bot that contains the custom vocabulary to describe.

- */ - botVersion?: string; - - /** - * @public - *

The locale that contains the custom vocabulary to describe.

- */ - localeId?: string; - - /** - * @public - *

The status of the custom vocabulary. If the status is - * Ready the custom vocabulary is ready to use.

- */ - customVocabularyStatus?: CustomVocabularyStatus; - - /** - * @public - *

The date and time that the custom vocabulary was created.

- */ - creationDateTime?: Date; - - /** - * @public - *

The date and time that the custom vocabulary was last updated.

- */ - lastUpdatedDateTime?: Date; -} - -/** - * @public - */ -export interface DescribeExportRequest { - /** - * @public - *

The unique identifier of the export to describe.

- */ - exportId: string | undefined; -} - -/** - * @public - */ -export interface DescribeExportResponse { - /** - * @public - *

The unique identifier of the described export.

- */ - exportId?: string; - - /** - * @public - *

The bot, bot ID, and optional locale ID of the exported bot or bot - * locale.

- */ - resourceSpecification?: ExportResourceSpecification; - - /** - * @public - *

The file format used in the files that describe the resource. - *

- */ - fileFormat?: ImportExportFileFormat; - - /** - * @public - *

The status of the export. When the status is Complete - * the export archive file is available for download.

- */ - exportStatus?: ExportStatus; - - /** - * @public - *

If the exportStatus is failed, contains one or more - * reasons why the export could not be completed.

- */ - failureReasons?: string[]; - - /** - * @public - *

A pre-signed S3 URL that points to the bot or bot locale archive. - * The URL is only available for 5 minutes after calling the - * DescribeExport operation.

- */ - downloadUrl?: string; - - /** - * @public - *

The date and time that the export was created.

- */ - creationDateTime?: Date; - - /** - * @public - *

The last date and time that the export was updated.

- */ - lastUpdatedDateTime?: Date; -} - -/** - * @public - */ -export interface DescribeImportRequest { - /** - * @public - *

The unique identifier of the import to describe.

- */ - importId: string | undefined; -} - -/** - * @public - * @enum - */ -export const MergeStrategy = { - Append: "Append", - FailOnConflict: "FailOnConflict", - Overwrite: "Overwrite", -} as const; - -/** - * @public - */ -export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy]; - -/** - * @internal - */ -export const CreateExportRequestFilterSensitiveLog = (obj: CreateExportRequest): any => ({ - ...obj, - ...(obj.filePassword && { filePassword: SENSITIVE_STRING }), -}); +export const CreateExportRequestFilterSensitiveLog = (obj: CreateExportRequest): any => ({ + ...obj, + ...(obj.filePassword && { filePassword: SENSITIVE_STRING }), +}); /** * @internal @@ -8497,11 +8306,3 @@ export const EncryptionSettingFilterSensitiveLog = (obj: EncryptionSetting): any ...(obj.botLocaleExportPassword && { botLocaleExportPassword: SENSITIVE_STRING }), ...(obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: SENSITIVE_STRING }), }); - -/** - * @internal - */ -export const DescribeBotRecommendationResponseFilterSensitiveLog = (obj: DescribeBotRecommendationResponse): any => ({ - ...obj, - ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }), -}); diff --git a/clients/client-lex-models-v2/src/models/models_1.ts b/clients/client-lex-models-v2/src/models/models_1.ts index 2edf53e64c61a..4d0147e5ff233 100644 --- a/clients/client-lex-models-v2/src/models/models_1.ts +++ b/clients/client-lex-models-v2/src/models/models_1.ts @@ -35,6 +35,7 @@ import { AssociatedTranscript, AssociatedTranscriptFilter, BotAliasLocaleSettings, + BotAliasReplicaSummary, BotAliasStatus, BotAliasSummary, BotAliasTestExecutionTarget, @@ -46,12 +47,17 @@ import { BotLocaleStatus, BotLocaleSummary, BotMember, + BotRecommendationResults, BotRecommendationStatus, BotRecommendationSummary, + BotReplicaStatus, + BotReplicaSummary, BotSortBy, BotStatus, BotSummary, BotType, + BotVersionReplicaSortBy, + BotVersionReplicaSummary, BotVersionSortBy, BotVersionSummary, BuiltInIntentSortBy, @@ -68,6 +74,7 @@ import { ConversationLogSettings, CustomVocabularyImportSpecification, CustomVocabularyItem, + CustomVocabularyStatus, DataPrivacy, DialogAction, DialogCodeHookSettings, @@ -79,17 +86,16 @@ import { ExportStatus, ExternalSourceSetting, FulfillmentUpdatesSpecification, - GenerationStatus, GenerativeAISettings, ImageResponseCard, ImportExportFileFormat, ImportStatus, InputContext, KendraConfiguration, - MergeStrategy, MultipleValuesSetting, ObfuscationSetting, OutputContext, + ParentBotNetwork, PromptSpecification, ResponseSpecification, SampleUtterance, @@ -110,6 +116,531 @@ import { WaitAndContinueSpecification, } from "./models_0"; +/** + * @public + */ +export interface DescribeBotRecommendationResponse { + /** + * @public + *

The identifier of the bot associated with the bot + * recommendation.

+ */ + botId?: string; + + /** + * @public + *

The version of the bot associated with the bot + * recommendation.

+ */ + botVersion?: string; + + /** + * @public + *

The identifier of the language and locale of the bot recommendation + * to describe.

+ */ + localeId?: string; + + /** + * @public + *

The status of the bot recommendation. If the status is Failed, then + * the reasons for the failure are listed in the failureReasons field. + *

+ */ + botRecommendationStatus?: BotRecommendationStatus; + + /** + * @public + *

The identifier of the bot recommendation being described.

+ */ + botRecommendationId?: string; + + /** + * @public + *

If botRecommendationStatus is Failed, Amazon Lex explains why.

+ */ + failureReasons?: string[]; + + /** + * @public + *

The date and time that the bot recommendation was created.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The date and time that the bot recommendation was last + * updated.

+ */ + lastUpdatedDateTime?: Date; + + /** + * @public + *

The object representing the Amazon S3 bucket containing the transcript, + * as well as the associated metadata.

+ */ + transcriptSourceSetting?: TranscriptSourceSetting; + + /** + * @public + *

The object representing the passwords that were used to encrypt the + * data related to the bot recommendation results, as well as the KMS key + * ARN used to encrypt the associated metadata.

+ */ + encryptionSetting?: EncryptionSetting; + + /** + * @public + *

The object representing the URL of the bot definition, the URL of + * the associated transcript and a statistical summary of the bot + * recommendation results.

+ */ + botRecommendationResults?: BotRecommendationResults; +} + +/** + * @public + */ +export interface DescribeBotReplicaRequest { + /** + * @public + *

The request for the unique bot ID of the replicated bot being monitored.

+ */ + botId: string | undefined; + + /** + * @public + *

The request for the region of the replicated bot being monitored.

+ */ + replicaRegion: string | undefined; +} + +/** + * @public + */ +export interface DescribeBotReplicaResponse { + /** + * @public + *

The unique bot ID of the replicated bot being monitored.

+ */ + botId?: string; + + /** + * @public + *

The region of the replicated bot being monitored.

+ */ + replicaRegion?: string; + + /** + * @public + *

The source region of the replicated bot being monitored.

+ */ + sourceRegion?: string; + + /** + * @public + *

The creation date and time of the replicated bot being monitored.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The operational status of the replicated bot being monitored.

+ */ + botReplicaStatus?: BotReplicaStatus; + + /** + * @public + *

The failure reasons the bot being monitored failed to replicate.

+ */ + failureReasons?: string[]; +} + +/** + * @public + */ +export interface DescribeBotResourceGenerationRequest { + /** + * @public + *

The unique identifier of the bot for which to return the generation details.

+ */ + botId: string | undefined; + + /** + * @public + *

The version of the bot for which to return the generation details.

+ */ + botVersion: string | undefined; + + /** + * @public + *

The locale of the bot for which to return the generation details.

+ */ + localeId: string | undefined; + + /** + * @public + *

The unique identifier of the generation request for which to + * return the generation details.

+ */ + generationId: string | undefined; +} + +/** + * @public + * @enum + */ +export const GenerationStatus = { + Complete: "Complete", + Failed: "Failed", + InProgress: "InProgress", +} as const; + +/** + * @public + */ +export type GenerationStatus = (typeof GenerationStatus)[keyof typeof GenerationStatus]; + +/** + * @public + */ +export interface DescribeBotResourceGenerationResponse { + /** + * @public + *

The unique identifier of the bot for which the generation request was + * made.

+ */ + botId?: string; + + /** + * @public + *

The version of the bot for which the generation request was made.

+ */ + botVersion?: string; + + /** + * @public + *

The locale of the bot for which the generation request was made.

+ */ + localeId?: string; + + /** + * @public + *

The generation ID for which to return the generation details.

+ */ + generationId?: string; + + /** + * @public + *

A list of reasons why the generation of bot resources through natural language description failed.

+ */ + failureReasons?: string[]; + + /** + * @public + *

The status of the generation request.

+ */ + generationStatus?: GenerationStatus; + + /** + * @public + *

The prompt used in the generation request.

+ */ + generationInputPrompt?: string; + + /** + * @public + *

The Amazon S3 location of the generated bot locale configuration.

+ */ + generatedBotLocaleUrl?: string; + + /** + * @public + *

The date and time at which the item was generated.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The ARN of the model used to generate the bot resources.

+ */ + modelArn?: string; + + /** + * @public + *

The date and time at which the generated item was updated.

+ */ + lastUpdatedDateTime?: Date; +} + +/** + * @public + */ +export interface DescribeBotVersionRequest { + /** + * @public + *

The identifier of the bot containing the version to return metadata + * for.

+ */ + botId: string | undefined; + + /** + * @public + *

The version of the bot to return metadata for.

+ */ + botVersion: string | undefined; +} + +/** + * @public + */ +export interface DescribeBotVersionResponse { + /** + * @public + *

The identifier of the bot that contains the version.

+ */ + botId?: string; + + /** + * @public + *

The name of the bot that contains the version.

+ */ + botName?: string; + + /** + * @public + *

The version of the bot that was described.

+ */ + botVersion?: string; + + /** + * @public + *

The description specified for the bot.

+ */ + description?: string; + + /** + * @public + *

The Amazon Resource Name (ARN) of an IAM role that has permission to + * access the bot version.

+ */ + roleArn?: string; + + /** + * @public + *

Data privacy settings for the bot version.

+ */ + dataPrivacy?: DataPrivacy; + + /** + * @public + *

The number of seconds that a session with the bot remains active + * before it is discarded by Amazon Lex.

+ */ + idleSessionTTLInSeconds?: number; + + /** + * @public + *

The current status of the bot. When the status is + * Available, the bot version is ready for use.

+ */ + botStatus?: BotStatus; + + /** + * @public + *

If the botStatus is Failed, this contains + * a list of reasons that the version couldn't be built.

+ */ + failureReasons?: string[]; + + /** + * @public + *

A timestamp of the date and time that the bot version was + * created.

+ */ + creationDateTime?: Date; + + /** + * @public + *

A list of the networks to which the bot version you described belongs.

+ */ + parentBotNetworks?: ParentBotNetwork[]; + + /** + * @public + *

The type of the bot in the version that was described.

+ */ + botType?: BotType; + + /** + * @public + *

The members of bot network in the version that was described.

+ */ + botMembers?: BotMember[]; +} + +/** + * @public + */ +export interface DescribeCustomVocabularyMetadataRequest { + /** + * @public + *

The unique identifier of the bot that contains the custom vocabulary.

+ */ + botId: string | undefined; + + /** + * @public + *

The bot version of the bot to return metadata for.

+ */ + botVersion: string | undefined; + + /** + * @public + *

The locale to return the custom vocabulary information for. + * The locale must be en_GB.

+ */ + localeId: string | undefined; +} + +/** + * @public + */ +export interface DescribeCustomVocabularyMetadataResponse { + /** + * @public + *

The identifier of the bot that contains the custom vocabulary.

+ */ + botId?: string; + + /** + * @public + *

The version of the bot that contains the custom vocabulary to describe.

+ */ + botVersion?: string; + + /** + * @public + *

The locale that contains the custom vocabulary to describe.

+ */ + localeId?: string; + + /** + * @public + *

The status of the custom vocabulary. If the status is + * Ready the custom vocabulary is ready to use.

+ */ + customVocabularyStatus?: CustomVocabularyStatus; + + /** + * @public + *

The date and time that the custom vocabulary was created.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The date and time that the custom vocabulary was last updated.

+ */ + lastUpdatedDateTime?: Date; +} + +/** + * @public + */ +export interface DescribeExportRequest { + /** + * @public + *

The unique identifier of the export to describe.

+ */ + exportId: string | undefined; +} + +/** + * @public + */ +export interface DescribeExportResponse { + /** + * @public + *

The unique identifier of the described export.

+ */ + exportId?: string; + + /** + * @public + *

The bot, bot ID, and optional locale ID of the exported bot or bot + * locale.

+ */ + resourceSpecification?: ExportResourceSpecification; + + /** + * @public + *

The file format used in the files that describe the resource. + *

+ */ + fileFormat?: ImportExportFileFormat; + + /** + * @public + *

The status of the export. When the status is Complete + * the export archive file is available for download.

+ */ + exportStatus?: ExportStatus; + + /** + * @public + *

If the exportStatus is failed, contains one or more + * reasons why the export could not be completed.

+ */ + failureReasons?: string[]; + + /** + * @public + *

A pre-signed S3 URL that points to the bot or bot locale archive. + * The URL is only available for 5 minutes after calling the + * DescribeExport operation.

+ */ + downloadUrl?: string; + + /** + * @public + *

The date and time that the export was created.

+ */ + creationDateTime?: Date; + + /** + * @public + *

The last date and time that the export was updated.

+ */ + lastUpdatedDateTime?: Date; +} + +/** + * @public + */ +export interface DescribeImportRequest { + /** + * @public + *

The unique identifier of the import to describe.

+ */ + importId: string | undefined; +} + +/** + * @public + * @enum + */ +export const MergeStrategy = { + Append: "Append", + FailOnConflict: "FailOnConflict", + Overwrite: "Overwrite", +} as const; + +/** + * @public + */ +export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy]; + /** * @public *

Contains information about the Amazon S3 location from which the test set is imported.

@@ -2160,6 +2691,70 @@ export interface ListBotAliasesResponse { botId?: string; } +/** + * @public + */ +export interface ListBotAliasReplicasRequest { + /** + * @public + *

The request for the unique bot ID of the replicated bot created from the source bot alias.

+ */ + botId: string | undefined; + + /** + * @public + *

The request for the secondary region of the replicated bot created from the source bot alias.

+ */ + replicaRegion: string | undefined; + + /** + * @public + *

The request for maximum results to list the replicated bots created from the source bot alias.

+ */ + maxResults?: number; + + /** + * @public + *

The request for the next token for the replicated bot created from the source bot alias.

+ */ + nextToken?: string; +} + +/** + * @public + */ +export interface ListBotAliasReplicasResponse { + /** + * @public + *

The unique bot ID of the replicated bot created from the source bot alias.

+ */ + botId?: string; + + /** + * @public + *

The source region of the replicated bot created from the source bot alias.

+ */ + sourceRegion?: string; + + /** + * @public + *

The secondary region of the replicated bot created from the source bot alias.

+ */ + replicaRegion?: string; + + /** + * @public + *

The summary information of the replicated bot created from the source bot alias.

+ */ + botAliasReplicaSummaries?: BotAliasReplicaSummary[]; + + /** + * @public + *

The next token for the replicated bots created from the source bot alias.

+ */ + nextToken?: string; +} + /** * @public */ @@ -2336,6 +2931,40 @@ export interface ListBotRecommendationsResponse { nextToken?: string; } +/** + * @public + */ +export interface ListBotReplicasRequest { + /** + * @public + *

The request for the unique bot IDs in the list of replicated bots.

+ */ + botId: string | undefined; +} + +/** + * @public + */ +export interface ListBotReplicasResponse { + /** + * @public + *

the unique bot IDs in the list of replicated bots.

+ */ + botId?: string; + + /** + * @public + *

The source region of the source bots in the list of replicated bots.

+ */ + sourceRegion?: string; + + /** + * @public + *

The summary details for the replicated bots.

+ */ + botReplicaSummaries?: BotReplicaSummary[]; +} + /** * @public */ @@ -2489,6 +3118,76 @@ export interface ListBotsResponse { nextToken?: string; } +/** + * @public + */ +export interface ListBotVersionReplicasRequest { + /** + * @public + *

The request for the unique ID in the list of replicated bots.

+ */ + botId: string | undefined; + + /** + * @public + *

The request for the region used in the list of replicated bots.

+ */ + replicaRegion: string | undefined; + + /** + * @public + *

The maximum results given in the list of replicated bots.

+ */ + maxResults?: number; + + /** + * @public + *

The next token given in the list of replicated bots.

+ */ + nextToken?: string; + + /** + * @public + *

The requested sort category for the list of replicated bots.

+ */ + sortBy?: BotVersionReplicaSortBy; +} + +/** + * @public + */ +export interface ListBotVersionReplicasResponse { + /** + * @public + *

The unique ID of the bots in the list of replicated bots.

+ */ + botId?: string; + + /** + * @public + *

The source region used for the bots in the list of replicated bots.

+ */ + sourceRegion?: string; + + /** + * @public + *

The region used for the replicated bots in the list of replicated bots.

+ */ + replicaRegion?: string; + + /** + * @public + *

The information summary used for the replicated bots in the list of replicated bots.

+ */ + botVersionReplicaSummaries?: BotVersionReplicaSummary[]; + + /** + * @public + *

The next token used for the replicated bots in the list of replicated bots.

+ */ + nextToken?: string; +} + /** * @public */ @@ -9089,6 +9788,14 @@ export interface UpdateIntentResponse { initialResponseSetting?: InitialResponseSetting; } +/** + * @internal + */ +export const DescribeBotRecommendationResponseFilterSensitiveLog = (obj: DescribeBotRecommendationResponse): any => ({ + ...obj, + ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }), +}); + /** * @internal */ diff --git a/clients/client-lex-models-v2/src/pagination/ListBotAliasReplicasPaginator.ts b/clients/client-lex-models-v2/src/pagination/ListBotAliasReplicasPaginator.ts new file mode 100644 index 0000000000000..d5710db16cce3 --- /dev/null +++ b/clients/client-lex-models-v2/src/pagination/ListBotAliasReplicasPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListBotAliasReplicasCommand, + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput, +} from "../commands/ListBotAliasReplicasCommand"; +import { LexModelsV2Client } from "../LexModelsV2Client"; +import { LexModelsV2PaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListBotAliasReplicas: ( + config: LexModelsV2PaginationConfiguration, + input: ListBotAliasReplicasCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + LexModelsV2PaginationConfiguration, + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput +>(LexModelsV2Client, ListBotAliasReplicasCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-lex-models-v2/src/pagination/ListBotVersionReplicasPaginator.ts b/clients/client-lex-models-v2/src/pagination/ListBotVersionReplicasPaginator.ts new file mode 100644 index 0000000000000..0971a397e4bf2 --- /dev/null +++ b/clients/client-lex-models-v2/src/pagination/ListBotVersionReplicasPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListBotVersionReplicasCommand, + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput, +} from "../commands/ListBotVersionReplicasCommand"; +import { LexModelsV2Client } from "../LexModelsV2Client"; +import { LexModelsV2PaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListBotVersionReplicas: ( + config: LexModelsV2PaginationConfiguration, + input: ListBotVersionReplicasCommandInput, + ...rest: any[] +) => Paginator = createPaginator< + LexModelsV2PaginationConfiguration, + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput +>(LexModelsV2Client, ListBotVersionReplicasCommand, "nextToken", "nextToken", "maxResults"); diff --git a/clients/client-lex-models-v2/src/pagination/index.ts b/clients/client-lex-models-v2/src/pagination/index.ts index f8fcaf58e00b5..042eb9c6f1443 100644 --- a/clients/client-lex-models-v2/src/pagination/index.ts +++ b/clients/client-lex-models-v2/src/pagination/index.ts @@ -1,10 +1,12 @@ // smithy-typescript generated code export * from "./Interfaces"; export * from "./ListAggregatedUtterancesPaginator"; +export * from "./ListBotAliasReplicasPaginator"; export * from "./ListBotAliasesPaginator"; export * from "./ListBotLocalesPaginator"; export * from "./ListBotRecommendationsPaginator"; export * from "./ListBotResourceGenerationsPaginator"; +export * from "./ListBotVersionReplicasPaginator"; export * from "./ListBotVersionsPaginator"; export * from "./ListBotsPaginator"; export * from "./ListBuiltInIntentsPaginator"; diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index 2a9ec11acb7c5..bb612efe87d50 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -44,6 +44,7 @@ import { BuildBotLocaleCommandInput, BuildBotLocaleCommandOutput } from "../comm import { CreateBotAliasCommandInput, CreateBotAliasCommandOutput } from "../commands/CreateBotAliasCommand"; import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand"; import { CreateBotLocaleCommandInput, CreateBotLocaleCommandOutput } from "../commands/CreateBotLocaleCommand"; +import { CreateBotReplicaCommandInput, CreateBotReplicaCommandOutput } from "../commands/CreateBotReplicaCommand"; import { CreateBotVersionCommandInput, CreateBotVersionCommandOutput } from "../commands/CreateBotVersionCommand"; import { CreateExportCommandInput, CreateExportCommandOutput } from "../commands/CreateExportCommand"; import { CreateIntentCommandInput, CreateIntentCommandOutput } from "../commands/CreateIntentCommand"; @@ -65,6 +66,7 @@ import { CreateUploadUrlCommandInput, CreateUploadUrlCommandOutput } from "../co import { DeleteBotAliasCommandInput, DeleteBotAliasCommandOutput } from "../commands/DeleteBotAliasCommand"; import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand"; import { DeleteBotLocaleCommandInput, DeleteBotLocaleCommandOutput } from "../commands/DeleteBotLocaleCommand"; +import { DeleteBotReplicaCommandInput, DeleteBotReplicaCommandOutput } from "../commands/DeleteBotReplicaCommand"; import { DeleteBotVersionCommandInput, DeleteBotVersionCommandOutput } from "../commands/DeleteBotVersionCommand"; import { DeleteCustomVocabularyCommandInput, @@ -92,6 +94,7 @@ import { DescribeBotRecommendationCommandInput, DescribeBotRecommendationCommandOutput, } from "../commands/DescribeBotRecommendationCommand"; +import { DescribeBotReplicaCommandInput, DescribeBotReplicaCommandOutput } from "../commands/DescribeBotReplicaCommand"; import { DescribeBotResourceGenerationCommandInput, DescribeBotResourceGenerationCommandOutput, @@ -133,16 +136,25 @@ import { ListAggregatedUtterancesCommandOutput, } from "../commands/ListAggregatedUtterancesCommand"; import { ListBotAliasesCommandInput, ListBotAliasesCommandOutput } from "../commands/ListBotAliasesCommand"; +import { + ListBotAliasReplicasCommandInput, + ListBotAliasReplicasCommandOutput, +} from "../commands/ListBotAliasReplicasCommand"; import { ListBotLocalesCommandInput, ListBotLocalesCommandOutput } from "../commands/ListBotLocalesCommand"; import { ListBotRecommendationsCommandInput, ListBotRecommendationsCommandOutput, } from "../commands/ListBotRecommendationsCommand"; +import { ListBotReplicasCommandInput, ListBotReplicasCommandOutput } from "../commands/ListBotReplicasCommand"; import { ListBotResourceGenerationsCommandInput, ListBotResourceGenerationsCommandOutput, } from "../commands/ListBotResourceGenerationsCommand"; import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand"; +import { + ListBotVersionReplicasCommandInput, + ListBotVersionReplicasCommandOutput, +} from "../commands/ListBotVersionReplicasCommand"; import { ListBotVersionsCommandInput, ListBotVersionsCommandOutput } from "../commands/ListBotVersionsCommand"; import { ListBuiltInIntentsCommandInput, ListBuiltInIntentsCommandOutput } from "../commands/ListBuiltInIntentsCommand"; import { @@ -270,6 +282,7 @@ import { BedrockModelSpecification, BotAliasHistoryEvent, BotAliasLocaleSettings, + BotAliasReplicaSummary, BotAliasSummary, BotAliasTestExecutionTarget, BotExportSpecification, @@ -283,9 +296,12 @@ import { BotLocaleSummary, BotMember, BotRecommendationSummary, + BotReplicaSummary, BotSortBy, BotSummary, BotVersionLocaleDetails, + BotVersionReplicaSortBy, + BotVersionReplicaSummary, BotVersionSortBy, BotVersionSummary, BuildtimeSettings, @@ -626,6 +642,29 @@ export const se_CreateBotLocaleCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1CreateBotReplicaCommand + */ +export const se_CreateBotReplicaCommand = async ( + input: CreateBotReplicaCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/bots/{botId}/replicas"); + b.p("botId", () => input.botId!, "{botId}", false); + let body: any; + body = JSON.stringify( + take(input, { + replicaRegion: [], + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1CreateBotVersionCommand */ @@ -924,6 +963,23 @@ export const se_DeleteBotLocaleCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1DeleteBotReplicaCommand + */ +export const se_DeleteBotReplicaCommand = async ( + input: DeleteBotReplicaCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/bots/{botId}/replicas/{replicaRegion}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("replicaRegion", () => input.replicaRegion!, "{replicaRegion}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1DeleteBotVersionCommand */ @@ -1200,6 +1256,23 @@ export const se_DescribeBotRecommendationCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1DescribeBotReplicaCommand + */ +export const se_DescribeBotReplicaCommand = async ( + input: DescribeBotReplicaCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/bots/{botId}/replicas/{replicaRegion}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("replicaRegion", () => input.replicaRegion!, "{replicaRegion}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1DescribeBotResourceGenerationCommand */ @@ -1519,6 +1592,31 @@ export const se_ListBotAliasesCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1ListBotAliasReplicasCommand + */ +export const se_ListBotAliasReplicasCommand = async ( + input: ListBotAliasReplicasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/bots/{botId}/replicas/{replicaRegion}/botaliases"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("replicaRegion", () => input.replicaRegion!, "{replicaRegion}", false); + let body: any; + body = JSON.stringify( + take(input, { + maxResults: [], + nextToken: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1ListBotLocalesCommand */ @@ -1572,6 +1670,22 @@ export const se_ListBotRecommendationsCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1ListBotReplicasCommand + */ +export const se_ListBotReplicasCommand = async ( + input: ListBotReplicasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/bots/{botId}/replicas"); + b.p("botId", () => input.botId!, "{botId}", false); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1ListBotResourceGenerationsCommand */ @@ -1624,6 +1738,32 @@ export const se_ListBotsCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1ListBotVersionReplicasCommand + */ +export const se_ListBotVersionReplicasCommand = async ( + input: ListBotVersionReplicasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/bots/{botId}/replicas/{replicaRegion}/botversions"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("replicaRegion", () => input.replicaRegion!, "{replicaRegion}", false); + let body: any; + body = JSON.stringify( + take(input, { + maxResults: [], + nextToken: [], + sortBy: (_) => _json(_), + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1ListBotVersionsCommand */ @@ -2915,6 +3055,31 @@ export const de_CreateBotLocaleCommand = async ( return contents; }; +/** + * deserializeAws_restJson1CreateBotReplicaCommand + */ +export const de_CreateBotReplicaCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 202 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botId: __expectString, + botReplicaStatus: __expectString, + creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + replicaRegion: __expectString, + sourceRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1CreateBotVersionCommand */ @@ -3227,6 +3392,29 @@ export const de_DeleteBotLocaleCommand = async ( return contents; }; +/** + * deserializeAws_restJson1DeleteBotReplicaCommand + */ +export const de_DeleteBotReplicaCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 202 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botId: __expectString, + botReplicaStatus: __expectString, + replicaRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1DeleteBotVersionCommand */ @@ -3580,6 +3768,32 @@ export const de_DescribeBotRecommendationCommand = async ( return contents; }; +/** + * deserializeAws_restJson1DescribeBotReplicaCommand + */ +export const de_DescribeBotReplicaCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botId: __expectString, + botReplicaStatus: __expectString, + creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + failureReasons: _json, + replicaRegion: __expectString, + sourceRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1DescribeBotResourceGenerationCommand */ @@ -4076,6 +4290,31 @@ export const de_ListBotAliasesCommand = async ( return contents; }; +/** + * deserializeAws_restJson1ListBotAliasReplicasCommand + */ +export const de_ListBotAliasReplicasCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botAliasReplicaSummaries: (_) => de_BotAliasReplicaSummaryList(_, context), + botId: __expectString, + nextToken: __expectString, + replicaRegion: __expectString, + sourceRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1ListBotLocalesCommand */ @@ -4125,6 +4364,29 @@ export const de_ListBotRecommendationsCommand = async ( return contents; }; +/** + * deserializeAws_restJson1ListBotReplicasCommand + */ +export const de_ListBotReplicasCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botId: __expectString, + botReplicaSummaries: (_) => de_BotReplicaSummaryList(_, context), + sourceRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1ListBotResourceGenerationsCommand */ @@ -4172,6 +4434,31 @@ export const de_ListBotsCommand = async ( return contents; }; +/** + * deserializeAws_restJson1ListBotVersionReplicasCommand + */ +export const de_ListBotVersionReplicasCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + botId: __expectString, + botVersionReplicaSummaries: (_) => de_BotVersionReplicaSummaryList(_, context), + nextToken: __expectString, + replicaRegion: __expectString, + sourceRegion: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1ListBotVersionsCommand */ @@ -5523,6 +5810,8 @@ const se_BotLocaleImportSpecification = (input: BotLocaleImportSpecification, co // se_BotVersionLocaleSpecification omitted. +// se_BotVersionReplicaSortBy omitted. + // se_BotVersionSortBy omitted. // se_BuildtimeSettings omitted. @@ -6443,6 +6732,32 @@ const de_BotAliasHistoryEventsList = (output: any, context: __SerdeContext): Bot // de_BotAliasLocaleSettingsMap omitted. +/** + * deserializeAws_restJson1BotAliasReplicaSummary + */ +const de_BotAliasReplicaSummary = (output: any, context: __SerdeContext): BotAliasReplicaSummary => { + return take(output, { + botAliasId: __expectString, + botAliasReplicationStatus: __expectString, + botVersion: __expectString, + creationDateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + failureReasons: _json, + lastUpdatedDateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + }) as any; +}; + +/** + * deserializeAws_restJson1BotAliasReplicaSummaryList + */ +const de_BotAliasReplicaSummaryList = (output: any, context: __SerdeContext): BotAliasReplicaSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_BotAliasReplicaSummary(entry, context); + }); + return retVal; +}; + /** * deserializeAws_restJson1BotAliasSummary */ @@ -6571,6 +6886,30 @@ const de_BotRecommendationSummaryList = (output: any, context: __SerdeContext): return retVal; }; +/** + * deserializeAws_restJson1BotReplicaSummary + */ +const de_BotReplicaSummary = (output: any, context: __SerdeContext): BotReplicaSummary => { + return take(output, { + botReplicaStatus: __expectString, + creationDateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + failureReasons: _json, + replicaRegion: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1BotReplicaSummaryList + */ +const de_BotReplicaSummaryList = (output: any, context: __SerdeContext): BotReplicaSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_BotReplicaSummary(entry, context); + }); + return retVal; +}; + /** * deserializeAws_restJson1BotSummary */ @@ -6602,6 +6941,30 @@ const de_BotSummaryList = (output: any, context: __SerdeContext): BotSummary[] = // de_BotVersionLocaleSpecification omitted. +/** + * deserializeAws_restJson1BotVersionReplicaSummary + */ +const de_BotVersionReplicaSummary = (output: any, context: __SerdeContext): BotVersionReplicaSummary => { + return take(output, { + botVersion: __expectString, + botVersionReplicationStatus: __expectString, + creationDateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + failureReasons: _json, + }) as any; +}; + +/** + * deserializeAws_restJson1BotVersionReplicaSummaryList + */ +const de_BotVersionReplicaSummaryList = (output: any, context: __SerdeContext): BotVersionReplicaSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_BotVersionReplicaSummary(entry, context); + }); + return retVal; +}; + /** * deserializeAws_restJson1BotVersionSummary */ diff --git a/codegen/sdk-codegen/aws-models/lex-models-v2.json b/codegen/sdk-codegen/aws-models/lex-models-v2.json index 8c12793ca37d4..827fafa2c0ea3 100644 --- a/codegen/sdk-codegen/aws-models/lex-models-v2.json +++ b/codegen/sdk-codegen/aws-models/lex-models-v2.json @@ -2741,6 +2741,94 @@ "smithy.api#pattern": "^(\\bAmazonLexTestAlias\\b|[0-9a-zA-Z][_-]?)+$" } }, + "com.amazonaws.lexmodelsv2#BotAliasReplicaSummary": { + "type": "structure", + "members": { + "botAliasId": { + "target": "com.amazonaws.lexmodelsv2#BotAliasId", + "traits": { + "smithy.api#documentation": "

The bot alias ID for all the alias bot replications.

" + } + }, + "botAliasReplicationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotAliasReplicationStatus", + "traits": { + "smithy.api#documentation": "

The replication statuses for all the alias bot replications.

" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#BotVersion", + "traits": { + "smithy.api#documentation": "

The bot version for all the alias bot replications.

" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation time and date for all the alias bot replications.

" + } + }, + "lastUpdatedDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The last time and date updated for all the alias bot replications.

" + } + }, + "failureReasons": { + "target": "com.amazonaws.lexmodelsv2#FailureReasons", + "traits": { + "smithy.api#documentation": "

The reasons for failure for the aliases bot replications.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about all the aliases replication statuses applicable for global resiliency.

" + } + }, + "com.amazonaws.lexmodelsv2#BotAliasReplicaSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#BotAliasReplicaSummary" + } + }, + "com.amazonaws.lexmodelsv2#BotAliasReplicationStatus": { + "type": "enum", + "members": { + "Creating": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Creating" + } + }, + "Updating": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Updating" + } + }, + "Available": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Available" + } + }, + "Deleting": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Deleting" + } + }, + "Failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + }, + "traits": { + "smithy.api#documentation": "

The status of the operation to replicate the bot alias. Values: Creating, Updating, Available, Deleting, Failed.

" + } + }, "com.amazonaws.lexmodelsv2#BotAliasStatus": { "type": "enum", "members": { @@ -3513,6 +3601,76 @@ "target": "com.amazonaws.lexmodelsv2#BotRecommendationSummary" } }, + "com.amazonaws.lexmodelsv2#BotReplicaStatus": { + "type": "enum", + "members": { + "Enabling": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Enabling" + } + }, + "Enabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Enabled" + } + }, + "Deleting": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Deleting" + } + }, + "Failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + }, + "traits": { + "smithy.api#documentation": "

The status of the operation to replicate the bot. Values: Enabling, Enabled, Deleting, Failed.

" + } + }, + "com.amazonaws.lexmodelsv2#BotReplicaSummary": { + "type": "structure", + "members": { + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The replica region used in the replication statuses summary.

" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation time and date for the replicated bots.

" + } + }, + "botReplicaStatus": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaStatus", + "traits": { + "smithy.api#documentation": "

The operation status for the replicated bot applicable.

" + } + }, + "failureReasons": { + "target": "com.amazonaws.lexmodelsv2#FailureReasons", + "traits": { + "smithy.api#documentation": "

The reasons for the failure for the replicated bot.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains summary information about all the replication statuses applicable for global resiliency.

" + } + }, + "com.amazonaws.lexmodelsv2#BotReplicaSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaSummary" + } + }, "com.amazonaws.lexmodelsv2#BotSortAttribute": { "type": "enum", "members": { @@ -3711,6 +3869,109 @@ } } }, + "com.amazonaws.lexmodelsv2#BotVersionReplicaSortAttribute": { + "type": "enum", + "members": { + "BotVersion": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BotVersion" + } + } + } + }, + "com.amazonaws.lexmodelsv2#BotVersionReplicaSortBy": { + "type": "structure", + "members": { + "attribute": { + "target": "com.amazonaws.lexmodelsv2#BotVersionReplicaSortAttribute", + "traits": { + "smithy.api#documentation": "

The attribute of the sort category for the version replicated bots.

", + "smithy.api#required": {} + } + }, + "order": { + "target": "com.amazonaws.lexmodelsv2#SortOrder", + "traits": { + "smithy.api#documentation": "

The order of the sort category for the version replicated bots.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The sort category for the version replicated bots.

" + } + }, + "com.amazonaws.lexmodelsv2#BotVersionReplicaSummary": { + "type": "structure", + "members": { + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#BotVersion", + "traits": { + "smithy.api#documentation": "

The bot version for the summary information for all the version replication statuses.

" + } + }, + "botVersionReplicationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotVersionReplicationStatus", + "traits": { + "smithy.api#documentation": "

The version replication status for all the replicated bots.

" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation date and time of the replication status for all the replicated bots.

" + } + }, + "failureReasons": { + "target": "com.amazonaws.lexmodelsv2#FailureReasons", + "traits": { + "smithy.api#documentation": "

The reasons for replication failure for all the replicated bots.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains summary information for all the version replication statuses applicable for Global resiliency.

" + } + }, + "com.amazonaws.lexmodelsv2#BotVersionReplicaSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#BotVersionReplicaSummary" + } + }, + "com.amazonaws.lexmodelsv2#BotVersionReplicationStatus": { + "type": "enum", + "members": { + "Creating": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Creating" + } + }, + "Available": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Available" + } + }, + "Deleting": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Deleting" + } + }, + "Failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + }, + "traits": { + "smithy.api#documentation": "

The status of the operation to replicate the bot version. Values: Creating, Available, Deleting, Failed.

" + } + }, "com.amazonaws.lexmodelsv2#BotVersionSortAttribute": { "type": "enum", "members": { @@ -5017,6 +5278,104 @@ "smithy.api#output": {} } }, + "com.amazonaws.lexmodelsv2#CreateBotReplica": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#CreateBotReplicaRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#CreateBotReplicaResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#ConflictException" + }, + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Action to create a replication of the source bot in the secondary region.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/bots/{botId}/replicas", + "code": 202 + } + } + }, + "com.amazonaws.lexmodelsv2#CreateBotReplicaRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The request for the unique bot ID of the source bot to be replicated in the secondary region.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The request for the secondary region that will be used in the replication of the source bot.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#CreateBotReplicaResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique bot ID of the replicated bot generated.

" + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The region of the replicated bot generated.

" + } + }, + "sourceRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The source region for the source bot used for the replicated bot generated.

" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation date and time of the replicated bot generated.

" + } + }, + "botReplicaStatus": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaStatus", + "traits": { + "smithy.api#documentation": "

The operational status of the replicated bot generated.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lexmodelsv2#CreateBotRequest": { "type": "structure", "members": { @@ -6891,6 +7250,93 @@ "smithy.api#output": {} } }, + "com.amazonaws.lexmodelsv2#DeleteBotReplica": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#DeleteBotReplicaRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#DeleteBotReplicaResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#ConflictException" + }, + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

The action to delete the replicated bot in the secondary region.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/bots/{botId}/replicas/{replicaRegion}", + "code": 202 + } + } + }, + "com.amazonaws.lexmodelsv2#DeleteBotReplicaRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique ID of the replicated bot to be deleted from the secondary region

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The secondary region of the replicated bot that will be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#DeleteBotReplicaResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique bot ID of the replicated bot generated.

" + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The region of the replicated bot generated.

" + } + }, + "botReplicaStatus": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaStatus", + "traits": { + "smithy.api#documentation": "

The operational status of the replicated bot generated.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lexmodelsv2#DeleteBotRequest": { "type": "structure", "members": { @@ -8539,7 +8985,109 @@ "botRecommendationResults": { "target": "com.amazonaws.lexmodelsv2#BotRecommendationResults", "traits": { - "smithy.api#documentation": "

The object representing the URL of the bot definition, the URL of\n the associated transcript and a statistical summary of the bot\n recommendation results.

" + "smithy.api#documentation": "

The object representing the URL of the bot definition, the URL of\n the associated transcript and a statistical summary of the bot\n recommendation results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotReplica": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotReplicaRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotReplicaResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Monitors the bot replication status through the UI console.

", + "smithy.api#http": { + "method": "GET", + "uri": "/bots/{botId}/replicas/{replicaRegion}", + "code": 200 + } + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotReplicaRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The request for the unique bot ID of the replicated bot being monitored.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The request for the region of the replicated bot being monitored.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotReplicaResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique bot ID of the replicated bot being monitored.

" + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The region of the replicated bot being monitored.

" + } + }, + "sourceRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The source region of the replicated bot being monitored.

" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation date and time of the replicated bot being monitored.

" + } + }, + "botReplicaStatus": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaStatus", + "traits": { + "smithy.api#documentation": "

The operational status of the replicated bot being monitored.

" + } + }, + "failureReasons": { + "target": "com.amazonaws.lexmodelsv2#FailureReasons", + "traits": { + "smithy.api#documentation": "

The failure reasons the bot being monitored failed to replicate.

" } } }, @@ -12615,6 +13163,9 @@ { "target": "com.amazonaws.lexmodelsv2#CreateBotLocale" }, + { + "target": "com.amazonaws.lexmodelsv2#CreateBotReplica" + }, { "target": "com.amazonaws.lexmodelsv2#CreateBotVersion" }, @@ -12651,6 +13202,9 @@ { "target": "com.amazonaws.lexmodelsv2#DeleteBotLocale" }, + { + "target": "com.amazonaws.lexmodelsv2#DeleteBotReplica" + }, { "target": "com.amazonaws.lexmodelsv2#DeleteBotVersion" }, @@ -12696,6 +13250,9 @@ { "target": "com.amazonaws.lexmodelsv2#DescribeBotRecommendation" }, + { + "target": "com.amazonaws.lexmodelsv2#DescribeBotReplica" + }, { "target": "com.amazonaws.lexmodelsv2#DescribeBotResourceGeneration" }, @@ -12747,18 +13304,27 @@ { "target": "com.amazonaws.lexmodelsv2#ListBotAliases" }, + { + "target": "com.amazonaws.lexmodelsv2#ListBotAliasReplicas" + }, { "target": "com.amazonaws.lexmodelsv2#ListBotLocales" }, { "target": "com.amazonaws.lexmodelsv2#ListBotRecommendations" }, + { + "target": "com.amazonaws.lexmodelsv2#ListBotReplicas" + }, { "target": "com.amazonaws.lexmodelsv2#ListBotResourceGenerations" }, { "target": "com.amazonaws.lexmodelsv2#ListBots" }, + { + "target": "com.amazonaws.lexmodelsv2#ListBotVersionReplicas" + }, { "target": "com.amazonaws.lexmodelsv2#ListBotVersions" }, @@ -13842,6 +14408,116 @@ "smithy.api#output": {} } }, + "com.amazonaws.lexmodelsv2#ListBotAliasReplicas": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#ListBotAliasReplicasRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#ListBotAliasReplicasResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

The action to list the replicated bots created from the source bot alias.

", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/replicas/{replicaRegion}/botaliases", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.lexmodelsv2#ListBotAliasReplicasRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The request for the unique bot ID of the replicated bot created from the source bot alias.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The request for the secondary region of the replicated bot created from the source bot alias.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "

The request for maximum results to list the replicated bots created from the source bot alias.

" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "

The request for the next token for the replicated bot created from the source bot alias.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#ListBotAliasReplicasResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique bot ID of the replicated bot created from the source bot alias.

" + } + }, + "sourceRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The source region of the replicated bot created from the source bot alias.

" + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The secondary region of the replicated bot created from the source bot alias.

" + } + }, + "botAliasReplicaSummaries": { + "target": "com.amazonaws.lexmodelsv2#BotAliasReplicaSummaryList", + "traits": { + "smithy.api#documentation": "

The summary information of the replicated bot created from the source bot alias.

" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "

The next token for the replicated bots created from the source bot alias.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lexmodelsv2#ListBotAliases": { "type": "operation", "input": { @@ -14166,6 +14842,79 @@ "smithy.api#output": {} } }, + "com.amazonaws.lexmodelsv2#ListBotReplicas": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#ListBotReplicasRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#ListBotReplicasResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

The action to list the replicated bots.

", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/replicas", + "code": 200 + } + } + }, + "com.amazonaws.lexmodelsv2#ListBotReplicasRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The request for the unique bot IDs in the list of replicated bots.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#ListBotReplicasResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

the unique bot IDs in the list of replicated bots.

" + } + }, + "sourceRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The source region of the source bots in the list of replicated bots.

" + } + }, + "botReplicaSummaries": { + "target": "com.amazonaws.lexmodelsv2#BotReplicaSummaryList", + "traits": { + "smithy.api#documentation": "

The summary details for the replicated bots.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lexmodelsv2#ListBotResourceGenerations": { "type": "operation", "input": { @@ -14290,6 +15039,122 @@ "smithy.api#output": {} } }, + "com.amazonaws.lexmodelsv2#ListBotVersionReplicas": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#ListBotVersionReplicasRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#ListBotVersionReplicasResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Contains information about all the versions replication statuses applicable for Global Resiliency.

", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/replicas/{replicaRegion}/botversions", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.lexmodelsv2#ListBotVersionReplicasRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The request for the unique ID in the list of replicated bots.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The request for the region used in the list of replicated bots.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum results given in the list of replicated bots.

" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "

The next token given in the list of replicated bots.

" + } + }, + "sortBy": { + "target": "com.amazonaws.lexmodelsv2#BotVersionReplicaSortBy", + "traits": { + "smithy.api#documentation": "

The requested sort category for the list of replicated bots.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lexmodelsv2#ListBotVersionReplicasResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "

The unique ID of the bots in the list of replicated bots.

" + } + }, + "sourceRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The source region used for the bots in the list of replicated bots.

" + } + }, + "replicaRegion": { + "target": "com.amazonaws.lexmodelsv2#ReplicaRegion", + "traits": { + "smithy.api#documentation": "

The region used for the replicated bots in the list of replicated bots.

" + } + }, + "botVersionReplicaSummaries": { + "target": "com.amazonaws.lexmodelsv2#BotVersionReplicaSummaryList", + "traits": { + "smithy.api#documentation": "

The information summary used for the replicated bots in the list of replicated bots.

" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "

The next token used for the replicated bots in the list of replicated bots.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lexmodelsv2#ListBotVersions": { "type": "operation", "input": { @@ -17726,6 +18591,16 @@ "smithy.api#documentation": "

Specifies the time window that utterance statistics are returned\n for. The time window is always relative to the last time that the that\n utterances were aggregated. For example, if the\n ListAggregatedUtterances operation is called at 1600,\n the time window is set to 1 hour, and the last refresh time was 1530,\n only utterances made between 1430 and 1530 are returned.

\n

You can choose the time window that statistics should be returned\n for.

\n
    \n
  • \n

    \n Hours - You can request\n utterance statistics for 1, 3, 6, 12, or 24 hour time windows.\n Statistics are refreshed every half hour for 1 hour time windows,\n and hourly for the other time windows.

    \n
  • \n
  • \n

    \n Days - You can request\n utterance statistics for 3 days. Statistics are refreshed every 6\n hours.

    \n
  • \n
  • \n

    \n Weeks - You can see\n statistics for one or two weeks. Statistics are refreshed every\n 12 hours for one week time windows, and once per day for two week\n time windows.

    \n
  • \n
" } }, + "com.amazonaws.lexmodelsv2#ReplicaRegion": { + "type": "string", + "traits": { + "smithy.api#documentation": "

The region that contains the replicated bots. Minimum value = 2, maximum value = 25.

", + "smithy.api#length": { + "min": 2, + "max": 25 + } + } + }, "com.amazonaws.lexmodelsv2#ResourceCount": { "type": "integer" },