@aws-sdk/client-lex-models-v2 3.620.1 → 3.622.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 (29) hide show
  1. package/dist-cjs/index.js +24 -24
  2. package/dist-es/LexModelsV2Client.js +12 -18
  3. package/dist-es/models/models_0.js +4 -5
  4. package/dist-es/models/models_1.js +5 -1
  5. package/dist-types/LexModelsV2Client.d.ts +2 -4
  6. package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  7. package/dist-types/commands/CreateBotLocaleCommand.d.ts +36 -0
  8. package/dist-types/commands/CreateIntentCommand.d.ts +20 -0
  9. package/dist-types/commands/CreateResourcePolicyStatementCommand.d.ts +2 -0
  10. package/dist-types/commands/DeleteResourcePolicyStatementCommand.d.ts +2 -0
  11. package/dist-types/commands/DescribeBotLocaleCommand.d.ts +20 -1
  12. package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +1 -2
  13. package/dist-types/commands/DescribeIntentCommand.d.ts +10 -0
  14. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +36 -0
  15. package/dist-types/commands/UpdateIntentCommand.d.ts +20 -0
  16. package/dist-types/models/models_0.d.ts +65 -160
  17. package/dist-types/models/models_1.d.ts +160 -1
  18. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  19. package/dist-types/runtimeConfig.d.ts +2 -2
  20. package/dist-types/runtimeConfig.native.d.ts +2 -2
  21. package/dist-types/ts3.4/LexModelsV2Client.d.ts +6 -8
  22. package/dist-types/ts3.4/commands/DescribeBotLocaleCommand.d.ts +2 -4
  23. package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +4 -2
  24. package/dist-types/ts3.4/models/models_0.d.ts +18 -33
  25. package/dist-types/ts3.4/models/models_1.d.ts +34 -1
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  29. package/package.json +11 -11
package/dist-cjs/index.js CHANGED
@@ -52,6 +52,7 @@ __export(src_exports, {
52
52
  BatchCreateCustomVocabularyItemCommand: () => BatchCreateCustomVocabularyItemCommand,
53
53
  BatchDeleteCustomVocabularyItemCommand: () => BatchDeleteCustomVocabularyItemCommand,
54
54
  BatchUpdateCustomVocabularyItemCommand: () => BatchUpdateCustomVocabularyItemCommand,
55
+ BedrockTraceStatus: () => BedrockTraceStatus,
55
56
  BotAliasReplicationStatus: () => BotAliasReplicationStatus,
56
57
  BotAliasStatus: () => BotAliasStatus,
57
58
  BotFilterName: () => BotFilterName,
@@ -390,25 +391,27 @@ var _LexModelsV2Client = class _LexModelsV2Client extends import_smithy_client.C
390
391
  constructor(...[configuration]) {
391
392
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
392
393
  const _config_1 = resolveClientEndpointParameters(_config_0);
393
- const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
394
- const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
395
- const _config_4 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_3);
396
- const _config_5 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_4);
397
- const _config_6 = (0, import_middleware_retry.resolveRetryConfig)(_config_5);
394
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
395
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
396
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
397
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
398
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
398
399
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
399
400
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
400
401
  super(_config_8);
401
402
  this.config = _config_8;
402
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
403
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
404
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
405
403
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
406
404
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
407
405
  this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
406
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
407
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
408
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
408
409
  this.middlewareStack.use(
409
410
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
410
- httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
411
- identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
411
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultLexModelsV2HttpAuthSchemeParametersProvider,
412
+ identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
413
+ "aws.auth#sigv4": config.credentials
414
+ })
412
415
  })
413
416
  );
414
417
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -421,14 +424,6 @@ var _LexModelsV2Client = class _LexModelsV2Client extends import_smithy_client.C
421
424
  destroy() {
422
425
  super.destroy();
423
426
  }
424
- getDefaultHttpAuthSchemeParametersProvider() {
425
- return import_httpAuthSchemeProvider.defaultLexModelsV2HttpAuthSchemeParametersProvider;
426
- }
427
- getIdentityProviderConfigProvider() {
428
- return async (config) => new import_core.DefaultIdentityProviderConfig({
429
- "aws.auth#sigv4": config.credentials
430
- });
431
- }
432
427
  };
