@aws-sdk/client-bedrock-agentcore-control 3.922.0 → 3.925.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
@@ -222,11 +222,27 @@ class ValidationException extends BedrockAgentCoreControlServiceException {
222
222
  this.fieldList = opts.fieldList;
223
223
  }
224
224
  }
225
+ const AgentManagedRuntimeType = {
226
+ PYTHON_3_10: "PYTHON_3_10",
227
+ PYTHON_3_11: "PYTHON_3_11",
228
+ PYTHON_3_12: "PYTHON_3_12",
229
+ PYTHON_3_13: "PYTHON_3_13",
230
+ };
231
+ exports.Code = void 0;
232
+ (function (Code) {
233
+ Code.visit = (value, visitor) => {
234
+ if (value.s3 !== undefined)
235
+ return visitor.s3(value.s3);
236
+ return visitor._(value.$unknown[0], value.$unknown[1]);
237
+ };
238
+ })(exports.Code || (exports.Code = {}));
225
239
  exports.AgentRuntimeArtifact = void 0;
226
240
  (function (AgentRuntimeArtifact) {
227
241
  AgentRuntimeArtifact.visit = (value, visitor) => {
228
242
  if (value.containerConfiguration !== undefined)
229
243
  return visitor.containerConfiguration(value.containerConfiguration);
244
+ if (value.codeConfiguration !== undefined)
245
+ return visitor.codeConfiguration(value.codeConfiguration);
230
246
  return visitor._(value.$unknown[0], value.$unknown[1]);
231
247
  };
232
248
  })(exports.AgentRuntimeArtifact || (exports.AgentRuntimeArtifact = {}));
@@ -1545,8 +1561,11 @@ const se_DeleteAgentRuntimeCommand = async (input, context) => {
1545
1561
  const headers = {};
1546
1562
  b.bp("/runtimes/{agentRuntimeId}");
1547
1563
  b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
1564
+ const query = smithyClient.map({
1565
+ [_cT]: [, input[_cT] ?? uuid.v4()],
1566
+ });
1548
1567
  let body;
1549
- b.m("DELETE").h(headers).b(body);
1568
+ b.m("DELETE").h(headers).q(query).b(body);
1550
1569
  return b.build();
1551
1570
  };
1552
1571
  const se_DeleteAgentRuntimeEndpointCommand = async (input, context) => {
@@ -4798,6 +4817,7 @@ Object.defineProperty(exports, "__Client", {
4798
4817
  get: function () { return smithyClient.Client; }
4799
4818
  });
4800
4819
  exports.AccessDeniedException = AccessDeniedException;
4820
+ exports.AgentManagedRuntimeType = AgentManagedRuntimeType;
4801
4821
  exports.AgentRuntimeEndpointFilterSensitiveLog = AgentRuntimeEndpointFilterSensitiveLog;
4802
4822
  exports.AgentRuntimeEndpointStatus = AgentRuntimeEndpointStatus;
4803
4823
  exports.AgentRuntimeFilterSensitiveLog = AgentRuntimeFilterSensitiveLog;
@@ -103,11 +103,27 @@ export class ValidationException extends __BaseException {
103
103
  this.fieldList = opts.fieldList;
104
104
  }
105
105
  }
106
+ export const AgentManagedRuntimeType = {
107
+ PYTHON_3_10: "PYTHON_3_10",
108
+ PYTHON_3_11: "PYTHON_3_11",
109
+ PYTHON_3_12: "PYTHON_3_12",
110
+ PYTHON_3_13: "PYTHON_3_13",
111
+ };
112
+ export var Code;
113
+ (function (Code) {
114
+ Code.visit = (value, visitor) => {
115
+ if (value.s3 !== undefined)
116
+ return visitor.s3(value.s3);
117
+ return visitor._(value.$unknown[0], value.$unknown[1]);
118
+ };
119
+ })(Code || (Code = {}));
106
120
  export var AgentRuntimeArtifact;
107
121
  (function (AgentRuntimeArtifact) {
108
122
  AgentRuntimeArtifact.visit = (value, visitor) => {
109
123
  if (value.containerConfiguration !== undefined)
110
124
  return visitor.containerConfiguration(value.containerConfiguration);
125
+ if (value.codeConfiguration !== undefined)
126
+ return visitor.codeConfiguration(value.codeConfiguration);
111
127
  return visitor._(value.$unknown[0], value.$unknown[1]);
112
128
  };
113
129
  })(AgentRuntimeArtifact || (AgentRuntimeArtifact = {}));
