@aws-cdk/aws-bedrock-agentcore-alpha 2.254.0-alpha.0 → 2.256.0-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 (53) hide show
  1. package/.jsii +183 -227
  2. package/.jsii.tabl.json.gz +0 -0
  3. package/README.md +57 -3040
  4. package/lib/evaluation/custom-evaluator.js +1 -1
  5. package/lib/evaluation/data-source.js +1 -1
  6. package/lib/evaluation/evaluator-base.js +1 -1
  7. package/lib/evaluation/evaluator-config.js +2 -2
  8. package/lib/evaluation/evaluator.js +1 -1
  9. package/lib/evaluation/online-evaluation-base.js +1 -1
  10. package/lib/evaluation/online-evaluation.js +1 -1
  11. package/lib/evaluation/types.js +5 -5
  12. package/lib/gateway/gateway-base.js +1 -1
  13. package/lib/gateway/gateway.js +2 -2
  14. package/lib/gateway/inbound-auth/authorizer.js +4 -4
  15. package/lib/gateway/inbound-auth/custom-claim.js +1 -1
  16. package/lib/gateway/interceptor.js +1 -1
  17. package/lib/gateway/outbound-auth/api-key.js +1 -1
  18. package/lib/gateway/outbound-auth/credential-provider.js +1 -1
  19. package/lib/gateway/protocol.js +2 -2
  20. package/lib/gateway/targets/schema/api-schema.js +4 -4
  21. package/lib/gateway/targets/schema/tool-schema.js +4 -4
  22. package/lib/gateway/targets/target-base.js +1 -1
  23. package/lib/gateway/targets/target-configuration.js +6 -6
  24. package/lib/gateway/targets/target.js +1 -1
  25. package/lib/identity/api-key-credential-provider.js +1 -1
  26. package/lib/identity/oauth2-credential-provider.js +1 -1
  27. package/lib/identity/perms.js +3 -3
  28. package/lib/identity/workload-identity.js +1 -1
  29. package/lib/memory/memory-strategy.js +1 -1
  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.js +4 -4
  34. package/lib/policy/perms.d.ts +0 -6
  35. package/lib/policy/perms.js +1 -7
  36. package/lib/policy/policy-base.js +1 -1
  37. package/lib/policy/policy-engine-base.js +1 -1
  38. package/lib/policy/policy-engine.js +1 -1
  39. package/lib/policy/policy-statement.js +5 -5
  40. package/lib/policy/policy-types.js +1 -1
  41. package/lib/policy/policy.js +1 -1
  42. package/lib/runtime/inbound-auth/custom-claim.js +1 -1
  43. package/lib/runtime/inbound-auth/runtime-authorizer-configuration.js +1 -1
  44. package/lib/runtime/observability.js +2 -2
  45. package/lib/runtime/runtime-artifact.js +1 -1
  46. package/lib/runtime/runtime-base.js +1 -1
  47. package/lib/runtime/runtime-endpoint-base.js +1 -1
  48. package/lib/runtime/runtime-endpoint.js +1 -1
  49. package/lib/runtime/runtime.js +1 -1
  50. package/lib/tools/browser.js +2 -2
  51. package/lib/tools/code-interpreter.js +2 -2
  52. package/package.json +9 -9
  53. package/rosetta/policy.ts-fixture +11 -0
