@aws-cdk/aws-bedrock-agentcore-alpha 2.231.0-alpha.0 → 2.232.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.
- package/.jsii +73 -15
- package/.jsii.tabl.json.gz +0 -0
- package/README.md +35 -0
- package/eslint-suppressions.json +2 -0
- package/lib/gateway/gateway-base.d.ts +0 -5
- package/lib/gateway/gateway-base.js +1 -1
- package/lib/gateway/gateway.d.ts +0 -40
- package/lib/gateway/gateway.js +1 -1
- package/lib/gateway/inbound-auth/authorizer.d.ts +0 -13
- package/lib/gateway/inbound-auth/authorizer.js +3 -3
- package/lib/gateway/outbound-auth/api-key.d.ts +0 -39
- package/lib/gateway/outbound-auth/api-key.js +1 -1
- package/lib/gateway/outbound-auth/credential-provider.d.ts +1 -8
- package/lib/gateway/outbound-auth/credential-provider.js +2 -2
- package/lib/gateway/outbound-auth/iam-role.d.ts +1 -25
- package/lib/gateway/outbound-auth/oauth.d.ts +0 -35
- package/lib/gateway/protocol.d.ts +0 -23
- package/lib/gateway/protocol.js +2 -2
- package/lib/gateway/targets/schema/api-schema.d.ts +0 -23
- package/lib/gateway/targets/schema/api-schema.js +4 -4
- package/lib/gateway/targets/schema/base-schema.d.ts +1 -24
- package/lib/gateway/targets/schema/tool-schema.d.ts +0 -35
- package/lib/gateway/targets/schema/tool-schema.js +4 -4
- package/lib/gateway/targets/target-base.js +1 -1
- package/lib/gateway/targets/target-configuration.d.ts +0 -20
- package/lib/gateway/targets/target-configuration.js +7 -7
- package/lib/gateway/targets/target.d.ts +0 -33
- package/lib/gateway/targets/target.js +1 -1
- package/lib/gateway/validation-helpers.d.ts +0 -64
- package/lib/memory/memory-strategy.d.ts +0 -13
- package/lib/memory/memory-strategy.js +1 -1
- package/lib/memory/memory.d.ts +1 -15
- package/lib/memory/memory.js +3 -3
- package/lib/memory/strategies/managed-strategy.js +2 -2
- package/lib/memory/strategies/self-managed-strategy.d.ts +3 -3
- package/lib/memory/strategies/self-managed-strategy.js +14 -2
- package/lib/network/network-configuration.d.ts +0 -19
- package/lib/network/network-configuration.js +5 -6
- package/lib/runtime/runtime-artifact.d.ts +13 -8
- package/lib/runtime/runtime-artifact.js +49 -7
- package/lib/runtime/runtime-authorizer-configuration.d.ts +0 -6
- package/lib/runtime/runtime-authorizer-configuration.js +15 -3
- package/lib/runtime/runtime-base.d.ts +0 -6
- package/lib/runtime/runtime-base.js +1 -1
- package/lib/runtime/runtime-endpoint-base.js +1 -1
- package/lib/runtime/runtime-endpoint.d.ts +0 -15
- package/lib/runtime/runtime-endpoint.js +1 -1
- package/lib/runtime/runtime.d.ts +1 -21
- package/lib/runtime/runtime.js +3 -3
- package/lib/tools/browser.d.ts +1 -29
- package/lib/tools/browser.js +5 -5
- package/lib/tools/code-interpreter.d.ts +1 -27
- package/lib/tools/code-interpreter.js +5 -5
- package/package.json +9 -9
- package/.eslintrc.js +0 -4
package/.jsii.tabl.json.gz
CHANGED
|
Binary file
|
package/README.md
CHANGED
|
@@ -249,6 +249,41 @@ const runtimeInstance = new agentcore.Runtime(this, "MyAgentRuntime", {
|
|
|
249
249
|
});
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
+
#### Option 4: Use an ECR container image URI
|
|
253
|
+
|
|
254
|
+
Reference an ECR container image directly by its URI. This is useful when you have a pre-existing ECR image URI from CloudFormation parameters or cross-stack references. No IAM permissions are automatically granted - you must ensure the runtime has ECR pull permissions.
|
|
255
|
+
|
|
256
|
+
```typescript fixture=default
|
|
257
|
+
// Direct URI reference
|
|
258
|
+
const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromImageUri(
|
|
259
|
+
"123456789012.dkr.ecr.us-east-1.amazonaws.com/my-agent:v1.0.0"
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
const runtime = new agentcore.Runtime(this, "MyAgentRuntime", {
|
|
263
|
+
runtimeName: "myAgent",
|
|
264
|
+
agentRuntimeArtifact: agentRuntimeArtifact,
|
|
265
|
+
});
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
You can also use CloudFormation parameters or references:
|
|
269
|
+
|
|
270
|
+
```typescript fixture=default
|
|
271
|
+
// Using a CloudFormation parameter
|
|
272
|
+
const imageUriParam = new cdk.CfnParameter(this, "ImageUri", {
|
|
273
|
+
type: "String",
|
|
274
|
+
description: "Container image URI for the agent runtime",
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromImageUri(
|
|
278
|
+
imageUriParam.valueAsString
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
const runtime = new agentcore.Runtime(this, "MyAgentRuntime", {
|
|
282
|
+
runtimeName: "myAgent",
|
|
283
|
+
agentRuntimeArtifact: agentRuntimeArtifact,
|
|
284
|
+
});
|
|
285
|
+
```
|
|
286
|
+
|
|
252
287
|
### Granting Permissions to Invoke Bedrock Models or Inference Profiles
|
|
253
288
|
|
|
254
289
|
To grant the runtime permissions to invoke Bedrock models or inference profiles:
|
|
@@ -284,9 +284,4 @@ export declare abstract class GatewayBase extends Resource implements IGateway {
|
|
|
284
284
|
* Return a metric containing the number of requests served by each target type for this gateway.
|
|
285
285
|
*/
|
|
286
286
|
metricTargetType(targetType: string, props?: MetricOptions): Metric;
|
|
287
|
-
/**
|
|
288
|
-
* Internal method to create a metric.
|
|
289
|
-
* @internal
|
|
290
|
-
*/
|
|
291
|
-
private configureMetric;
|
|
292
287
|
}
|
|
@@ -25,7 +25,7 @@ var GatewayExceptionLevel;
|
|
|
25
25
|
* Base Class
|
|
26
26
|
*****************************************************************************/
|
|
27
27
|
class GatewayBase extends aws_cdk_lib_1.Resource {
|
|
28
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayBase", version: "2.
|
|
28
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayBase", version: "2.232.0-alpha.0" };
|
|
29
29
|
constructor(scope, id) {
|
|
30
30
|
super(scope, id);
|
|
31
31
|
}
|
package/lib/gateway/gateway.d.ts
CHANGED
|
@@ -340,44 +340,4 @@ export declare class Gateway extends GatewayBase {
|
|
|
340
340
|
* @see https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-target-MCPservers.html
|
|
341
341
|
*/
|
|
342
342
|
addMcpServerTarget(id: string, props: AddMcpServerTargetOptions): GatewayTarget;
|
|
343
|
-
/**
|
|
344
|
-
* Creates the service role for the gateway to assume
|
|
345
|
-
*
|
|
346
|
-
* The service role starts with minimal permissions. Additional permissions
|
|
347
|
-
* are added automatically when targets are configured:
|
|
348
|
-
* - KMS encryption: Automatically grants encrypt/decrypt permissions
|
|
349
|
-
*
|
|
350
|
-
* For other target types, manually grant permissions using standard CDK grant methods:
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
|
-
private createGatewayRole;
|
|
354
|
-
/**
|
|
355
|
-
* Validates the gateway name format
|
|
356
|
-
* Pattern: ^([0-9a-zA-Z][-]?){1,100}$
|
|
357
|
-
* Max length: 48 characters
|
|
358
|
-
* @param name The gateway name to validate
|
|
359
|
-
* @throws Error if the name is invalid
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
|
-
private validateGatewayName;
|
|
363
|
-
/**
|
|
364
|
-
* Validates the description format
|
|
365
|
-
* Max length: 200 characters
|
|
366
|
-
* @param description The description to validate
|
|
367
|
-
* @throws Error if validation fails
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
private validateDescription;
|
|
371
|
-
/**
|
|
372
|
-
* Creates a default Cognito authorizer for the gateway
|
|
373
|
-
* Provisions a Cognito User Pool and configures JWT authentication
|
|
374
|
-
* @internal
|
|
375
|
-
*/
|
|
376
|
-
private createDefaultCognitoAuthorizerConfig;
|
|
377
|
-
/**
|
|
378
|
-
* Creates a default MCP protocol configuration for the gateway
|
|
379
|
-
* Provides sensible defaults for MCP protocol settings
|
|
380
|
-
* @internal
|
|
381
|
-
*/
|
|
382
|
-
private createDefaultMcpProtocolConfiguration;
|
|
383
343
|
}
|
package/lib/gateway/gateway.js
CHANGED
|
@@ -87,7 +87,7 @@ let Gateway = (() => {
|
|
|
87
87
|
Gateway = _classThis = _classDescriptor.value;
|
|
88
88
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
89
89
|
}
|
|
90
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Gateway", version: "2.
|
|
90
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.Gateway", version: "2.232.0-alpha.0" };
|
|
91
91
|
/** Uniquely identifies this class. */
|
|
92
92
|
static PROPERTY_INJECTION_ID = '@aws-cdk.aws-bedrock-agentcore-alpha.Gateway';
|
|
93
93
|
/**
|
|
@@ -19,11 +19,6 @@ export interface IGatewayAuthorizerConfig {
|
|
|
19
19
|
* The authorizer type
|
|
20
20
|
*/
|
|
21
21
|
readonly authorizerType: GatewayAuthorizerType;
|
|
22
|
-
/**
|
|
23
|
-
* The authorizer configuration in CFN format
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
_render(): any;
|
|
27
22
|
}
|
|
28
23
|
/******************************************************************************
|
|
29
24
|
* Custom JWT
|
|
@@ -60,10 +55,6 @@ export declare class CustomJwtAuthorizer implements IGatewayAuthorizerConfig {
|
|
|
60
55
|
private readonly allowedAudience?;
|
|
61
56
|
private readonly allowedClients?;
|
|
62
57
|
constructor(config: CustomJwtConfiguration);
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
_render(): any;
|
|
67
58
|
}
|
|
68
59
|
/******************************************************************************
|
|
69
60
|
* AWS IAM
|
|
@@ -74,10 +65,6 @@ export declare class CustomJwtAuthorizer implements IGatewayAuthorizerConfig {
|
|
|
74
65
|
*/
|
|
75
66
|
export declare class IamAuthorizer implements IGatewayAuthorizerConfig {
|
|
76
67
|
readonly authorizerType = GatewayAuthorizerType.AWS_IAM;
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
_render(): any;
|
|
81
68
|
}
|
|
82
69
|
/******************************************************************************
|
|
83
70
|
* Factory
|
|
@@ -21,7 +21,7 @@ var GatewayAuthorizerType;
|
|
|
21
21
|
* Custom JWT authorizer configuration implementation
|
|
22
22
|
*/
|
|
23
23
|
class CustomJwtAuthorizer {
|
|
24
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CustomJwtAuthorizer", version: "2.
|
|
24
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.CustomJwtAuthorizer", version: "2.232.0-alpha.0" };
|
|
25
25
|
authorizerType = GatewayAuthorizerType.CUSTOM_JWT;
|
|
26
26
|
discoveryUrl;
|
|
27
27
|
allowedAudience;
|
|
@@ -62,7 +62,7 @@ exports.CustomJwtAuthorizer = CustomJwtAuthorizer;
|
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
64
|
class IamAuthorizer {
|
|
65
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.IamAuthorizer", version: "2.
|
|
65
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.IamAuthorizer", version: "2.232.0-alpha.0" };
|
|
66
66
|
authorizerType = GatewayAuthorizerType.AWS_IAM;
|
|
67
67
|
/**
|
|
68
68
|
* @internal
|
|
@@ -78,7 +78,7 @@ exports.IamAuthorizer = IamAuthorizer;
|
|
|
78
78
|
* Factory class for creating Gateway Authorizers
|
|
79
79
|
*/
|
|
80
80
|
class GatewayAuthorizer {
|
|
81
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayAuthorizer", version: "2.
|
|
81
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayAuthorizer", version: "2.232.0-alpha.0" };
|
|
82
82
|
/**
|
|
83
83
|
* AWS IAM authorizer instance
|
|
84
84
|
*/
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Grant, IRole } from 'aws-cdk-lib/aws-iam';
|
|
2
|
-
import { CredentialProviderType, ICredentialProviderConfig } from './credential-provider';
|
|
3
1
|
/******************************************************************************
|
|
4
2
|
* API KEY
|
|
5
3
|
*****************************************************************************/
|
|
@@ -24,14 +22,6 @@ export interface ApiKeyAdditionalConfiguration {
|
|
|
24
22
|
*/
|
|
25
23
|
readonly credentialPrefix?: string;
|
|
26
24
|
}
|
|
27
|
-
/**
|
|
28
|
-
* API Key credential location type
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export declare enum ApiKeyCredentialLocationType {
|
|
32
|
-
HEADER = "HEADER",
|
|
33
|
-
QUERY_PARAMETER = "QUERY_PARAMETER"
|
|
34
|
-
}
|
|
35
25
|
/**
|
|
36
26
|
* API Key location within the request
|
|
37
27
|
*/
|
|
@@ -86,32 +76,3 @@ export interface ApiKeyCredentialProviderProps {
|
|
|
86
76
|
*/
|
|
87
77
|
readonly credentialLocation?: ApiKeyCredentialLocation;
|
|
88
78
|
}
|
|
89
|
-
/**
|
|
90
|
-
* API Key credential provider configuration implementation
|
|
91
|
-
* Can be used with OpenAPI targets
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
export declare class ApiKeyCredentialProviderConfiguration implements ICredentialProviderConfig {
|
|
95
|
-
readonly credentialProviderType = CredentialProviderType.API_KEY;
|
|
96
|
-
/**
|
|
97
|
-
* The ARN of the API key provider
|
|
98
|
-
*/
|
|
99
|
-
readonly providerArn: string;
|
|
100
|
-
/**
|
|
101
|
-
* The ARN of the Secrets Manager secret
|
|
102
|
-
*/
|
|
103
|
-
readonly secretArn: string;
|
|
104
|
-
/**
|
|
105
|
-
* The location configuration for the API key credential
|
|
106
|
-
*/
|
|
107
|
-
readonly credentialLocation: ApiKeyCredentialLocation;
|
|
108
|
-
constructor(configuration: ApiKeyCredentialProviderProps);
|
|
109
|
-
/**
|
|
110
|
-
* Grant the needed permissions to the role for API key authentication
|
|
111
|
-
*/
|
|
112
|
-
grantNeededPermissionsToRole(role: IRole): Grant | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
_render(): any;
|
|
117
|
-
}
|
|
@@ -19,7 +19,7 @@ var ApiKeyCredentialLocationType;
|
|
|
19
19
|
* API Key location within the request
|
|
20
20
|
*/
|
|
21
21
|
class ApiKeyCredentialLocation {
|
|
22
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ApiKeyCredentialLocation", version: "2.
|
|
22
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ApiKeyCredentialLocation", version: "2.232.0-alpha.0" };
|
|
23
23
|
/**
|
|
24
24
|
* Create a header-based API key credential location
|
|
25
25
|
* @param config - Optional configuration for the credential location
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CfnGatewayTarget } from 'aws-cdk-lib/aws-bedrockagentcore';
|
|
1
|
+
import { Grant, IRole } from 'aws-cdk-lib/aws-iam';
|
|
3
2
|
import { ApiKeyCredentialProviderProps } from './api-key';
|
|
4
3
|
import { OAuthConfiguration } from './oauth';
|
|
5
|
-
import { Grant, IRole } from 'aws-cdk-lib/aws-iam';
|
|
6
4
|
/******************************************************************************
|
|
7
5
|
* Enums
|
|
8
6
|
*****************************************************************************/
|
|
@@ -34,11 +32,6 @@ export interface ICredentialProviderConfig {
|
|
|
34
32
|
* The credential provider type
|
|
35
33
|
*/
|
|
36
34
|
readonly credentialProviderType: CredentialProviderType;
|
|
37
|
-
/**
|
|
38
|
-
* Renders as CFN Property
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
_render(): CfnGatewayTarget.CredentialProviderConfigurationProperty | IResolvable;
|
|
42
35
|
/**
|
|
43
36
|
* Grant the role the permissions
|
|
44
37
|
*/
|
|
@@ -31,7 +31,7 @@ var CredentialProviderType;
|
|
|
31
31
|
* Factory class for creating different Gateway Credential Providers
|
|
32
32
|
*/
|
|
33
33
|
class GatewayCredentialProvider {
|
|
34
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayCredentialProvider", version: "2.
|
|
34
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayCredentialProvider", version: "2.232.0-alpha.0" };
|
|
35
35
|
/**
|
|
36
36
|
* Create an API key credential provider from Identity ARN
|
|
37
37
|
* Use this method when you have the Identity ARN as a string
|
|
@@ -77,4 +77,4 @@ class GatewayCredentialProvider {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
exports.GatewayCredentialProvider = GatewayCredentialProvider;
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlZGVudGlhbC1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNyZWRlbnRpYWwtcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFHQSx1Q0FBaUc7QUFDakcseUNBQW9FO0FBQ3BFLG1DQUFtRjtBQUVuRjs7K0VBRStFO0FBQy9FOztHQUVHO0FBQ0gsSUFBWSxzQkFlWDtBQWZELFdBQVksc0JBQXNCO0lBQ2hDOztPQUVHO0lBQ0gsNkNBQW1CLENBQUE7SUFFbkI7O09BRUc7SUFDSCx5Q0FBZSxDQUFBO0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dXRoQ3JlZGVudGlhbFByb3ZpZGVyQ29uZmlndXJhdGlvbiB9IGZyb20gJy4vb2F1dGgnO1xuXG4vKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEVudW1zXG4gKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKipcbiAqIENyZWRlbnRpYWwgcHJvdmlkZXIgdHlwZXMgc3VwcG9ydGVkIGJ5IGdhdGV3YXkgdGFyZ2V0XG4gKi9cbmV4cG9ydCBlbnVtIENyZWRlbnRpYWxQcm92aWRlclR5cGUge1xuICAvKipcbiAgICogQVBJIEtleSBhdXRoZW50aWNhdGlvblxuICAgKi9cbiAgQVBJX0tFWSA9ICdBUElfS0VZJyxcblxuICAvKipcbiAgICogT0F1dGggYXV0aGVudGljYXRpb25cbiAgICovXG4gIE9BVVRIID0gJ09BVVRIJyxcblxuICAvKipcbiAgICogSUFNIHJvbGUgYXV0aGVudGljYXRpb25cbiAgICovXG4gIEdBVEVXQVlfSUFNX1JPTEUgPSAnR0FURVdBWV9JQU1fUk9MRScsXG59XG5cbi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcbiAqICAgICAgICAgICAgICAgICAgICAgICBDcmVkZW50aWFsIFByb3ZpZGVyXG4gKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG5cbi8qKlxuICogQWJzdHJhY3QgaW50ZXJmYWNlIGZvciBnYXRld2F5IGNyZWRlbnRpYWwgcHJvdmlkZXIgY29uZmlndXJhdGlvblxuICovXG5leHBvcnQgaW50ZXJmYWNlIElDcmV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dGF0aWMgZnJvbUlhbVJvbGUoKTogSUNyZWRlbnRpYWxQcm92aWRlckNvbmZpZyB7XG4gICAgcmV0dXJuIG5ldyBHYXRld2F5SWFtUm9sZUNyZWRlbnRpYWxQcm92aWRlckNvbmZpZygpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,28 +1,4 @@
|
|
|
1
1
|
/******************************************************************************
|
|
2
2
|
* IAM Role
|
|
3
3
|
*****************************************************************************/
|
|
4
|
-
|
|
5
|
-
import { CredentialProviderType, ICredentialProviderConfig } from './credential-provider';
|
|
6
|
-
/**
|
|
7
|
-
* Gateway IAM Role credential provider configuration implementation
|
|
8
|
-
* Can be used with Lambda and Smithy targets
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare class GatewayIamRoleCredentialProviderConfig implements ICredentialProviderConfig {
|
|
12
|
-
readonly credentialProviderType = CredentialProviderType.GATEWAY_IAM_ROLE;
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
_render(): any;
|
|
18
|
-
/**
|
|
19
|
-
* No-op for IAM role authentication - no additional permissions are required.
|
|
20
|
-
* When using IAM role authentication for outbound calls, the gateway uses its own execution
|
|
21
|
-
* role to authenticate with the target endpoint. Unlike API Key and OAuth credential providers
|
|
22
|
-
* which require permissions to access external credential stores (Secrets Manager, Token Vault),
|
|
23
|
-
* IAM role authentication leverages AWS IAM's native authentication without additional resources.
|
|
24
|
-
* @param role The gateway's execution role (unused - no credential provider permissions needed)
|
|
25
|
-
* @returns undefined - no additional credential provider permissions to grant
|
|
26
|
-
*/
|
|
27
|
-
grantNeededPermissionsToRole(role: IRole): Grant | undefined;
|
|
28
|
-
}
|
|
4
|
+
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Grant, IRole } from 'aws-cdk-lib/aws-iam';
|
|
2
|
-
import { CredentialProviderType, ICredentialProviderConfig } from './credential-provider';
|
|
3
1
|
/******************************************************************************
|
|
4
2
|
* OAuth
|
|
5
3
|
*****************************************************************************/
|
|
@@ -45,36 +43,3 @@ export interface OAuthConfiguration {
|
|
|
45
43
|
*/
|
|
46
44
|
readonly customParameters?: Record<string, string>;
|
|
47
45
|
}
|
|
48
|
-
/**
|
|
49
|
-
* OAuth credential provider configuration implementation
|
|
50
|
-
* Can be used with OpenAPI targets
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
export declare class OAuthCredentialProviderConfiguration implements ICredentialProviderConfig {
|
|
54
|
-
readonly credentialProviderType = CredentialProviderType.OAUTH;
|
|
55
|
-
/**
|
|
56
|
-
* The ARN of the OAuth provider
|
|
57
|
-
*/
|
|
58
|
-
readonly providerArn: string;
|
|
59
|
-
/**
|
|
60
|
-
* The ARN of the Secrets Manager secret
|
|
61
|
-
*/
|
|
62
|
-
readonly secretArn: string;
|
|
63
|
-
/**
|
|
64
|
-
* The OAuth scopes to request
|
|
65
|
-
*/
|
|
66
|
-
readonly scopes: string[];
|
|
67
|
-
/**
|
|
68
|
-
* Custom parameters for the OAuth flow
|
|
69
|
-
*/
|
|
70
|
-
readonly customParameters?: Record<string, string>;
|
|
71
|
-
constructor(configuration: OAuthConfiguration);
|
|
72
|
-
/**
|
|
73
|
-
* Grant the needed permissions to the role for OAuth authentication
|
|
74
|
-
*/
|
|
75
|
-
grantNeededPermissionsToRole(role: IRole): Grant | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
_render(): any;
|
|
80
|
-
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import { CfnGateway } from 'aws-cdk-lib/aws-bedrockagentcore';
|
|
2
|
-
/******************************************************************************
|
|
3
|
-
* Enums
|
|
4
|
-
*****************************************************************************/
|
|
5
|
-
/**
|
|
6
|
-
* The type of protocols
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare enum GatewayProtocolType {
|
|
10
|
-
/**
|
|
11
|
-
* MCP (Model Context Protocol) protocol type.
|
|
12
|
-
*/
|
|
13
|
-
MCP = "MCP"
|
|
14
|
-
}
|
|
15
1
|
/******************************************************************************
|
|
16
2
|
* Protocol Configuration
|
|
17
3
|
*****************************************************************************/
|
|
@@ -23,11 +9,6 @@ export interface IGatewayProtocolConfig {
|
|
|
23
9
|
* The protocol type
|
|
24
10
|
*/
|
|
25
11
|
readonly protocolType: string;
|
|
26
|
-
/**
|
|
27
|
-
* Returns internal info as the CFN protocol configuration object
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
_render(): any;
|
|
31
12
|
}
|
|
32
13
|
/**
|
|
33
14
|
* Factory class for instantiating Gateway Protocols
|
|
@@ -114,8 +95,4 @@ export declare class McpProtocolConfiguration implements IGatewayProtocolConfig
|
|
|
114
95
|
*/
|
|
115
96
|
readonly instructions?: string;
|
|
116
97
|
constructor(props?: McpConfiguration);
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
_render(): CfnGateway.GatewayProtocolConfigurationProperty;
|
|
121
98
|
}
|
package/lib/gateway/protocol.js
CHANGED
|
@@ -21,7 +21,7 @@ var GatewayProtocolType;
|
|
|
21
21
|
* Factory class for instantiating Gateway Protocols
|
|
22
22
|
*/
|
|
23
23
|
class GatewayProtocol {
|
|
24
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayProtocol", version: "2.
|
|
24
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.GatewayProtocol", version: "2.232.0-alpha.0" };
|
|
25
25
|
/**
|
|
26
26
|
* Create an MCP protocol configuration
|
|
27
27
|
* @param props - Optional MCP configuration properties
|
|
@@ -75,7 +75,7 @@ var McpGatewaySearchType;
|
|
|
75
75
|
* MCP (Model Context Protocol) configuration implementation
|
|
76
76
|
*/
|
|
77
77
|
class McpProtocolConfiguration {
|
|
78
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpProtocolConfiguration", version: "2.
|
|
78
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.McpProtocolConfiguration", version: "2.232.0-alpha.0" };
|
|
79
79
|
protocolType;
|
|
80
80
|
/**
|
|
81
81
|
* The supported MCP protocol versions
|
|
@@ -42,11 +42,6 @@ export declare abstract class ApiSchema extends TargetSchema {
|
|
|
42
42
|
*/
|
|
43
43
|
readonly bucketOwnerAccountId?: string;
|
|
44
44
|
protected constructor(s3File?: Location, bucketOwnerAccountId?: string, inlineSchema?: string);
|
|
45
|
-
/**
|
|
46
|
-
* Format as CFN properties
|
|
47
|
-
* @internal This is an internal core function and should not be called directly.
|
|
48
|
-
*/
|
|
49
|
-
abstract _render(): any;
|
|
50
45
|
}
|
|
51
46
|
/**
|
|
52
47
|
* API Schema from a local asset.
|
|
@@ -59,11 +54,6 @@ export declare class AssetApiSchema extends ApiSchema {
|
|
|
59
54
|
private readonly options;
|
|
60
55
|
private asset?;
|
|
61
56
|
constructor(path: string, options?: s3_assets.AssetOptions);
|
|
62
|
-
/**
|
|
63
|
-
* Gets the file path for internal validation purposes
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
_getFilePath(): string;
|
|
67
57
|
/**
|
|
68
58
|
* Binds this API schema to a construct scope.
|
|
69
59
|
* This method initializes the S3 asset if it hasn't been initialized yet.
|
|
@@ -72,11 +62,6 @@ export declare class AssetApiSchema extends ApiSchema {
|
|
|
72
62
|
* @param scope - The construct scope to bind to
|
|
73
63
|
*/
|
|
74
64
|
bind(scope: Construct): void;
|
|
75
|
-
/**
|
|
76
|
-
* Format as CFN properties
|
|
77
|
-
* @internal This is an internal core function and should not be called directly.
|
|
78
|
-
*/
|
|
79
|
-
_render(): any;
|
|
80
65
|
grantPermissionsToRole(role: IRole): void;
|
|
81
66
|
}
|
|
82
67
|
/**
|
|
@@ -87,10 +72,6 @@ export declare class AssetApiSchema extends ApiSchema {
|
|
|
87
72
|
export declare class InlineApiSchema extends ApiSchema {
|
|
88
73
|
private readonly schema;
|
|
89
74
|
constructor(schema: string);
|
|
90
|
-
/**
|
|
91
|
-
* @internal This is an internal core function and should not be called directly.
|
|
92
|
-
*/
|
|
93
|
-
_render(): any;
|
|
94
75
|
grantPermissionsToRole(_role: IRole): void;
|
|
95
76
|
bind(scope: Construct): void;
|
|
96
77
|
}
|
|
@@ -101,10 +82,6 @@ export declare class S3ApiSchema extends ApiSchema {
|
|
|
101
82
|
private readonly location;
|
|
102
83
|
readonly bucketOwnerAccountId?: string | undefined;
|
|
103
84
|
constructor(location: Location, bucketOwnerAccountId?: string | undefined);
|
|
104
|
-
/**
|
|
105
|
-
* @internal This is an internal core function and should not be called directly.
|
|
106
|
-
*/
|
|
107
|
-
_render(): any;
|
|
108
85
|
bind(scope: Construct): void;
|
|
109
86
|
grantPermissionsToRole(role: IRole): void;
|
|
110
87
|
}
|
|
@@ -24,7 +24,7 @@ class ApiSchemaError extends Error {
|
|
|
24
24
|
* Represents the concept of an API Schema for a Gateway Target.
|
|
25
25
|
*/
|
|
26
26
|
class ApiSchema extends base_schema_1.TargetSchema {
|
|
27
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ApiSchema", version: "2.
|
|
27
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.ApiSchema", version: "2.232.0-alpha.0" };
|
|
28
28
|
/**
|
|
29
29
|
* Creates an API Schema from a local file.
|
|
30
30
|
* @param path - the path to the local file containing the OpenAPI schema for the action group
|
|
@@ -82,7 +82,7 @@ exports.ApiSchema = ApiSchema;
|
|
|
82
82
|
class AssetApiSchema extends ApiSchema {
|
|
83
83
|
path;
|
|
84
84
|
options;
|
|
85
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AssetApiSchema", version: "2.
|
|
85
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.AssetApiSchema", version: "2.232.0-alpha.0" };
|
|
86
86
|
asset;
|
|
87
87
|
constructor(path, options = {}) {
|
|
88
88
|
super();
|
|
@@ -144,7 +144,7 @@ exports.AssetApiSchema = AssetApiSchema;
|
|
|
144
144
|
*/
|
|
145
145
|
class InlineApiSchema extends ApiSchema {
|
|
146
146
|
schema;
|
|
147
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.InlineApiSchema", version: "2.
|
|
147
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.InlineApiSchema", version: "2.232.0-alpha.0" };
|
|
148
148
|
constructor(schema) {
|
|
149
149
|
super(undefined, undefined, schema);
|
|
150
150
|
this.schema = schema;
|
|
@@ -174,7 +174,7 @@ exports.InlineApiSchema = InlineApiSchema;
|
|
|
174
174
|
class S3ApiSchema extends ApiSchema {
|
|
175
175
|
location;
|
|
176
176
|
bucketOwnerAccountId;
|
|
177
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.S3ApiSchema", version: "2.
|
|
177
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-bedrock-agentcore-alpha.S3ApiSchema", version: "2.232.0-alpha.0" };
|
|
178
178
|
constructor(location, bucketOwnerAccountId) {
|
|
179
179
|
super(location, bucketOwnerAccountId, undefined);
|
|
180
180
|
this.location = location;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Construct } from 'constructs';
|
|
3
|
-
/**
|
|
4
|
-
* Base abstract class for all schema types used in Bedrock AgentCore Gateway Targets.
|
|
5
|
-
* This provides a common interface for both API schemas and tool schemas.
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class TargetSchema {
|
|
9
|
-
/**
|
|
10
|
-
* Format as CFN properties
|
|
11
|
-
*
|
|
12
|
-
* @internal This is an internal core function and should not be called directly.
|
|
13
|
-
*/
|
|
14
|
-
abstract _render(): any;
|
|
15
|
-
/**
|
|
16
|
-
* Bind the schema to a construct
|
|
17
|
-
*/
|
|
18
|
-
abstract bind(scope: Construct): void;
|
|
19
|
-
/**
|
|
20
|
-
* Grant permissions to the role
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
abstract grantPermissionsToRole(role: IRole): void;
|
|
24
|
-
}
|
|
1
|
+
export {};
|
|
@@ -3,23 +3,6 @@ import { IBucket, Location } from 'aws-cdk-lib/aws-s3';
|
|
|
3
3
|
import * as s3_assets from 'aws-cdk-lib/aws-s3-assets';
|
|
4
4
|
import { Construct } from 'constructs';
|
|
5
5
|
import { TargetSchema } from './base-schema';
|
|
6
|
-
/******************************************************************************
|
|
7
|
-
* Tool Schema Configuration
|
|
8
|
-
*****************************************************************************/
|
|
9
|
-
/**
|
|
10
|
-
* Abstract interface for tool schema configuration
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export interface IToolSchemaConfiguration {
|
|
14
|
-
/**
|
|
15
|
-
* The tool schema configuration type
|
|
16
|
-
*/
|
|
17
|
-
readonly toolSchemaType: string;
|
|
18
|
-
/**
|
|
19
|
-
* The tool schema configuration object
|
|
20
|
-
*/
|
|
21
|
-
readonly configuration: any;
|
|
22
|
-
}
|
|
23
6
|
/**
|
|
24
7
|
* Schema definition types
|
|
25
8
|
*/
|
|
@@ -136,11 +119,6 @@ export declare abstract class ToolSchema extends TargetSchema {
|
|
|
136
119
|
*/
|
|
137
120
|
readonly bucketOwnerAccountId?: string;
|
|
138
121
|
protected constructor(s3File?: Location, bucketOwnerAccountId?: string, inlineSchema?: ToolDefinition[]);
|
|
139
|
-
/**
|
|
140
|
-
* Format as CFN properties
|
|
141
|
-
* @internal This is an internal core function and should not be called directly.
|
|
142
|
-
*/
|
|
143
|
-
abstract _render(): any;
|
|
144
122
|
}
|
|
145
123
|
/**
|
|
146
124
|
* Tool Schema from a local asset.
|
|
@@ -161,11 +139,6 @@ export declare class AssetToolSchema extends ToolSchema {
|
|
|
161
139
|
* @param scope - The construct scope to bind to
|
|
162
140
|
*/
|
|
163
141
|
bind(scope: Construct): void;
|
|
164
|
-
/**
|
|
165
|
-
* Format as CFN properties
|
|
166
|
-
* @internal This is an internal core function and should not be called directly.
|
|
167
|
-
*/
|
|
168
|
-
_render(): any;
|
|
169
142
|
grantPermissionsToRole(role: IRole): void;
|
|
170
143
|
}
|
|
171
144
|
/**
|
|
@@ -175,10 +148,6 @@ export declare class AssetToolSchema extends ToolSchema {
|
|
|
175
148
|
export declare class InlineToolSchema extends ToolSchema {
|
|
176
149
|
private readonly schema;
|
|
177
150
|
constructor(schema: ToolDefinition[]);
|
|
178
|
-
/**
|
|
179
|
-
* @internal This is an internal core function and should not be called directly.
|
|
180
|
-
*/
|
|
181
|
-
_render(): any;
|
|
182
151
|
bind(scope: Construct): void;
|
|
183
152
|
grantPermissionsToRole(_role: IRole): void;
|
|
184
153
|
}
|
|
@@ -189,10 +158,6 @@ export declare class S3ToolSchema extends ToolSchema {
|
|
|
189
158
|
private readonly location;
|
|
190
159
|
readonly bucketOwnerAccountId?: string | undefined;
|
|
191
160
|
constructor(location: Location, bucketOwnerAccountId?: string | undefined);
|
|
192
|
-
/**
|
|
193
|
-
* @internal This is an internal core function and should not be called directly.
|
|
194
|
-
*/
|
|
195
|
-
_render(): any;
|
|
196
161
|
bind(scope: Construct): void;
|
|
197
162
|
grantPermissionsToRole(role: IRole): void;
|
|
198
163
|
}
|