@@ -196,8 +196,11 @@ export const se_DeleteAgentRuntimeCommand = async (input, context) => {
196
196
  const headers = {};
197
197
  b.bp("/runtimes/{agentRuntimeId}");
198
198
  b.p("agentRuntimeId", () => input.agentRuntimeId, "{agentRuntimeId}", false);
199
+ const query = map({
200
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
201
+ });
199
202
  let body;
200
- b.m("DELETE").h(headers).b(body);
203
+ b.m("DELETE").h(headers).q(query).b(body);
201
204
  return b.build();
202
205
  };
203
206
  export const se_DeleteAgentRuntimeEndpointCommand = async (input, context) => {
@@ -26,7 +26,7 @@ export interface BedrockAgentCoreControlHttpAuthSchemeProvider extends HttpAuthS
26
26
  */
27
27
  export declare const defaultBedrockAgentCoreControlHttpAuthSchemeProvider: BedrockAgentCoreControlHttpAuthSchemeProvider;
28
28
  /**
29
- * @internal
29
+ * @public
30
30
  */
31
31
  export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
32
  /**
@@ -42,6 +42,19 @@ declare const CreateAgentRuntimeCommand_base: {
42
42
  * containerConfiguration: { // ContainerConfiguration
43
43
  * containerUri: "STRING_VALUE", // required
44
44
  * },
45
+ * codeConfiguration: { // CodeConfiguration
46
+ * code: { // Code Union: only one key present
47
+ * s3: { // S3Location
48
+ * bucket: "STRING_VALUE", // required
49
+ * prefix: "STRING_VALUE", // required
50
+ * versionId: "STRING_VALUE",
51
+ * },
52
+ * },
53
+ * runtime: "PYTHON_3_10" || "PYTHON_3_11" || "PYTHON_3_12" || "PYTHON_3_13", // required
54
+ * entryPoint: [ // EntryPoints // required
55
+ * "STRING_VALUE",
56
+ * ],
57
+ * },
45
58
  * },
46
59
  * roleArn: "STRING_VALUE", // required
47
60
  * networkConfiguration: { // NetworkConfiguration
@@ -56,6 +56,7 @@ declare const CreateBrowserCommand_base: {
56
56
  * s3Location: { // S3Location
57
57
  * bucket: "STRING_VALUE", // required
58
58
  * prefix: "STRING_VALUE", // required
59
+ * versionId: "STRING_VALUE",
59
60
  * },
60
61
  * },
61
62
  * browserSigning: { // BrowserSigningConfigInput
@@ -38,6 +38,7 @@ declare const DeleteAgentRuntimeCommand_base: {
38
38
  * const client = new BedrockAgentCoreControlClient(config);
39
39
  * const input = { // DeleteAgentRuntimeRequest
40
40
  * agentRuntimeId: "STRING_VALUE", // required
41
+ * clientToken: "STRING_VALUE",
41
42
  * };
42
43
  * const command = new DeleteAgentRuntimeCommand(input);
43
44
  * const response = await client.send(command);
@@ -74,6 +74,19 @@ declare const GetAgentRuntimeCommand_base: {
74
74
  * // containerConfiguration: { // ContainerConfiguration
75
75
  * // containerUri: "STRING_VALUE", // required
76
76
  * // },
77
+ * // codeConfiguration: { // CodeConfiguration
78
+ * // code: { // Code Union: only one key present
79
+ * // s3: { // S3Location
80
+ * // bucket: "STRING_VALUE", // required
81
+ * // prefix: "STRING_VALUE", // required
82
+ * // versionId: "STRING_VALUE",
83
+ * // },
84
+ * // },
85
+ * // runtime: "PYTHON_3_10" || "PYTHON_3_11" || "PYTHON_3_12" || "PYTHON_3_13", // required
86
+ * // entryPoint: [ // EntryPoints // required
87
+ * // "STRING_VALUE",
88
+ * // ],
89
+ * // },
77
90
  * // },
78
91
  * // protocolConfiguration: { // ProtocolConfiguration
79
92
  * // serverProtocol: "MCP" || "HTTP" || "A2A", // required
@@ -63,6 +63,7 @@ declare const GetBrowserCommand_base: {
63
63
  * // s3Location: { // S3Location
64
64
  * // bucket: "STRING_VALUE", // required
65
65
  * // prefix: "STRING_VALUE", // required
66
+ * // versionId: "STRING_VALUE",
66
67
  * // },
67
68
  * // },
68
69
  * // browserSigning: { // BrowserSigningConfigOutput
@@ -42,6 +42,19 @@ declare const UpdateAgentRuntimeCommand_base: {
42
42
  * containerConfiguration: { // ContainerConfiguration
43
43
  * containerUri: "STRING_VALUE", // required
44
44
  * },
45
+ * codeConfiguration: { // CodeConfiguration
46
+ * code: { // Code Union: only one key present
47
+ * s3: { // S3Location
48
+ * bucket: "STRING_VALUE", // required
49
+ * prefix: "STRING_VALUE", // required
50
+ * versionId: "STRING_VALUE",
51
+ * },
52
+ * },
53
+ * runtime: "PYTHON_3_10" || "PYTHON_3_11" || "PYTHON_3_12" || "PYTHON_3_13", // required
54
+ * entryPoint: [ // EntryPoints // required
55
+ * "STRING_VALUE",
56
+ * ],
57
+ * },
45
58
  * },
46
59
  * roleArn: "STRING_VALUE", // required
47
60
  * networkConfiguration: { // NetworkConfiguration
@@ -484,6 +484,92 @@ export interface UpdateAgentRuntimeEndpointResponse {
484
484
  */
485
485
  lastUpdatedAt: Date | undefined;
486
486
  }
