Skip to content

Commit

Permalink
feat(client-lex-models-v2): This release introduces a new bot replica…
Browse files Browse the repository at this point in the history
…tion feature as part of Lex Global Resiliency offering. This feature leverages a new set of APIs that allow customers to create bot replicas and replicate changes to bots across regions.
  • Loading branch information
awstools committed Feb 7, 2024
1 parent a7ab5f5 commit a8559c4
Show file tree
Hide file tree
Showing 23 changed files with 3,164 additions and 491 deletions.
48 changes: 48 additions & 0 deletions clients/client-lex-models-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

</details>
<details>
<summary>
CreateBotReplica
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -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/)

</details>
<details>
<summary>
DeleteBotReplica
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -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/)

</details>
<details>
<summary>
DescribeBotReplica
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -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/)

</details>
<details>
<summary>
ListBotAliasReplicas
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -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/)

</details>
<details>
<summary>
ListBotReplicas
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -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/)

</details>
<details>
<summary>
ListBotVersionReplicas
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
135 changes: 135 additions & 0 deletions clients/client-lex-models-v2/src/LexModelsV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ import {
CreateBotLocaleCommandInput,
CreateBotLocaleCommandOutput,
} from "./commands/CreateBotLocaleCommand";
import {
CreateBotReplicaCommand,
CreateBotReplicaCommandInput,
CreateBotReplicaCommandOutput,
} from "./commands/CreateBotReplicaCommand";
import {
CreateBotVersionCommand,
CreateBotVersionCommandInput,
Expand Down Expand Up @@ -85,6 +90,11 @@ import {
DeleteBotLocaleCommandInput,
DeleteBotLocaleCommandOutput,
} from "./commands/DeleteBotLocaleCommand";
import {
DeleteBotReplicaCommand,
DeleteBotReplicaCommandInput,
DeleteBotReplicaCommandOutput,
} from "./commands/DeleteBotReplicaCommand";
import {
DeleteBotVersionCommand,
DeleteBotVersionCommandInput,
Expand Down Expand Up @@ -152,6 +162,11 @@ import {
DescribeBotRecommendationCommandInput,
DescribeBotRecommendationCommandOutput,
} from "./commands/DescribeBotRecommendationCommand";
import {
DescribeBotReplicaCommand,
DescribeBotReplicaCommandInput,
DescribeBotReplicaCommandOutput,
} from "./commands/DescribeBotReplicaCommand";
import {
DescribeBotResourceGenerationCommand,
DescribeBotResourceGenerationCommandInput,
Expand Down Expand Up @@ -237,6 +252,11 @@ import {
ListBotAliasesCommandInput,
ListBotAliasesCommandOutput,
} from "./commands/ListBotAliasesCommand";
import {
ListBotAliasReplicasCommand,
ListBotAliasReplicasCommandInput,
ListBotAliasReplicasCommandOutput,
} from "./commands/ListBotAliasReplicasCommand";
import {
ListBotLocalesCommand,
ListBotLocalesCommandInput,
Expand All @@ -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,
Expand Down Expand Up @@ -436,6 +466,7 @@ const commands = {
CreateBotCommand,
CreateBotAliasCommand,
CreateBotLocaleCommand,
CreateBotReplicaCommand,
CreateBotVersionCommand,
CreateExportCommand,
CreateIntentCommand,
Expand All @@ -448,6 +479,7 @@ const commands = {
DeleteBotCommand,
DeleteBotAliasCommand,
DeleteBotLocaleCommand,
DeleteBotReplicaCommand,
DeleteBotVersionCommand,
DeleteCustomVocabularyCommand,
DeleteExportCommand,
Expand All @@ -463,6 +495,7 @@ const commands = {
DescribeBotAliasCommand,
DescribeBotLocaleCommand,
DescribeBotRecommendationCommand,
DescribeBotReplicaCommand,
DescribeBotResourceGenerationCommand,
DescribeBotVersionCommand,
DescribeCustomVocabularyMetadataCommand,
Expand All @@ -480,10 +513,13 @@ const commands = {
GetTestExecutionArtifactsUrlCommand,
ListAggregatedUtterancesCommand,
ListBotAliasesCommand,
ListBotAliasReplicasCommand,
ListBotLocalesCommand,
ListBotRecommendationsCommand,
ListBotReplicasCommand,
ListBotResourceGenerationsCommand,
ListBotsCommand,
ListBotVersionReplicasCommand,
ListBotVersionsCommand,
ListBuiltInIntentsCommand,
ListBuiltInSlotTypesCommand,
Expand Down Expand Up @@ -632,6 +668,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: CreateBotLocaleCommandOutput) => void
): void;

/**
* @see {@link CreateBotReplicaCommand}
*/
createBotReplica(
args: CreateBotReplicaCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateBotReplicaCommandOutput>;
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}
*/
Expand Down Expand Up @@ -800,6 +853,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: DeleteBotLocaleCommandOutput) => void
): void;

/**
* @see {@link DeleteBotReplicaCommand}
*/
deleteBotReplica(
args: DeleteBotReplicaCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteBotReplicaCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1016,6 +1086,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: DescribeBotRecommendationCommandOutput) => void
): void;

/**
* @see {@link DescribeBotReplicaCommand}
*/
describeBotReplica(
args: DescribeBotReplicaCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeBotReplicaCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1284,6 +1371,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListBotAliasesCommandOutput) => void
): void;

/**
* @see {@link ListBotAliasReplicasCommand}
*/
listBotAliasReplicas(
args: ListBotAliasReplicasCommandInput,
options?: __HttpHandlerOptions
): Promise<ListBotAliasReplicasCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1315,6 +1419,20 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListBotRecommendationsCommandOutput) => void
): void;

/**
* @see {@link ListBotReplicasCommand}
*/
listBotReplicas(
args: ListBotReplicasCommandInput,
options?: __HttpHandlerOptions
): Promise<ListBotReplicasCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1343,6 +1461,23 @@ export interface LexModelsV2 {
cb: (err: any, data?: ListBotsCommandOutput) => void
): void;

/**
* @see {@link ListBotVersionReplicasCommand}
*/
listBotVersionReplicas(
args: ListBotVersionReplicasCommandInput,
options?: __HttpHandlerOptions
): Promise<ListBotVersionReplicasCommandOutput>;
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}
*/
Expand Down
Loading

0 comments on commit a8559c4

Please sign in to comment.