@aws/agentcore-cdk 0.1.0-alpha.49 → 0.1.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +6 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +15 -4
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -1
- package/dist/schema/schemas/aws-targets.d.ts +12 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +4 -0
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,12 @@ export type AgentCorePaymentConnectorProps = AgentCoreComponentProps & {
|
|
|
11
11
|
} | {
|
|
12
12
|
readonly connector: QuickCreatePaymentConnector;
|
|
13
13
|
readonly credentialProviderArn?: never;
|
|
14
|
+
} | {
|
|
15
|
+
/** @deprecated Use connector. Retained for CDK apps generated before Quick Create support. */
|
|
16
|
+
readonly connectorName: string;
|
|
17
|
+
/** @deprecated Use connector. Retained for CDK apps generated before Quick Create support. */
|
|
18
|
+
readonly connectorType: ManualPaymentConnector['provider'];
|
|
19
|
+
readonly credentialProviderArn: string;
|
|
14
20
|
});
|
|
15
21
|
/**
|
|
16
22
|
* AgentCore PaymentConnector construct.
|
package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCorePaymentConnector.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACrE,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;CAClD,GAAG,CACE;IAAE,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAAC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAA;CAAE,GACtF;IAAE,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,KAAK,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"AgentCorePaymentConnector.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACrE,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;CAClD,GAAG,CACE;IAAE,QAAQ,CAAC,SAAS,EAAE,sBAAsB,CAAC;IAAC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAA;CAAE,GACtF;IAAE,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,KAAK,CAAA;CAAE,GAC3F;IACE,8FAA8F;IAC9F,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,8FAA8F;IAC9F,QAAQ,CAAC,aAAa,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC3D,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC,CACJ,CAAC;AAEJ;;;;;;;;;;;GAWG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,mBAAmB,EAAE,MAAM,CAAC;IAC5C,SAAgB,sBAAsB,EAAE,MAAM,CAAC;IAC/C,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,WAAW,EAAE,WAAW,CAAC;gBAE7B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B;CAyChF"}
|
|
@@ -23,19 +23,30 @@ class AgentCorePaymentConnector extends constructs_1.Construct {
|
|
|
23
23
|
cfnResource;
|
|
24
24
|
constructor(scope, id, props) {
|
|
25
25
|
super(scope, id);
|
|
26
|
-
|
|
26
|
+
let connectorName;
|
|
27
|
+
let connectorType;
|
|
28
|
+
let quickCreate = false;
|
|
29
|
+
if ('connector' in props) {
|
|
30
|
+
connectorName = props.connector.name;
|
|
31
|
+
connectorType = props.connector.provider;
|
|
32
|
+
quickCreate = props.connector.provisionMode === 'QUICK_CREATE';
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
connectorName = props.connectorName;
|
|
36
|
+
connectorType = props.connectorType;
|
|
37
|
+
}
|
|
27
38
|
this.cfnResource = new aws_cdk_lib_1.CfnResource(this, 'Resource', {
|
|
28
39
|
type: 'AWS::BedrockAgentCore::PaymentConnector',
|
|
29
40
|
properties: {
|
|
30
41
|
PaymentManagerId: props.paymentManager.paymentManagerId,
|
|
31
|
-
ConnectorName:
|
|
32
|
-
ConnectorType:
|
|
42
|
+
ConnectorName: connectorName,
|
|
43
|
+
ConnectorType: connectorType,
|
|
33
44
|
...(quickCreate && { ProvisionMode: 'QUICK_CREATE' }),
|
|
34
45
|
CredentialProviderConfigurations: quickCreate
|
|
35
46
|
? []
|
|
36
47
|
: [
|
|
37
48
|
{
|
|
38
|
-
[
|
|
49
|
+
[connectorType]: {
|
|
39
50
|
CredentialProviderArn: props.credentialProviderArn,
|
|
40
51
|
},
|
|
41
52
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCorePaymentConnector.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":";;;AAMA,6CAA0C;AAC1C,2CAAuC;
|
|
1
|
+
{"version":3,"file":"AgentCorePaymentConnector.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":";;;AAMA,6CAA0C;AAC1C,2CAAuC;AAgBvC;;;;;;;;;;;GAWG;AACH,MAAa,yBAA0B,SAAQ,sBAAS;IACtC,kBAAkB,CAAS;IAC3B,mBAAmB,CAAS;IAC5B,sBAAsB,CAAS;IAC/B,gBAAgB,CAAS;IACzB,WAAW,CAAc;IAEzC,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAqC;QAC7E,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,IAAI,aAAqB,CAAC;QAC1B,IAAI,aAAiD,CAAC;QACtD,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,IAAI,WAAW,IAAI,KAAK,EAAE,CAAC;YACzB,aAAa,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;YACrC,aAAa,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;YACzC,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,KAAK,cAAc,CAAC;QACjE,CAAC;aAAM,CAAC;YACN,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;YACpC,aA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
|
"ap-southeast-2": "ap-southeast-2";
|
|
8
|
+
"ap-southeast-5": "ap-southeast-5";
|
|
9
|
+
"ap-southeast-7": "ap-southeast-7";
|
|
8
10
|
"ca-central-1": "ca-central-1";
|
|
9
11
|
"eu-central-1": "eu-central-1";
|
|
10
12
|
"eu-north-1": "eu-north-1";
|
|
13
|
+
"eu-south-1": "eu-south-1";
|
|
14
|
+
"eu-south-2": "eu-south-2";
|
|
11
15
|
"eu-west-1": "eu-west-1";
|
|
12
16
|
"eu-west-2": "eu-west-2";
|
|
13
17
|
"eu-west-3": "eu-west-3";
|
|
@@ -30,9 +34,13 @@ export declare const AwsDeploymentTargetSchema: z.ZodObject<{
|
|
|
30
34
|
"ap-south-1": "ap-south-1";
|
|
31
35
|
"ap-southeast-1": "ap-southeast-1";
|
|
32
36
|
"ap-southeast-2": "ap-southeast-2";
|
|
37
|
+
"ap-southeast-5": "ap-southeast-5";
|
|
38
|
+
"ap-southeast-7": "ap-southeast-7";
|
|
33
39
|
"ca-central-1": "ca-central-1";
|
|
34
40
|
"eu-central-1": "eu-central-1";
|
|
35
41
|
"eu-north-1": "eu-north-1";
|
|
42
|
+
"eu-south-1": "eu-south-1";
|
|
43
|
+
"eu-south-2": "eu-south-2";
|
|
36
44
|
"eu-west-1": "eu-west-1";
|
|
37
45
|
"eu-west-2": "eu-west-2";
|
|
38
46
|
"eu-west-3": "eu-west-3";
|
|
@@ -54,9 +62,13 @@ export declare const AwsDeploymentTargetsSchema: z.ZodArray<z.ZodObject<{
|
|
|
54
62
|
"ap-south-1": "ap-south-1";
|
|
55
63
|
"ap-southeast-1": "ap-southeast-1";
|
|
56
64
|
"ap-southeast-2": "ap-southeast-2";
|
|
65
|
+
"ap-southeast-5": "ap-southeast-5";
|
|
66
|
+
"ap-southeast-7": "ap-southeast-7";
|
|
57
67
|
"ca-central-1": "ca-central-1";
|
|
58
68
|
"eu-central-1": "eu-central-1";
|
|
59
69
|
"eu-north-1": "eu-north-1";
|
|
70
|
+
"eu-south-1": "eu-south-1";
|
|
71
|
+
"eu-south-2": "eu-south-2";
|
|
60
72
|
"eu-west-1": "eu-west-1";
|
|
61
73
|
"eu-west-2": "eu-west-2";
|
|
62
74
|
"eu-west-3": "eu-west-3";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-targets.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"aws-targets.d.ts","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,0BAA0B,aAQmB,CAAC;AAM3D,eAAO,MAAM,kBAAkB,aAGF,CAAC;AAM9B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -13,9 +13,13 @@ exports.AgentCoreRegionSchema = zod_1.z.enum([
|
|
|
13
13
|
'ap-south-1',
|
|
14
14
|
'ap-southeast-1',
|
|
15
15
|
'ap-southeast-2',
|
|
16
|
+
'ap-southeast-5',
|
|
17
|
+
'ap-southeast-7',
|
|
16
18
|
'ca-central-1',
|
|
17
19
|
'eu-central-1',
|
|
18
20
|
'eu-north-1',
|
|
21
|
+
'eu-south-1',
|
|
22
|
+
'eu-south-2',
|
|
19
23
|
'eu-west-1',
|
|
20
24
|
'eu-west-2',
|
|
21
25
|
'eu-west-3',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-targets.js","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,6BAAwB;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,0GAA0G;AAC1G,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,YAAY;IACZ,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,eAAe;CAChB,CAAC,CAAC;AAGH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,0BAA0B,EAC1B,kGAAkG,CACnG;KACA,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAElE,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,aAAa,EAAE,0CAA0C,CAAC;KAChE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAE9B,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAElE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,kCAA0B;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,0BAAkB;IAC3B,MAAM,EAAE,6BAAqB;CAC9B,CAAC,CAAC;AAIH,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC,WAAW,CACtF,IAAA,mBAAQ,EACN,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EACrB,IAAI,CAAC,EAAE,CAAC,qCAAqC,IAAI,EAAE,CACpD,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"aws-targets.js","sourceRoot":"","sources":["../../../src/schema/schemas/aws-targets.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,6BAAwB;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,0GAA0G;AAC1G,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,eAAe;CAChB,CAAC,CAAC;AAGH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,0BAA0B,EAC1B,kGAAkG,CACnG;KACA,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAElE,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,aAAa,EAAE,0CAA0C,CAAC;KAChE,QAAQ,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