@aws-sdk/client-lex-models-v2 3.344.0 → 3.347.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.
Files changed (152) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/LexModelsV2.js +28 -0
  3. package/dist-cjs/commands/CreateTestSetDiscrepancyReportCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteTestSetCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeTestExecutionCommand.js +46 -0
  6. package/dist-cjs/commands/DescribeTestSetCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeTestSetDiscrepancyReportCommand.js +46 -0
  8. package/dist-cjs/commands/DescribeTestSetGenerationCommand.js +46 -0
  9. package/dist-cjs/commands/GetTestExecutionArtifactsUrlCommand.js +46 -0
  10. package/dist-cjs/commands/ListTestExecutionResultItemsCommand.js +46 -0
  11. package/dist-cjs/commands/ListTestExecutionsCommand.js +46 -0
  12. package/dist-cjs/commands/ListTestSetRecordsCommand.js +46 -0
  13. package/dist-cjs/commands/ListTestSetsCommand.js +46 -0
  14. package/dist-cjs/commands/StartBotRecommendationCommand.js +3 -3
  15. package/dist-cjs/commands/StartImportCommand.js +2 -2
  16. package/dist-cjs/commands/StartTestExecutionCommand.js +46 -0
  17. package/dist-cjs/commands/StartTestSetGenerationCommand.js +46 -0
  18. package/dist-cjs/commands/UpdateTestSetCommand.js +46 -0
  19. package/dist-cjs/commands/index.js +14 -0
  20. package/dist-cjs/endpoint/ruleset.js +3 -3
  21. package/dist-cjs/models/models_0.js +52 -50
  22. package/dist-cjs/models/models_1.js +64 -1
  23. package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +29 -0
  24. package/dist-cjs/pagination/ListTestExecutionsPaginator.js +29 -0
  25. package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListTestSetsPaginator.js +29 -0
  27. package/dist-cjs/pagination/index.js +4 -0
  28. package/dist-cjs/protocols/Aws_restJson1.js +1395 -146
  29. package/dist-es/LexModelsV2.js +28 -0
  30. package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +42 -0
  31. package/dist-es/commands/DeleteTestSetCommand.js +42 -0
  32. package/dist-es/commands/DescribeTestExecutionCommand.js +42 -0
  33. package/dist-es/commands/DescribeTestSetCommand.js +42 -0
  34. package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +42 -0
  35. package/dist-es/commands/DescribeTestSetGenerationCommand.js +42 -0
  36. package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +42 -0
  37. package/dist-es/commands/ListTestExecutionResultItemsCommand.js +42 -0
  38. package/dist-es/commands/ListTestExecutionsCommand.js +42 -0
  39. package/dist-es/commands/ListTestSetRecordsCommand.js +42 -0
  40. package/dist-es/commands/ListTestSetsCommand.js +42 -0
  41. package/dist-es/commands/StartBotRecommendationCommand.js +1 -1
  42. package/dist-es/commands/StartImportCommand.js +1 -1
  43. package/dist-es/commands/StartTestExecutionCommand.js +42 -0
  44. package/dist-es/commands/StartTestSetGenerationCommand.js +42 -0
  45. package/dist-es/commands/UpdateTestSetCommand.js +42 -0
  46. package/dist-es/commands/index.js +14 -0
  47. package/dist-es/endpoint/ruleset.js +3 -3
  48. package/dist-es/models/models_0.js +50 -45
  49. package/dist-es/models/models_1.js +60 -0
  50. package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +25 -0
  51. package/dist-es/pagination/ListTestExecutionsPaginator.js +25 -0
  52. package/dist-es/pagination/ListTestSetRecordsPaginator.js +25 -0
  53. package/dist-es/pagination/ListTestSetsPaginator.js +25 -0
  54. package/dist-es/pagination/index.js +4 -0
  55. package/dist-es/protocols/Aws_restJson1.js +1360 -140
  56. package/dist-types/LexModelsV2.d.ts +98 -0
  57. package/dist-types/LexModelsV2Client.d.ts +16 -2
  58. package/dist-types/commands/CreateExportCommand.d.ts +8 -2
  59. package/dist-types/commands/CreateTestSetDiscrepancyReportCommand.d.ts +113 -0
  60. package/dist-types/commands/DeleteTestSetCommand.d.ts +96 -0
  61. package/dist-types/commands/DescribeExportCommand.d.ts +4 -1
  62. package/dist-types/commands/DescribeImportCommand.d.ts +18 -0
  63. package/dist-types/commands/DescribeTestExecutionCommand.d.ts +109 -0
  64. package/dist-types/commands/DescribeTestSetCommand.d.ts +105 -0
  65. package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +122 -0
  66. package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +119 -0
  67. package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +93 -0
  68. package/dist-types/commands/ListBotAliasesCommand.d.ts +1 -1
  69. package/dist-types/commands/ListBotLocalesCommand.d.ts +1 -1
  70. package/dist-types/commands/ListBotRecommendationsCommand.d.ts +1 -1
  71. package/dist-types/commands/ListBotVersionsCommand.d.ts +1 -1
  72. package/dist-types/commands/ListBotsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
  76. package/dist-types/commands/ListExportsCommand.d.ts +5 -2
  77. package/dist-types/commands/ListImportsCommand.d.ts +2 -2
  78. package/dist-types/commands/ListIntentsCommand.d.ts +1 -1
  79. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +1 -1
  80. package/dist-types/commands/ListSlotTypesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListSlotsCommand.d.ts +1 -1
  82. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  83. package/dist-types/commands/ListTestExecutionResultItemsCommand.d.ts +291 -0
  84. package/dist-types/commands/ListTestExecutionsCommand.d.ts +112 -0
  85. package/dist-types/commands/ListTestSetRecordsCommand.d.ts +180 -0
  86. package/dist-types/commands/ListTestSetsCommand.d.ts +111 -0
  87. package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
  88. package/dist-types/commands/StartBotRecommendationCommand.d.ts +1 -1
  89. package/dist-types/commands/StartImportCommand.d.ts +37 -1
  90. package/dist-types/commands/StartTestExecutionCommand.d.ts +117 -0
  91. package/dist-types/commands/StartTestSetGenerationCommand.d.ts +144 -0
  92. package/dist-types/commands/StopBotRecommendationCommand.d.ts +1 -1
  93. package/dist-types/commands/TagResourceCommand.d.ts +1 -2
  94. package/dist-types/commands/UpdateExportCommand.d.ts +4 -1
  95. package/dist-types/commands/UpdateTestSetCommand.d.ts +113 -0
  96. package/dist-types/commands/index.d.ts +14 -0
  97. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  98. package/dist-types/models/models_0.d.ts +1054 -1714
  99. package/dist-types/models/models_1.d.ts +2465 -18
  100. package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +7 -0
  101. package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +7 -0
  102. package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +7 -0
  103. package/dist-types/pagination/ListTestSetsPaginator.d.ts +7 -0
  104. package/dist-types/pagination/index.d.ts +4 -0
  105. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  106. package/dist-types/ts3.4/LexModelsV2.d.ts +238 -0
  107. package/dist-types/ts3.4/LexModelsV2Client.d.ts +86 -2
  108. package/dist-types/ts3.4/commands/CreateTestSetDiscrepancyReportCommand.d.ts +42 -0
  109. package/dist-types/ts3.4/commands/DeleteTestSetCommand.d.ts +33 -0
  110. package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +38 -0
  112. package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +42 -0
  113. package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +42 -0
  114. package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +42 -0
  115. package/dist-types/ts3.4/commands/ListBotAliasesCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/ListBotLocalesCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/ListBotVersionsCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/ListBuiltInIntentsCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/ListIntentsCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/ListSlotTypesCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ListSlotsCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/ListTestExecutionResultItemsCommand.d.ts +42 -0
  131. package/dist-types/ts3.4/commands/ListTestExecutionsCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/ListTestSetRecordsCommand.d.ts +39 -0
  133. package/dist-types/ts3.4/commands/ListTestSetsCommand.d.ts +35 -0
  134. package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/StartTestExecutionCommand.d.ts +39 -0
  138. package/dist-types/ts3.4/commands/StartTestSetGenerationCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +1 -1
  140. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
  141. package/dist-types/ts3.4/commands/UpdateTestSetCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  143. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  144. package/dist-types/ts3.4/models/models_0.d.ts +293 -362
  145. package/dist-types/ts3.4/models/models_1.d.ts +646 -0
  146. package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  151. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  152. package/package.json +29 -29