487
+ /**
488
+ * @public
489
+ * @enum
490
+ */
491
+ export declare const AgentManagedRuntimeType: {
492
+ readonly PYTHON_3_10: "PYTHON_3_10";
493
+ readonly PYTHON_3_11: "PYTHON_3_11";
494
+ readonly PYTHON_3_12: "PYTHON_3_12";
495
+ readonly PYTHON_3_13: "PYTHON_3_13";
496
+ };
497
+ /**
498
+ * @public
499
+ */
500
+ export type AgentManagedRuntimeType = (typeof AgentManagedRuntimeType)[keyof typeof AgentManagedRuntimeType];
501
+ /**
502
+ * <p>The Amazon S3 location for storing data. This structure defines where in Amazon S3 data is stored.</p>
503
+ * @public
504
+ */
505
+ export interface S3Location {
506
+ /**
507
+ * <p>The name of the Amazon S3 bucket. This bucket contains the stored data.</p>
508
+ * @public
509
+ */
510
+ bucket: string | undefined;
511
+ /**
512
+ * <p>The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.</p>
513
+ * @public
514
+ */
515
+ prefix: string | undefined;
516
+ /**
517
+ * <p>The version ID of the Amazon Amazon S3 object. If not specified, the latest version of the object is used.</p>
518
+ * @public
519
+ */
520
+ versionId?: string | undefined;
521
+ }
522
+ /**
523
+ * <p>The source code configuration that specifies the location and details of the code to be executed.</p>
524
+ * @public
525
+ */
526
+ export type Code = Code.S3Member | Code.$UnknownMember;
527
+ /**
528
+ * @public
529
+ */
530
+ export declare namespace Code {
531
+ /**
532
+ * <p>The Amazon Amazon S3 object that contains the source code for the agent runtime.</p>
533
+ * @public
534
+ */
535
+ interface S3Member {
536
+ s3: S3Location;
537
+ $unknown?: never;
538
+ }
539
+ /**
540
+ * @public
541
+ */
542
+ interface $UnknownMember {
543
+ s3?: never;
544
+ $unknown: [string, any];
545
+ }
546
+ interface Visitor<T> {
547
+ s3: (value: S3Location) => T;
548
+ _: (name: string, value: any) => T;
549
+ }
550
+ const visit: <T>(value: Code, visitor: Visitor<T>) => T;
551
+ }
552
+ /**
553
+ * <p>The configuration for the source code that defines how the agent runtime code should be executed, including the code location, runtime environment, and entry point.</p>
554
+ * @public
555
+ */
556
+ export interface CodeConfiguration {
557
+ /**
558
+ * <p>The source code location and configuration details.</p>
559
+ * @public
560
+ */
561
+ code: Code | undefined;
562
+ /**
563
+ * <p>The runtime environment for executing the code (for example, Python 3.9 or Node.js 18).</p>
564
+ * @public
565
+ */
566
+ runtime: AgentManagedRuntimeType | undefined;
567
+ /**
568
+ * <p>The entry point for the code execution, specifying the function or method that should be invoked when the code runs.</p>
569
+ * @public
570
+ */
571
+ entryPoint: string[] | undefined;
572
+ }
487
573
  /**
488
574
  * <p>Representation of a container configuration.</p>
489
575
  * @public
@@ -499,7 +585,7 @@ export interface ContainerConfiguration {
499
585
  * <p>The artifact of the agent.</p>
500
586
  * @public
501
587
  */
