@aws-sdk/client-lex-models-v2 3.507.0 → 3.511.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist-cjs/commands/CreateBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/DeleteBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/DescribeBotReplicaCommand.js +1 -0
- package/dist-cjs/commands/ListBotAliasReplicasCommand.js +1 -0
- package/dist-cjs/commands/ListBotReplicasCommand.js +1 -0
- package/dist-cjs/commands/ListBotVersionReplicasCommand.js +1 -0
- package/dist-cjs/index.js +623 -230
- package/dist-cjs/pagination/ListBotAliasReplicasPaginator.js +1 -0
- package/dist-cjs/pagination/ListBotVersionReplicasPaginator.js +1 -0
- package/dist-es/LexModelsV2.js +12 -0
- package/dist-es/commands/CreateBotReplicaCommand.js +24 -0
- package/dist-es/commands/DeleteBotReplicaCommand.js +24 -0
- package/dist-es/commands/DescribeBotRecommendationCommand.js +1 -1
- package/dist-es/commands/DescribeBotReplicaCommand.js +24 -0
- package/dist-es/commands/ListBotAliasReplicasCommand.js +24 -0
- package/dist-es/commands/ListBotReplicasCommand.js +24 -0
- package/dist-es/commands/ListBotVersionReplicasCommand.js +24 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +22 -14
- package/dist-es/models/models_1.js +14 -0
- package/dist-es/pagination/ListBotAliasReplicasPaginator.js +4 -0
- package/dist-es/pagination/ListBotVersionReplicasPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +231 -0
- package/dist-types/LexModelsV2.d.ts +42 -0
- package/dist-types/LexModelsV2Client.d.ts +8 -2
- package/dist-types/commands/CreateBotReplicaCommand.d.ts +88 -0
- package/dist-types/commands/DeleteBotReplicaCommand.d.ts +86 -0
- package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeBotReplicaCommand.d.ts +85 -0
- package/dist-types/commands/DescribeBotResourceGenerationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBotVersionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImportCommand.d.ts +1 -2
- package/dist-types/commands/ListBotAliasReplicasCommand.d.ts +91 -0
- package/dist-types/commands/ListBotReplicasCommand.d.ts +84 -0
- package/dist-types/commands/ListBotVersionReplicasCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +238 -407
- package/dist-types/models/models_1.d.ts +603 -1
- package/dist-types/pagination/ListBotAliasReplicasPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBotVersionReplicasPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +102 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateBotReplicaCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/DeleteBotReplicaCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeBotReplicaCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DescribeBotResourceGenerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeBotVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeCustomVocabularyMetadataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListBotAliasReplicasCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListBotReplicasCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/ListBotVersionReplicasCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -96
- package/dist-types/ts3.4/models/models_1.d.ts +151 -2
- package/dist-types/ts3.4/pagination/ListBotAliasReplicasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBotVersionReplicasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +14 -14
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { DeleteBotReplicaRequest, DeleteBotReplicaResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteBotReplicaCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteBotReplicaCommandInput extends DeleteBotReplicaRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteBotReplicaCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteBotReplicaCommandOutput extends DeleteBotReplicaResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const DeleteBotReplicaCommand_base: {
|
|
24
|
+
new (input: DeleteBotReplicaCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotReplicaCommandInput, DeleteBotReplicaCommandOutput, LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>The action to delete the replicated bot in the secondary region.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { LexModelsV2Client, DeleteBotReplicaCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
34
|
+
* // const { LexModelsV2Client, DeleteBotReplicaCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
35
|
+
* const client = new LexModelsV2Client(config);
|
|
36
|
+
* const input = { // DeleteBotReplicaRequest
|
|
37
|
+
* botId: "STRING_VALUE", // required
|
|
38
|
+
* replicaRegion: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteBotReplicaCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DeleteBotReplicaResponse
|
|
43
|
+
* // botId: "STRING_VALUE",
|
|
44
|
+
* // replicaRegion: "STRING_VALUE",
|
|
45
|
+
* // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeleteBotReplicaCommandInput - {@link DeleteBotReplicaCommandInput}
|
|
51
|
+
* @returns {@link DeleteBotReplicaCommandOutput}
|
|
52
|
+
* @see {@link DeleteBotReplicaCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeleteBotReplicaCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ConflictException} (client fault)
|
|
57
|
+
* <p>The action that you tried to perform couldn't be completed because
|
|
58
|
+
* the resource is in a conflicting state. For example, deleting a bot
|
|
59
|
+
* that is in the CREATING state. Try your request again. </p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>The service encountered an unexpected condition. Try your request
|
|
63
|
+
* again.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link PreconditionFailedException} (client fault)
|
|
66
|
+
* <p>Your request couldn't be completed because one or more request
|
|
67
|
+
* fields aren't valid. Check the fields in your request and try
|
|
68
|
+
* again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
71
|
+
* <p>You have reached a quota for your bot. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>Your request rate is too high. Reduce the frequency of
|
|
75
|
+
* requests.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>One of the input parameters in your request isn't valid. Check the
|
|
79
|
+
* parameters and try your request again.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link LexModelsV2ServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeleteBotReplicaCommand extends DeleteBotReplicaCommand_base {
|
|
86
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeBotRecommendationRequest
|
|
4
|
+
import { DescribeBotRecommendationRequest } from "../models/models_0";
|
|
5
|
+
import { DescribeBotRecommendationResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { DescribeBotReplicaRequest, DescribeBotReplicaResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DescribeBotReplicaCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DescribeBotReplicaCommandInput extends DescribeBotReplicaRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DescribeBotReplicaCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DescribeBotReplicaCommandOutput extends DescribeBotReplicaResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const DescribeBotReplicaCommand_base: {
|
|
24
|
+
new (input: DescribeBotReplicaCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeBotReplicaCommandInput, DescribeBotReplicaCommandOutput, LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Monitors the bot replication status through the UI console.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { LexModelsV2Client, DescribeBotReplicaCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
34
|
+
* // const { LexModelsV2Client, DescribeBotReplicaCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
35
|
+
* const client = new LexModelsV2Client(config);
|
|
36
|
+
* const input = { // DescribeBotReplicaRequest
|
|
37
|
+
* botId: "STRING_VALUE", // required
|
|
38
|
+
* replicaRegion: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DescribeBotReplicaCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DescribeBotReplicaResponse
|
|
43
|
+
* // botId: "STRING_VALUE",
|
|
44
|
+
* // replicaRegion: "STRING_VALUE",
|
|
45
|
+
* // sourceRegion: "STRING_VALUE",
|
|
46
|
+
* // creationDateTime: new Date("TIMESTAMP"),
|
|
47
|
+
* // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed",
|
|
48
|
+
* // failureReasons: [ // FailureReasons
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param DescribeBotReplicaCommandInput - {@link DescribeBotReplicaCommandInput}
|
|
56
|
+
* @returns {@link DescribeBotReplicaCommandOutput}
|
|
57
|
+
* @see {@link DescribeBotReplicaCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link DescribeBotReplicaCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>The service encountered an unexpected condition. Try your request
|
|
63
|
+
* again.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>You asked to describe a resource that doesn't exist. Check the
|
|
67
|
+
* resource that you are requesting and try again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
70
|
+
* <p>You have reached a quota for your bot. </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>Your request rate is too high. Reduce the frequency of
|
|
74
|
+
* requests.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>One of the input parameters in your request isn't valid. Check the
|
|
78
|
+
* parameters and try your request again.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link LexModelsV2ServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
export declare class DescribeBotReplicaCommand extends DescribeBotReplicaCommand_base {
|
|
85
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeBotResourceGenerationRequest, DescribeBotResourceGenerationResponse } from "../models/
|
|
4
|
+
import { DescribeBotResourceGenerationRequest, DescribeBotResourceGenerationResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeBotVersionRequest, DescribeBotVersionResponse } from "../models/
|
|
4
|
+
import { DescribeBotVersionRequest, DescribeBotVersionResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeCustomVocabularyMetadataRequest, DescribeCustomVocabularyMetadataResponse } from "../models/
|
|
4
|
+
import { DescribeCustomVocabularyMetadataRequest, DescribeCustomVocabularyMetadataResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeExportRequest, DescribeExportResponse } from "../models/
|
|
4
|
+
import { DescribeExportRequest, DescribeExportResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
-
import { DescribeImportRequest } from "../models/
|
|
5
|
-
import { DescribeImportResponse } from "../models/models_1";
|
|
4
|
+
import { DescribeImportRequest, DescribeImportResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { ListBotAliasReplicasRequest, ListBotAliasReplicasResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListBotAliasReplicasCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListBotAliasReplicasCommandInput extends ListBotAliasReplicasRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListBotAliasReplicasCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListBotAliasReplicasCommandOutput extends ListBotAliasReplicasResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListBotAliasReplicasCommand_base: {
|
|
24
|
+
new (input: ListBotAliasReplicasCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotAliasReplicasCommandInput, ListBotAliasReplicasCommandOutput, LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>The action to list the replicated bots created from the source bot alias.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { LexModelsV2Client, ListBotAliasReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
34
|
+
* // const { LexModelsV2Client, ListBotAliasReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
35
|
+
* const client = new LexModelsV2Client(config);
|
|
36
|
+
* const input = { // ListBotAliasReplicasRequest
|
|
37
|
+
* botId: "STRING_VALUE", // required
|
|
38
|
+
* replicaRegion: "STRING_VALUE", // required
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListBotAliasReplicasCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListBotAliasReplicasResponse
|
|
45
|
+
* // botId: "STRING_VALUE",
|
|
46
|
+
* // sourceRegion: "STRING_VALUE",
|
|
47
|
+
* // replicaRegion: "STRING_VALUE",
|
|
48
|
+
* // botAliasReplicaSummaries: [ // BotAliasReplicaSummaryList
|
|
49
|
+
* // { // BotAliasReplicaSummary
|
|
50
|
+
* // botAliasId: "STRING_VALUE",
|
|
51
|
+
* // botAliasReplicationStatus: "Creating" || "Updating" || "Available" || "Deleting" || "Failed",
|
|
52
|
+
* // botVersion: "STRING_VALUE",
|
|
53
|
+
* // creationDateTime: new Date("TIMESTAMP"),
|
|
54
|
+
* // lastUpdatedDateTime: new Date("TIMESTAMP"),
|
|
55
|
+
* // failureReasons: [ // FailureReasons
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // nextToken: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ListBotAliasReplicasCommandInput - {@link ListBotAliasReplicasCommandInput}
|
|
66
|
+
* @returns {@link ListBotAliasReplicasCommandOutput}
|
|
67
|
+
* @see {@link ListBotAliasReplicasCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ListBotAliasReplicasCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p>The service encountered an unexpected condition. Try your request
|
|
73
|
+
* again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
76
|
+
* <p>You have reached a quota for your bot. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>Your request rate is too high. Reduce the frequency of
|
|
80
|
+
* requests.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ValidationException} (client fault)
|
|
83
|
+
* <p>One of the input parameters in your request isn't valid. Check the
|
|
84
|
+
* parameters and try your request again.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link LexModelsV2ServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListBotAliasReplicasCommand extends ListBotAliasReplicasCommand_base {
|
|
91
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { ListBotReplicasRequest, ListBotReplicasResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListBotReplicasCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListBotReplicasCommandInput extends ListBotReplicasRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListBotReplicasCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListBotReplicasCommandOutput extends ListBotReplicasResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListBotReplicasCommand_base: {
|
|
24
|
+
new (input: ListBotReplicasCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotReplicasCommandInput, ListBotReplicasCommandOutput, LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>The action to list the replicated bots.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { LexModelsV2Client, ListBotReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
34
|
+
* // const { LexModelsV2Client, ListBotReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
35
|
+
* const client = new LexModelsV2Client(config);
|
|
36
|
+
* const input = { // ListBotReplicasRequest
|
|
37
|
+
* botId: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListBotReplicasCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListBotReplicasResponse
|
|
42
|
+
* // botId: "STRING_VALUE",
|
|
43
|
+
* // sourceRegion: "STRING_VALUE",
|
|
44
|
+
* // botReplicaSummaries: [ // BotReplicaSummaryList
|
|
45
|
+
* // { // BotReplicaSummary
|
|
46
|
+
* // replicaRegion: "STRING_VALUE",
|
|
47
|
+
* // creationDateTime: new Date("TIMESTAMP"),
|
|
48
|
+
* // botReplicaStatus: "Enabling" || "Enabled" || "Deleting" || "Failed",
|
|
49
|
+
* // failureReasons: [ // FailureReasons
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // },
|
|
53
|
+
* // ],
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param ListBotReplicasCommandInput - {@link ListBotReplicasCommandInput}
|
|
59
|
+
* @returns {@link ListBotReplicasCommandOutput}
|
|
60
|
+
* @see {@link ListBotReplicasCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link ListBotReplicasCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>The service encountered an unexpected condition. Try your request
|
|
66
|
+
* again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
69
|
+
* <p>You have reached a quota for your bot. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
72
|
+
* <p>Your request rate is too high. Reduce the frequency of
|
|
73
|
+
* requests.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>One of the input parameters in your request isn't valid. Check the
|
|
77
|
+
* parameters and try your request again.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link LexModelsV2ServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export declare class ListBotReplicasCommand extends ListBotReplicasCommand_base {
|
|
84
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { ListBotVersionReplicasRequest, ListBotVersionReplicasResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListBotVersionReplicasCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListBotVersionReplicasCommandInput extends ListBotVersionReplicasRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListBotVersionReplicasCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListBotVersionReplicasCommandOutput extends ListBotVersionReplicasResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListBotVersionReplicasCommand_base: {
|
|
24
|
+
new (input: ListBotVersionReplicasCommandInput): import("@smithy/smithy-client").CommandImpl<ListBotVersionReplicasCommandInput, ListBotVersionReplicasCommandOutput, LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Contains information about all the versions replication statuses applicable for Global Resiliency.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { LexModelsV2Client, ListBotVersionReplicasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
34
|
+
* // const { LexModelsV2Client, ListBotVersionReplicasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
35
|
+
* const client = new LexModelsV2Client(config);
|
|
36
|
+
* const input = { // ListBotVersionReplicasRequest
|
|
37
|
+
* botId: "STRING_VALUE", // required
|
|
38
|
+
* replicaRegion: "STRING_VALUE", // required
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* sortBy: { // BotVersionReplicaSortBy
|
|
42
|
+
* attribute: "BotVersion", // required
|
|
43
|
+
* order: "Ascending" || "Descending", // required
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ListBotVersionReplicasCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ListBotVersionReplicasResponse
|
|
49
|
+
* // botId: "STRING_VALUE",
|
|
50
|
+
* // sourceRegion: "STRING_VALUE",
|
|
51
|
+
* // replicaRegion: "STRING_VALUE",
|
|
52
|
+
* // botVersionReplicaSummaries: [ // BotVersionReplicaSummaryList
|
|
53
|
+
* // { // BotVersionReplicaSummary
|
|
54
|
+
* // botVersion: "STRING_VALUE",
|
|
55
|
+
* // botVersionReplicationStatus: "Creating" || "Available" || "Deleting" || "Failed",
|
|
56
|
+
* // creationDateTime: new Date("TIMESTAMP"),
|
|
57
|
+
* // failureReasons: [ // FailureReasons
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // nextToken: "STRING_VALUE",
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param ListBotVersionReplicasCommandInput - {@link ListBotVersionReplicasCommandInput}
|
|
68
|
+
* @returns {@link ListBotVersionReplicasCommandOutput}
|
|
69
|
+
* @see {@link ListBotVersionReplicasCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link ListBotVersionReplicasCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>The service encountered an unexpected condition. Try your request
|
|
75
|
+
* again.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
78
|
+
* <p>You have reached a quota for your bot. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>Your request rate is too high. Reduce the frequency of
|
|
82
|
+
* requests.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p>One of the input parameters in your request isn't valid. Check the
|
|
86
|
+
* parameters and try your request again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link LexModelsV2ServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
export declare class ListBotVersionReplicasCommand extends ListBotVersionReplicasCommand_base {
|
|
93
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./BuildBotLocaleCommand";
|
|
|
5
5
|
export * from "./CreateBotAliasCommand";
|
|
6
6
|
export * from "./CreateBotCommand";
|
|
7
7
|
export * from "./CreateBotLocaleCommand";
|
|
8
|
+
export * from "./CreateBotReplicaCommand";
|
|
8
9
|
export * from "./CreateBotVersionCommand";
|
|
9
10
|
export * from "./CreateExportCommand";
|
|
10
11
|
export * from "./CreateIntentCommand";
|
|
@@ -17,6 +18,7 @@ export * from "./CreateUploadUrlCommand";
|
|
|
17
18
|
export * from "./DeleteBotAliasCommand";
|
|
18
19
|
export * from "./DeleteBotCommand";
|
|
19
20
|
export * from "./DeleteBotLocaleCommand";
|
|
21
|
+
export * from "./DeleteBotReplicaCommand";
|
|
20
22
|
export * from "./DeleteBotVersionCommand";
|
|
21
23
|
export * from "./DeleteCustomVocabularyCommand";
|
|
22
24
|
export * from "./DeleteExportCommand";
|
|
@@ -32,6 +34,7 @@ export * from "./DescribeBotAliasCommand";
|
|
|
32
34
|
export * from "./DescribeBotCommand";
|
|
33
35
|
export * from "./DescribeBotLocaleCommand";
|
|
34
36
|
export * from "./DescribeBotRecommendationCommand";
|
|
37
|
+
export * from "./DescribeBotReplicaCommand";
|
|
35
38
|
export * from "./DescribeBotResourceGenerationCommand";
|
|
36
39
|
export * from "./DescribeBotVersionCommand";
|
|
37
40
|
export * from "./DescribeCustomVocabularyMetadataCommand";
|
|
@@ -48,10 +51,13 @@ export * from "./DescribeTestSetGenerationCommand";
|
|
|
48
51
|
export * from "./GenerateBotElementCommand";
|
|
49
52
|
export * from "./GetTestExecutionArtifactsUrlCommand";
|
|
50
53
|
export * from "./ListAggregatedUtterancesCommand";
|
|
54
|
+
export * from "./ListBotAliasReplicasCommand";
|
|
51
55
|
export * from "./ListBotAliasesCommand";
|
|
52
56
|
export * from "./ListBotLocalesCommand";
|
|
53
57
|
export * from "./ListBotRecommendationsCommand";
|
|
58
|
+
export * from "./ListBotReplicasCommand";
|
|
54
59
|
export * from "./ListBotResourceGenerationsCommand";
|
|
60
|
+
export * from "./ListBotVersionReplicasCommand";
|
|
55
61
|
export * from "./ListBotVersionsCommand";
|
|
56
62
|
export * from "./ListBotsCommand";
|
|
57
63
|
export * from "./ListBuiltInIntentsCommand";
|