@aws-cdk/aws-bedrock-agentcore-alpha 2.232.0-alpha.0 → 2.232.2-alpha.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 (50) hide show
  1. package/.jsii +3 -3
  2. package/lib/gateway/gateway-base.d.ts +5 -0
  3. package/lib/gateway/gateway-base.js +1 -1
  4. package/lib/gateway/gateway.d.ts +40 -0
  5. package/lib/gateway/gateway.js +1 -1
  6. package/lib/gateway/inbound-auth/authorizer.d.ts +13 -0
  7. package/lib/gateway/inbound-auth/authorizer.js +3 -3
  8. package/lib/gateway/outbound-auth/api-key.d.ts +39 -0
  9. package/lib/gateway/outbound-auth/api-key.js +1 -1
  10. package/lib/gateway/outbound-auth/credential-provider.d.ts +7 -0
  11. package/lib/gateway/outbound-auth/credential-provider.js +1 -1
  12. package/lib/gateway/outbound-auth/iam-role.d.ts +25 -1
  13. package/lib/gateway/outbound-auth/oauth.d.ts +35 -0
  14. package/lib/gateway/protocol.d.ts +23 -0
  15. package/lib/gateway/protocol.js +2 -2
  16. package/lib/gateway/targets/schema/api-schema.d.ts +23 -0
  17. package/lib/gateway/targets/schema/api-schema.js +4 -4
  18. package/lib/gateway/targets/schema/base-schema.d.ts +24 -1
  19. package/lib/gateway/targets/schema/tool-schema.d.ts +35 -0
  20. package/lib/gateway/targets/schema/tool-schema.js +4 -4
  21. package/lib/gateway/targets/target-base.js +1 -1
  22. package/lib/gateway/targets/target-configuration.d.ts +20 -0
  23. package/lib/gateway/targets/target-configuration.js +5 -5
  24. package/lib/gateway/targets/target.d.ts +33 -0
  25. package/lib/gateway/targets/target.js +1 -1
  26. package/lib/gateway/validation-helpers.d.ts +64 -0
  27. package/lib/memory/memory-strategy.d.ts +13 -0
  28. package/lib/memory/memory-strategy.js +1 -1
  29. package/lib/memory/memory.d.ts +14 -0
  30. package/lib/memory/memory.js +2 -2
  31. package/lib/memory/strategies/managed-strategy.js +1 -1
  32. package/lib/memory/strategies/self-managed-strategy.js +1 -1
  33. package/lib/network/network-configuration.d.ts +19 -0
  34. package/lib/network/network-configuration.js +4 -4
  35. package/lib/runtime/runtime-artifact.d.ts +6 -0
  36. package/lib/runtime/runtime-artifact.js +1 -1
  37. package/lib/runtime/runtime-authorizer-configuration.d.ts +6 -0
  38. package/lib/runtime/runtime-authorizer-configuration.js +1 -1
  39. package/lib/runtime/runtime-base.d.ts +6 -0
  40. package/lib/runtime/runtime-base.js +1 -1
  41. package/lib/runtime/runtime-endpoint-base.js +1 -1
  42. package/lib/runtime/runtime-endpoint.d.ts +15 -0
  43. package/lib/runtime/runtime-endpoint.js +1 -1
  44. package/lib/runtime/runtime.d.ts +20 -0
  45. package/lib/runtime/runtime.js +1 -1
  46. package/lib/tools/browser.d.ts +28 -0
  47. package/lib/tools/browser.js +2 -2
  48. package/lib/tools/code-interpreter.d.ts +26 -0
  49. package/lib/tools/code-interpreter.js +2 -2
  50. package/package.json +9 -9
@@ -16,7 +16,7 @@ const validation_helpers_1 = require("../validation-helpers");
16
16
  * Provides common functionality for all MCP target types
17
17
  */