502
- export type AgentRuntimeArtifact = AgentRuntimeArtifact.ContainerConfigurationMember | AgentRuntimeArtifact.$UnknownMember;
588
+ export type AgentRuntimeArtifact = AgentRuntimeArtifact.CodeConfigurationMember | AgentRuntimeArtifact.ContainerConfigurationMember | AgentRuntimeArtifact.$UnknownMember;
503
589
  /**
504
590
  * @public
505
591
  */
@@ -510,6 +596,16 @@ export declare namespace AgentRuntimeArtifact {
510
596
  */
511
597
  interface ContainerConfigurationMember {
512
598
  containerConfiguration: ContainerConfiguration;
599
+ codeConfiguration?: never;
600
+ $unknown?: never;
601
+ }
602
+ /**
603
+ * <p>The code configuration for the agent runtime artifact, including the source code location and execution settings.</p>
604
+ * @public
605
+ */
606
+ interface CodeConfigurationMember {
607
+ containerConfiguration?: never;
608
+ codeConfiguration: CodeConfiguration;
513
609
  $unknown?: never;
514
610
  }
515
611
  /**
@@ -517,10 +613,12 @@ export declare namespace AgentRuntimeArtifact {
517
613
  */
518
614
  interface $UnknownMember {
519
615
  containerConfiguration?: never;
616
+ codeConfiguration?: never;
520
617
  $unknown: [string, any];
521
618
  }
522
619
  interface Visitor<T> {
523
620
  containerConfiguration: (value: ContainerConfiguration) => T;
621
+ codeConfiguration: (value: CodeConfiguration) => T;
524
622
  _: (name: string, value: any) => T;
525
623
  }
526
624
  const visit: <T>(value: AgentRuntimeArtifact, visitor: Visitor<T>) => T;
@@ -826,6 +924,11 @@ export interface DeleteAgentRuntimeRequest {
826
924
  * @public
827
925
  */
828
926
  agentRuntimeId: string | undefined;
927
+ /**
928
+ * <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.</p>
929
+ * @public
930
+ */
931
+ clientToken?: string | undefined;
829
932
  }
830
933
  /**
831
934
  * @public
@@ -1447,22 +1550,6 @@ export interface BrowserNetworkConfiguration {
1447
1550
  */
1448
1551
  vpcConfig?: VpcConfig | undefined;
1449
1552
  }