433
428
  __name(_LexModelsV2Client, "LexModelsV2Client");
434
429
  var LexModelsV2Client = _LexModelsV2Client;
@@ -717,6 +712,10 @@ var _ValidationException = class _ValidationException extends LexModelsV2Service
717
712
  };
718
713
  __name(_ValidationException, "ValidationException");
719
714
  var ValidationException = _ValidationException;
715
+ var BedrockTraceStatus = {
716
+ DISABLED: "DISABLED",
717
+ ENABLED: "ENABLED"
718
+ };
720
719
  var BotAliasReplicationStatus = {
721
720
  Available: "Available",
722
721
  Creating: "Creating",
@@ -940,11 +939,6 @@ var CreateExportRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
940
939
  ...obj,
941
940
  ...obj.filePassword && { filePassword: import_smithy_client.SENSITIVE_STRING }
942
941
  }), "CreateExportRequestFilterSensitiveLog");
943
- var EncryptionSettingFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
944
- ...obj,
945
- ...obj.botLocaleExportPassword && { botLocaleExportPassword: import_smithy_client.SENSITIVE_STRING },
946
- ...obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: import_smithy_client.SENSITIVE_STRING }
947
- }), "EncryptionSettingFilterSensitiveLog");
948
942
 
949
943
  // src/protocols/Aws_restJson1.ts
950
944
  var se_BatchCreateCustomVocabularyItemCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -6538,6 +6532,11 @@ var SearchOrder = {
6538
6532
  Ascending: "Ascending",
6539
6533
  Descending: "Descending"
6540
6534
  };
6535
+ var EncryptionSettingFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
6536
+ ...obj,
6537
+ ...obj.botLocaleExportPassword && { botLocaleExportPassword: import_smithy_client.SENSITIVE_STRING },
6538
+ ...obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: import_smithy_client.SENSITIVE_STRING }
6539
+ }), "EncryptionSettingFilterSensitiveLog");
6541
6540
  var DescribeBotRecommendationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
6542
6541
  ...obj,
6543
6542
  ...obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }
@@ -8496,6 +8495,7 @@ var waitUntilBotVersionAvailable = /* @__PURE__ */ __name(async (params, input)
8496
8495
  ServiceQuotaExceededException,
8497
8496
  ThrottlingException,
8498
8497
  ValidationException,
8498
+ BedrockTraceStatus,
8499
8499
  BotAliasReplicationStatus,
8500
8500
  BotAliasStatus,
8501
8501
  BotFilterName,
@@ -8534,7 +8534,6 @@ var waitUntilBotVersionAvailable = /* @__PURE__ */ __name(async (params, input)
8534
8534
  CustomVocabularyStatus,
8535
8535
  ImportStatus,
8536
8536
  CreateExportRequestFilterSensitiveLog,
8537
- EncryptionSettingFilterSensitiveLog,
8538
8537
  TranscriptFormat,
8539
8538
  GenerationStatus,
8540
8539
  MergeStrategy,
@@ -8570,6 +8569,7 @@ var waitUntilBotVersionAvailable = /* @__PURE__ */ __name(async (params, input)
8570
8569
  TestSetSortAttribute,
8571
8570
  UtteranceContentType,
8572
8571
  SearchOrder,
8572
+ EncryptionSettingFilterSensitiveLog,
8573
8573
  DescribeBotRecommendationResponseFilterSensitiveLog,
8574
8574
  StartBotRecommendationRequestFilterSensitiveLog,
8575
8575
  StartBotRecommendationResponseFilterSensitiveLog,
@@ -17,36 +17,30 @@ export class LexModelsV2Client extends __Client {
17
17
  constructor(...[configuration]) {
18
18
  const _config_0 = __getRuntimeConfig(configuration || {});
19
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
20
- const _config_2 = resolveRegionConfig(_config_1);
21
- const _config_3 = resolveEndpointConfig(_config_2);
22
- const _config_4 = resolveHostHeaderConfig(_config_3);
23
- const _config_5 = resolveUserAgentConfig(_config_4);
24
- const _config_6 = resolveRetryConfig(_config_5);
20
+ const _config_2 = resolveUserAgentConfig(_config_1);
21
+ const _config_3 = resolveRetryConfig(_config_2);
22
+ const _config_4 = resolveRegionConfig(_config_3);
23
+ const _config_5 = resolveHostHeaderConfig(_config_4);
24
+ const _config_6 = resolveEndpointConfig(_config_5);
25
25
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
27
  super(_config_8);
28
28
  this.config = _config_8;
29
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
30
- this.middlewareStack.use(getLoggerPlugin(this.config));
31
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
32
29
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
30
  this.middlewareStack.use(getRetryPlugin(this.config));
34
31
  this.middlewareStack.use(getContentLengthPlugin(this.config));
32
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
33
+ this.middlewareStack.use(getLoggerPlugin(this.config));
34
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
35
35
  this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
- httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
- identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
36
+ httpAuthSchemeParametersProvider: defaultLexModelsV2HttpAuthSchemeParametersProvider,
37
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
38
+ "aws.auth#sigv4": config.credentials,
39
+ }),
38
40
  }));
