@aws/agentcore-cdk 0.1.0-alpha.35 → 0.1.0-alpha.38

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 (128) hide show
  1. package/dist/cdk/constructs/components/mcp/Gateway.d.ts +11 -0
  2. package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +1 -1
  3. package/dist/cdk/constructs/components/mcp/Gateway.js +377 -4
  4. package/dist/cdk/constructs/components/mcp/Gateway.js.map +1 -1
  5. package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts +20 -0
  6. package/dist/cdk/constructs/components/mcp/connector-defaults.d.ts.map +1 -0
  7. package/dist/cdk/constructs/components/mcp/connector-defaults.js +16 -0
  8. package/dist/cdk/constructs/components/mcp/connector-defaults.js.map +1 -0
  9. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +36 -0
  10. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts.map +1 -0
  11. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js +65 -0
  12. package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js.map +1 -0
  13. package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts +3 -0
  14. package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts.map +1 -0
  15. package/dist/cdk/constructs/components/primitives/config-bundle/index.js +6 -0
  16. package/dist/cdk/constructs/components/primitives/config-bundle/index.js.map +1 -0
  17. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -1
  18. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +68 -22
  19. package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -1
  20. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +64 -0
  21. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
  22. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +91 -0
  23. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
  24. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +25 -6
  25. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -1
  26. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +133 -11
  27. package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -1
  28. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts +47 -0
  29. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts.map +1 -0
  30. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js +388 -0
  31. package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js.map +1 -0
  32. package/dist/cdk/constructs/components/primitives/harness/index.d.ts +1 -0
  33. package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -1
  34. package/dist/cdk/constructs/components/primitives/harness/index.js +3 -1
  35. package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -1
  36. package/dist/cdk/constructs/components/primitives/index.d.ts +4 -1
  37. package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
  38. package/dist/cdk/constructs/components/primitives/index.js +9 -1
  39. package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
  40. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +69 -0
  41. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts.map +1 -0
  42. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js +292 -0
  43. package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js.map +1 -0
  44. package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts +2 -0
  45. package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts.map +1 -0
  46. package/dist/cdk/constructs/components/primitives/knowledge-base/index.js +6 -0
  47. package/dist/cdk/constructs/components/primitives/knowledge-base/index.js.map +1 -0
  48. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +28 -0
  49. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
  50. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +44 -0
  51. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
  52. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +38 -0
  53. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
  54. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +111 -0
  55. package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js.map +1 -0
  56. package/dist/cdk/constructs/components/primitives/payment/index.d.ts +3 -0
  57. package/dist/cdk/constructs/components/primitives/payment/index.d.ts.map +1 -0
  58. package/dist/cdk/constructs/components/primitives/payment/index.js +8 -0
  59. package/dist/cdk/constructs/components/primitives/payment/index.js.map +1 -0
  60. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -1
  61. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +20 -5
  62. package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -1
  63. package/dist/cdk/constructs/index.d.ts +2 -2
  64. package/dist/cdk/constructs/index.d.ts.map +1 -1
  65. package/dist/cdk/constructs/index.js +6 -1
  66. package/dist/cdk/constructs/index.js.map +1 -1
  67. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +74 -4
  68. package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
  69. package/dist/cdk/constructs/l3/AgentCoreApplication.js +264 -2
  70. package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
  71. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +24 -0
  72. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -1
  73. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +27 -3
  74. package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -1
  75. package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +1 -1
  76. package/dist/cdk/constructs/l3/AgentCoreMcp.js +25 -1
  77. package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -1
  78. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +6 -0
  79. package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -1
  80. package/dist/cdk/constructs/l3/AgentEnvironment.js +7 -0
  81. package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -1
  82. package/dist/cdk/constructs/l3/index.d.ts +1 -1
  83. package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
  84. package/dist/cdk/constructs/l3/index.js.map +1 -1
  85. package/dist/cdk/feature-flags.d.ts +15 -0
  86. package/dist/cdk/feature-flags.d.ts.map +1 -0
  87. package/dist/cdk/feature-flags.js +19 -0
  88. package/dist/cdk/feature-flags.js.map +1 -0
  89. package/dist/cdk/index.d.ts +1 -1
  90. package/dist/cdk/index.d.ts.map +1 -1
  91. package/dist/cdk/index.js +7 -1
  92. package/dist/cdk/index.js.map +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.js +7 -1
  96. package/dist/index.js.map +1 -1
  97. package/dist/schema/schemas/agent-env.d.ts +35 -0
  98. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  99. package/dist/schema/schemas/agentcore-project.d.ts +233 -4
  100. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  101. package/dist/schema/schemas/agentcore-project.js +125 -6
  102. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  103. package/dist/schema/schemas/auth.d.ts +171 -0
  104. package/dist/schema/schemas/auth.d.ts.map +1 -1
  105. package/dist/schema/schemas/auth.js +125 -3
  106. package/dist/schema/schemas/auth.js.map +1 -1
  107. package/dist/schema/schemas/mcp.d.ts +254 -0
  108. package/dist/schema/schemas/mcp.d.ts.map +1 -1
  109. package/dist/schema/schemas/mcp.js +452 -4
  110. package/dist/schema/schemas/mcp.js.map +1 -1
  111. package/dist/schema/schemas/primitives/harness.d.ts +369 -19
  112. package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
  113. package/dist/schema/schemas/primitives/harness.js +390 -21
  114. package/dist/schema/schemas/primitives/harness.js.map +1 -1
  115. package/dist/schema/schemas/primitives/index.d.ts +5 -1
  116. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  117. package/dist/schema/schemas/primitives/index.js +31 -1
  118. package/dist/schema/schemas/primitives/index.js.map +1 -1
  119. package/dist/schema/schemas/primitives/knowledge-base.d.ts +103 -0
  120. package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
  121. package/dist/schema/schemas/primitives/knowledge-base.js +98 -0
  122. package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
  123. package/dist/schema/schemas/primitives/memory.d.ts +2 -2
  124. package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +19 -2
  125. package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -1
  126. package/dist/schema/schemas/primitives/online-evaluation-config.js +39 -5
  127. package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -1
  128. package/package.json +1 -1