@@ -85,7 +85,7 @@ let PolicyEngine = (() => {
85
85
  PolicyEngine = _classThis = _classDescriptor.value;
86
86
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
87
87
  }
88
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyEngine", version: "2.254.0-alpha.0" };
88
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyEngine", version: "2.256.0-alpha.0" };
89
89
  /** Uniquely identifies this class. */
90
90
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.PolicyEngine';
91
91
  /**
@@ -109,7 +109,7 @@ class ConditionExpression {
109
109
  * Supports logical operators (AND, OR) and various comparison operators.
110
110
  */
111
111
  class ConditionBuilder {
112
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionBuilder", version: "2.254.0-alpha.0" };
112
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionBuilder", version: "2.256.0-alpha.0" };
113
113
  conditions = [];
114
114
  operators = [];
115
115
  /**
@@ -196,7 +196,7 @@ exports.ConditionBuilder = ConditionBuilder;
196
196
  class ConditionalPolicyStatement {
197
197
  policyStatement;
198
198
  conditionBuilder;
199
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionalPolicyStatement", version: "2.254.0-alpha.0" };
199
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionalPolicyStatement", version: "2.256.0-alpha.0" };
200
200
  constructor(policyStatement, conditionBuilder) {
201
201
  this.policyStatement = policyStatement;
202
202
  this.conditionBuilder = conditionBuilder;
@@ -275,7 +275,7 @@ class ConditionalAttributeAccessor {
275
275
  path;
276
276
  parent;
277
277
  conditionBuilder;
278
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionalAttributeAccessor", version: "2.254.0-alpha.0" };
278
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ConditionalAttributeAccessor", version: "2.256.0-alpha.0" };
279
279
  constructor(path, parent, conditionBuilder) {
280
280
  this.path = path;
281
281
  this.parent = parent;
@@ -367,7 +367,7 @@ exports.ConditionalAttributeAccessor = ConditionalAttributeAccessor;
367
367
  class AttributeAccessor {
368
368
  path;
369
369
  parent;
370
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AttributeAccessor", version: "2.254.0-alpha.0" };
370
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AttributeAccessor", version: "2.256.0-alpha.0" };
371
371
  constructor(path, parent) {
372
372
  this.path = path;
373
373
  this.parent = parent;
@@ -554,7 +554,7 @@ exports.AttributeAccessor = AttributeAccessor;
554
554
  * });
555
555
  */
556
556
  class PolicyStatement {
557
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyStatement", version: "2.254.0-alpha.0" };
557
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyStatement", version: "2.256.0-alpha.0" };
558
558
  /**
559
559
  * Create a permit statement - allows the action if conditions are met.
560
560
  *
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  *
8
8
  */
9
9
  class PolicyValidationMode {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyValidationMode", version: "2.254.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.PolicyValidationMode", version: "2.256.0-alpha.0" };
11
11
  /**
12
12
  * Fail policy creation if any validation findings are detected.
13
13
  * This is the safer default - catches policy errors early.
@@ -69,7 +69,7 @@ let Policy = (() => {
69
69
  Policy = _classThis = _classDescriptor.value;
70
70
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
71
71
  }
72
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Policy", version: "2.254.0-alpha.0" };
72
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Policy", version: "2.256.0-alpha.0" };
73
73
  /** Uniquely identifies this class. */
74
74
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.Policy';
75
75
  /**
@@ -29,7 +29,7 @@ class RuntimeCustomClaim {
29
29
  valueType;
30
30
  operator;
31
31
  value;
32
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeCustomClaim", version: "2.254.0-alpha.0" };
32
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeCustomClaim", version: "2.256.0-alpha.0" };
33
33
  /**
34
34
  * Create a custom claim with a string value.
35
35
  * String claims must use the EQUALS operator.
@@ -22,7 +22,7 @@ const helpers_internal_1 = require("aws-cdk-lib/core/lib/helpers-internal");
22
22
  * Provides static factory methods to create different authentication types.
23
23
  */
24
24
  class RuntimeAuthorizerConfiguration {
25
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeAuthorizerConfiguration", version: "2.254.0-alpha.0" };
25
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeAuthorizerConfiguration", version: "2.256.0-alpha.0" };
26
26
  /**
27
27
  * Use IAM authentication (default).
28
28
  * Requires AWS credentials to sign requests using SigV4.
@@ -18,7 +18,7 @@ const MAX_DELIVERY_NAME_LENGTH = 60;
18
18
  */
19
19
  class LogType {
20
20
  value;
21
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LogType", version: "2.254.0-alpha.0" };
21
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LogType", version: "2.256.0-alpha.0" };
22
22
  /**
23
23
  * Application logs for agent runtime invocations
24
24
  */
@@ -53,7 +53,7 @@ exports.LogType = LogType;
53
53
  * - `LoggingDestination.firehose(stream)` - Send logs to Kinesis Data Firehose
54
54
  */
55
55
  class LoggingDestination {
56
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LoggingDestination", version: "2.254.0-alpha.0" };
56
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.LoggingDestination", version: "2.256.0-alpha.0" };
57
57
  /**
58
58
  * Create a logging destination that sends logs to a CloudWatch Log Group
59
59
  *
@@ -57,7 +57,7 @@ var AgentCoreRuntime;
57
57
  * Provides methods to reference container images from ECR repositories or local assets.
58
58
  */
59
59
  class AgentRuntimeArtifact {
60
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AgentRuntimeArtifact", version: "2.254.0-alpha.0" };
60
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AgentRuntimeArtifact", version: "2.256.0-alpha.0" };
61
61
  /**
62
62
  * Reference an image in an ECR repository
63
63
  */
@@ -15,7 +15,7 @@ const perms_1 = require("./perms");
15
15
  * Base class for Agent Runtime
16
16
  */
17
17
  class RuntimeBase extends aws_cdk_lib_1.Resource {
18
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeBase", version: "2.254.0-alpha.0" };
18
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeBase", version: "2.256.0-alpha.0" };
19
19
  /**
20
20
  * A reference to a Runtime resource.
21
21
  */
@@ -10,7 +10,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
10
10
  * Base class for Runtime Endpoint
11
11
  */
12
12
  class RuntimeEndpointBase extends aws_cdk_lib_1.Resource {
13
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpointBase", version: "2.254.0-alpha.0" };
13
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpointBase", version: "2.256.0-alpha.0" };
14
14
  /**
15
15
  * A reference to a RuntimeEndpoint resource.
16
16
  */
@@ -69,7 +69,7 @@ let RuntimeEndpoint = (() => {
69
69
  RuntimeEndpoint = _classThis = _classDescriptor.value;
70
70
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
71
71
  }
72
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpoint", version: "2.254.0-alpha.0" };
72
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.RuntimeEndpoint", version: "2.256.0-alpha.0" };
73
73
  /** Uniquely identifies this class. */
74
74
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.RuntimeEndpoint';
75
75
  /**
@@ -94,7 +94,7 @@ let Runtime = (() => {
94
94
  Runtime = _classThis = _classDescriptor.value;
95
95
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
96
96
  }
97
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Runtime", version: "2.254.0-alpha.0" };
97
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Runtime", version: "2.256.0-alpha.0" };
98
98
  /** Uniquely identifies this class. */
99
99
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.Runtime';
100
100
  /**
@@ -100,7 +100,7 @@ var BrowserSigning;
100
100
  * Contains methods and attributes valid for Browsers either created with CDK or imported.
101
101
  */
102
102
  class BrowserCustomBase extends aws_cdk_lib_1.Resource {
103
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustomBase", version: "2.254.0-alpha.0" };
103
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustomBase", version: "2.256.0-alpha.0" };
104
104
  /**
105
105
  * A reference to a BrowserCustom resource.
106
106
  */
@@ -374,7 +374,7 @@ let BrowserCustom = (() => {
374
374
  BrowserCustom = _classThis = _classDescriptor.value;
375
375
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
376
376
  }
377
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustom", version: "2.254.0-alpha.0" };
377
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.BrowserCustom", version: "2.256.0-alpha.0" };
378
378
  /** Uniquely identifies this class. */
379
379
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.BrowserCustom';
380
380
  /**
@@ -80,7 +80,7 @@ const CODE_INTERPRETER_TAG_MAX_LENGTH = 256;
80
80
  * Contains methods and attributes valid for Code Interpreters either created with CDK or imported.
81
81
  */
82
82
  class CodeInterpreterCustomBase extends aws_cdk_lib_1.Resource {
83
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustomBase", version: "2.254.0-alpha.0" };
83
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustomBase", version: "2.256.0-alpha.0" };
84
84
  /**
85
85
  * A reference to a CodeInterpreterCustom resource.
86
86
  */
@@ -332,7 +332,7 @@ let CodeInterpreterCustom = (() => {
332
332
  CodeInterpreterCustom = _classThis = _classDescriptor.value;
333
333
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
334
334
  }
335
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustom", version: "2.254.0-alpha.0" };
335
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CodeInterpreterCustom", version: "2.256.0-alpha.0" };
336
336
  /** Uniquely identifies this class. */
337
337
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.CodeInterpreterCustom';
338
338
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-bedrock-agentcore-alpha",
3
- "version": "2.254.0-alpha.0",
3
+ "version": "2.256.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for Amazon Bedrock",
6
6
  "main": "lib/index.js",
@@ -78,21 +78,21 @@
78
78
  },
79
79
  "license": "Apache-2.0",
80
80
  "devDependencies": {
81
- "aws-cdk-lib": "2.254.0",
82
- "@aws-cdk/aws-bedrock-alpha": "2.254.0-alpha.0",
83
- "@aws-cdk/cdk-build-tools": "2.254.0-alpha.0",
81
+ "aws-cdk-lib": "2.256.0",
82
+ "@aws-cdk/aws-bedrock-alpha": "2.256.0-alpha.0",
83
+ "@aws-cdk/cdk-build-tools": "2.256.0-alpha.0",
84
84
  "@aws-cdk/integ-runner": "^2.197.1",
85
- "@aws-cdk/pkglint": "2.254.0-alpha.0",
86
- "@aws-cdk/integ-tests-alpha": "2.254.0-alpha.0",
85
+ "@aws-cdk/pkglint": "2.256.0-alpha.0",
86
+ "@aws-cdk/integ-tests-alpha": "2.256.0-alpha.0",
87
87
  "@types/jest": "^29.5.14",
88
88
  "constructs": "^10.5.0",
89
89
  "jest": "^29.7.0"
90
90
  },
91
91
  "homepage": "https://github.com/aws/aws-cdk",
92
92
  "peerDependencies": {
93
- "aws-cdk-lib": "^2.254.0",
93
+ "aws-cdk-lib": "^2.256.0",
94
94
  "constructs": "^10.5.0",
95
- "@aws-cdk/aws-bedrock-alpha": "2.254.0-alpha.0"
95
+ "@aws-cdk/aws-bedrock-alpha": "2.256.0-alpha.0"
96
96
  },
97
97
  "engines": {
98
98
  "node": ">= 20.0.0"
@@ -171,7 +171,7 @@
171
171
  },
172
172
  "jsiiRosetta": {
173
173
  "exampleDependencies": {
174
- "@aws-cdk/aws-bedrock-alpha": "^2.254.0-alpha.0"
174
+ "@aws-cdk/aws-bedrock-alpha": "^2.256.0-alpha.0"
175
175
  }
176
176
  }
177
177
  }
@@ -0,0 +1,11 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdk from 'aws-cdk-lib';
3
+ import * as iam from 'aws-cdk-lib/aws-iam';
4
+
5
+ class MyStack extends cdk.Stack {
6
+ constructor(scope: Construct, id: string) {
7
+ super(scope, id);
8
+
9
+ /// here
10
+ }
11
+ }