@@ -0,0 +1,111 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { ListTestSetsRequest, ListTestSetsResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTestSetsCommand}.
14
+ */
15
+ export interface ListTestSetsCommandInput extends ListTestSetsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTestSetsCommand}.
21
+ */
22
+ export interface ListTestSetsCommandOutput extends ListTestSetsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The list of the test sets</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LexModelsV2Client, ListTestSetsCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
31
+ * // const { LexModelsV2Client, ListTestSetsCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
32
+ * const client = new LexModelsV2Client(config);
33
+ * const input = { // ListTestSetsRequest
34
+ * sortBy: { // TestSetSortBy
35
+ * attribute: "TestSetName" || "LastUpdatedDateTime", // required
36
+ * order: "Ascending" || "Descending", // required
37
+ * },
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListTestSetsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListTestSetsResponse
44
+ * // testSets: [ // TestSetSummaryList
45
+ * // { // TestSetSummary
46
+ * // testSetId: "STRING_VALUE",
47
+ * // testSetName: "STRING_VALUE",
48
+ * // description: "STRING_VALUE",
49
+ * // modality: "Text" || "Audio",
50
+ * // status: "Importing" || "PendingAnnotation" || "Deleting" || "ValidationError" || "Ready",
51
+ * // roleArn: "STRING_VALUE",
52
+ * // numTurns: Number("int"),
53
+ * // storageLocation: { // TestSetStorageLocation
54
+ * // s3BucketName: "STRING_VALUE", // required
55
+ * // s3Path: "STRING_VALUE", // required
56
+ * // kmsKeyArn: "STRING_VALUE",
57
+ * // },
58
+ * // creationDateTime: new Date("TIMESTAMP"),
59
+ * // lastUpdatedDateTime: new Date("TIMESTAMP"),
60
+ * // },
61
+ * // ],
62
+ * // nextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListTestSetsCommandInput - {@link ListTestSetsCommandInput}
68
+ * @returns {@link ListTestSetsCommandOutput}
69
+ * @see {@link ListTestSetsCommandInput} for command's `input` shape.
70
+ * @see {@link ListTestSetsCommandOutput} 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 ListTestSetsCommand extends $Command<ListTestSetsCommandInput, ListTestSetsCommandOutput, LexModelsV2ClientResolvedConfig> {
93
+ readonly input: ListTestSetsCommandInput;
94
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
95
+ /**
96
+ * @public
97
+ */
98
+ constructor(input: ListTestSetsCommandInput);
99
+ /**
100
+ * @internal
101
+ */
102
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTestSetsCommandInput, ListTestSetsCommandOutput>;
103
+ /**
104
+ * @internal
105
+ */
106
+ private serialize;
107
+ /**
108
+ * @internal
109
+ */
110
+ private deserialize;
111
+ }
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
- import { SearchAssociatedTranscriptsRequest, SearchAssociatedTranscriptsResponse } from "../models/models_0";
5
+ import { SearchAssociatedTranscriptsRequest, SearchAssociatedTranscriptsResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
- import { StartBotRecommendationRequest, StartBotRecommendationResponse } from "../models/models_0";
5
+ import { StartBotRecommendationRequest, StartBotRecommendationResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
- import { StartImportRequest, StartImportResponse } from "../models/models_0";
5
+ import { StartImportRequest, StartImportResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -63,6 +63,24 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
63
63
  * botVersion: "STRING_VALUE", // required
64
64
  * localeId: "STRING_VALUE", // required
65
65
  * },
66
+ * testSetImportResourceSpecification: { // TestSetImportResourceSpecification
67
+ * testSetName: "STRING_VALUE", // required
68
+ * description: "STRING_VALUE",
69
+ * roleArn: "STRING_VALUE", // required
70
+ * storageLocation: { // TestSetStorageLocation
71
+ * s3BucketName: "STRING_VALUE", // required
72
+ * s3Path: "STRING_VALUE", // required
73
+ * kmsKeyArn: "STRING_VALUE",
74
+ * },
75
+ * importInputLocation: { // TestSetImportInputLocation
76
+ * s3BucketName: "STRING_VALUE", // required
77
+ * s3Path: "STRING_VALUE", // required
78
+ * },
79
+ * modality: "Text" || "Audio", // required
80
+ * testSetTags: {
81
+ * "<keys>": "STRING_VALUE",
82
+ * },
83
+ * },
66
84
  * },
67
85
  * mergeStrategy: "Overwrite" || "FailOnConflict" || "Append", // required
68
86
  * filePassword: "STRING_VALUE",
@@ -101,6 +119,24 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
101
119
  * // botVersion: "STRING_VALUE", // required
102
120
  * // localeId: "STRING_VALUE", // required
103
121
  * // },
122
+ * // testSetImportResourceSpecification: { // TestSetImportResourceSpecification
123
+ * // testSetName: "STRING_VALUE", // required
124
+ * // description: "STRING_VALUE",
125
+ * // roleArn: "STRING_VALUE", // required
126
+ * // storageLocation: { // TestSetStorageLocation
127
+ * // s3BucketName: "STRING_VALUE", // required
128
+ * // s3Path: "STRING_VALUE", // required
129
+ * // kmsKeyArn: "STRING_VALUE",
130
+ * // },
131
+ * // importInputLocation: { // TestSetImportInputLocation
132
+ * // s3BucketName: "STRING_VALUE", // required
133
+ * // s3Path: "STRING_VALUE", // required
134
+ * // },
135
+ * // modality: "Text" || "Audio", // required
136
+ * // testSetTags: {
137
+ * // "<keys>": "STRING_VALUE",
138
+ * // },
139
+ * // },
104
140
  * // },
105
141
  * // mergeStrategy: "Overwrite" || "FailOnConflict" || "Append",
106
142
  * // importStatus: "InProgress" || "Completed" || "Failed" || "Deleting",
@@ -0,0 +1,117 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { StartTestExecutionRequest, StartTestExecutionResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartTestExecutionCommand}.
14
+ */
15
+ export interface StartTestExecutionCommandInput extends StartTestExecutionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartTestExecutionCommand}.
21
+ */
22
+ export interface StartTestExecutionCommandOutput extends StartTestExecutionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The action to start test set execution.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LexModelsV2Client, StartTestExecutionCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
31
+ * // const { LexModelsV2Client, StartTestExecutionCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
32
+ * const client = new LexModelsV2Client(config);
33
+ * const input = { // StartTestExecutionRequest
34
+ * testSetId: "STRING_VALUE", // required
35
+ * target: { // TestExecutionTarget
36
+ * botAliasTarget: { // BotAliasTestExecutionTarget
37
+ * botId: "STRING_VALUE", // required
38
+ * botAliasId: "STRING_VALUE", // required
39
+ * localeId: "STRING_VALUE", // required
40
+ * },
41
+ * },
42
+ * apiMode: "Streaming" || "NonStreaming", // required
43
+ * testExecutionModality: "Text" || "Audio",
44
+ * };
45
+ * const command = new StartTestExecutionCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // StartTestExecutionResponse
48
+ * // testExecutionId: "STRING_VALUE",
49
+ * // creationDateTime: new Date("TIMESTAMP"),
50
+ * // testSetId: "STRING_VALUE",
51
+ * // target: { // TestExecutionTarget
52
+ * // botAliasTarget: { // BotAliasTestExecutionTarget
53
+ * // botId: "STRING_VALUE", // required
54
+ * // botAliasId: "STRING_VALUE", // required
55
+ * // localeId: "STRING_VALUE", // required
56
+ * // },
57
+ * // },
58
+ * // apiMode: "Streaming" || "NonStreaming",
59
+ * // testExecutionModality: "Text" || "Audio",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param StartTestExecutionCommandInput - {@link StartTestExecutionCommandInput}
65
+ * @returns {@link StartTestExecutionCommandOutput}
66
+ * @see {@link StartTestExecutionCommandInput} for command's `input` shape.
67
+ * @see {@link StartTestExecutionCommandOutput} for command's `response` shape.
68
+ * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>The action that you tried to perform couldn't be completed because
72
+ * the resource is in a conflicting state. For example, deleting a bot
73
+ * that is in the CREATING state. Try your request again. </p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>The service encountered an unexpected condition. Try your request
77
+ * again.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>You asked to describe a resource that doesn't exist. Check the
81
+ * resource that you are requesting and try again.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>You have reached a quota for your bot. </p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>Your request rate is too high. Reduce the frequency of
88
+ * requests.</p>
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * <p>One of the input parameters in your request isn't valid. Check the
92
+ * parameters and try your request again.</p>
93
+ *
94
+ * @throws {@link LexModelsV2ServiceException}
95
+ * <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
96
+ *
97
+ */
98
+ export declare class StartTestExecutionCommand extends $Command<StartTestExecutionCommandInput, StartTestExecutionCommandOutput, LexModelsV2ClientResolvedConfig> {
99
+ readonly input: StartTestExecutionCommandInput;
100
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
101
+ /**
102
+ * @public
103
+ */
104
+ constructor(input: StartTestExecutionCommandInput);
105
+ /**
106
+ * @internal
107
+ */
108
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartTestExecutionCommandInput, StartTestExecutionCommandOutput>;
109
+ /**
110
+ * @internal
111
+ */
112
+ private serialize;
113
+ /**
114
+ * @internal
115
+ */
116
+ private deserialize;
117
+ }
@@ -0,0 +1,144 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { StartTestSetGenerationRequest, StartTestSetGenerationResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartTestSetGenerationCommand}.
14
+ */
15
+ export interface StartTestSetGenerationCommandInput extends StartTestSetGenerationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartTestSetGenerationCommand}.
21
+ */
22
+ export interface StartTestSetGenerationCommandOutput extends StartTestSetGenerationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The action to start the generation of test set.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LexModelsV2Client, StartTestSetGenerationCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
31
+ * // const { LexModelsV2Client, StartTestSetGenerationCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
32
+ * const client = new LexModelsV2Client(config);
33
+ * const input = { // StartTestSetGenerationRequest
34
+ * testSetName: "STRING_VALUE", // required
35
+ * description: "STRING_VALUE",
36
+ * storageLocation: { // TestSetStorageLocation
37
+ * s3BucketName: "STRING_VALUE", // required
38
+ * s3Path: "STRING_VALUE", // required
39
+ * kmsKeyArn: "STRING_VALUE",
40
+ * },
41
+ * generationDataSource: { // TestSetGenerationDataSource
42
+ * conversationLogsDataSource: { // ConversationLogsDataSource
43
+ * botId: "STRING_VALUE", // required
44
+ * botAliasId: "STRING_VALUE", // required
45
+ * localeId: "STRING_VALUE", // required
46
+ * filter: { // ConversationLogsDataSourceFilterBy
47
+ * startTime: new Date("TIMESTAMP"), // required
48
+ * endTime: new Date("TIMESTAMP"), // required
49
+ * inputMode: "Speech" || "Text", // required
50
+ * },
51
+ * },
52
+ * },
53
+ * roleArn: "STRING_VALUE", // required
54
+ * testSetTags: { // TagMap
55
+ * "<keys>": "STRING_VALUE",
56
+ * },
57
+ * };
58
+ * const command = new StartTestSetGenerationCommand(input);
59
+ * const response = await client.send(command);
60
+ * // { // StartTestSetGenerationResponse
61
+ * // testSetGenerationId: "STRING_VALUE",
62
+ * // creationDateTime: new Date("TIMESTAMP"),
63
+ * // testSetGenerationStatus: "Generating" || "Ready" || "Failed" || "Pending",
64
+ * // testSetName: "STRING_VALUE",
65
+ * // description: "STRING_VALUE",
66
+ * // storageLocation: { // TestSetStorageLocation
67
+ * // s3BucketName: "STRING_VALUE", // required
68
+ * // s3Path: "STRING_VALUE", // required
69
+ * // kmsKeyArn: "STRING_VALUE",
70
+ * // },
71
+ * // generationDataSource: { // TestSetGenerationDataSource
72
+ * // conversationLogsDataSource: { // ConversationLogsDataSource
73
+ * // botId: "STRING_VALUE", // required
74
+ * // botAliasId: "STRING_VALUE", // required
75
+ * // localeId: "STRING_VALUE", // required
76
+ * // filter: { // ConversationLogsDataSourceFilterBy
77
+ * // startTime: new Date("TIMESTAMP"), // required
78
+ * // endTime: new Date("TIMESTAMP"), // required
79
+ * // inputMode: "Speech" || "Text", // required
80
+ * // },
81
+ * // },
82
+ * // },
83
+ * // roleArn: "STRING_VALUE",
84
+ * // testSetTags: { // TagMap
85
+ * // "<keys>": "STRING_VALUE",
86
+ * // },
87
+ * // };
88
+ *
89
+ * ```
90
+ *
91
+ * @param StartTestSetGenerationCommandInput - {@link StartTestSetGenerationCommandInput}
92
+ * @returns {@link StartTestSetGenerationCommandOutput}
93
+ * @see {@link StartTestSetGenerationCommandInput} for command's `input` shape.
94
+ * @see {@link StartTestSetGenerationCommandOutput} for command's `response` shape.
95
+ * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
96
+ *
97
+ * @throws {@link ConflictException} (client fault)
98
+ * <p>The action that you tried to perform couldn't be completed because
99
+ * the resource is in a conflicting state. For example, deleting a bot
100
+ * that is in the CREATING state. Try your request again. </p>
101
+ *
102
+ * @throws {@link InternalServerException} (server fault)
103
+ * <p>The service encountered an unexpected condition. Try your request
104
+ * again.</p>
105
+ *
106
+ * @throws {@link ResourceNotFoundException} (client fault)
107
+ * <p>You asked to describe a resource that doesn't exist. Check the
108
+ * resource that you are requesting and try again.</p>
109
+ *
110
+ * @throws {@link ServiceQuotaExceededException} (client fault)
111
+ * <p>You have reached a quota for your bot. </p>
112
+ *
113
+ * @throws {@link ThrottlingException} (client fault)
114
+ * <p>Your request rate is too high. Reduce the frequency of
115
+ * requests.</p>
116
+ *
117
+ * @throws {@link ValidationException} (client fault)
118
+ * <p>One of the input parameters in your request isn't valid. Check the
119
+ * parameters and try your request again.</p>
120
+ *
121
+ * @throws {@link LexModelsV2ServiceException}
122
+ * <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
123
+ *
124
+ */
125
+ export declare class StartTestSetGenerationCommand extends $Command<StartTestSetGenerationCommandInput, StartTestSetGenerationCommandOutput, LexModelsV2ClientResolvedConfig> {
126
+ readonly input: StartTestSetGenerationCommandInput;
127
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
128
+ /**
129
+ * @public
130
+ */
131
+ constructor(input: StartTestSetGenerationCommandInput);
132
+ /**
133
+ * @internal
134
+ */
135
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartTestSetGenerationCommandInput, StartTestSetGenerationCommandOutput>;
136
+ /**
137
+ * @internal
138
+ */
139
+ private serialize;
140
+ /**
141
+ * @internal
142
+ */
143
+ private deserialize;
144
+ }
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
- import { StopBotRecommendationRequest, StopBotRecommendationResponse } from "../models/models_0";
5
+ import { StopBotRecommendationRequest, StopBotRecommendationResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
- import { TagResourceRequest } from "../models/models_0";
6
- import { TagResourceResponse } from "../models/models_1";
5
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
7
6
  /**
8
7
  * @public
9
8
  */
@@ -57,8 +57,11 @@ export interface UpdateExportCommandOutput extends UpdateExportResponse, __Metad
57
57
  * // botVersion: "STRING_VALUE", // required
58
58
  * // localeId: "STRING_VALUE", // required
59
59
  * // },
60
+ * // testSetExportSpecification: { // TestSetExportSpecification
61
+ * // testSetId: "STRING_VALUE", // required
62
+ * // },
60
63
  * // },
61
- * // fileFormat: "LexJson" || "TSV",
64
+ * // fileFormat: "LexJson" || "TSV" || "CSV",
62
65
  * // exportStatus: "InProgress" || "Completed" || "Failed" || "Deleting",
63
66
  * // creationDateTime: new Date("TIMESTAMP"),
64
67
  * // lastUpdatedDateTime: new Date("TIMESTAMP"),
@@ -0,0 +1,113 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
5
+ import { UpdateTestSetRequest, UpdateTestSetResponse } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateTestSetCommand}.
14
+ */
15
+ export interface UpdateTestSetCommandInput extends UpdateTestSetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateTestSetCommand}.
21
+ */
22
+ export interface UpdateTestSetCommandOutput extends UpdateTestSetResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The action to update the test set.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { LexModelsV2Client, UpdateTestSetCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
31
+ * // const { LexModelsV2Client, UpdateTestSetCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
32
+ * const client = new LexModelsV2Client(config);
33
+ * const input = { // UpdateTestSetRequest
34
+ * testSetId: "STRING_VALUE", // required
35
+ * testSetName: "STRING_VALUE", // required
36
+ * description: "STRING_VALUE",
37
+ * };
38
+ * const command = new UpdateTestSetCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // UpdateTestSetResponse
41
+ * // testSetId: "STRING_VALUE",
42
+ * // testSetName: "STRING_VALUE",
43
+ * // description: "STRING_VALUE",
44
+ * // modality: "Text" || "Audio",
45
+ * // status: "Importing" || "PendingAnnotation" || "Deleting" || "ValidationError" || "Ready",
46
+ * // roleArn: "STRING_VALUE",
47
+ * // numTurns: Number("int"),
48
+ * // storageLocation: { // TestSetStorageLocation
49
+ * // s3BucketName: "STRING_VALUE", // required
50
+ * // s3Path: "STRING_VALUE", // required
51
+ * // kmsKeyArn: "STRING_VALUE",
52
+ * // },
53
+ * // creationDateTime: new Date("TIMESTAMP"),
54
+ * // lastUpdatedDateTime: new Date("TIMESTAMP"),
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param UpdateTestSetCommandInput - {@link UpdateTestSetCommandInput}
60
+ * @returns {@link UpdateTestSetCommandOutput}
61
+ * @see {@link UpdateTestSetCommandInput} for command's `input` shape.
62
+ * @see {@link UpdateTestSetCommandOutput} for command's `response` shape.
63
+ * @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
64
+ *
65
+ * @throws {@link ConflictException} (client fault)
66
+ * <p>The action that you tried to perform couldn't be completed because
67
+ * the resource is in a conflicting state. For example, deleting a bot
68
+ * that is in the CREATING state. Try your request again. </p>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p>The service encountered an unexpected condition. Try your request
72
+ * again.</p>
73
+ *
74
+ * @throws {@link PreconditionFailedException} (client fault)
75
+ * <p>Your request couldn't be completed because one or more request
76
+ * fields aren't valid. Check the fields in your request and try
77
+ * again.</p>
78
+ *
79
+ * @throws {@link ServiceQuotaExceededException} (client fault)
80
+ * <p>You have reached a quota for your bot. </p>
81
+ *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>Your request rate is too high. Reduce the frequency of
84
+ * requests.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>One of the input parameters in your request isn't valid. Check the
88
+ * parameters and try your request again.</p>
89
+ *
90
+ * @throws {@link LexModelsV2ServiceException}
91
+ * <p>Base exception class for all service exceptions from LexModelsV2 service.</p>
92
+ *
93
+ */
94
+ export declare class UpdateTestSetCommand extends $Command<UpdateTestSetCommandInput, UpdateTestSetCommandOutput, LexModelsV2ClientResolvedConfig> {
95
+ readonly input: UpdateTestSetCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: UpdateTestSetCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateTestSetCommandInput, UpdateTestSetCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -12,6 +12,7 @@ export * from "./CreateResourcePolicyCommand";
12
12
  export * from "./CreateResourcePolicyStatementCommand";
13
13
  export * from "./CreateSlotCommand";
14
14
  export * from "./CreateSlotTypeCommand";
15
+ export * from "./CreateTestSetDiscrepancyReportCommand";
15
16
  export * from "./CreateUploadUrlCommand";
16
17
  export * from "./DeleteBotAliasCommand";
17
18
  export * from "./DeleteBotCommand";
@@ -25,6 +26,7 @@ export * from "./DeleteResourcePolicyCommand";
25
26
  export * from "./DeleteResourcePolicyStatementCommand";
26
27
  export * from "./DeleteSlotCommand";
27
28
  export * from "./DeleteSlotTypeCommand";
29
+ export * from "./DeleteTestSetCommand";
28
30
  export * from "./DeleteUtterancesCommand";
29
31
  export * from "./DescribeBotAliasCommand";
30
32
  export * from "./DescribeBotCommand";
@@ -38,6 +40,11 @@ export * from "./DescribeIntentCommand";
38
40
  export * from "./DescribeResourcePolicyCommand";
39
41
  export * from "./DescribeSlotCommand";
40
42
  export * from "./DescribeSlotTypeCommand";
43
+ export * from "./DescribeTestExecutionCommand";
44
+ export * from "./DescribeTestSetCommand";
45
+ export * from "./DescribeTestSetDiscrepancyReportCommand";
46
+ export * from "./DescribeTestSetGenerationCommand";
47
+ export * from "./GetTestExecutionArtifactsUrlCommand";
41
48
  export * from "./ListAggregatedUtterancesCommand";
42
49
  export * from "./ListBotAliasesCommand";
43
50
  export * from "./ListBotLocalesCommand";
@@ -54,9 +61,15 @@ export * from "./ListRecommendedIntentsCommand";
54
61
  export * from "./ListSlotTypesCommand";
55
62
  export * from "./ListSlotsCommand";
56
63
  export * from "./ListTagsForResourceCommand";
64
+ export * from "./ListTestExecutionResultItemsCommand";
65
+ export * from "./ListTestExecutionsCommand";
66
+ export * from "./ListTestSetRecordsCommand";
67
+ export * from "./ListTestSetsCommand";
57
68
  export * from "./SearchAssociatedTranscriptsCommand";
58
69
  export * from "./StartBotRecommendationCommand";
59
70
  export * from "./StartImportCommand";
71
+ export * from "./StartTestExecutionCommand";
72
+ export * from "./StartTestSetGenerationCommand";
60
73
  export * from "./StopBotRecommendationCommand";
61
74
  export * from "./TagResourceCommand";
62
75
  export * from "./UntagResourceCommand";
@@ -69,3 +82,4 @@ export * from "./UpdateIntentCommand";
69
82
  export * from "./UpdateResourcePolicyCommand";
70
83
  export * from "./UpdateSlotCommand";
71
84
  export * from "./UpdateSlotTypeCommand";
85
+ export * from "./UpdateTestSetCommand";
@@ -13,7 +13,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
13
13
  defaultSigningName: string;
14
14
  };
15
15
  export interface EndpointParameters extends __EndpointParameters {
16
- Region: string;
16
+ Region?: string;
17
17
  UseDualStack?: boolean;
18
18
  UseFIPS?: boolean;
19
19
  Endpoint?: string;