@@ -0,0 +1,292 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCoreKnowledgeBase = void 0;
4
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
5
+ const constructs_1 = require("constructs");
6
+ const crypto_1 = require("crypto");
7
+ /**
8
+ * The embedding model used for FMKB MANAGED knowledge bases.
9
+ *
10
+ * Hardcoded to titan-embed-text-v2:0 to match the spec's
11
+ * "Parameter governance hidden — use service defaults, don't expose in CLI"
12
+ * decision (docs/cli-knowledge-bases-devex.md). Verification also showed
13
+ * EmbeddingModelArn is accepted on create but not echoed back by
14
+ * GetKnowledgeBase, so the user-facing impact of overriding it is unclear.
15
+ * If a customer use case emerges, plumb this as an optional field on
16
+ * `KnowledgeBaseSchema`.
17
+ */
18
+ const EMBEDDING_MODEL_ID = 'amazon.titan-embed-text-v2:0';
19
+ /**
20
+ * AgentCore Knowledge Base component construct.
21
+ *
22
+ * Wave 1 scope: creates an FMKB-style Knowledge Base + S3 Data Source via the
23
+ * CfnResource escape hatch. Typed L1 (CfnKnowledgeBase / CfnDataSource) cannot
24
+ * be used because the MANAGED knowledge base type and the
25
+ * MANAGED_KNOWLEDGE_BASE_CONNECTOR data source type are both private-beta and
26
+ * not in the public CFN schema; typed L1 rejects them at synth time.
27
+ *
28
+ * The IAM service role trusts `bedrock.amazonaws.com`.
29
+ *
30
+ * Wave 1 does NOT create a connector gateway target. The `knowledgeBase.gateway`
31
+ * field is accepted but ignored. Wave 2 lights up gateway wiring.
32
+ */
33
+ class AgentCoreKnowledgeBase extends constructs_1.Construct {
34
+ /** The KB physical name (`${projectName}_${kb.name}`). */
35
+ knowledgeBaseName;
36
+ /** The KB id (CfnResource Ref). */
37
+ knowledgeBaseId;
38
+ /** The KB ARN (CfnResource attribute). */
39
+ knowledgeBaseArn;
40
+ /** The KB service role. */
41
+ role;
42
+ /**
43
+ * Each created data source, in the order specified in the KB schema's
44
+ * `dataSources[]` array. Exposed so the L3 can emit per-DS CFN outputs
45
+ * (id + URI) without recomputing names or hashes — consumers (e.g. the CLI
46
+ * post-deploy hook) read these outputs to map URI → DS id deterministically
47
+ * instead of parsing physical names.
48
+ */
49
+ dataSources = [];
50
+ cfnKnowledgeBase;
51
+ cfnDataSources = [];
52
+ constructor(scope, id, props) {
53
+ super(scope, id);
54
+ const { projectName, knowledgeBase } = props;
55
+ this.knowledgeBaseName = `${projectName}_${knowledgeBase.name}`;
56
+ const stack = aws_cdk_lib_1.Stack.of(this);
57
+ const region = stack.region;
58
+ const account = stack.account;
59
+ const partition = stack.partition;
60
+ const embeddingModelArn = `arn:${partition}:bedrock:${region}::foundation-model/${EMBEDDING_MODEL_ID}`;
61
+ // Confused-deputy guards (aws:SourceAccount + aws:SourceArn scoped to
62
+ // knowledge-base/*) — verified shape from kb-cdk-test/lib/kb-stack.ts.
63
+ this.role = new aws_cdk_lib_1.aws_iam.Role(this, 'ServiceRole', {
64
+ assumedBy: new aws_cdk_lib_1.aws_iam.ServicePrincipal('bedrock.amazonaws.com', {
65
+ conditions: {
66
+ StringEquals: { 'aws:SourceAccount': account },
67
+ ArnLike: {
68
+ 'aws:SourceArn': `arn:${partition}:bedrock:${region}:${account}:knowledge-base/*`,
69
+ },
70
+ },
71
+ }),
72
+ description: `AgentCore Knowledge Base service role for ${this.knowledgeBaseName}`,
73
+ });
74
+ // Permission: KB needs to call bedrock:InvokeModel on the embedding model
75
+ // during create (verifies the model is reachable). Scoped to the specific
76
+ // model ARN we synthesize plus the inference-profile ARN that lets
77
+ // cross-region inference profiles work as embedding sources.
78
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
79
+ actions: ['bedrock:InvokeModel'],
80
+ resources: [embeddingModelArn, `arn:${partition}:bedrock:${region}:${account}:inference-profile/*`],
81
+ }));
82
+ // Permission: KB role needs s3:GetObject + s3:ListBucket on each S3 source
83
+ // bucket. We collect unique buckets from the data sources to avoid
84
+ // redundant statements.
85
+ const buckets = new Set();
86
+ for (const ds of knowledgeBase.dataSources) {
87
+ if (ds.type === 'S3') {
88
+ buckets.add(this.parseS3Uri(ds.uri).bucket);
89
+ }
90
+ }
91
+ if (buckets.size > 0) {
92
+ const bucketArns = [];
93
+ // Sort for deterministic synth output across runs (Set iteration is
94
+ // insertion order, which can vary if data sources are reordered).
95
+ for (const bucket of Array.from(buckets).sort()) {
96
+ bucketArns.push(`arn:${partition}:s3:::${bucket}`);
97
+ bucketArns.push(`arn:${partition}:s3:::${bucket}/*`);
98
+ }
99
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
100
+ actions: ['s3:GetObject', 's3:ListBucket'],
101
+ resources: bucketArns,
102
+ // Confused-deputy guard: only allow this role to read S3 objects in
103
+ // the deploying account. Mirrors kb-cdk-test/lib/kb-stack.ts.
104
+ conditions: {
105
+ StringEquals: { 'aws:ResourceAccount': account },
106
+ },
107
+ }));
108
+ }
109
+ // Knowledge Base resource (MANAGED / FMKB) via CfnResource escape hatch.
110
+ //
111
+ // Tags are intentionally NOT emitted on this resource. The
112
+ // AWS::Bedrock::KnowledgeBase CFN handler disagrees with itself across
113
+ // accounts on the wire shape: some handler builds want the standard CFN
114
+ // [{Key, Value}] array, others want a JSON-object {key: value} map, and
115
+ // the registered schema accepts the array form even where the handler
116
+ // rejects it. Rather than special-case the L3 against a moving service
117
+ // contract, we drop tag propagation for KBs entirely until the service
118
+ // team aligns on a single shape.
119
+ //
120
+ // Project-level tags continue to flow to all other primitives via the
121
+ // standard composeTags / recordToCfnTags path. This is a per-resource
122
+ // exception, not a project-wide drop.
123
+ this.cfnKnowledgeBase = new aws_cdk_lib_1.CfnResource(this, 'Resource', {
124
+ type: 'AWS::Bedrock::KnowledgeBase',
125
+ properties: {
126
+ Name: this.knowledgeBaseName,
127
+ ...(knowledgeBase.description && { Description: knowledgeBase.description }),
128
+ RoleArn: this.role.roleArn,
129
+ KnowledgeBaseConfiguration: {
130
+ Type: 'MANAGED',
131
+ ManagedKnowledgeBaseConfiguration: {
132
+ EmbeddingModelArn: embeddingModelArn,
133
+ },
134
+ },
135
+ },
136
+ });
137
+ // KB create calls bedrock:InvokeModel to verify the embedding model. CDK's
138
+ // addToPolicy emits a separate AWS::IAM::Policy that creates in parallel
139
+ // with the KB by default, which causes flaky AccessDenied at create time.
140
+ // Force the policy to attach before KB create.
141
+ const cfnRole = this.role.node.defaultChild;
142
+ if (cfnRole) {
143
+ this.cfnKnowledgeBase.node.addDependency(cfnRole);
144
+ }
145
+ const inlinePolicy = this.role.node.tryFindChild('DefaultPolicy');
146
+ if (inlinePolicy) {
147
+ this.cfnKnowledgeBase.node.addDependency(inlinePolicy);
148
+ }
149
+ this.knowledgeBaseId = this.cfnKnowledgeBase.ref;
150
+ this.knowledgeBaseArn = this.cfnKnowledgeBase.getAtt('KnowledgeBaseArn').toString();
151
+ // Data sources. Each data source becomes one MANAGED_KNOWLEDGE_BASE_CONNECTOR
152
+ // DataSource. Construct id and physical name are both derived from a hash
153
+ // of a stable per-DS key (S3 URI or connectorConfigFile path) so reordering
154
+ // `dataSources[]` in agentcore.json is a no-op at the CFN layer (no replace).
155
+ //
156
+ // For S3 we build ConnectorParameters inline. For non-S3 connectors the L3
157
+ // does not read files: the CLI reads each connector-config file and passes
158
+ // the parsed `connectorParameters` object in via `connectorParametersByFile`,
159
+ // which we emit verbatim. ConnectorParameters in both cases is the raw
160
+ // AWSPlatoDataConnectorConfigurationModel shape — camelCase, verbatim. Don't
161
+ // normalize keys. Verified working in kb-cdk-test/lib/ds-stack.ts.
162
+ const { connectorParametersByFile = {} } = props;
163
+ const secretArns = new Set();
164
+ for (const ds of knowledgeBase.dataSources) {
165
+ let connectorParameters;
166
+ let dsKey; // stable identity for hashing + output correlation
167
+ if (ds.type === 'S3') {
168
+ const { bucket, prefix } = this.parseS3Uri(ds.uri);
169
+ dsKey = ds.uri;
170
+ connectorParameters = {
171
+ type: 'S3',
172
+ // version is the STRING "1" — verified against the FMKB managed-
173
+ // connector backend by direct CreateDataSource API call. The
174
+ // service's connector-parameters parser rejects an integer 1 with
175
+ // `Invalid connector version '1.0'` (the CFN/JSON marshalling
176
+ // round-trips the integer to a float, which then fails the version
177
+ // check). The string form is what the production console module
178
+ // emits in batchConnectorUtils.ts and is the only form that works
179
+ // through every connector type.
180
+ version: '1',
181
+ connectionConfiguration: {
182
+ bucketArn: `arn:${partition}:s3:::${bucket}`,
183
+ bucketName: bucket,
184
+ bucketOwnerAccountId: account,
185
+ },
186
+ // When the user specified `s3://bucket/prefix/`, scope ingestion to
187
+ // that prefix instead of the whole bucket. Without this, customers
188
+ // see the entire bucket indexed even when they passed a
189
+ // path-prefixed URI.
190
+ ...(prefix !== undefined && {
191
+ filterConfiguration: {
192
+ inclusionPrefixes: [prefix],
193
+ },
194
+ }),
195
+ };
196
+ }
197
+ else {
198
+ dsKey = ds.connectorConfigFile;
199
+ const params = connectorParametersByFile[ds.connectorConfigFile];
200
+ if (!params) {
201
+ throw new Error(`Missing parsed connectorParameters for data source '${ds.connectorConfigFile}'. ` +
202
+ `The CLI must read the connector-config file and pass it via connectorParametersByFile.`);
203
+ }
204
+ connectorParameters = params;
205
+ // Normalize `version` to the STRING form. The FMKB managed-connector
206
+ // backend's parser only accepts a string `"1"` (verified by direct
207
+ // API probe: the integer `1` round-trips through CFN's JSON
208
+ // marshalling as `1.0` and fails with `Invalid connector version
209
+ // '1.0'`). Templates and hand-written configs commonly use a JSON
210
+ // number, so we silently convert. Non-numeric or absent version is
211
+ // left as-is so a future connector that omits version still works.
212
+ if (typeof connectorParameters.version === 'number' && Number.isFinite(connectorParameters.version)) {
213
+ connectorParameters = { ...connectorParameters, version: String(connectorParameters.version) };
214
+ }
215
+ else if (typeof connectorParameters.version === 'string' &&
216
+ /^\d+(\.0+)?$/.test(connectorParameters.version)) {
217
+ // "1.0" → "1": match the bare-integer string the service expects.
218
+ connectorParameters = {
219
+ ...connectorParameters,
220
+ version: String(parseInt(connectorParameters.version, 10)),
221
+ };
222
+ }
223
+ // Auth-bearing connectors (Confluence, SharePoint, etc.) reference a
224
+ // Secrets Manager secret via connectionConfiguration.secretArn. Collect
225
+ // those so the KB role can read them at ingestion time.
226
+ const cc = params.connectionConfiguration;
227
+ if (cc && typeof cc.secretArn === 'string' && cc.secretArn) {
228
+ secretArns.add(cc.secretArn);
229
+ }
230
+ }
231
+ const uriHash = (0, crypto_1.createHash)('sha256').update(dsKey).digest('hex').slice(0, 8);
232
+ const dsConstructId = `DataSource${uriHash}`;
233
+ const dsName = `${this.knowledgeBaseName}_ds_${uriHash}`;
234
+ // Bedrock CreateDataSource caps the name at 63 chars. The schema caps
235
+ // KB names at 48 and project names are bounded elsewhere, but the
236
+ // composed name `${projectName}_${kbName}_ds_${hash}` can still exceed
237
+ // 63 for long combinations. Surface this as a clear error at synth
238
+ // time instead of letting the CFN handler fail mid-deploy.
239
+ if (dsName.length > 63) {
240
+ throw new Error(`Synthesized DataSource name '${dsName}' exceeds Bedrock's 63-char limit ` +
241
+ `(${dsName.length} chars). Shorten the project name or the knowledge base name.`);
242
+ }
243
+ const cfnDs = new aws_cdk_lib_1.CfnResource(this, dsConstructId, {
244
+ type: 'AWS::Bedrock::DataSource',
245
+ properties: {
246
+ Name: dsName,
247
+ KnowledgeBaseId: this.knowledgeBaseId,
248
+ DataDeletionPolicy: 'RETAIN',
249
+ DataSourceConfiguration: {
250
+ Type: 'MANAGED_KNOWLEDGE_BASE_CONNECTOR',
251
+ ManagedKnowledgeBaseConnectorConfiguration: {
252
+ ConnectorParameters: connectorParameters,
253
+ },
254
+ },
255
+ },
256
+ });
257
+ cfnDs.node.addDependency(this.cfnKnowledgeBase);
258
+ this.cfnDataSources.push(cfnDs);
259
+ // cfnDs.ref returns the composite primaryIdentifier "<kbId>|<dsId>" for
260
+ // AWS::Bedrock::DataSource; we need the bare DataSourceId (10-char) so
261
+ // StartIngestionJob accepts it. getAtt('DataSourceId') returns just the id.
262
+ this.dataSources.push({ uri: dsKey, id: cfnDs.getAtt('DataSourceId').toString() });
263
+ }
264
+ // Grant secret read for auth-bearing connectors.
265
+ if (secretArns.size > 0) {
266
+ this.role.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
267
+ actions: ['secretsmanager:GetSecretValue'],
268
+ resources: Array.from(secretArns).sort(),
269
+ }));
270
+ }
271
+ }
272
+ /**
273
+ * Parse `s3://bucket[/prefix]` into its components. Bucket name follows
274
+ * the standard S3 naming rules; the regex in S3DataSourceSchema is the
275
+ * authority. Prefix (when present) is passed through to the DataSource's
276
+ * `inclusionPrefixes` so ingestion is scoped to the path the user named.
277
+ *
278
+ * `prefix` is `undefined` when the URI is `s3://bucket` or `s3://bucket/`.
279
+ * It is the substring after the first `/` otherwise (without a leading
280
+ * slash) so `s3://b/docs/eng/` yields `'docs/eng/'`.
281
+ */
282
+ parseS3Uri(uri) {
283
+ const m = /^s3:\/\/([^/]+)(?:\/(.*))?$/.exec(uri);
284
+ if (!m?.[1]) {
285
+ throw new Error(`Invalid S3 URI: ${uri}`);
286
+ }
287
+ const prefix = m[2];
288
+ return prefix ? { bucket: m[1], prefix } : { bucket: m[1] };
289
+ }
290
+ }
291
+ exports.AgentCoreKnowledgeBase = AgentCoreKnowledgeBase;
292
+ //# sourceMappingURL=AgentCoreKnowledgeBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCoreKnowledgeBase.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.ts"],"names":[],"mappings":";;;AAEA,6CAAiE;AACjE,2CAAuC;AACvC,mCAAoC;AAmBpC;;;;;;;;;;GAUG;AACH,MAAM,kBAAkB,GAAG,8BAA8B,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,MAAa,sBAAuB,SAAQ,sBAAS;IACnD,0DAA0D;IAC1C,iBAAiB,CAAS;IAE1C,mCAAmC;IACnB,eAAe,CAAS;IAExC,0CAA0C;IAC1B,gBAAgB,CAAS;IAEzC,2BAA2B;IACX,IAAI,CAAW;IAE/B;;;;;;OAMG;IACa,WAAW,GAAkC,EAAE,CAAC;IAE/C,gBAAgB,CAAc;IAC9B,cAAc,GAAkB,EAAE,CAAC;IAEpD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAkC;QAC1E,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;QAC7C,IAAI,CAAC,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AAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;QAC5C,CAAC;QACD,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,CAAC;CACF;AA/RD,wDA+RC"}
@@ -0,0 +1,2 @@
1
+ export { AgentCoreKnowledgeBase, type AgentCoreKnowledgeBaseProps } from './AgentCoreKnowledgeBase';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/knowledge-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,KAAK,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCoreKnowledgeBase = void 0;
4
+ var AgentCoreKnowledgeBase_1 = require("./AgentCoreKnowledgeBase");
5
+ Object.defineProperty(exports, "AgentCoreKnowledgeBase", { enumerable: true, get: function () { return AgentCoreKnowledgeBase_1.AgentCoreKnowledgeBase; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/knowledge-base/index.ts"],"names":[],"mappings":";;;AAAA,mEAAoG;AAA3F,gIAAA,sBAAsB,OAAA"}
@@ -0,0 +1,28 @@
1
+ import type { AgentCoreComponentProps } from '../../base-props';
2
+ import type { AgentCorePaymentManager } from './AgentCorePaymentManager';
3
+ import { CfnResource } from 'aws-cdk-lib';
4
+ import { Construct } from 'constructs';
5
+ export interface AgentCorePaymentConnectorProps extends AgentCoreComponentProps {
6
+ readonly paymentManager: AgentCorePaymentManager;
7
+ readonly connectorName: string;
8
+ readonly connectorType: 'CoinbaseCDP' | 'StripePrivy';
9
+ readonly credentialProviderArn: string;
10
+ }
11
+ /**
12
+ * AgentCore PaymentConnector construct.
13
+ *
14
+ * Creates an AWS::BedrockAgentCore::PaymentConnector via the CfnResource escape hatch.
15
+ * The connector is a child of a PaymentManager and links a credential provider
16
+ * (created imperatively pre-deploy) to the manager.
17
+ *
18
+ * The CredentialProviderConfigurations property uses a vendor-discriminator key pattern:
19
+ * `[{ CoinbaseCDP: { CredentialProviderArn: "..." } }]` or
20
+ * `[{ StripePrivy: { CredentialProviderArn: "..." } }]`
21
+ */
22
+ export declare class AgentCorePaymentConnector extends Construct {
23
+ readonly paymentConnectorId: string;
24
+ readonly paymentConnectorArn: string;
25
+ readonly cfnResource: CfnResource;
26
+ constructor(scope: Construct, id: string, props: AgentCorePaymentConnectorProps);
27
+ }
28
+ //# sourceMappingURL=AgentCorePaymentConnector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCorePaymentConnector.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":"AAAA,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,WAAW,8BAA+B,SAAQ,uBAAuB;IAC7E,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,aAAa,CAAC;IACtD,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,mBAAmB,EAAE,MAAM,CAAC;IAC5C,SAAgB,WAAW,EAAE,WAAW,CAAC;gBAE7B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,8BAA8B;CAwBhF"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCorePaymentConnector = void 0;
4
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
5
+ const constructs_1 = require("constructs");
6
+ /**
7
+ * AgentCore PaymentConnector construct.
8
+ *
9
+ * Creates an AWS::BedrockAgentCore::PaymentConnector via the CfnResource escape hatch.
10
+ * The connector is a child of a PaymentManager and links a credential provider
11
+ * (created imperatively pre-deploy) to the manager.
12
+ *
13
+ * The CredentialProviderConfigurations property uses a vendor-discriminator key pattern:
14
+ * `[{ CoinbaseCDP: { CredentialProviderArn: "..." } }]` or
15
+ * `[{ StripePrivy: { CredentialProviderArn: "..." } }]`
16
+ */
17
+ class AgentCorePaymentConnector extends constructs_1.Construct {
18
+ paymentConnectorId;
19
+ paymentConnectorArn;
20
+ cfnResource;
21
+ constructor(scope, id, props) {
22
+ super(scope, id);
23
+ this.cfnResource = new aws_cdk_lib_1.CfnResource(this, 'Resource', {
24
+ type: 'AWS::BedrockAgentCore::PaymentConnector',
25
+ properties: {
26
+ PaymentManagerId: props.paymentManager.paymentManagerId,
27
+ ConnectorName: props.connectorName,
28
+ ConnectorType: props.connectorType,
29
+ CredentialProviderConfigurations: [
30
+ {
31
+ [props.connectorType]: {
32
+ CredentialProviderArn: props.credentialProviderArn,
33
+ },
34
+ },
35
+ ],
36
+ },
37
+ });
38
+ this.cfnResource.node.addDependency(props.paymentManager.cfnResource);
39
+ this.paymentConnectorId = this.cfnResource.getAtt('PaymentConnectorId').toString();
40
+ this.paymentConnectorArn = this.cfnResource.getAtt('PaymentConnectorArn').toString();
41
+ }
42
+ }
43
+ exports.AgentCorePaymentConnector = AgentCorePaymentConnector;
44
+ //# sourceMappingURL=AgentCorePaymentConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCorePaymentConnector.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,2CAAuC;AASvC;;;;;;;;;;GAUG;AACH,MAAa,yBAA0B,SAAQ,sBAAS;IACtC,kBAAkB,CAAS;IAC3B,mBAAmB,CAAS;IAC5B,WAAW,CAAc;IAEzC,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAqC;QAC7E,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,CAAC,IAAI,EAAE,UAAU,EAAE;YACnD,IAAI,EAAE,yCAAyC;YAC/C,UAAU,EAAE;gBACV,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB;gBACvD,aAAa,EAAE,KAAK,CAAC,aAAa;gBAClC,aAAa,EAAE,KAAK,CAAC,aAAa;gBAClC,gCAAgC,EAAE;oBAChC;wBACE,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;4BACrB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;yBACnD;qBACF;iBACF;aACF;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAEtE,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,CAAC;QACnF,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC;IACvF,CAAC;CACF;AA7BD,8DA6BC"}
@@ -0,0 +1,38 @@
1
+ import type { AgentCoreComponentProps } from '../../base-props';
2
+ import { CfnResource } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ export interface CustomJWTAuthorizerConfig {
5
+ readonly discoveryUrl: string;
6
+ readonly allowedClients?: string[];
7
+ readonly allowedAudience?: string[];
8
+ readonly allowedScopes?: string[];
9
+ }
10
+ export interface AgentCorePaymentManagerProps extends AgentCoreComponentProps {
11
+ readonly name: string;
12
+ readonly authorizerType: 'AWS_IAM' | 'CUSTOM_JWT';
13
+ readonly authorizerConfiguration?: {
14
+ readonly customJWTAuthorizer: CustomJWTAuthorizerConfig;
15
+ };
16
+ readonly description?: string;
17
+ readonly tags?: Record<string, string>;
18
+ }
19
+ /**
20
+ * AgentCore PaymentManager construct.
21
+ *
22
+ * Creates an AWS::BedrockAgentCore::PaymentManager via the CfnResource escape hatch
23
+ * (no L1 construct available yet), along with two IAM roles:
24
+ * - ResourceRetrievalRole: passed as the Manager's RoleArn (service principal trust)
25
+ * - ProcessPaymentRole: used by agent runtimes to call ProcessPayment (account root trust)
26
+ *
27
+ * The deploying principal must have iam:PassRole on the ResourceRetrievalRole for
28
+ * the PaymentManager CFN handler to validate access.
29
+ */
30
+ export declare class AgentCorePaymentManager extends Construct {
31
+ readonly paymentManagerId: string;
32
+ readonly paymentManagerArn: string;
33
+ readonly processPaymentRoleArn: string;
34
+ readonly resourceRetrievalRoleArn: string;
35
+ readonly cfnResource: CfnResource;
36
+ constructor(scope: Construct, id: string, props: AgentCorePaymentManagerProps);
37
+ }
38
+ //# sourceMappingURL=AgentCorePaymentManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCorePaymentManager.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAyB,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,cAAc,EAAE,SAAS,GAAG,YAAY,CAAC;IAClD,QAAQ,CAAC,uBAAuB,CAAC,EAAE;QACjC,QAAQ,CAAC,mBAAmB,EAAE,yBAAyB,CAAC;KACzD,CAAC;IACF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,iBAAiB,EAAE,MAAM,CAAC;IAC1C,SAAgB,qBAAqB,EAAE,MAAM,CAAC;IAC9C,SAAgB,wBAAwB,EAAE,MAAM,CAAC;IACjD,SAAgB,WAAW,EAAE,WAAW,CAAC;gBAE7B,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,4BAA4B;CAwG9E"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCorePaymentManager = void 0;
4
+ const constants_1 = require("../../../../constants");
5
+ const tags_1 = require("../../../../utils/tags");
6
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
7
+ const constructs_1 = require("constructs");
8
+ /**
9
+ * AgentCore PaymentManager construct.
10
+ *
11
+ * Creates an AWS::BedrockAgentCore::PaymentManager via the CfnResource escape hatch
12
+ * (no L1 construct available yet), along with two IAM roles:
13
+ * - ResourceRetrievalRole: passed as the Manager's RoleArn (service principal trust)
14
+ * - ProcessPaymentRole: used by agent runtimes to call ProcessPayment (account root trust)
15
+ *
16
+ * The deploying principal must have iam:PassRole on the ResourceRetrievalRole for
17
+ * the PaymentManager CFN handler to validate access.
18
+ */
19
+ class AgentCorePaymentManager extends constructs_1.Construct {
20
+ paymentManagerId;
21
+ paymentManagerArn;
22
+ processPaymentRoleArn;
23
+ resourceRetrievalRoleArn;
24
+ cfnResource;
25
+ constructor(scope, id, props) {
26
+ super(scope, id);
27
+ const accountId = aws_cdk_lib_1.Stack.of(this).account;
28
+ const region = aws_cdk_lib_1.Stack.of(this).region;
29
+ const resourceRetrievalRole = new aws_cdk_lib_1.aws_iam.Role(this, 'ResourceRetrievalRole', {
30
+ assumedBy: new aws_cdk_lib_1.aws_iam.ServicePrincipal(constants_1.AGENTCORE_SERVICE_PRINCIPAL),
31
+ description: `AgentCore payment resource retrieval role for ${props.name}`,
32
+ });
33
+ resourceRetrievalRole.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
34
+ actions: [
35
+ 'bedrock-agentcore:RetrieveToken',
36
+ 'bedrock-agentcore:GetWorkloadIdentity',
37
+ 'bedrock-agentcore:CreateWorkloadIdentity',
38
+ 'bedrock-agentcore:GetPaymentCredentialProvider',
39
+ 'bedrock-agentcore:TagResource',
40
+ // Workload-token exchange actions: required for the data plane to
41
+ // mint short-lived workload access tokens during CreatePaymentInstrument
42
+ // / ProcessPayment / etc. Without these, every payment-data-plane call
43
+ // fails with "Failed to obtain workload access token. Please check
44
+ // your execution role permissions."
45
+ 'bedrock-agentcore:GetWorkloadAccessToken',
46
+ 'bedrock-agentcore:GetWorkloadAccessTokenForUserId',
47
+ 'bedrock-agentcore:GetWorkloadAccessTokenForJWT',
48
+ 'bedrock-agentcore:GetResourcePaymentToken',
49
+ ],
50
+ resources: ['*'],
51
+ }));
52
+ resourceRetrievalRole.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
53
+ actions: ['secretsmanager:GetSecretValue'],
54
+ // Scope to AgentCore Identity-managed credential secrets only. The data plane
55
+ // reads the payment connector's credential-provider secret at runtime; every
56
+ // AgentCore-managed credential secret is stored under the
57
+ // `bedrock-agentcore-identity!` prefix, so this covers payments without granting
58
+ // read access to unrelated account secrets.
59
+ resources: [
60
+ `arn:${aws_cdk_lib_1.Stack.of(this).partition}:secretsmanager:${region}:${accountId}:secret:bedrock-agentcore-identity!*`,
61
+ ],
62
+ }));
63
+ resourceRetrievalRole.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
64
+ actions: ['sts:SetContext'],
65
+ resources: ['*'],
66
+ }));
67
+ const processPaymentRole = new aws_cdk_lib_1.aws_iam.Role(this, 'ProcessPaymentRole', {
68
+ assumedBy: new aws_cdk_lib_1.aws_iam.AccountRootPrincipal(),
69
+ description: `AgentCore ProcessPayment role for ${props.name}`,
70
+ });
71
+ processPaymentRole.addToPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
72
+ actions: ['bedrock-agentcore:ProcessPayment'],
73
+ resources: ['*'],
74
+ }));
75
+ const mergedTags = (0, tags_1.recordToCfnTags)((0, tags_1.composeTags)(props.projectTags, props.tags));
76
+ const authorizerConfiguration = props.authorizerConfiguration
77
+ ? {
78
+ CustomJWTAuthorizer: {
79
+ DiscoveryUrl: props.authorizerConfiguration.customJWTAuthorizer.discoveryUrl,
80
+ ...(props.authorizerConfiguration.customJWTAuthorizer.allowedClients && {
81
+ AllowedClients: props.authorizerConfiguration.customJWTAuthorizer.allowedClients,
82
+ }),
83
+ ...(props.authorizerConfiguration.customJWTAuthorizer.allowedAudience && {
84
+ AllowedAudience: props.authorizerConfiguration.customJWTAuthorizer.allowedAudience,
85
+ }),
86
+ ...(props.authorizerConfiguration.customJWTAuthorizer.allowedScopes && {
87
+ AllowedScopes: props.authorizerConfiguration.customJWTAuthorizer.allowedScopes,
88
+ }),
89
+ },
90
+ }
91
+ : undefined;
92
+ this.cfnResource = new aws_cdk_lib_1.CfnResource(this, 'Resource', {
93
+ type: 'AWS::BedrockAgentCore::PaymentManager',
94
+ properties: {
95
+ Name: props.name,
96
+ AuthorizerType: props.authorizerType,
97
+ RoleArn: resourceRetrievalRole.roleArn,
98
+ ...(props.description && { Description: props.description }),
99
+ ...(authorizerConfiguration && { AuthorizerConfiguration: authorizerConfiguration }),
100
+ ...(mergedTags && { Tags: mergedTags.map(t => ({ Key: t.key, Value: t.value })) }),
101
+ },
102
+ });
103
+ this.cfnResource.node.addDependency(resourceRetrievalRole);
104
+ this.paymentManagerId = this.cfnResource.getAtt('PaymentManagerId').toString();
105
+ this.paymentManagerArn = this.cfnResource.getAtt('PaymentManagerArn').toString();
106
+ this.processPaymentRoleArn = processPaymentRole.roleArn;
107
+ this.resourceRetrievalRoleArn = resourceRetrievalRole.roleArn;
108
+ }
109
+ }
110
+ exports.AgentCorePaymentManager = AgentCorePaymentManager;
111
+ //# sourceMappingURL=AgentCorePaymentManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentCorePaymentManager.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.ts"],"names":[],"mappings":";;;AAAA,qDAAoE;AACpE,iDAAsE;AAEtE,6CAAiE;AACjE,2CAAuC;AAmBvC;;;;;;;;;;GAUG;AACH,MAAa,uBAAwB,SAAQ,sBAAS;IACpC,gBAAgB,CAAS;IACzB,iBAAiB,CAAS;IAC1B,qBAAqB,CAAS;IAC9B,wBAAwB,CAAS;IACjC,WAAW,CAAc;IAEzC,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAmC;QAC3E,KAAK,CA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AI,EAAE,UAAU,EAAE;YACnD,IAAI,EAAE,uCAAuC;YAC7C,UAAU,EAAE;gBACV,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,OAAO,EAAE,qBAAqB,CAAC,OAAO;gBACtC,GAAG,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC;gBAC5D,GAAG,CAAC,uBAAuB,IAAI,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAC;gBACpF,GAAG,CAAC,UAAU,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC;aACnF;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;QAE3D,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC/E,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,EAAE,CAAC;QACjF,IAAI,CAAC,qBAAqB,GAAG,kBAAkB,CAAC,OAAO,CAAC;QACxD,IAAI,CAAC,wBAAwB,GAAG,qBAAqB,CAAC,OAAO,CAAC;IAChE,CAAC;CACF;AA/GD,0DA+GC"}
@@ -0,0 +1,3 @@
1
+ export { AgentCorePaymentManager, type AgentCorePaymentManagerProps, type CustomJWTAuthorizerConfig, } from './AgentCorePaymentManager';
2
+ export { AgentCorePaymentConnector, type AgentCorePaymentConnectorProps } from './AgentCorePaymentConnector';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,GAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,KAAK,8BAA8B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCorePaymentConnector = exports.AgentCorePaymentManager = void 0;
4
+ var AgentCorePaymentManager_1 = require("./AgentCorePaymentManager");
5
+ Object.defineProperty(exports, "AgentCorePaymentManager", { enumerable: true, get: function () { return AgentCorePaymentManager_1.AgentCorePaymentManager; } });
6
+ var AgentCorePaymentConnector_1 = require("./AgentCorePaymentConnector");
7
+ Object.defineProperty(exports, "AgentCorePaymentConnector", { enumerable: true, get: function () { return AgentCorePaymentConnector_1.AgentCorePaymentConnector; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/payment/index.ts"],"names":[],"mappings":";;;AAAA,qEAImC;AAHjC,kIAAA,uBAAuB,OAAA;AAIzB,yEAA6G;AAApG,sIAAA,yBAAyB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AgentCorePolicyEngine.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,eAAe,EAAE,MAAM,CAAC;IACxC,SAAgB,QAAQ;kBAA+B,MAAM;mBAAa,MAAM;OAAM;gBAE1E,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,0BAA0B;CA0C5E"}
1
+ {"version":3,"file":"AgentCorePolicyEngine.d.ts","sourceRoot":"","sources":["../../../../../../src/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,eAAe,EAAE,MAAM,CAAC;IACxC,SAAgB,QAAQ;kBAA+B,MAAM;mBAAa,MAAM;OAAM;gBAE1E,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,0BAA0B;CA0D5E"}