18
18
  class McpTargetConfiguration {
19
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpTargetConfiguration", version: "2.232.0-alpha.0" };
19
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpTargetConfiguration", version: "2.232.2-alpha.0" };
20
20
  /**
21
21
  * Renders the configuration as CloudFormation properties
22
22
  * @internal
@@ -38,7 +38,7 @@ exports.McpTargetConfiguration = McpTargetConfiguration;
38
38
  * allowing the gateway to invoke the function to provide tool capabilities.
39
39
  */
40
40
  class LambdaTargetConfiguration extends McpTargetConfiguration {
41
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LambdaTargetConfiguration", version: "2.232.0-alpha.0" };
41
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LambdaTargetConfiguration", version: "2.232.2-alpha.0" };
42
42
  /**
43
43
  * Create a Lambda target configuration
44
44
  *
@@ -128,7 +128,7 @@ exports.LambdaTargetConfiguration = LambdaTargetConfiguration;
128
128
  * allowing the gateway to transform API operations into tool calls.
129
129
  */
130
130
  class OpenApiTargetConfiguration extends McpTargetConfiguration {
131
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.OpenApiTargetConfiguration", version: "2.232.0-alpha.0" };
131
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.OpenApiTargetConfiguration", version: "2.232.2-alpha.0" };
132
132
  /**
133
133
  * Create an OpenAPI target configuration
134
134
  *
@@ -246,7 +246,7 @@ exports.OpenApiTargetConfiguration = OpenApiTargetConfiguration;
246
246
  * allowing the gateway to transform Smithy operations into tool calls.
247
247
  */
248
248
  class SmithyTargetConfiguration extends McpTargetConfiguration {
249
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.SmithyTargetConfiguration", version: "2.232.0-alpha.0" };
249
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.SmithyTargetConfiguration", version: "2.232.2-alpha.0" };
250
250
  /**
251
251
  * Create a Smithy target configuration
252
252
  *
@@ -328,7 +328,7 @@ exports.SmithyTargetConfiguration = SmithyTargetConfiguration;
328
328
  * synchronization.
329
329
  */
330
330
  class McpServerTargetConfiguration extends McpTargetConfiguration {
331
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpServerTargetConfiguration", version: "2.232.0-alpha.0" };
331
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpServerTargetConfiguration", version: "2.232.2-alpha.0" };
332
332
  /**
333
333
  * Create an MCP server target configuration
334
334
  *
@@ -309,4 +309,37 @@ export declare class GatewayTarget extends GatewayTargetBase implements IMcpGate
309
309
  * MCP server's tools have changed.
310
310
  */
311
311
  grantSync(grantee: iam.IGrantable): iam.Grant;
312
+ /**
313
+ * Determines the credential provider configurations based on target type
314
+ *
315
+ * - Lambda & Smithy: Default to IAM role if not provided
316
+ * - MCP Server: Return undefined if not provided (service handles NoAuth)
317
+ * - OpenAPI: Return as-is (must be explicitly provided)
318
+ *
319
+ * @param providedCredentials The credentials from props
320
+ * @returns The credential configurations to use, or undefined
321
+ * @internal
322
+ */
323
+ private _getTargetSpecificCredentials;
324
+ /**
325
+ * Renders credential provider configurations for CloudFormation
326
+ * @internal
327
+ */
328
+ private _renderCredentialProviderConfigurations;
329
+ /**
330
+ * Validates the gateway target name format
331
+ * Pattern: ^([0-9a-zA-Z][-]?){1,100}$
332
+ * Max length: 100 characters
333
+ * @param gatewayTargetName The gateway target name to validate
334
+ * @throws Error if the name is invalid
335
+ * @internal
336
+ */
337
+ private validateGatewayTargetName;
338
+ /**
339
+ * Validates the description format
340
+ * Must be between 1 and 200 characters
341
+ * @throws Error if validation fails
342
+ * @internal
343
+ */
344
+ private validateDescription;
312
345
  }
@@ -78,7 +78,7 @@ let GatewayTarget = (() => {
78
78
  GatewayTarget = _classThis = _classDescriptor.value;
79
79
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
80
80
  }
81
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayTarget", version: "2.232.0-alpha.0" };
81
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayTarget", version: "2.232.2-alpha.0" };
82
82
  /** Uniquely identifies this class. */
83
83
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.GatewayTarget';
84
84
  /**
@@ -1 +1,65 @@
1
+ /**
2
+ * Error thrown when validation fails
3
+ * @internal
4
+ */
5
+ export declare class ValidationError extends Error {
6
+ constructor(message: string);
7
+ }
8
+ interface IntervalValidation {
9
+ fieldName: string;
10
+ minLength: number;
11
+ maxLength: number;
12
+ }
13
+ interface StringLengthValidation extends IntervalValidation {
14
+ value: string;
15
+ }
16
+ /**
17
+ * Validates the length of a string field against minimum and maximum constraints.
18
+ * @param value - The string value to validate
19
+ * @param fieldName - Name of the field being validated (for error messages)
20
+ * @param minLength - Minimum allowed length (defaults to 0)
21
+ * @param maxLength - Maximum allowed length
22
+ * @returns true if validation passes
23
+ * @throws Error if validation fails with current length information
24
+ * @internal
25
+ */
26
+ export declare function validateStringField(params: StringLengthValidation): string[];
27
+ /**
28
+ * Validates a string field against a regex pattern.
29
+ * @param value - The string value to validate
30
+ * @param fieldName - Name of the field being validated (for error messages)
31
+ * @param pattern - Regular expression pattern to test against
32
+ * @param customMessage - Optional custom error message
33
+ * @returns true if validation passes
34
+ * @throws Error if validation fails with detailed message
35
+ * @internal
36
+ */
37
+ export declare function validateFieldPattern(value: string, fieldName: string, pattern: RegExp, customMessage?: string): string[];
38
+ /**
39
+ * @internal
40
+ */
41
+ export type ValidationFn<T> = (param: T) => string[];
42
+ /**
43
+ * OpenAPI schema validation parameters
44
+ * @internal
45
+ */
46
+ export interface OpenApiSchemaValidationParams {
47
+ /**
48
+ * The OpenAPI schema to validate (as a string)
49
+ */
50
+ schema: string;
51
+ /**
52
+ * Optional name for the schema (for error messages)
53
+ */
54
+ schemaName?: string;
55
+ }
56
+ /**
57
+ * Validates an OpenAPI schema against Gateway requirements
58
+ * Based on AWS documentation: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-schema-openapi.html
59
+ *
60
+ * @param params - The validation parameters
61
+ * @returns Array of validation error messages (empty if valid)
62
+ * @internal
63
+ */
64
+ export declare function validateOpenApiSchema(params: OpenApiSchemaValidationParams): string[];
1
65
  export {};
@@ -14,6 +14,19 @@ import * as bedrockagentcore from 'aws-cdk-lib/aws-bedrockagentcore';
14
14
  import * as iam from 'aws-cdk-lib/aws-iam';
15
15
  import { ManagedMemoryStrategy, ManagedStrategyProps } from './strategies/managed-strategy';
16
16
  import { SelfManagedMemoryStrategy, SelfManagedStrategyProps } from './strategies/self-managed-strategy';
17
+ /******************************************************************************
18
+ * CONSTANTS
19
+ *****************************************************************************/
20
+ /**
21
+ * Minimum length for memory strategy name
22
+ * @internal
23
+ */
24
+ export declare const MEMORY_NAME_MIN_LENGTH = 1;
25
+ /**
26
+ * Maximum length for memory strategy name
27
+ * @internal
28
+ */
29
+ export declare const MEMORY_NAME_MAX_LENGTH = 48;
17
30
  /**
18
31
  * Long-term memory extraction strategy types.
19
32
  */
@@ -53,7 +53,7 @@ var MemoryStrategyType;
53
53
  * @see https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory-strategies.html
54
54
  */
55
55
  class MemoryStrategy {
56
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.MemoryStrategy", version: "2.232.0-alpha.0" };
56
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.MemoryStrategy", version: "2.232.2-alpha.0" };
57
57
  /**
58
58
  * Default strategies for organizing and extracting memory data, each optimized for specific use cases.
59
59
  * This strategy compresses conversations into concise overviews, preserving essential context and key insights for quick recall.
@@ -496,6 +496,12 @@ export declare class Memory extends MemoryBase {
496
496
  * @default - No memory strategies.
497
497
  */
498
498
  addMemoryStrategy(memoryStrategy: IMemoryStrategy): void;
499
+ /**
500
+ * Creates execution role needed for the memory to access AWS services
501
+ * @returns The created role
502
+ * @internal This is an internal core function and should not be called directly.
503
+ */
504
+ private _createMemoryRole;
499
505
  /**
500
506
  * Validates the memory tags format
501
507
  * @param tags The tags object to validate
@@ -514,4 +520,12 @@ export declare class Memory extends MemoryBase {
514
520
  * @returns Array of validation error messages, empty if valid
515
521
  */
516
522
  private _validateMemoryExpirationDays;
523
+ /**
524
+ * Render the memory strategies.
525
+ *
526
+ * @returns Array of MemoryStrategyProperty objects in CloudFormation format, or undefined if no strategies are defined
527
+ * @default - undefined if no strategies are defined or array is empty
528
+ * @internal This is an internal core function and should not be called directly.
529
+ */
530
+ private _renderMemoryStrategies;
517
531
  }
@@ -99,7 +99,7 @@ const MEMORY_EXPIRATION_DAYS_MAX = 365;
99
99
  * Contains methods and attributes valid for Memories either created with CDK or imported.
100
100
  */
101
101
  class MemoryBase extends aws_cdk_lib_1.Resource {
102
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.MemoryBase", version: "2.232.0-alpha.0" };
102
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.MemoryBase", version: "2.232.2-alpha.0" };
103
103
  constructor(scope, id) {
104
104
  super(scope, id);
105
105
  }
@@ -352,7 +352,7 @@ let Memory = (() => {
352
352
  Memory = _classThis = _classDescriptor.value;
353
353
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
354
354
  }
355
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Memory", version: "2.232.0-alpha.0" };
355
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Memory", version: "2.232.2-alpha.0" };
356
356
  /** Uniquely identifies this class. */
357
357
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.Memory';
358
358
  /**
@@ -25,7 +25,7 @@ const PROMPT_MAX_LENGTH = 30000;
25
25
  * with specific models and prompt templates.
26
26
  */
27
27
  class ManagedMemoryStrategy {
28
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ManagedMemoryStrategy", version: "2.232.0-alpha.0" };
28
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ManagedMemoryStrategy", version: "2.232.2-alpha.0" };
29
29
  name;
30
30
  description;
31
31
  /**
@@ -86,7 +86,7 @@ const DEFAULT_TOKEN_BASED_TRIGGER = 100;
86
86
  * Use AgentCore memory for event storage with custom triggers. Define memory processing logic in your own environment.
87
87
  */
88
88
  class SelfManagedMemoryStrategy {
89
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.SelfManagedMemoryStrategy", version: "2.232.0-alpha.0" };
89
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.SelfManagedMemoryStrategy", version: "2.232.2-alpha.0" };
90
90
  name;
91
91
  description;
92
92
  strategyType;
@@ -1,3 +1,4 @@
1
+ import { CfnBrowserCustom, CfnCodeInterpreterCustom, CfnRuntime } from 'aws-cdk-lib/aws-bedrockagentcore';
1
2
  import * as ec2 from 'aws-cdk-lib/aws-ec2';
2
3
  import { Construct } from 'constructs';
3
4
  /**
@@ -89,6 +90,12 @@ export declare class BrowserNetworkConfiguration extends NetworkConfiguration {
89
90
  * @returns A BrowserNetworkConfiguration.
90
91
  */
91
92
  static usingVpc(scope: Construct, vpcConfig: VpcConfigProps): BrowserNetworkConfiguration;
93
+ /**
94
+ * Renders the network configuration as a CloudFormation property.
95
+ * @param browserConnections - The connections object to the browser.
96
+ * @internal This is an internal core function and should not be called directly.
97
+ */
98
+ _render(browserConnections?: ec2.Connections): CfnBrowserCustom.BrowserNetworkConfigurationProperty;
92
99
  }
93
100
  /**
94
101
  * Network configuration for the Code Interpreter tool.
@@ -112,6 +119,12 @@ export declare class CodeInterpreterNetworkConfiguration extends NetworkConfigur
112
119
  * @returns A CodeInterpreterNetworkConfiguration.
113
120
  */
114
121
  static usingVpc(scope: Construct, vpcConfig: VpcConfigProps): CodeInterpreterNetworkConfiguration;
122
+ /**
123
+ * Renders the network configuration as a CloudFormation property.
124
+ * @param codeInterpreterConnections - The connections object to the code interpreter.
125
+ * @internal This is an internal core function and should not be called directly.
126
+ */
127
+ _render(codeInterpreterConnections?: ec2.Connections): CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty;
115
128
  }
116
129
  /**
117
130
  * Network configuration for the Runtime.
@@ -130,4 +143,10 @@ export declare class RuntimeNetworkConfiguration extends NetworkConfiguration {
130
143
  * @returns A RuntimeNetworkConfiguration.
131
144
  */
132
145
  static usingVpc(scope: Construct, vpcConfig: VpcConfigProps): RuntimeNetworkConfiguration;
146
+ /**
147
+ * Renders the network configuration as a CloudFormation property.
148
+ * @param runtimeConnections - The connections object to the runtime.
149
+ * @internal This is an internal core function and should not be called directly.
150
+ */
151
+ _render(_runtimeConnections?: ec2.Connections): CfnRuntime.NetworkConfigurationProperty;
133
152
  }
@@ -8,7 +8,7 @@ const ec2 = require("aws-cdk-lib/aws-ec2");
8
8
  * Abstract base class for network configuration.
9
9
  */
10
10
  class NetworkConfiguration {
11
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.NetworkConfiguration", version: "2.232.0-alpha.0" };
11
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.NetworkConfiguration", version: "2.232.2-alpha.0" };
12
12
  /**
13
13
  * The network mode to use.
14
14
  * Configure the security level for agent
@@ -87,7 +87,7 @@ exports.NetworkConfiguration = NetworkConfiguration;
87
87
  * Network configuration for the Browser tool.
88
88
  */
89
89
  class BrowserNetworkConfiguration extends NetworkConfiguration {
90
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserNetworkConfiguration", version: "2.232.0-alpha.0" };
90
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserNetworkConfiguration", version: "2.232.2-alpha.0" };
91
91
  /**
92
92
  * Creates a public network configuration. PUBLIC is the default network mode.
93
93
  * @returns A BrowserNetworkConfiguration.
@@ -133,7 +133,7 @@ exports.BrowserNetworkConfiguration = BrowserNetworkConfiguration;
133
133
  * Network configuration for the Code Interpreter tool.
134
134
  */
135
135
  class CodeInterpreterNetworkConfiguration extends NetworkConfiguration {
136
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterNetworkConfiguration", version: "2.232.0-alpha.0" };
136
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterNetworkConfiguration", version: "2.232.2-alpha.0" };
137
137
  /**
138
138
  * Creates a public network configuration.
139
139
  * @returns A CodeInterpreterNetworkConfiguration.
@@ -187,7 +187,7 @@ exports.CodeInterpreterNetworkConfiguration = CodeInterpreterNetworkConfiguratio
187
187
  * Network configuration for the Runtime.
188
188
  */
189
189
  class RuntimeNetworkConfiguration extends NetworkConfiguration {
190
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeNetworkConfiguration", version: "2.232.0-alpha.0" };
190
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeNetworkConfiguration", version: "2.232.2-alpha.0" };
191
191
  /**
192
192
  * Creates a public network configuration. PUBLIC is the default network mode.
193
193
  * @returns A RuntimeNetworkConfiguration.
@@ -10,6 +10,7 @@
10
10
  * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
11
  * and limitations under the License.
12
12
  */
13
+ import { CfnRuntime } from 'aws-cdk-lib/aws-bedrockagentcore';
13
14
  import * as ecr from 'aws-cdk-lib/aws-ecr';
14
15
  import * as assets from 'aws-cdk-lib/aws-ecr-assets';
15
16
  import * as s3 from 'aws-cdk-lib/aws-s3';
@@ -74,4 +75,9 @@ export declare abstract class AgentRuntimeArtifact {
74
75
  * Called when the image is used by a Runtime to handle side effects like permissions
75
76
  */
76
77
  abstract bind(scope: Construct, runtime: Runtime): void;
78
+ /**
79
+ * Render the artifact configuration for CloudFormation
80
+ * @internal
81
+ */
82
+ abstract _render(): CfnRuntime.AgentRuntimeArtifactProperty;
77
83
  }
@@ -47,7 +47,7 @@ var AgentCoreRuntime;
47
47
  * Provides methods to reference container images from ECR repositories or local assets.
48
48
  */
49
49
  class AgentRuntimeArtifact {
50
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AgentRuntimeArtifact", version: "2.232.0-alpha.0" };
50
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AgentRuntimeArtifact", version: "2.232.2-alpha.0" };
51
51
  /**
52
52
  * Reference an image in an ECR repository
53
53
  */
@@ -10,6 +10,7 @@
10
10
  * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
11
  * and limitations under the License.
12
12
  */
13
+ import { CfnRuntime } from 'aws-cdk-lib/aws-bedrockagentcore';
13
14
  import { IUserPool, IUserPoolClient } from 'aws-cdk-lib/aws-cognito';
14
15
  /**
15
16
  * Abstract base class for runtime authorizer configurations.
@@ -53,4 +54,9 @@ export declare abstract class RuntimeAuthorizerConfiguration {
53
54
  * @returns RuntimeAuthorizerConfiguration for OAuth authentication
54
55
  */
55
56
  static usingOAuth(discoveryUrl: string, clientId: string, allowedAudience?: string[]): RuntimeAuthorizerConfiguration;
57
+ /**
58
+ * Render the authorizer configuration for CloudFormation
59
+ * @internal
60
+ */
61
+ abstract _render(): CfnRuntime.AuthorizerConfigurationProperty | undefined;
56
62
  }
@@ -21,7 +21,7 @@ const validation_helpers_1 = require("./validation-helpers");
21
21
  * Provides static factory methods to create different authentication types.
22
22
  */
23
23
  class RuntimeAuthorizerConfiguration {
24
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeAuthorizerConfiguration", version: "2.232.0-alpha.0" };
24
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeAuthorizerConfiguration", version: "2.232.2-alpha.0" };
25
25
  /**
26
26
  * Use IAM authentication (default).
27
27
  * Requires AWS credentials to sign requests using SigV4.
@@ -162,6 +162,12 @@ export declare abstract class RuntimeBase extends Resource implements IBedrockAg
162
162
  * configured.
163
163
  */
164
164
  get connections(): ec2.Connections;
165
+ /**
166
+ * The actual Connections object for this Runtime. This may be unset in the event that a VPC has not
167
+ * been configured.
168
+ * @internal
169
+ */
170
+ protected _connections: ec2.Connections | undefined;
165
171
  constructor(scope: Construct, id: string);
166
172
  /**
167
173
  * Grant the runtime specific actions on AWS resources
@@ -26,7 +26,7 @@ const validation_helpers_1 = require("./validation-helpers");
26
26
  * Base class for Agent Runtime
27
27
  */
28
28
  class RuntimeBase extends aws_cdk_lib_1.Resource {
29
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeBase", version: "2.232.0-alpha.0" };
29
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeBase", version: "2.232.2-alpha.0" };
30
30
  /**
31
31
  * An accessor for the Connections object that will fail if this Runtime does not have a VPC
32
32
  * configured.
@@ -22,7 +22,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
22
22
  * Base class for Runtime Endpoint
23
23
  */
24
24
  class RuntimeEndpointBase extends aws_cdk_lib_1.Resource {
25
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpointBase", version: "2.232.0-alpha.0" };
25
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpointBase", version: "2.232.2-alpha.0" };
26
26
  constructor(scope, id) {
27
27
  super(scope, id);
28
28
  }
@@ -134,6 +134,21 @@ export declare class RuntimeEndpoint extends RuntimeEndpointBase {
134
134
  readonly lastUpdatedAt?: string;
135
135
  private readonly endpointResource;
136
136
  constructor(scope: Construct, id: string, props: RuntimeEndpointProps);
137
+ /**
138
+ * Renders the agent runtime ID for CloudFormation
139
+ * @internal
140
+ */
141
+ private renderAgentRuntimeId;
142
+ /**
143
+ * Renders the agent runtime version for CloudFormation
144
+ * @internal
145
+ */
146
+ private renderAgentRuntimeVersion;
147
+ /**
148
+ * Renders the description for CloudFormation
149
+ * @internal
150
+ */
151
+ private renderDescription;
137
152
  /**
138
153
  * Validates the endpoint name format
139
154
  * Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$
@@ -67,7 +67,7 @@ let RuntimeEndpoint = (() => {
67
67
  RuntimeEndpoint = _classThis = _classDescriptor.value;
68
68
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
69
69
  }
70
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpoint", version: "2.232.0-alpha.0" };
70
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpoint", version: "2.232.2-alpha.0" };
71
71
  /** Uniquely identifies this class. */
72
72
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.RuntimeEndpoint';
73
73
  /**
@@ -179,11 +179,31 @@ export declare class Runtime extends RuntimeBase {
179
179
  private readonly authorizerConfiguration?;
180
180
  private readonly lifecycleConfiguration?;
181
181
  constructor(scope: Construct, id: string, props: RuntimeProps);
182
+ /**
183
+ * Renders the environment variables for CloudFormation
184
+ * @internal
185
+ */
186
+ private renderEnvironmentVariables;
182
187
  /**
183
188
  * Adds proper permissions to the execution role for the agent runtime
184
189
  * Based on: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-permissions.html
185
190
  */
186
191
  private addExecutionRolePermissions;
192
+ /**
193
+ * Renders the artifact configuration for CloudFormation
194
+ * @internal
195
+ */
196
+ private renderAgentRuntimeArtifact;
197
+ /**
198
+ * Renders the request header configuration for CloudFormation
199
+ * @internal
200
+ */
201
+ private renderRequestHeaderConfiguration;
202
+ /**
203
+ * Renders the lifecycle configuration for CloudFormation
204
+ * @internal
205
+ */
206
+ private renderLifecycleConfiguration;
187
207
  /**
188
208
  * Validates the request header configuration
189
209
  * @throws Error if validation fails
@@ -91,7 +91,7 @@ let Runtime = (() => {
91
91
  Runtime = _classThis = _classDescriptor.value;
92
92
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
93
93
  }
94
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Runtime", version: "2.232.0-alpha.0" };
94
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Runtime", version: "2.232.2-alpha.0" };
95
95
  /** Uniquely identifies this class. */
96
96
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.Runtime';
97
97
  /**
@@ -143,6 +143,12 @@ export declare abstract class BrowserCustomBase extends Resource implements IBro
143
143
  * configured.
144
144
  */
145
145
  get connections(): ec2.Connections;
146
+ /**
147
+ * The actual Connections object for this Browser. This may be unset in the event that a VPC has not
148
+ * been configured.
149
+ * @internal
150
+ */
151
+ protected _connections: ec2.Connections | undefined;
146
152
  constructor(scope: Construct, id: string);
147
153
  /**
148
154
  * Grants IAM actions to the IAM Principal
@@ -507,6 +513,28 @@ export declare class BrowserCustom extends BrowserCustomBase {
507
513
  readonly browserSigning?: BrowserSigning;
508
514
  private readonly __resource;
509
515
  constructor(scope: Construct, id: string, props: BrowserCustomProps);
516
+ /**
517
+ * Render the recording configuration.
518
+ *
519
+ * @returns RecordingConfigProperty object in CloudFormation format, or undefined if no recording configuration is defined
520
+ * @default - undefined if no recording configuration is provided
521
+ * @internal This is an internal core function and should not be called directly.
522
+ */
523
+ private _renderRecordingConfig;
524
+ /**
525
+ * Render the browser signing configuration.
526
+ *
527
+ * @returns BrowserSigningProperty object in CloudFormation format, or undefined if no browser signing configuration is defined
528
+ * @default - undefined if no browser signing configuration is provided
529
+ * @internal This is an internal core function and should not be called directly.
530
+ */
531
+ private _renderBrowserSigning;
532
+ /**
533
+ * Creates execution role needed for the browser to access AWS services
534
+ * @returns The created role
535
+ * @internal This is an internal core function and should not be called directly.
536
+ */
537
+ private _createBrowserRole;
510
538
  /**
511
539
  * Validates the browser name format
512
540
  * @param name The browser name to validate
@@ -99,7 +99,7 @@ var BrowserSigning;
99
99
  * Contains methods and attributes valid for Browsers either created with CDK or imported.
100
100
  */
101
101
  class BrowserCustomBase extends aws_cdk_lib_1.Resource {
102
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustomBase", version: "2.232.0-alpha.0" };
102
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustomBase", version: "2.232.2-alpha.0" };
103
103
  /**
104
104
  * An accessor for the Connections object that will fail if this Browser does not have a VPC
105
105
  * configured.
@@ -357,7 +357,7 @@ let BrowserCustom = (() => {
357
357
  BrowserCustom = _classThis = _classDescriptor.value;
358
358
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
359
359
  }
360
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustom", version: "2.232.0-alpha.0" };
360
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustom", version: "2.232.2-alpha.0" };
361
361
  /** Uniquely identifies this class. */
362
362
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.BrowserCustom';
363
363
  /**
@@ -112,6 +112,12 @@ export declare abstract class CodeInterpreterCustomBase extends Resource impleme
112
112
  * configured.
113
113
  */
114
114
  get connections(): ec2.Connections;
115
+ /**
116
+ * The actual Connections object for this Browser. This may be unset in the event that a VPC has not
117
+ * been configured.
118
+ * @internal
119
+ */
120
+ protected _connections: ec2.Connections | undefined;
115
121
  constructor(scope: Construct, id: string);
116
122
  /**
117
123
  * Grants IAM actions to the IAM Principal
@@ -418,4 +424,24 @@ export declare class CodeInterpreterCustom extends CodeInterpreterCustomBase {
418
424
  };
419
425
  private readonly __resource;
420
426
  constructor(scope: Construct, id: string, props: CodeInterpreterCustomProps);
427
+ /**
428
+ * Validates the code interpreter name format
429
+ * @param name The code interpreter name to validate
430
+ * @returns Array of validation error messages, empty if valid
431
+ * @internal This is an internal core function and should not be called directly.
432
+ */
433
+ private _validateCodeInterpreterName;
434
+ /**
435
+ * Validates the code interpreter tags format
436
+ * @param tags The tags object to validate
437
+ * @returns Array of validation error messages, empty if valid
438
+ * @internal This is an internal core function and should not be called directly.
439
+ */
440
+ private _validateCodeInterpreterTags;
441
+ /**
442
+ * Creates execution role needed for the code interpreter to access AWS services
443
+ * @returns The created role
444
+ * @internal This is an internal core function and should not be called directly.
445
+ */
446
+ private _createCodeInterpreterRole;
421
447
  }
@@ -79,7 +79,7 @@ const CODE_INTERPRETER_TAG_MAX_LENGTH = 256;
79
79
  * Contains methods and attributes valid for Code Interpreters either created with CDK or imported.
80
80
  */
81
81
  class CodeInterpreterCustomBase extends aws_cdk_lib_1.Resource {
82
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustomBase", version: "2.232.0-alpha.0" };
82
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustomBase", version: "2.232.2-alpha.0" };
83
83
  /**
84
84
  * An accessor for the Connections object that will fail if this Browser does not have a VPC
85
85
  * configured.
@@ -313,7 +313,7 @@ let CodeInterpreterCustom = (() => {
313
313
  CodeInterpreterCustom = _classThis = _classDescriptor.value;
314
314
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
315
315
  }
316
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustom", version: "2.232.0-alpha.0" };
316
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustom", version: "2.232.2-alpha.0" };
317
317
  /** Uniquely identifies this class. */
318
318
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.CodeInterpreterCustom';
319
319
  /**