1450
- /**
1451
- * <p>The Amazon S3 location for storing data. This structure defines where in Amazon S3 data is stored.</p>
1452
- * @public
1453
- */
1454
- export interface S3Location {
1455
- /**
1456
- * <p>The name of the Amazon S3 bucket. This bucket contains the stored data.</p>
1457
- * @public
1458
- */
1459
- bucket: string | undefined;
1460
- /**
1461
- * <p>The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.</p>
1462
- * @public
1463
- */
1464
- prefix: string | undefined;
1465
- }
1466
1553
  /**
1467
1554
  * <p>The recording configuration for a browser. This structure defines how browser sessions are recorded.</p>
1468
1555
  * @public
@@ -153,23 +153,66 @@ export interface UpdateAgentRuntimeEndpointResponse {
153
153
  createdAt: Date | undefined;
154
154
  lastUpdatedAt: Date | undefined;
155
155
  }
156
+ export declare const AgentManagedRuntimeType: {
157
+ readonly PYTHON_3_10: "PYTHON_3_10";
158
+ readonly PYTHON_3_11: "PYTHON_3_11";
159
+ readonly PYTHON_3_12: "PYTHON_3_12";
160
+ readonly PYTHON_3_13: "PYTHON_3_13";
161
+ };
162
+ export type AgentManagedRuntimeType =
163
+ (typeof AgentManagedRuntimeType)[keyof typeof AgentManagedRuntimeType];
164
+ export interface S3Location {
165
+ bucket: string | undefined;
166
+ prefix: string | undefined;
167
+ versionId?: string | undefined;
168
+ }
169
+ export type Code = Code.S3Member | Code.$UnknownMember;
170
+ export declare namespace Code {
171
+ interface S3Member {
172
+ s3: S3Location;
173
+ $unknown?: never;
174
+ }
175
+ interface $UnknownMember {
176
+ s3?: never;
177
+ $unknown: [string, any];
178
+ }
179
+ interface Visitor<T> {
180
+ s3: (value: S3Location) => T;
181
+ _: (name: string, value: any) => T;
182
+ }
183
+ const visit: <T>(value: Code, visitor: Visitor<T>) => T;
184
+ }
185
+ export interface CodeConfiguration {
186
+ code: Code | undefined;
187
+ runtime: AgentManagedRuntimeType | undefined;
188
+ entryPoint: string[] | undefined;
189
+ }
156
190
  export interface ContainerConfiguration {
157
191
  containerUri: string | undefined;
158
192
  }
159
193
  export type AgentRuntimeArtifact =
194
+ | AgentRuntimeArtifact.CodeConfigurationMember
160
195
  | AgentRuntimeArtifact.ContainerConfigurationMember
161
196
  | AgentRuntimeArtifact.$UnknownMember;
162
197
  export declare namespace AgentRuntimeArtifact {
163
198
  interface ContainerConfigurationMember {
164
199
  containerConfiguration: ContainerConfiguration;
200
+ codeConfiguration?: never;
201
+ $unknown?: never;
202
+ }
203
+ interface CodeConfigurationMember {
204
+ containerConfiguration?: never;
205
+ codeConfiguration: CodeConfiguration;
165
206
  $unknown?: never;
166
207
  }
167
208
  interface $UnknownMember {
168
209
  containerConfiguration?: never;
210
+ codeConfiguration?: never;
169
211
  $unknown: [string, any];
170
212
  }
171
213
  interface Visitor<T> {
172
214
  containerConfiguration: (value: ContainerConfiguration) => T;
215
+ codeConfiguration: (value: CodeConfiguration) => T;
173
216
  _: (name: string, value: any) => T;
174
217
  }
175
218
  const visit: <T>(value: AgentRuntimeArtifact, visitor: Visitor<T>) => T;
@@ -279,6 +322,7 @@ export interface CreateAgentRuntimeResponse {
279
322
  }
280
323
  export interface DeleteAgentRuntimeRequest {
281
324
  agentRuntimeId: string | undefined;
325
+ clientToken?: string | undefined;
282
326
  }
283
327
  export interface DeleteAgentRuntimeResponse {
284
328
  status: AgentRuntimeStatus | undefined;
@@ -444,10 +488,6 @@ export interface BrowserNetworkConfiguration {
444
488
  networkMode: BrowserNetworkMode | undefined;
445
489
  vpcConfig?: VpcConfig | undefined;
446
490
  }
447
- export interface S3Location {
448
- bucket: string | undefined;
449
- prefix: string | undefined;
450
- }
451
491
  export interface RecordingConfig {
452
492
  enabled?: boolean | undefined;
453
493
  s3Location?: S3Location | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agentcore-control",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agentcore Control Client for Node.js, Browser and React Native",
4
- "version": "3.922.0",
4
+ "version": "3.925.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-agentcore-control",
@@ -21,17 +21,17 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.922.0",
24
- "@aws-sdk/credential-provider-node": "3.922.0",
24
+ "@aws-sdk/credential-provider-node": "3.925.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.922.0",
29
- "@aws-sdk/region-config-resolver": "3.922.0",
29
+ "@aws-sdk/region-config-resolver": "3.925.0",
30
30
  "@aws-sdk/types": "3.922.0",
31
31
  "@aws-sdk/util-endpoints": "3.922.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.922.0",
33
33
  "@aws-sdk/util-user-agent-node": "3.922.0",
34
- "@smithy/config-resolver": "^4.4.1",
34
+ "@smithy/config-resolver": "^4.4.2",
35
35
  "@smithy/core": "^3.17.2",
36
36
  "@smithy/fetch-http-handler": "^5.3.5",
37
37
  "@smithy/hash-node": "^4.2.4",
@@ -51,7 +51,7 @@
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
53
  "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.7",
54
+ "@smithy/util-defaults-mode-node": "^4.2.8",
55
55
  "@smithy/util-endpoints": "^3.2.4",
56
56
  "@smithy/util-middleware": "^4.2.4",
57
57
  "@smithy/util-retry": "^4.2.4",