39
41
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
40
42
  }
41
43
  destroy() {
42
44
  super.destroy();
43
45
  }
44
- getDefaultHttpAuthSchemeParametersProvider() {
45
- return defaultLexModelsV2HttpAuthSchemeParametersProvider;
46
- }
47
- getIdentityProviderConfigProvider() {
48
- return async (config) => new DefaultIdentityProviderConfig({
49
- "aws.auth#sigv4": config.credentials,
50
- });
51
- }
52
46
  }
@@ -230,6 +230,10 @@ export class ValidationException extends __BaseException {
230
230
  Object.setPrototypeOf(this, ValidationException.prototype);
231
231
  }
232
232
  }
233
+ export const BedrockTraceStatus = {
234
+ DISABLED: "DISABLED",
235
+ ENABLED: "ENABLED",
236
+ };
233
237
  export const BotAliasReplicationStatus = {
234
238
  Available: "Available",
235
239
  Creating: "Creating",
@@ -443,8 +447,3 @@ export const CreateExportRequestFilterSensitiveLog = (obj) => ({
443
447
  ...obj,
444
448
  ...(obj.filePassword && { filePassword: SENSITIVE_STRING }),
445
449
  });
446
- export const EncryptionSettingFilterSensitiveLog = (obj) => ({
447
- ...obj,
448
- ...(obj.botLocaleExportPassword && { botLocaleExportPassword: SENSITIVE_STRING }),
449
- ...(obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: SENSITIVE_STRING }),
450
- });
@@ -1,5 +1,4 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { EncryptionSettingFilterSensitiveLog, } from "./models_0";
3
2
  export const TranscriptFormat = {
4
3
  Lex: "Lex",
5
4
  };
@@ -160,6 +159,11 @@ export const SearchOrder = {
160
159
  Ascending: "Ascending",
161
160
  Descending: "Descending",
162
161
  };
162
+ export const EncryptionSettingFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ ...(obj.botLocaleExportPassword && { botLocaleExportPassword: SENSITIVE_STRING }),
165
+ ...(obj.associatedTranscriptsPassword && { associatedTranscriptsPassword: SENSITIVE_STRING }),
166
+ });
163
167
  export const DescribeBotRecommendationResponseFilterSensitiveLog = (obj) => ({
164
168
  ...obj,
165
169
  ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }),
@@ -233,7 +233,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
233
233
  /**
234
234
  * @public
235
235
  */
236
- export type LexModelsV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & HostHeaderInputConfig & UserAgentInputConfig & RetryInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
236
+ export type LexModelsV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
237
237
  /**
238
238
  * @public
239
239
  *
@@ -244,7 +244,7 @@ export interface LexModelsV2ClientConfig extends LexModelsV2ClientConfigType {
244
244
  /**
245
245
  * @public
246
246
  */
247
- export type LexModelsV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HostHeaderResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
247
+ export type LexModelsV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
248
248
  /**
249
249
  * @public
250
250
  *
@@ -268,6 +268,4 @@ export declare class LexModelsV2Client extends __Client<__HttpHandlerOptions, Se
268
268
  * Otherwise, sockets might stay open for quite a long time before the server terminates them.
269
269
  */
