@aws-cdk/aws-bedrock-agentcore-alpha 2.228.0-alpha.0 → 2.229.1-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 +1385 -1080
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +15 -1
- package/README.md +119 -15
- package/lib/gateway/gateway-base.js +171 -0
- package/{agentcore → lib}/gateway/gateway.js +4 -4
- package/{agentcore → lib}/gateway/inbound-auth/authorizer.js +3 -3
- package/lib/gateway/outbound-auth/api-key.js +141 -0
- package/{agentcore → lib}/gateway/outbound-auth/credential-provider.js +1 -1
- package/lib/gateway/outbound-auth/oauth.js +76 -0
- package/lib/gateway/perms.d.ts +73 -0
- package/lib/gateway/perms.js +109 -0
- package/{agentcore → lib}/gateway/protocol.js +2 -2
- package/{agentcore → lib}/gateway/targets/schema/api-schema.js +4 -4
- package/{agentcore → lib}/gateway/targets/schema/tool-schema.js +4 -4
- package/{agentcore → lib}/gateway/targets/target-base.js +1 -1
- package/{agentcore → lib}/gateway/targets/target-configuration.js +5 -5
- package/lib/gateway/targets/target.js +444 -0
- package/lib/index.d.ts +30 -1
- package/lib/index.js +55 -6
- package/{agentcore → lib}/memory/memory-strategy.js +1 -1
- package/{agentcore → lib}/memory/memory.js +2 -2
- package/{agentcore → lib}/memory/strategies/managed-strategy.js +1 -1
- package/{agentcore → lib}/memory/strategies/self-managed-strategy.js +1 -1
- package/{agentcore → lib}/network/network-configuration.js +4 -4
- package/{agentcore → lib}/runtime/runtime-artifact.d.ts +30 -0
- package/lib/runtime/runtime-artifact.js +174 -0
- package/{agentcore → lib}/runtime/runtime-authorizer-configuration.js +1 -1
- package/{agentcore → lib}/runtime/runtime-base.js +1 -1
- package/{agentcore → lib}/runtime/runtime-endpoint-base.js +1 -1
- package/{agentcore → lib}/runtime/runtime-endpoint.js +1 -1
- package/{agentcore → lib}/runtime/runtime.d.ts +32 -1
- package/lib/runtime/runtime.js +694 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +25 -0
- package/{agentcore → lib}/tools/browser.d.ts +37 -0
- package/lib/tools/browser.js +680 -0
- package/{agentcore → lib}/tools/code-interpreter.js +2 -2
- package/package.json +10 -10
- package/agentcore/gateway/gateway-base.js +0 -171
- package/agentcore/gateway/outbound-auth/api-key.js +0 -141
- package/agentcore/gateway/outbound-auth/oauth.js +0 -76
- package/agentcore/gateway/perms.d.ts +0 -75
- package/agentcore/gateway/perms.js +0 -112
- package/agentcore/gateway/targets/target.js +0 -444
- package/agentcore/index.d.ts +0 -30
- package/agentcore/index.js +0 -71
- package/agentcore/runtime/runtime-artifact.js +0 -90
- package/agentcore/runtime/runtime.js +0 -589
- package/agentcore/runtime/types.d.ts +0 -20
- package/agentcore/runtime/types.js +0 -25
- package/agentcore/tools/browser.js +0 -641
- /package/{agentcore → lib}/gateway/gateway-base.d.ts +0 -0
- /package/{agentcore → lib}/gateway/gateway.d.ts +0 -0
- /package/{agentcore → lib}/gateway/inbound-auth/authorizer.d.ts +0 -0
- /package/{agentcore → lib}/gateway/outbound-auth/api-key.d.ts +0 -0
- /package/{agentcore → lib}/gateway/outbound-auth/credential-provider.d.ts +0 -0
- /package/{agentcore → lib}/gateway/outbound-auth/iam-role.d.ts +0 -0
- /package/{agentcore → lib}/gateway/outbound-auth/iam-role.js +0 -0
- /package/{agentcore → lib}/gateway/outbound-auth/oauth.d.ts +0 -0
- /package/{agentcore → lib}/gateway/protocol.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/schema/api-schema.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/schema/base-schema.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/schema/base-schema.js +0 -0
- /package/{agentcore → lib}/gateway/targets/schema/tool-schema.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/target-base.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/target-configuration.d.ts +0 -0
- /package/{agentcore → lib}/gateway/targets/target.d.ts +0 -0
- /package/{agentcore → lib}/gateway/validation-helpers.d.ts +0 -0
- /package/{agentcore → lib}/gateway/validation-helpers.js +0 -0
- /package/{agentcore → lib}/memory/memory-strategy.d.ts +0 -0
- /package/{agentcore → lib}/memory/memory.d.ts +0 -0
- /package/{agentcore → lib}/memory/perms.d.ts +0 -0
- /package/{agentcore → lib}/memory/perms.js +0 -0
- /package/{agentcore → lib}/memory/strategies/managed-strategy.d.ts +0 -0
- /package/{agentcore → lib}/memory/strategies/self-managed-strategy.d.ts +0 -0
- /package/{agentcore → lib}/memory/validation-helpers.d.ts +0 -0
- /package/{agentcore → lib}/memory/validation-helpers.js +0 -0
- /package/{agentcore → lib}/network/network-configuration.d.ts +0 -0
- /package/{agentcore → lib}/runtime/perms.d.ts +0 -0
- /package/{agentcore → lib}/runtime/perms.js +0 -0
- /package/{agentcore → lib}/runtime/runtime-authorizer-configuration.d.ts +0 -0
- /package/{agentcore → lib}/runtime/runtime-base.d.ts +0 -0
- /package/{agentcore → lib}/runtime/runtime-endpoint-base.d.ts +0 -0
- /package/{agentcore → lib}/runtime/runtime-endpoint.d.ts +0 -0
- /package/{agentcore → lib}/runtime/validation-helpers.d.ts +0 -0
- /package/{agentcore → lib}/runtime/validation-helpers.js +0 -0
- /package/{agentcore → lib}/tools/code-interpreter.d.ts +0 -0
- /package/{agentcore → lib}/tools/perms.d.ts +0 -0
- /package/{agentcore → lib}/tools/perms.js +0 -0
- /package/{agentcore → lib}/tools/validation-helpers.d.ts +0 -0
- /package/{agentcore → lib}/tools/validation-helpers.js +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* Enums
|
|
3
|
+
*****************************************************************************/
|
|
4
|
+
import { Duration } from 'aws-cdk-lib';
|
|
5
|
+
/**
|
|
6
|
+
* Protocol configuration for Agent Runtime
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ProtocolType {
|
|
9
|
+
/**
|
|
10
|
+
* Model Context Protocol
|
|
11
|
+
*/
|
|
12
|
+
MCP = "MCP",
|
|
13
|
+
/**
|
|
14
|
+
* HTTP protocol
|
|
15
|
+
*/
|
|
16
|
+
HTTP = "HTTP",
|
|
17
|
+
/**
|
|
18
|
+
* A2A protocol
|
|
19
|
+
*/
|
|
20
|
+
A2A = "A2A"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Configuration for HTTP request headers that will be passed through to the runtime.
|
|
24
|
+
*/
|
|
25
|
+
export interface RequestHeaderConfiguration {
|
|
26
|
+
/**
|
|
27
|
+
* A list of HTTP request headers that are allowed to be passed through to the runtime.
|
|
28
|
+
* @default - No request headers allowed
|
|
29
|
+
*/
|
|
30
|
+
readonly allowlistedHeaders?: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* LifecycleConfiguration lets you manage the lifecycle of runtime sessions and resources in AgentCore Runtime.
|
|
34
|
+
* This configuration helps optimize resource utilization by automatically cleaning up idle sessions and preventing
|
|
35
|
+
* long-running instances from consuming resources indefinitely.
|
|
36
|
+
*/
|
|
37
|
+
export interface LifecycleConfiguration {
|
|
38
|
+
/**
|
|
39
|
+
* Timeout in seconds for idle runtime sessions. When a session remains idle for this duration,
|
|
40
|
+
* it will be automatically terminated. Default: 900 seconds (15 minutes).
|
|
41
|
+
* @default - 900 seconds (15 minutes)
|
|
42
|
+
*/
|
|
43
|
+
readonly idleRuntimeSessionTimeout?: Duration;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum lifetime for the instance in seconds. Once reached, instances will be automatically
|
|
46
|
+
* terminated and replaced. Default: 28800 seconds (8 hours).
|
|
47
|
+
* @default - 28800 seconds (8 hours)
|
|
48
|
+
*/
|
|
49
|
+
readonly maxLifetime?: Duration;
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/******************************************************************************
|
|
3
|
+
* Enums
|
|
4
|
+
*****************************************************************************/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProtocolType = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Protocol configuration for Agent Runtime
|
|
9
|
+
*/
|
|
10
|
+
var ProtocolType;
|
|
11
|
+
(function (ProtocolType) {
|
|
12
|
+
/**
|
|
13
|
+
* Model Context Protocol
|
|
14
|
+
*/
|
|
15
|
+
ProtocolType["MCP"] = "MCP";
|
|
16
|
+
/**
|
|
17
|
+
* HTTP protocol
|
|
18
|
+
*/
|
|
19
|
+
ProtocolType["HTTP"] = "HTTP";
|
|
20
|
+
/**
|
|
21
|
+
* A2A protocol
|
|
22
|
+
*/
|
|
23
|
+
ProtocolType["A2A"] = "A2A";
|
|
24
|
+
})(ProtocolType || (exports.ProtocolType = ProtocolType = {}));
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7OytFQUUrRTs7O0FBSS9FOztHQUVHO0FBQ0gsSUFBWSxZQWVYO0FBZkQsV0FBWSxZQUFZO0lBQ3RCOztPQUVHO0lBQ0gsMkJBQVcsQ0FBQTtJQUVYOztPQUVHO0lBQ0gsNkJBQWEsQ0FBQTtJQUViOztPQUVHO0lBQ0gsMkJBQVcsQ0FBQTtBQUNiLENBQUMsRUFmVyxZQUFZLDRCQUFaLFlBQVksUUFldkIiLCJzb3VyY2VzQ29udGVudCI6WyJcbi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRW51bXNcbiAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuaW1wb3J0IHs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NhbGx5IGNsZWFuaW5nIHVwIGlkbGUgc2Vzc2lvbnMgYW5kIHByZXZlbnRpbmdcbiAqIGxvbmctcnVubmluZyBpbnN0YW5jZXMgZnJvbSBjb25zdW1pbmcgcmVzb3VyY2VzIGluZGVmaW5pdGVseS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBMaWZlY3ljbGVDb25maWd1cmF0aW9uIHtcbiAgLyoqXG4gICAqIFRpbWVvdXQgaW4gc2Vjb25kcyBmb3IgaWRsZSBydW50aW1lIHNlc3Npb25zLiBXaGVuIGEgc2Vzc2lvbiByZW1haW5zIGlkbGUgZm9yIHRoaXMgZHVyYXRpb24sXG4gICAqIGl0IHdpbGwgYmUgYXV0b21hdGljYWxseSB0ZXJtaW5hdGVkLiBEZWZhdWx0OiA5MDAgc2Vjb25kcyAoMTUgbWludXRlcykuXG4gICAqIEBkZWZhdWx0IC0gOTAwIHNlY29uZHMgKDE1IG1pbnV0ZXMpXG4gICAqL1xuICByZWFkb25seSBpZGxlUnVudGltZVNlc3Npb25UaW1lb3V0PzogRHVyYXRpb247XG5cbiAgLyoqXG4gICAqIE1heGltdW0gbGlmZXRpbWUgZm9yIHRoZSBpbnN0YW5jZSBpbiBzZWNvbmRzLiBPbmNlIHJlYWNoZWQsIGluc3RhbmNlcyB3aWxsIGJlIGF1dG9tYXRpY2FsbHlcbiAgICogdGVybWluYXRlZCBhbmQgcmVwbGFjZWQuIERlZmF1bHQ6IDI4ODAwIHNlY29uZHMgKDggaG91cnMpLlxuICAgKiBAZGVmYXVsdCAtIDI4ODAwIHNlY29uZHMgKDggaG91cnMpXG4gICAqL1xuICByZWFkb25seSBtYXhMaWZldGltZT86IER1cmF0aW9uO1xufVxuIl19
|
|
@@ -5,6 +5,24 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
|
5
5
|
import { Location } from 'aws-cdk-lib/aws-s3';
|
|
6
6
|
import { Construct } from 'constructs';
|
|
7
7
|
import { BrowserNetworkConfiguration } from '../network/network-configuration';
|
|
8
|
+
/******************************************************************************
|
|
9
|
+
* Enums
|
|
10
|
+
*****************************************************************************/
|
|
11
|
+
/**
|
|
12
|
+
* Browser signing. Specifies whether browser signing is enabled.
|
|
13
|
+
* When enabled, the browser will cryptographically sign HTTP requests to identify
|
|
14
|
+
* itself as an AI agent to bot control vendors.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum BrowserSigning {
|
|
17
|
+
/**
|
|
18
|
+
* Browser signing is enabled.
|
|
19
|
+
*/
|
|
20
|
+
ENABLED = "ENABLED",
|
|
21
|
+
/**
|
|
22
|
+
* Browser signing is disabled.
|
|
23
|
+
*/
|
|
24
|
+
DISABLED = "DISABLED"
|
|
25
|
+
}
|
|
8
26
|
/******************************************************************************
|
|
9
27
|
* Interface
|
|
10
28
|
*****************************************************************************/
|
|
@@ -355,6 +373,13 @@ export interface BrowserCustomProps {
|
|
|
355
373
|
readonly tags?: {
|
|
356
374
|
[key: string]: string;
|
|
357
375
|
};
|
|
376
|
+
/**
|
|
377
|
+
* Specifies whether browser signing is enabled.
|
|
378
|
+
* When enabled, the browser will cryptographically sign
|
|
379
|
+
* HTTP requests to identify itself as an AI agent to bot control vendors.
|
|
380
|
+
* @default - BrowserSigning.DISABLED
|
|
381
|
+
*/
|
|
382
|
+
readonly browserSigning?: BrowserSigning;
|
|
358
383
|
}
|
|
359
384
|
/******************************************************************************
|
|
360
385
|
* ATTRS FOR IMPORTED CONSTRUCT
|
|
@@ -482,6 +507,10 @@ export declare class BrowserCustom extends BrowserCustomBase {
|
|
|
482
507
|
* The recording configuration of the browser
|
|
483
508
|
*/
|
|
484
509
|
readonly recordingConfig?: RecordingConfig;
|
|
510
|
+
/**
|
|
511
|
+
* The browser signing configuration of the browser
|
|
512
|
+
*/
|
|
513
|
+
readonly browserSigning?: BrowserSigning;
|
|
485
514
|
private readonly __resource;
|
|
486
515
|
constructor(scope: Construct, id: string, props: BrowserCustomProps);
|
|
487
516
|
/**
|
|
@@ -492,6 +521,14 @@ export declare class BrowserCustom extends BrowserCustomBase {
|
|
|
492
521
|
* @internal This is an internal core function and should not be called directly.
|
|
493
522
|
*/
|
|
494
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;
|
|
495
532
|
/**
|
|
496
533
|
* Creates execution role needed for the browser to access AWS services
|
|
497
534
|
* @returns The created role
|