@aws-sdk/client-bedrock-agent 3.568.0 → 3.569.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/dist-cjs/index.js CHANGED
@@ -2042,6 +2042,7 @@ var de_AgentAlias = /* @__PURE__ */ __name((output, context) => {
2042
2042
  clientToken: import_smithy_client.expectString,
2043
2043
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2044
2044
  description: import_smithy_client.expectString,
2045
+ failureReasons: import_smithy_client._json,
2045
2046
  routingConfiguration: import_smithy_client._json,
2046
2047
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2047
2048
  });
@@ -1375,6 +1375,7 @@ const de_AgentAlias = (output, context) => {
1375
1375
  clientToken: __expectString,
1376
1376
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1377
1377
  description: __expectString,
1378
+ failureReasons: _json,
1378
1379
  routingConfiguration: _json,
1379
1380
  updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1380
1381
  });
@@ -40,7 +40,8 @@ declare const CreateAgentAliasCommand_base: {
40
40
  * description: "STRING_VALUE",
41
41
  * routingConfiguration: [ // AgentAliasRoutingConfiguration
42
42
  * { // AgentAliasRoutingConfigurationListItem
43
- * agentVersion: "STRING_VALUE", // required
43
+ * agentVersion: "STRING_VALUE",
44
+ * provisionedThroughput: "STRING_VALUE",
44
45
  * },
45
46
  * ],
46
47
  * tags: { // TagsMap
@@ -59,7 +60,8 @@ declare const CreateAgentAliasCommand_base: {
59
60
  * // description: "STRING_VALUE",
60
61
  * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required
61
62
  * // { // AgentAliasRoutingConfigurationListItem
62
- * // agentVersion: "STRING_VALUE", // required
63
+ * // agentVersion: "STRING_VALUE",
64
+ * // provisionedThroughput: "STRING_VALUE",
63
65
  * // },
64
66
  * // ],
65
67
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -68,7 +70,8 @@ declare const CreateAgentAliasCommand_base: {
68
70
  * // { // AgentAliasHistoryEvent
69
71
  * // routingConfiguration: [
70
72
  * // {
71
- * // agentVersion: "STRING_VALUE", // required
73
+ * // agentVersion: "STRING_VALUE",
74
+ * // provisionedThroughput: "STRING_VALUE",
72
75
  * // },
73
76
  * // ],
74
77
  * // endDate: new Date("TIMESTAMP"),
@@ -76,6 +79,9 @@ declare const CreateAgentAliasCommand_base: {
76
79
  * // },
77
80
  * // ],
78
81
  * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
82
+ * // failureReasons: [ // FailureReasons
83
+ * // "STRING_VALUE",
84
+ * // ],
79
85
  * // },
80
86
  * // };
81
87
  *
@@ -49,7 +49,8 @@ declare const GetAgentAliasCommand_base: {
49
49
  * // description: "STRING_VALUE",
50
50
  * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required
51
51
  * // { // AgentAliasRoutingConfigurationListItem
52
- * // agentVersion: "STRING_VALUE", // required
52
+ * // agentVersion: "STRING_VALUE",
53
+ * // provisionedThroughput: "STRING_VALUE",
53
54
  * // },
54
55
  * // ],
55
56
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -58,7 +59,8 @@ declare const GetAgentAliasCommand_base: {
58
59
  * // { // AgentAliasHistoryEvent
59
60
  * // routingConfiguration: [
60
61
  * // {
61
- * // agentVersion: "STRING_VALUE", // required
62
+ * // agentVersion: "STRING_VALUE",
63
+ * // provisionedThroughput: "STRING_VALUE",
62
64
  * // },
63
65
  * // ],
64
66
  * // endDate: new Date("TIMESTAMP"),
@@ -66,6 +68,9 @@ declare const GetAgentAliasCommand_base: {
66
68
  * // },
67
69
  * // ],
68
70
  * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
71
+ * // failureReasons: [ // FailureReasons
72
+ * // "STRING_VALUE",
73
+ * // ],
69
74
  * // },
70
75
  * // };
71
76
  *
@@ -48,7 +48,8 @@ declare const ListAgentAliasesCommand_base: {
48
48
  * // description: "STRING_VALUE",
49
49
  * // routingConfiguration: [ // AgentAliasRoutingConfiguration
50
50
  * // { // AgentAliasRoutingConfigurationListItem
51
- * // agentVersion: "STRING_VALUE", // required
51
+ * // agentVersion: "STRING_VALUE",
52
+ * // provisionedThroughput: "STRING_VALUE",
52
53
  * // },
53
54
  * // ],
54
55
  * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
@@ -40,7 +40,8 @@ declare const UpdateAgentAliasCommand_base: {
40
40
  * description: "STRING_VALUE",
41
41
  * routingConfiguration: [ // AgentAliasRoutingConfiguration
42
42
  * { // AgentAliasRoutingConfigurationListItem
43
- * agentVersion: "STRING_VALUE", // required
43
+ * agentVersion: "STRING_VALUE",
44
+ * provisionedThroughput: "STRING_VALUE",
44
45
  * },
45
46
  * ],
46
47
  * };
@@ -56,7 +57,8 @@ declare const UpdateAgentAliasCommand_base: {
56
57
  * // description: "STRING_VALUE",
57
58
  * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required
58
59
  * // { // AgentAliasRoutingConfigurationListItem
59
- * // agentVersion: "STRING_VALUE", // required
60
+ * // agentVersion: "STRING_VALUE",
61
+ * // provisionedThroughput: "STRING_VALUE",
60
62
  * // },
61
63
  * // ],
62
64
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -65,7 +67,8 @@ declare const UpdateAgentAliasCommand_base: {
65
67
  * // { // AgentAliasHistoryEvent
66
68
  * // routingConfiguration: [
67
69
  * // {
68
- * // agentVersion: "STRING_VALUE", // required
70
+ * // agentVersion: "STRING_VALUE",
71
+ * // provisionedThroughput: "STRING_VALUE",
69
72
  * // },
70
73
  * // ],
71
74
  * // endDate: new Date("TIMESTAMP"),
@@ -73,6 +76,9 @@ declare const UpdateAgentAliasCommand_base: {
73
76
  * // },
74
77
  * // ],
75
78
  * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
79
+ * // failureReasons: [ // FailureReasons
80
+ * // "STRING_VALUE",
81
+ * // ],
76
82
  * // },
77
83
  * // };
78
84
  *
@@ -24,7 +24,7 @@ export declare const CustomControlMethod: {
24
24
  */
25
25
  export type CustomControlMethod = (typeof CustomControlMethod)[keyof typeof CustomControlMethod];
26
26
  /**
27
- * <p>Contains details about the Lambda function containing the business logic that is carried out upon invoking the action.</p>
27
+ * <p>Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.</p>
28
28
  * @public
29
29
  */
30
30
  export type ActionGroupExecutor = ActionGroupExecutor.CustomControlMember | ActionGroupExecutor.LambdaMember | ActionGroupExecutor.$UnknownMember;
@@ -366,7 +366,7 @@ export interface CreateAgentActionGroupRequest {
366
366
  */
367
367
  parentActionGroupSignature?: ActionGroupSignature;
368
368
  /**
369
- * <p>The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.</p>
369
+ * <p>The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.</p>
370
370
  * @public
371
371
  */
372
372
  actionGroupExecutor?: ActionGroupExecutor;
@@ -439,7 +439,7 @@ export interface AgentActionGroup {
439
439
  */
440
440
  parentActionSignature?: ActionGroupSignature;
441
441
  /**
442
- * <p>The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.</p>
442
+ * <p>The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.</p>
443
443
  * @public
444
444
  */
445
445
  actionGroupExecutor?: ActionGroupExecutor;
@@ -1040,7 +1040,12 @@ export interface AgentAliasRoutingConfigurationListItem {
1040
1040
  * <p>The version of the agent with which the alias is associated.</p>
1041
1041
  * @public
1042
1042
  */
1043
- agentVersion: string | undefined;
1043
+ agentVersion?: string;
1044
+ /**
1045
+ * <p>Information on the Provisioned Throughput assigned to an agent alias.</p>
1046
+ * @public
1047
+ */
1048
+ provisionedThroughput?: string;
1044
1049
  }
1045
1050
  /**
1046
1051
  * <p>Contains details about the history of the alias.</p>
@@ -1156,6 +1161,11 @@ export interface AgentAlias {
1156
1161
  * @public
1157
1162
  */
1158
1163
  agentAliasStatus: AgentAliasStatus | undefined;
1164
+ /**
1165
+ * <p>Information on the failure of Provisioned Throughput assigned to an agent alias.</p>
1166
+ * @public
1167
+ */
1168
+ failureReasons?: string[];
1159
1169
  }
1160
1170
  /**
1161
1171
  * <p>Contains details about an alias of an agent.</p>
@@ -2300,7 +2310,7 @@ export interface UpdateDataSourceRequest {
2300
2310
  */
2301
2311
  dataSourceConfiguration: DataSourceConfiguration | undefined;
2302
2312
  /**
2303
- * <p>The data deletion policy assigned to the data source.</p>
2313
+ * <p>The data deletion policy of the updated data source.</p>
2304
2314
  * @public
2305
2315
  */
2306
2316
  dataDeletionPolicy?: DataDeletionPolicy;
@@ -307,7 +307,8 @@ export interface Agent {
307
307
  promptOverrideConfiguration?: PromptOverrideConfiguration;
308
308
  }
309
309
  export interface AgentAliasRoutingConfigurationListItem {
310
- agentVersion: string | undefined;
310
+ agentVersion?: string;
311
+ provisionedThroughput?: string;
311
312
  }
312
313
  export interface AgentAliasHistoryEvent {
313
314
  routingConfiguration?: AgentAliasRoutingConfigurationListItem[];
@@ -335,6 +336,7 @@ export interface AgentAlias {
335
336
  updatedAt: Date | undefined;
336
337
  agentAliasHistoryEvents?: AgentAliasHistoryEvent[];
337
338
  agentAliasStatus: AgentAliasStatus | undefined;
339
+ failureReasons?: string[];
338
340
  }
339
341
  export interface AgentAliasSummary {
340
342
  agentAliasId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.568.0",
4
+ "version": "3.569.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
@@ -20,8 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.569.0",
24
+ "@aws-sdk/client-sts": "3.569.0",
23
25
  "@aws-sdk/core": "3.567.0",
24
- "@aws-sdk/credential-provider-node": "3.568.0",
26
+ "@aws-sdk/credential-provider-node": "3.569.0",
25
27
  "@aws-sdk/middleware-host-header": "3.567.0",
26
28
  "@aws-sdk/middleware-logger": "3.568.0",
27
29
  "@aws-sdk/middleware-recursion-detection": "3.567.0",