270
270
  destroy(): void;
271
- private getDefaultHttpAuthSchemeParametersProvider;
272
- private getIdentityProviderConfigProvider;
273
271
  }
@@ -30,12 +30,12 @@ export declare const defaultLexModelsV2HttpAuthSchemeProvider: LexModelsV2HttpAu
30
30
  */
31
31
  export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
32
  /**
33
- * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
33
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
34
  * @internal
35
35
  */
36
36
  httpAuthSchemes?: HttpAuthScheme[];
37
37
  /**
38
- * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
38
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
39
  * @internal
40
40
  */
41
41
  httpAuthSchemeProvider?: LexModelsV2HttpAuthSchemeProvider;
@@ -45,12 +45,12 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
45
45
  */
46
46
  export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
47
  /**
48
- * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
48
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
49
  * @internal
50
50
  */
51
51
  readonly httpAuthSchemes: HttpAuthScheme[];
52
52
  /**
53
- * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
53
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
54
  * @internal
55
55
  */
56
56
  readonly httpAuthSchemeProvider: LexModelsV2HttpAuthSchemeProvider;
@@ -53,6 +53,12 @@ declare const CreateBotLocaleCommand_base: {
53
53
  * enabled: true || false, // required
54
54
  * bedrockModelSpecification: { // BedrockModelSpecification
55
55
  * modelArn: "STRING_VALUE", // required
56
+ * guardrail: { // BedrockGuardrailConfiguration
57
+ * identifier: "STRING_VALUE", // required
58
+ * version: "STRING_VALUE", // required
59
+ * },
60
+ * traceStatus: "ENABLED" || "DISABLED",
61
+ * customPrompt: "STRING_VALUE",
56
62
  * },
57
63
  * },
58
64
  * },
@@ -61,12 +67,24 @@ declare const CreateBotLocaleCommand_base: {
61
67
  * enabled: true || false, // required
62
68
  * bedrockModelSpecification: {
63
69
  * modelArn: "STRING_VALUE", // required
70
+ * guardrail: {
71
+ * identifier: "STRING_VALUE", // required
72
+ * version: "STRING_VALUE", // required
73
+ * },
74
+ * traceStatus: "ENABLED" || "DISABLED",
75
+ * customPrompt: "STRING_VALUE",
64
76
  * },
65
77
  * },
66
78
  * sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
67
79
  * enabled: true || false, // required
68
80
  * bedrockModelSpecification: {
69
81
  * modelArn: "STRING_VALUE", // required
82
+ * guardrail: {
83
+ * identifier: "STRING_VALUE", // required
84
+ * version: "STRING_VALUE", // required
85
+ * },
86
+ * traceStatus: "ENABLED" || "DISABLED",
87
+ * customPrompt: "STRING_VALUE",
70
88
  * },
71
89
  * },
72
90
  * },
@@ -93,6 +111,12 @@ declare const CreateBotLocaleCommand_base: {
93
111
  * // enabled: true || false, // required
94
112
  * // bedrockModelSpecification: { // BedrockModelSpecification
95
113
  * // modelArn: "STRING_VALUE", // required
114
+ * // guardrail: { // BedrockGuardrailConfiguration
115
+ * // identifier: "STRING_VALUE", // required
116
+ * // version: "STRING_VALUE", // required
117
+ * // },
118
+ * // traceStatus: "ENABLED" || "DISABLED",
119
+ * // customPrompt: "STRING_VALUE",
96
120
  * // },
97
121
  * // },
98
122
  * // },
@@ -101,12 +125,24 @@ declare const CreateBotLocaleCommand_base: {
101
125
  * // enabled: true || false, // required
102
126
  * // bedrockModelSpecification: {
103
127
  * // modelArn: "STRING_VALUE", // required
128
+ * // guardrail: {
129
+ * // identifier: "STRING_VALUE", // required
130
+ * // version: "STRING_VALUE", // required
131
+ * // },
132
+ * // traceStatus: "ENABLED" || "DISABLED",
133
+ * // customPrompt: "STRING_VALUE",
104
134
  * // },
105
135
  * // },
106
136
  * // sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
107
137
  * // enabled: true || false, // required
108
138
  * // bedrockModelSpecification: {
109
139
  * // modelArn: "STRING_VALUE", // required
140
+ * // guardrail: {
141
+ * // identifier: "STRING_VALUE", // required
142
+ * // version: "STRING_VALUE", // required
143
+ * // },
144
+ * // traceStatus: "ENABLED" || "DISABLED",
145
+ * // customPrompt: "STRING_VALUE",
110
146
  * // },
111
147
  * // },
112
148
  * // },
@@ -522,10 +522,20 @@ declare const CreateIntentCommand_base: {
522
522
  * },
523
523
  * bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
524
524
  * bedrockKnowledgeBaseArn: "STRING_VALUE", // required
525
+ * exactResponse: true || false,
526
+ * exactResponseFields: { // BedrockKnowledgeStoreExactResponseFields
527
+ * answerField: "STRING_VALUE",
528
+ * },
525
529
  * },
526
530
  * },
527
531
  * bedrockModelConfiguration: { // BedrockModelSpecification
528
532
  * modelArn: "STRING_VALUE", // required
533
+ * guardrail: { // BedrockGuardrailConfiguration
534
+ * identifier: "STRING_VALUE", // required
535
+ * version: "STRING_VALUE", // required
536
+ * },
537
+ * traceStatus: "ENABLED" || "DISABLED",
538
+ * customPrompt: "STRING_VALUE",
529
539
  * },
530
540
  * },
531
541
  * };
@@ -984,10 +994,20 @@ declare const CreateIntentCommand_base: {
984
994
  * // },
985
995
  * // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
986
996
  * // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
997
+ * // exactResponse: true || false,
998
+ * // exactResponseFields: { // BedrockKnowledgeStoreExactResponseFields
999
+ * // answerField: "STRING_VALUE",
1000
+ * // },
987
1001
  * // },
988
1002
  * // },
989
1003
  * // bedrockModelConfiguration: { // BedrockModelSpecification
990
1004
  * // modelArn: "STRING_VALUE", // required
1005
+ * // guardrail: { // BedrockGuardrailConfiguration
1006
+ * // identifier: "STRING_VALUE", // required
1007
+ * // version: "STRING_VALUE", // required
1008
+ * // },
1009
+ * // traceStatus: "ENABLED" || "DISABLED",
1010
+ * // customPrompt: "STRING_VALUE",
991
1011
  * // },
992
1012
  * // },
993
1013
  * // };
@@ -32,6 +32,8 @@ declare const CreateResourcePolicyStatementCommand_base: {
32
32
  * policy. If a policy doesn't exist, a new policy is created.</p>
33
33
  * <p>You can't create a resource policy statement that allows
34
34
  * cross-account access.</p>
35
+ * <p>You need to add the <code>CreateResourcePolicy</code> or <code>UpdateResourcePolicy</code>
36
+ * action to the bot role in order to call the API.</p>
35
37
  * @example
36
38
  * Use a bare-bones client and the command you need to make an API call.
37
39
  * ```javascript
@@ -32,6 +32,8 @@ declare const DeleteResourcePolicyStatementCommand_base: {
32
32
  * statement ID that doesn't exist in the policy, or if the bot or bot
33
33
  * alias doesn't have a policy attached, Amazon Lex returns an
34
34
  * exception.</p>
35
+ * <p>You need to add the <code>DeleteResourcePolicy</code> or <code>UpdateResourcePolicy</code>
36
+ * action to the bot role in order to call the API.</p>
35
37
  * @example
36
38
  * Use a bare-bones client and the command you need to make an API call.
37
39
  * ```javascript
@@ -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 { DescribeBotLocaleRequest, DescribeBotLocaleResponse } from "../models/models_0";
4
+ import { DescribeBotLocaleRequest } from "../models/models_0";
5
+ import { DescribeBotLocaleResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -76,6 +77,12 @@ declare const DescribeBotLocaleCommand_base: {
76
77
  * // enabled: true || false, // required
77
78
  * // bedrockModelSpecification: { // BedrockModelSpecification
78
79
  * // modelArn: "STRING_VALUE", // required
80
+ * // guardrail: { // BedrockGuardrailConfiguration
81
+ * // identifier: "STRING_VALUE", // required
82
+ * // version: "STRING_VALUE", // required
83
+ * // },
84
+ * // traceStatus: "ENABLED" || "DISABLED",
85
+ * // customPrompt: "STRING_VALUE",
79
86
  * // },
80
87
  * // },
81
88
  * // },
@@ -84,12 +91,24 @@ declare const DescribeBotLocaleCommand_base: {
84
91
  * // enabled: true || false, // required
85
92
  * // bedrockModelSpecification: {
86
93
  * // modelArn: "STRING_VALUE", // required
94
+ * // guardrail: {
95
+ * // identifier: "STRING_VALUE", // required
96
+ * // version: "STRING_VALUE", // required
97
+ * // },
98
+ * // traceStatus: "ENABLED" || "DISABLED",
99
+ * // customPrompt: "STRING_VALUE",
87
100
  * // },
88
101
  * // },
89
102
  * // sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
90
103
  * // enabled: true || false, // required
91
104
  * // bedrockModelSpecification: {
92
105
  * // modelArn: "STRING_VALUE", // required
106
+ * // guardrail: {
107
+ * // identifier: "STRING_VALUE", // required
108
+ * // version: "STRING_VALUE", // required
109
+ * // },
110
+ * // traceStatus: "ENABLED" || "DISABLED",
111
+ * // customPrompt: "STRING_VALUE",
93
112
  * // },
94
113
  * // },
95
114
  * // },
@@ -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 { DescribeBotRecommendationRequest } from "../models/models_0";
5
- import { DescribeBotRecommendationResponse } from "../models/models_1";
4
+ import { DescribeBotRecommendationRequest, DescribeBotRecommendationResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -502,10 +502,20 @@ declare const DescribeIntentCommand_base: {
502
502
  * // },
503
503
  * // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
504
504
  * // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
505
+ * // exactResponse: true || false,
506
+ * // exactResponseFields: { // BedrockKnowledgeStoreExactResponseFields
507
+ * // answerField: "STRING_VALUE",
508
+ * // },
505
509
  * // },
506
510
  * // },
507
511
  * // bedrockModelConfiguration: { // BedrockModelSpecification
508
512
  * // modelArn: "STRING_VALUE", // required
513
+ * // guardrail: { // BedrockGuardrailConfiguration
514
+ * // identifier: "STRING_VALUE", // required
515
+ * // version: "STRING_VALUE", // required
516
+ * // },
517
+ * // traceStatus: "ENABLED" || "DISABLED",
518
+ * // customPrompt: "STRING_VALUE",
509
519
  * // },
510
520
  * // },
511
521
  * // };
@@ -50,6 +50,12 @@ declare const UpdateBotLocaleCommand_base: {
50
50
  * enabled: true || false, // required
51
51
  * bedrockModelSpecification: { // BedrockModelSpecification
52
52
  * modelArn: "STRING_VALUE", // required
53
+ * guardrail: { // BedrockGuardrailConfiguration
54
+ * identifier: "STRING_VALUE", // required
55
+ * version: "STRING_VALUE", // required
56
+ * },
57
+ * traceStatus: "ENABLED" || "DISABLED",
58
+ * customPrompt: "STRING_VALUE",
53
59
  * },
54
60
  * },
55
61
  * },
@@ -58,12 +64,24 @@ declare const UpdateBotLocaleCommand_base: {
58
64
  * enabled: true || false, // required
59
65
  * bedrockModelSpecification: {
60
66
  * modelArn: "STRING_VALUE", // required
67
+ * guardrail: {
68
+ * identifier: "STRING_VALUE", // required
69
+ * version: "STRING_VALUE", // required
70
+ * },
71
+ * traceStatus: "ENABLED" || "DISABLED",
72
+ * customPrompt: "STRING_VALUE",
61
73
  * },
62
74
  * },
63
75
  * sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
64
76
  * enabled: true || false, // required
65
77
  * bedrockModelSpecification: {
66
78
  * modelArn: "STRING_VALUE", // required
79
+ * guardrail: {
80
+ * identifier: "STRING_VALUE", // required
81
+ * version: "STRING_VALUE", // required
82
+ * },
83
+ * traceStatus: "ENABLED" || "DISABLED",
84
+ * customPrompt: "STRING_VALUE",
67
85
  * },
68
86
  * },
69
87
  * },
@@ -97,6 +115,12 @@ declare const UpdateBotLocaleCommand_base: {
97
115
  * // enabled: true || false, // required
98
116
  * // bedrockModelSpecification: { // BedrockModelSpecification
99
117
  * // modelArn: "STRING_VALUE", // required
118
+ * // guardrail: { // BedrockGuardrailConfiguration
119
+ * // identifier: "STRING_VALUE", // required
120
+ * // version: "STRING_VALUE", // required
121
+ * // },
122
+ * // traceStatus: "ENABLED" || "DISABLED",
123
+ * // customPrompt: "STRING_VALUE",
100
124
  * // },
101
125
  * // },
102
126
  * // },
@@ -105,12 +129,24 @@ declare const UpdateBotLocaleCommand_base: {
105
129
  * // enabled: true || false, // required
106
130
  * // bedrockModelSpecification: {
107
131
  * // modelArn: "STRING_VALUE", // required
132
+ * // guardrail: {
133
+ * // identifier: "STRING_VALUE", // required
134
+ * // version: "STRING_VALUE", // required
135
+ * // },
136
+ * // traceStatus: "ENABLED" || "DISABLED",
137
+ * // customPrompt: "STRING_VALUE",
108
138
  * // },
109
139
  * // },
110
140
  * // sampleUtteranceGeneration: { // SampleUtteranceGenerationSpecification
111
141
  * // enabled: true || false, // required
112
142
  * // bedrockModelSpecification: {
113
143
  * // modelArn: "STRING_VALUE", // required
144
+ * // guardrail: {
145
+ * // identifier: "STRING_VALUE", // required
146
+ * // version: "STRING_VALUE", // required
147
+ * // },
148
+ * // traceStatus: "ENABLED" || "DISABLED",
149
+ * // customPrompt: "STRING_VALUE",
114
150
  * // },
115
151
  * // },
116
152
  * // },
@@ -492,10 +492,20 @@ declare const UpdateIntentCommand_base: {
492
492
  * },
493
493
  * bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
494
494
  * bedrockKnowledgeBaseArn: "STRING_VALUE", // required
495
+ * exactResponse: true || false,
496
+ * exactResponseFields: { // BedrockKnowledgeStoreExactResponseFields
497
+ * answerField: "STRING_VALUE",
498
+ * },
495
499
  * },
496
500
  * },
497
501
  * bedrockModelConfiguration: { // BedrockModelSpecification
498
502
  * modelArn: "STRING_VALUE", // required
503
+ * guardrail: { // BedrockGuardrailConfiguration
504
+ * identifier: "STRING_VALUE", // required
505
+ * version: "STRING_VALUE", // required
506
+ * },
507
+ * traceStatus: "ENABLED" || "DISABLED",
508
+ * customPrompt: "STRING_VALUE",
499
509
  * },
500
510
  * },
501
511
  * };
@@ -961,10 +971,20 @@ declare const UpdateIntentCommand_base: {
961
971
  * // },
962
972
  * // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
963
973
  * // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
974
+ * // exactResponse: true || false,
975
+ * // exactResponseFields: { // BedrockKnowledgeStoreExactResponseFields
976
+ * // answerField: "STRING_VALUE",
977
+ * // },
964
978
  * // },
965
979
  * // },
966
980
  * // bedrockModelConfiguration: { // BedrockModelSpecification
967
981
  * // modelArn: "STRING_VALUE", // required
982
+ * // guardrail: { // BedrockGuardrailConfiguration
983
+ * // identifier: "STRING_VALUE", // required
984
+ * // version: "STRING_VALUE", // required
985
+ * // },
986
+ * // traceStatus: "ENABLED" || "DISABLED",
987
+ * // customPrompt: "STRING_VALUE",
968
988
  * // },
969
989
  * // },
970
990
  * // };