@aws/agentcore-cdk 0.1.0-alpha.9 → 1.0.0-rc.2
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/README.md +267 -40
- package/dist/cdk/constants.d.ts +1 -0
- package/dist/cdk/constants.d.ts.map +1 -1
- package/dist/cdk/constants.js +2 -1
- package/dist/cdk/constants.js.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts +26 -4
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js +69 -10
- package/dist/cdk/constructs/bundling/container/ContainerSourceAsset.js.map +1 -1
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts +17 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js +20 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js.map +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/container/index.js +3 -1
- package/dist/cdk/constructs/bundling/container/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/index.d.ts +2 -0
- package/dist/cdk/constructs/bundling/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/index.js +6 -2
- package/dist/cdk/constructs/bundling/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts +5 -0
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js +2 -7
- package/dist/cdk/constructs/bundling/zip/BundledCodeZipAsset.js.map +1 -1
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts +7 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js +30 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js.map +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/zip/index.js +3 -1
- package/dist/cdk/constructs/bundling/zip/index.js.map +1 -1
- package/dist/cdk/constructs/components/base-props.d.ts +9 -2
- package/dist/cdk/constructs/components/base-props.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts +35 -8
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js +117 -13
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +25 -7
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +45 -7
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerRepository.d.ts +30 -0
- package/dist/cdk/constructs/components/container/ContainerRepository.d.ts.map +1 -0
- package/dist/cdk/constructs/components/container/{AgentEcrRepository.js → ContainerRepository.js} +19 -8
- package/dist/cdk/constructs/components/container/ContainerRepository.js.map +1 -0
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts +4 -1
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.js +16 -3
- package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -1
- package/dist/cdk/constructs/components/container/index.d.ts +1 -1
- package/dist/cdk/constructs/components/container/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/index.js +3 -3
- package/dist/cdk/constructs/components/container/index.js.map +1 -1
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts +111 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js +622 -0
- package/dist/cdk/constructs/components/gateway/AgentCoreGateway.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts +20 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.js +16 -0
- package/dist/cdk/constructs/components/gateway/connector-defaults.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts +25 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.js +95 -0
- package/dist/cdk/constructs/components/gateway/gateway-targets.js.map +1 -0
- package/dist/cdk/constructs/components/gateway/index.d.ts +3 -0
- package/dist/cdk/constructs/components/gateway/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/gateway/index.js +8 -0
- package/dist/cdk/constructs/components/gateway/index.js.map +1 -0
- package/dist/cdk/constructs/components/index.d.ts +2 -1
- package/dist/cdk/constructs/components/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/index.js +2 -1
- package/dist/cdk/constructs/components/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts +42 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js +126 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/AgentCoreCapacityProvider.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/capacity-provider/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts +31 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js +62 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/AgentCoreConfigBundle.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/config-bundle/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts +29 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js +80 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts +27 -5
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +129 -40
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts +8 -8
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +98 -124
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts +124 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js +185 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarness.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts +71 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +389 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js +182 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts +30 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js +165 -0
- package/dist/cdk/constructs/components/primitives/harness/harness-cfn-mapping.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts +9 -3
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +17 -3
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts +67 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js +282 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/AgentCoreKnowledgeBase.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/knowledge-base/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts +30 -44
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +147 -154
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.d.ts +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts +17 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.js +34 -0
- package/dist/cdk/constructs/components/primitives/memory/memory-actions.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js +52 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentConnector.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts +65 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js +143 -0
- package/dist/cdk/constructs/components/primitives/payment/AgentCorePaymentManager.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/payment/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/payment/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts +47 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +94 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +110 -9
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +324 -149
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.d.ts +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/index.js.map +1 -1
- package/dist/cdk/constructs/components/shared/bindable.d.ts +30 -0
- package/dist/cdk/constructs/components/shared/bindable.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/bindable.js +9 -0
- package/dist/cdk/constructs/components/shared/bindable.js.map +1 -0
- package/dist/cdk/constructs/components/shared/environment-variables.d.ts +41 -0
- package/dist/cdk/constructs/components/shared/environment-variables.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/environment-variables.js +77 -0
- package/dist/cdk/constructs/components/shared/environment-variables.js.map +1 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts +17 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.js +65 -0
- package/dist/cdk/constructs/components/shared/execution-role-grants.js.map +1 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.d.ts +15 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.js +53 -0
- package/dist/cdk/constructs/components/shared/filesystem-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/identity-access.d.ts +30 -0
- package/dist/cdk/constructs/components/shared/identity-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/identity-access.js +44 -0
- package/dist/cdk/constructs/components/shared/identity-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts +32 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.js +51 -0
- package/dist/cdk/constructs/components/shared/imported-role-principal.js.map +1 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts +10 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.js +20 -0
- package/dist/cdk/constructs/components/shared/jwt-authorizer.js.map +1 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts +20 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.js +47 -0
- package/dist/cdk/constructs/components/shared/load-additional-policies.js.map +1 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts +6 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.js +24 -0
- package/dist/cdk/constructs/components/shared/managed-tool-access.js.map +1 -0
- package/dist/cdk/constructs/components/shared/physical-names.d.ts +17 -0
- package/dist/cdk/constructs/components/shared/physical-names.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/physical-names.js +20 -0
- package/dist/cdk/constructs/components/shared/physical-names.js.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.d.ts → tools/LambdaToolTarget.d.ts} +6 -6
- package/dist/cdk/constructs/components/tools/LambdaToolTarget.d.ts.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpLambdaCompute.js → tools/LambdaToolTarget.js} +20 -12
- package/dist/cdk/constructs/components/tools/LambdaToolTarget.js.map +1 -0
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts +28 -0
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.d.ts.map +1 -0
- package/dist/cdk/constructs/components/{mcp/McpRuntimeCompute.js → tools/RuntimeToolTarget.js} +12 -29
- package/dist/cdk/constructs/components/tools/RuntimeToolTarget.js.map +1 -0
- package/dist/cdk/constructs/components/tools/index.d.ts +3 -0
- package/dist/cdk/constructs/components/tools/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/tools/index.js +8 -0
- package/dist/cdk/constructs/components/tools/index.js.map +1 -0
- package/dist/cdk/constructs/connections/import-connection.d.ts +10 -0
- package/dist/cdk/constructs/connections/import-connection.d.ts.map +1 -0
- package/dist/cdk/constructs/connections/import-connection.js +64 -0
- package/dist/cdk/constructs/connections/import-connection.js.map +1 -0
- package/dist/cdk/constructs/index.d.ts +9 -3
- package/dist/cdk/constructs/index.d.ts.map +1 -1
- package/dist/cdk/constructs/index.js +23 -3
- package/dist/cdk/constructs/index.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +180 -13
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +703 -39
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +34 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +96 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.d.ts +24 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.js +99 -0
- package/dist/cdk/constructs/l3/AgentCorePayments.js.map +1 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts +47 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.js +152 -0
- package/dist/cdk/constructs/l3/RuntimeEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/index.d.ts +3 -3
- package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/index.js +5 -5
- package/dist/cdk/constructs/l3/index.js.map +1 -1
- package/dist/cdk/index.d.ts +2 -1
- package/dist/cdk/index.d.ts.map +1 -1
- package/dist/cdk/index.js +26 -3
- package/dist/cdk/index.js.map +1 -1
- package/dist/cdk/logical-ids.d.ts +5 -5
- package/dist/cdk/logical-ids.js +5 -5
- package/dist/cdk/project/index.d.ts +4 -0
- package/dist/cdk/project/index.d.ts.map +1 -0
- package/dist/cdk/project/index.js +13 -0
- package/dist/cdk/project/index.js.map +1 -0
- package/dist/cdk/project/read-project.d.ts +32 -0
- package/dist/cdk/project/read-project.d.ts.map +1 -0
- package/dist/cdk/project/read-project.js +86 -0
- package/dist/cdk/project/read-project.js.map +1 -0
- package/dist/cdk/project/target-stacks.d.ts +55 -0
- package/dist/cdk/project/target-stacks.d.ts.map +1 -0
- package/dist/cdk/project/target-stacks.js +50 -0
- package/dist/cdk/project/target-stacks.js.map +1 -0
- package/dist/cdk/project/transform.d.ts +34 -0
- package/dist/cdk/project/transform.d.ts.map +1 -0
- package/dist/cdk/project/transform.js +102 -0
- package/dist/cdk/project/transform.js.map +1 -0
- package/dist/cdk/utils/__tests__/tags.test.d.ts +2 -0
- package/dist/cdk/utils/__tests__/tags.test.d.ts.map +1 -0
- package/dist/cdk/utils/__tests__/tags.test.js +57 -0
- package/dist/cdk/utils/__tests__/tags.test.js.map +1 -0
- package/dist/cdk/utils/tags.d.ts +11 -0
- package/dist/cdk/utils/tags.d.ts.map +1 -0
- package/dist/cdk/utils/tags.js +22 -0
- package/dist/cdk/utils/tags.js.map +1 -0
- package/dist/index.d.ts +3 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -28
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +2 -2
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors/config.d.ts +0 -16
- package/dist/lib/errors/config.d.ts.map +1 -1
- package/dist/lib/errors/config.js +2 -29
- package/dist/lib/errors/config.js.map +1 -1
- package/dist/lib/index.d.ts +1 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts +19 -0
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +80 -27
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts +3 -7
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +14 -11
- package/dist/lib/packaging/index.js.map +1 -1
- package/dist/lib/packaging/node.d.ts +6 -0
- package/dist/lib/packaging/node.d.ts.map +1 -0
- package/dist/lib/packaging/node.js +106 -0
- package/dist/lib/packaging/node.js.map +1 -0
- package/dist/lib/packaging/types/packaging.d.ts +2 -0
- package/dist/lib/packaging/types/packaging.d.ts.map +1 -1
- package/dist/lib/packaging/uv.d.ts.map +1 -1
- package/dist/lib/packaging/uv.js +1 -1
- package/dist/lib/packaging/uv.js.map +1 -1
- package/dist/lib/utils/subprocess.d.ts +5 -1
- package/dist/lib/utils/subprocess.d.ts.map +1 -1
- package/dist/lib/utils/subprocess.js +0 -6
- package/dist/lib/utils/subprocess.js.map +1 -1
- package/dist/schema/constants.d.ts +11 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +33 -6
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +257 -9
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +407 -12
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +853 -40
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +275 -17
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +318 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +238 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/aws-targets.d.ts +39 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +16 -2
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/connections.d.ts +183 -0
- package/dist/schema/schemas/connections.d.ts.map +1 -0
- package/dist/schema/schemas/connections.js +176 -0
- package/dist/schema/schemas/connections.js.map +1 -0
- package/dist/schema/schemas/deployed-state.d.ts +204 -16
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +44 -4
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +2 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +2 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +255 -249
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +317 -60
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/capacity-provider.d.ts +239 -0
- package/dist/schema/schemas/primitives/capacity-provider.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/capacity-provider.js +220 -0
- package/dist/schema/schemas/primitives/capacity-provider.js.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts +31 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +41 -0
- package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
- package/dist/schema/schemas/primitives/dataset.d.ts +53 -0
- package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/dataset.js +65 -0
- package/dist/schema/schemas/primitives/dataset.js.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts +49 -2
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/evaluator.js +30 -3
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +649 -0
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/harness.js +596 -0
- package/dist/schema/schemas/primitives/harness.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +17 -5
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +71 -3
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/knowledge-base.d.ts +103 -0
- package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/knowledge-base.js +98 -0
- package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
- package/dist/schema/schemas/primitives/memory.d.ts +33 -2
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +33 -3
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +22 -3
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.js +45 -6
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -1
- package/dist/schema/schemas/primitives/policy.d.ts +62 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/policy.js +64 -0
- package/dist/schema/schemas/primitives/policy.js.map +1 -0
- package/dist/schema/schemas/primitives/tags.d.ts +6 -0
- package/dist/schema/schemas/primitives/tags.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/tags.js +20 -0
- package/dist/schema/schemas/primitives/tags.js.map +1 -0
- package/package.json +13 -11
- package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts +0 -25
- package/dist/cdk/constructs/components/container/AgentEcrRepository.d.ts.map +0 -1
- package/dist/cdk/constructs/components/container/AgentEcrRepository.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts +0 -55
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/Gateway.js +0 -454
- package/dist/cdk/constructs/components/mcp/Gateway.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts +0 -36
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/index.d.ts +0 -5
- package/dist/cdk/constructs/components/mcp/index.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/index.js +0 -17
- package/dist/cdk/constructs/components/mcp/index.js.map +0 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +0 -25
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.js +0 -43
- package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +0 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts +0 -46
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts.map +0 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js +0 -49
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js.map +0 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +0 -86
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +0 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +0 -241
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +0 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +0 -34
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +0 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.js +0 -99
- package/dist/cdk/constructs/l3/AgentEnvironment.js.map +0 -1
- package/dist/lib/schemas/io/config-io.d.ts +0 -99
- package/dist/lib/schemas/io/config-io.d.ts.map +0 -1
- package/dist/lib/schemas/io/config-io.js +0 -283
- package/dist/lib/schemas/io/config-io.js.map +0 -1
- package/dist/lib/schemas/io/index.d.ts +0 -3
- package/dist/lib/schemas/io/index.d.ts.map +0 -1
- package/dist/lib/schemas/io/index.js +0 -17
- package/dist/lib/schemas/io/index.js.map +0 -1
- package/dist/lib/schemas/io/path-resolver.d.ts +0 -112
- package/dist/lib/schemas/io/path-resolver.d.ts.map +0 -1
- package/dist/lib/schemas/io/path-resolver.js +0 -195
- package/dist/lib/schemas/io/path-resolver.js.map +0 -1
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Capacity provider name validation.
|
|
4
|
+
* Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$ (matches the CFN Name property).
|
|
5
|
+
*/
|
|
6
|
+
export declare const CapacityProviderNameSchema: z.ZodString;
|
|
7
|
+
/**
|
|
8
|
+
* Pattern for the capacity provider operator role ARN, matching the CFN
|
|
9
|
+
* resource contract exactly. The account segment is OPTIONAL — the service
|
|
10
|
+
* accepts role ARNs without an account id, so we must not force 12 digits.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN: RegExp;
|
|
13
|
+
export declare const OperatorRoleArnSchema: z.ZodString;
|
|
14
|
+
export declare function isValidOperatorRoleArn(value: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Partition-agnostic capacity-provider ARN (arn:[^:]+: per multi-partition rules). The resource
|
|
17
|
+
* segment is the service capacityProviderId — `{name}-{10 alnum}` — not a free-form string, so a
|
|
18
|
+
* malformed external ARN is rejected at validate/synth time instead of only failing at deploy.
|
|
19
|
+
* Keep this in sync with the agentcore-cli copy.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CAPACITY_PROVIDER_ARN_PATTERN: RegExp;
|
|
22
|
+
export declare const CapacityProviderArnSchema: z.ZodString;
|
|
23
|
+
/**
|
|
24
|
+
* Route a `--capacity-provider <name-or-arn>` value: an `arn:` prefix means an
|
|
25
|
+
* external CP referenced by ARN, otherwise it is an in-project sibling name.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isCapacityProviderArn(value: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Runtime -> capacity-provider reference. Exactly one of `capacityProviderArn`
|
|
30
|
+
* (external CP) or `capacityProviderName` (in-project sibling) must be set.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CapacityProviderConfigurationSchema: z.ZodObject<{
|
|
33
|
+
/** ARN of an external capacity provider (not defined in this project). */
|
|
34
|
+
capacityProviderArn: z.ZodOptional<z.ZodString>;
|
|
35
|
+
/** Name of an in-project capacity provider (a `capacityProviders[]` sibling). */
|
|
36
|
+
capacityProviderName: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export type CapacityProviderConfiguration = z.infer<typeof CapacityProviderConfigurationSchema>;
|
|
39
|
+
/**
|
|
40
|
+
* Logical name of a capacity-provider volume, referenced by a runtime's
|
|
41
|
+
* `capacityProviderVolume` filesystem mount. Must match the name of a volume
|
|
42
|
+
* defined on the capacity provider (EbsVolumeConfiguration.name).
|
|
43
|
+
*/
|
|
44
|
+
export declare const CapacityProviderVolumeNameSchema: z.ZodString;
|
|
45
|
+
export declare const OperatingSystemSchema: z.ZodEnum<{
|
|
46
|
+
LINUX_X86_64: "LINUX_X86_64";
|
|
47
|
+
LINUX_ARM64: "LINUX_ARM64";
|
|
48
|
+
}>;
|
|
49
|
+
export type OperatingSystem = z.infer<typeof OperatingSystemSchema>;
|
|
50
|
+
export declare const VpcConfigurationSchema: z.ZodObject<{
|
|
51
|
+
subnets: z.ZodArray<z.ZodString>;
|
|
52
|
+
securityGroups: z.ZodArray<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type VpcConfiguration = z.infer<typeof VpcConfigurationSchema>;
|
|
55
|
+
export declare const InstanceRequirementsSchema: z.ZodObject<{
|
|
56
|
+
allowedInstanceTypes: z.ZodArray<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type InstanceRequirements = z.infer<typeof InstanceRequirementsSchema>;
|
|
59
|
+
export declare const LaunchParametersSchema: z.ZodObject<{
|
|
60
|
+
operatingSystem: z.ZodEnum<{
|
|
61
|
+
LINUX_X86_64: "LINUX_X86_64";
|
|
62
|
+
LINUX_ARM64: "LINUX_ARM64";
|
|
63
|
+
}>;
|
|
64
|
+
instanceRequirements: z.ZodObject<{
|
|
65
|
+
allowedInstanceTypes: z.ZodArray<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
instanceProfileArn: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$loose>;
|
|
69
|
+
export type LaunchParameters = z.infer<typeof LaunchParametersSchema>;
|
|
70
|
+
export declare const EbsVolumeConfigurationSchema: z.ZodObject<{
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
sizeGiB: z.ZodNumber;
|
|
73
|
+
volumeType: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
standard: "standard";
|
|
75
|
+
io1: "io1";
|
|
76
|
+
io2: "io2";
|
|
77
|
+
gp2: "gp2";
|
|
78
|
+
sc1: "sc1";
|
|
79
|
+
st1: "st1";
|
|
80
|
+
gp3: "gp3";
|
|
81
|
+
}>>;
|
|
82
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$loose>;
|
|
85
|
+
export type EbsVolumeConfiguration = z.infer<typeof EbsVolumeConfigurationSchema>;
|
|
86
|
+
export declare const VolumeConfigurationSchema: z.ZodObject<{
|
|
87
|
+
ebsConfiguration: z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
sizeGiB: z.ZodNumber;
|
|
90
|
+
volumeType: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
standard: "standard";
|
|
92
|
+
io1: "io1";
|
|
93
|
+
io2: "io2";
|
|
94
|
+
gp2: "gp2";
|
|
95
|
+
sc1: "sc1";
|
|
96
|
+
st1: "st1";
|
|
97
|
+
gp3: "gp3";
|
|
98
|
+
}>>;
|
|
99
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$loose>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type VolumeConfiguration = z.infer<typeof VolumeConfigurationSchema>;
|
|
104
|
+
export declare const InstanceLifecycleConfigurationSchema: z.ZodObject<{
|
|
105
|
+
idleInstanceTimeout: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type InstanceLifecycleConfiguration = z.infer<typeof InstanceLifecycleConfigurationSchema>;
|
|
109
|
+
export declare const Ec2ConfigurationSchema: z.ZodObject<{
|
|
110
|
+
launchTemplateSource: z.ZodObject<{
|
|
111
|
+
launchParameters: z.ZodObject<{
|
|
112
|
+
operatingSystem: z.ZodEnum<{
|
|
113
|
+
LINUX_X86_64: "LINUX_X86_64";
|
|
114
|
+
LINUX_ARM64: "LINUX_ARM64";
|
|
115
|
+
}>;
|
|
116
|
+
instanceRequirements: z.ZodObject<{
|
|
117
|
+
allowedInstanceTypes: z.ZodArray<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
instanceProfileArn: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$loose>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
vpcConfiguration: z.ZodObject<{
|
|
123
|
+
subnets: z.ZodArray<z.ZodString>;
|
|
124
|
+
securityGroups: z.ZodArray<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
volumes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
+
ebsConfiguration: z.ZodObject<{
|
|
128
|
+
name: z.ZodString;
|
|
129
|
+
sizeGiB: z.ZodNumber;
|
|
130
|
+
volumeType: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
standard: "standard";
|
|
132
|
+
io1: "io1";
|
|
133
|
+
io2: "io2";
|
|
134
|
+
gp2: "gp2";
|
|
135
|
+
sc1: "sc1";
|
|
136
|
+
st1: "st1";
|
|
137
|
+
gp3: "gp3";
|
|
138
|
+
}>>;
|
|
139
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$loose>;
|
|
142
|
+
}, z.core.$strip>>>;
|
|
143
|
+
lifecycleConfiguration: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
idleInstanceTimeout: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
}, z.core.$loose>;
|
|
148
|
+
export type Ec2Configuration = z.infer<typeof Ec2ConfigurationSchema>;
|
|
149
|
+
export declare const ComputeConfigurationSchema: z.ZodObject<{
|
|
150
|
+
ec2Configuration: z.ZodObject<{
|
|
151
|
+
launchTemplateSource: z.ZodObject<{
|
|
152
|
+
launchParameters: z.ZodObject<{
|
|
153
|
+
operatingSystem: z.ZodEnum<{
|
|
154
|
+
LINUX_X86_64: "LINUX_X86_64";
|
|
155
|
+
LINUX_ARM64: "LINUX_ARM64";
|
|
156
|
+
}>;
|
|
157
|
+
instanceRequirements: z.ZodObject<{
|
|
158
|
+
allowedInstanceTypes: z.ZodArray<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
instanceProfileArn: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$loose>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
vpcConfiguration: z.ZodObject<{
|
|
164
|
+
subnets: z.ZodArray<z.ZodString>;
|
|
165
|
+
securityGroups: z.ZodArray<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
volumes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
168
|
+
ebsConfiguration: z.ZodObject<{
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
sizeGiB: z.ZodNumber;
|
|
171
|
+
volumeType: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
standard: "standard";
|
|
173
|
+
io1: "io1";
|
|
174
|
+
io2: "io2";
|
|
175
|
+
gp2: "gp2";
|
|
176
|
+
sc1: "sc1";
|
|
177
|
+
st1: "st1";
|
|
178
|
+
gp3: "gp3";
|
|
179
|
+
}>>;
|
|
180
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$loose>;
|
|
183
|
+
}, z.core.$strip>>>;
|
|
184
|
+
lifecycleConfiguration: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
idleInstanceTimeout: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
}, z.core.$loose>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type ComputeConfiguration = z.infer<typeof ComputeConfigurationSchema>;
|
|
191
|
+
export declare const CapacityProviderSchema: z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
description: z.ZodOptional<z.ZodString>;
|
|
194
|
+
operatorRoleArn: z.ZodOptional<z.ZodString>;
|
|
195
|
+
computeConfiguration: z.ZodObject<{
|
|
196
|
+
ec2Configuration: z.ZodObject<{
|
|
197
|
+
launchTemplateSource: z.ZodObject<{
|
|
198
|
+
launchParameters: z.ZodObject<{
|
|
199
|
+
operatingSystem: z.ZodEnum<{
|
|
200
|
+
LINUX_X86_64: "LINUX_X86_64";
|
|
201
|
+
LINUX_ARM64: "LINUX_ARM64";
|
|
202
|
+
}>;
|
|
203
|
+
instanceRequirements: z.ZodObject<{
|
|
204
|
+
allowedInstanceTypes: z.ZodArray<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
instanceProfileArn: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$loose>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
vpcConfiguration: z.ZodObject<{
|
|
210
|
+
subnets: z.ZodArray<z.ZodString>;
|
|
211
|
+
securityGroups: z.ZodArray<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
volumes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
ebsConfiguration: z.ZodObject<{
|
|
215
|
+
name: z.ZodString;
|
|
216
|
+
sizeGiB: z.ZodNumber;
|
|
217
|
+
volumeType: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
standard: "standard";
|
|
219
|
+
io1: "io1";
|
|
220
|
+
io2: "io2";
|
|
221
|
+
gp2: "gp2";
|
|
222
|
+
sc1: "sc1";
|
|
223
|
+
st1: "st1";
|
|
224
|
+
gp3: "gp3";
|
|
225
|
+
}>>;
|
|
226
|
+
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$loose>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
lifecycleConfiguration: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
idleInstanceTimeout: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
}, z.core.$loose>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export type CapacityProvider = z.infer<typeof CapacityProviderSchema>;
|
|
239
|
+
//# sourceMappingURL=capacity-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity-provider.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/capacity-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;;GAGG;AACH,eAAO,MAAM,0BAA0B,aAOpC,CAAC;AAMJ;;;;GAIG;AAEH,eAAO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;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAS5E,eAAO,MAAM,oCAAoC;;;iBAG/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AASlG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASnB,CAAC;AAEjB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAejC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CapacityProviderSchema = exports.ComputeConfigurationSchema = exports.Ec2ConfigurationSchema = exports.InstanceLifecycleConfigurationSchema = exports.VolumeConfigurationSchema = exports.EbsVolumeConfigurationSchema = exports.LaunchParametersSchema = exports.InstanceRequirementsSchema = exports.VpcConfigurationSchema = exports.OperatingSystemSchema = exports.CapacityProviderVolumeNameSchema = exports.CapacityProviderConfigurationSchema = exports.CapacityProviderArnSchema = exports.CAPACITY_PROVIDER_ARN_PATTERN = exports.OperatorRoleArnSchema = exports.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN = exports.CapacityProviderNameSchema = void 0;
|
|
4
|
+
exports.isValidOperatorRoleArn = isValidOperatorRoleArn;
|
|
5
|
+
exports.isCapacityProviderArn = isCapacityProviderArn;
|
|
6
|
+
const tags_1 = require("./tags");
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Capacity Provider Types
|
|
10
|
+
//
|
|
11
|
+
// Models the AWS::BedrockAgentCore::CapacityProvider CFN resource. Known fields
|
|
12
|
+
// are typed and validated here so bad input is rejected at `add` time instead
|
|
13
|
+
// of failing late at deploy/CFN time; the long tail of launch parameters is
|
|
14
|
+
// accepted via `.passthrough()` and validated by CFN on deploy.
|
|
15
|
+
//
|
|
16
|
+
// NOTE: This schema is duplicated in @aws/agentcore-cdk
|
|
17
|
+
// (src/schema/schemas/primitives/capacity-provider.ts). Keep the two in sync.
|
|
18
|
+
// ============================================================================
|
|
19
|
+
/**
|
|
20
|
+
* Capacity provider name validation.
|
|
21
|
+
* Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$ (matches the CFN Name property).
|
|
22
|
+
*/
|
|
23
|
+
exports.CapacityProviderNameSchema = zod_1.z
|
|
24
|
+
.string()
|
|
25
|
+
.min(1, 'Capacity provider name is required')
|
|
26
|
+
.max(48)
|
|
27
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
|
|
28
|
+
// ============================================================================
|
|
29
|
+
// Operator Role ARN Validation
|
|
30
|
+
// ============================================================================
|
|
31
|
+
/**
|
|
32
|
+
* Pattern for the capacity provider operator role ARN, matching the CFN
|
|
33
|
+
* resource contract exactly. The account segment is OPTIONAL — the service
|
|
34
|
+
* accepts role ARNs without an account id, so we must not force 12 digits.
|
|
35
|
+
*/
|
|
36
|
+
// eslint-disable-next-line security/detect-unsafe-regex -- anchored ARN pattern, no backtracking risk
|
|
37
|
+
exports.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN = /^arn:[^:]+:iam::([0-9]{12})?:role\/.+$/;
|
|
38
|
+
exports.OperatorRoleArnSchema = zod_1.z
|
|
39
|
+
.string()
|
|
40
|
+
.min(1, 'Operator role ARN is required')
|
|
41
|
+
.max(2048)
|
|
42
|
+
.regex(exports.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN, 'Must be a valid IAM role ARN (e.g. arn:<partition>:iam::123456789012:role/MyOperatorRole)');
|
|
43
|
+
function isValidOperatorRoleArn(value) {
|
|
44
|
+
return exports.CAPACITY_PROVIDER_OPERATOR_ROLE_ARN_PATTERN.test(value);
|
|
45
|
+
}
|
|
46
|
+
// ============================================================================
|
|
47
|
+
// Capacity Provider Attach (runtime -> capacity provider reference)
|
|
48
|
+
//
|
|
49
|
+
// A runtime attaches to a capacity provider via `capacityProviderConfiguration`.
|
|
50
|
+
// The reference is EITHER an in-project sibling (by name) OR an external CP (by
|
|
51
|
+
// ARN) — exactly one. At synth the CDK app resolves a sibling name to the created
|
|
52
|
+
// CP's ARN, or passes the ARN through, then injects
|
|
53
|
+
// CapacityProviderConfiguration.CapacityProviderArn onto the CfnRuntime.
|
|
54
|
+
//
|
|
55
|
+
// NOTE: This block is duplicated in the agentcore-cli repo. Keep the two in sync.
|
|
56
|
+
// ============================================================================
|
|
57
|
+
/**
|
|
58
|
+
* Partition-agnostic capacity-provider ARN (arn:[^:]+: per multi-partition rules). The resource
|
|
59
|
+
* segment is the service capacityProviderId — `{name}-{10 alnum}` — not a free-form string, so a
|
|
60
|
+
* malformed external ARN is rejected at validate/synth time instead of only failing at deploy.
|
|
61
|
+
* Keep this in sync with the agentcore-cli copy.
|
|
62
|
+
*/
|
|
63
|
+
exports.CAPACITY_PROVIDER_ARN_PATTERN = /^arn:[^:]+:bedrock-agentcore:[a-z0-9-]+:\d{12}:capacity-provider\/[a-zA-Z][a-zA-Z0-9_]{0,47}-[a-zA-Z0-9]{10}$/;
|
|
64
|
+
exports.CapacityProviderArnSchema = zod_1.z
|
|
65
|
+
.string()
|
|
66
|
+
.regex(exports.CAPACITY_PROVIDER_ARN_PATTERN, 'Must be a valid bedrock-agentcore capacity provider ARN (…:capacity-provider/{name}-{10 alphanumerics})');
|
|
67
|
+
/**
|
|
68
|
+
* Route a `--capacity-provider <name-or-arn>` value: an `arn:` prefix means an
|
|
69
|
+
* external CP referenced by ARN, otherwise it is an in-project sibling name.
|
|
70
|
+
*/
|
|
71
|
+
function isCapacityProviderArn(value) {
|
|
72
|
+
return value.startsWith('arn:');
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Runtime -> capacity-provider reference. Exactly one of `capacityProviderArn`
|
|
76
|
+
* (external CP) or `capacityProviderName` (in-project sibling) must be set.
|
|
77
|
+
*/
|
|
78
|
+
exports.CapacityProviderConfigurationSchema = zod_1.z
|
|
79
|
+
.strictObject({
|
|
80
|
+
/** ARN of an external capacity provider (not defined in this project). */
|
|
81
|
+
capacityProviderArn: exports.CapacityProviderArnSchema.optional(),
|
|
82
|
+
/** Name of an in-project capacity provider (a `capacityProviders[]` sibling). */
|
|
83
|
+
capacityProviderName: exports.CapacityProviderNameSchema.optional(),
|
|
84
|
+
})
|
|
85
|
+
.superRefine((data, ctx) => {
|
|
86
|
+
if ((data.capacityProviderArn !== undefined) === (data.capacityProviderName !== undefined)) {
|
|
87
|
+
ctx.addIssue({
|
|
88
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
89
|
+
message: 'capacityProviderConfiguration must set exactly one of capacityProviderArn or capacityProviderName',
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
/**
|
|
94
|
+
* Logical name of a capacity-provider volume, referenced by a runtime's
|
|
95
|
+
* `capacityProviderVolume` filesystem mount. Must match the name of a volume
|
|
96
|
+
* defined on the capacity provider (EbsVolumeConfiguration.name).
|
|
97
|
+
*/
|
|
98
|
+
exports.CapacityProviderVolumeNameSchema = zod_1.z
|
|
99
|
+
.string()
|
|
100
|
+
.min(1, 'Capacity provider volume name is required')
|
|
101
|
+
.max(48)
|
|
102
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_-]{0,47}$/, 'Volume name must begin with a letter and contain only alphanumerics, underscores, and hyphens (max 48 chars)');
|
|
103
|
+
// ============================================================================
|
|
104
|
+
// Operating System
|
|
105
|
+
//
|
|
106
|
+
// The CFN resource enum lists four values (LINUX_X86_64, LINUX_ARM64,
|
|
107
|
+
// MAC_ARM64, WINDOWS_X86_64), but the service API contract only supports the
|
|
108
|
+
// two Linux values today; the extra two leaked into the CFN autogen ahead of
|
|
109
|
+
// real support. The CLI follows the API and exposes only the Linux values.
|
|
110
|
+
// ============================================================================
|
|
111
|
+
exports.OperatingSystemSchema = zod_1.z.enum(['LINUX_X86_64', 'LINUX_ARM64']);
|
|
112
|
+
// ============================================================================
|
|
113
|
+
// VPC Configuration
|
|
114
|
+
// ============================================================================
|
|
115
|
+
exports.VpcConfigurationSchema = zod_1.z.object({
|
|
116
|
+
subnets: zod_1.z
|
|
117
|
+
.array(zod_1.z.string().regex(/^subnet-[0-9a-zA-Z]{8,17}$/, 'Must be a valid subnet ID'))
|
|
118
|
+
.min(1, 'At least one subnet is required')
|
|
119
|
+
.max(16),
|
|
120
|
+
securityGroups: zod_1.z
|
|
121
|
+
.array(zod_1.z.string().regex(/^sg-[0-9a-zA-Z]{8,17}$/, 'Must be a valid security group ID'))
|
|
122
|
+
.min(1, 'At least one security group is required')
|
|
123
|
+
.max(16),
|
|
124
|
+
});
|
|
125
|
+
// ============================================================================
|
|
126
|
+
// Instance Requirements
|
|
127
|
+
// ============================================================================
|
|
128
|
+
exports.InstanceRequirementsSchema = zod_1.z.object({
|
|
129
|
+
allowedInstanceTypes: zod_1.z.array(zod_1.z.string().min(1).max(255)).min(1, 'At least one instance type is required').max(30),
|
|
130
|
+
});
|
|
131
|
+
// ============================================================================
|
|
132
|
+
// Launch Parameters
|
|
133
|
+
//
|
|
134
|
+
// Known fields are typed; the long tail (sshKeyName, monitoring,
|
|
135
|
+
// licenseSpecifications, capacityReservationSpecification, ephemeralVolumes,
|
|
136
|
+
// propagatedTags) is accepted via `.passthrough()` and validated by CFN.
|
|
137
|
+
// ============================================================================
|
|
138
|
+
exports.LaunchParametersSchema = zod_1.z
|
|
139
|
+
.object({
|
|
140
|
+
operatingSystem: exports.OperatingSystemSchema,
|
|
141
|
+
instanceRequirements: exports.InstanceRequirementsSchema,
|
|
142
|
+
instanceProfileArn: zod_1.z
|
|
143
|
+
.string()
|
|
144
|
+
.regex(/^arn:[^:]+:iam::[0-9]{12}:instance-profile\/.+$/, 'Must be a valid IAM instance profile ARN')
|
|
145
|
+
.optional(),
|
|
146
|
+
})
|
|
147
|
+
.passthrough();
|
|
148
|
+
// ============================================================================
|
|
149
|
+
// EBS Volume Configuration
|
|
150
|
+
//
|
|
151
|
+
// Known fields typed; EBS long-tail tuning (iops, throughput, snapshotId) is
|
|
152
|
+
// accepted via `.passthrough()`.
|
|
153
|
+
// ============================================================================
|
|
154
|
+
exports.EbsVolumeConfigurationSchema = zod_1.z
|
|
155
|
+
.object({
|
|
156
|
+
name: zod_1.z
|
|
157
|
+
.string()
|
|
158
|
+
.min(1)
|
|
159
|
+
.max(48)
|
|
160
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_-]{0,47}$/, 'Volume name must begin with a letter and contain only alphanumerics, underscores, and hyphens (max 48 chars)'),
|
|
161
|
+
sizeGiB: zod_1.z.number().int().min(1).max(65536),
|
|
162
|
+
volumeType: zod_1.z.enum(['standard', 'io1', 'io2', 'gp2', 'sc1', 'st1', 'gp3']).optional(),
|
|
163
|
+
encrypted: zod_1.z.boolean().optional(),
|
|
164
|
+
kmsKeyId: zod_1.z
|
|
165
|
+
.string()
|
|
166
|
+
.regex(/^arn:[^:]+:kms:[a-z0-9-]+:[0-9]{12}:key\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/, 'Must be a valid KMS key ARN')
|
|
167
|
+
.optional(),
|
|
168
|
+
})
|
|
169
|
+
.passthrough();
|
|
170
|
+
exports.VolumeConfigurationSchema = zod_1.z.object({
|
|
171
|
+
ebsConfiguration: exports.EbsVolumeConfigurationSchema,
|
|
172
|
+
});
|
|
173
|
+
// ============================================================================
|
|
174
|
+
// Instance Lifecycle Configuration
|
|
175
|
+
// ============================================================================
|
|
176
|
+
const LIFECYCLE_SECONDS_MIN = 60;
|
|
177
|
+
const LIFECYCLE_SECONDS_MAX = 1209600;
|
|
178
|
+
exports.InstanceLifecycleConfigurationSchema = zod_1.z.object({
|
|
179
|
+
idleInstanceTimeout: zod_1.z.number().int().min(LIFECYCLE_SECONDS_MIN).max(LIFECYCLE_SECONDS_MAX).optional(),
|
|
180
|
+
maxLifetime: zod_1.z.number().int().min(LIFECYCLE_SECONDS_MIN).max(LIFECYCLE_SECONDS_MAX).optional(),
|
|
181
|
+
});
|
|
182
|
+
// ============================================================================
|
|
183
|
+
// Compute Configuration
|
|
184
|
+
//
|
|
185
|
+
// `rootVolume` is accepted via `.passthrough()` on ec2Configuration (long-tail,
|
|
186
|
+
// service-managed).
|
|
187
|
+
// ============================================================================
|
|
188
|
+
exports.Ec2ConfigurationSchema = zod_1.z
|
|
189
|
+
.object({
|
|
190
|
+
launchTemplateSource: zod_1.z.object({
|
|
191
|
+
launchParameters: exports.LaunchParametersSchema,
|
|
192
|
+
}),
|
|
193
|
+
vpcConfiguration: exports.VpcConfigurationSchema,
|
|
194
|
+
volumes: zod_1.z.array(exports.VolumeConfigurationSchema).max(5).optional(),
|
|
195
|
+
lifecycleConfiguration: exports.InstanceLifecycleConfigurationSchema.optional(),
|
|
196
|
+
})
|
|
197
|
+
.passthrough();
|
|
198
|
+
exports.ComputeConfigurationSchema = zod_1.z.object({
|
|
199
|
+
ec2Configuration: exports.Ec2ConfigurationSchema,
|
|
200
|
+
});
|
|
201
|
+
// ============================================================================
|
|
202
|
+
// Capacity Provider Schema
|
|
203
|
+
// ============================================================================
|
|
204
|
+
exports.CapacityProviderSchema = zod_1.z.object({
|
|
205
|
+
/** Capacity provider name (immutable after creation). */
|
|
206
|
+
name: exports.CapacityProviderNameSchema,
|
|
207
|
+
/** Optional description (max 4096 chars). The only mutable field besides tags. */
|
|
208
|
+
description: zod_1.z.string().min(1).max(4096).optional(),
|
|
209
|
+
/**
|
|
210
|
+
* ARN of the IAM role AgentCore assumes to manage the capacity provider (immutable). Optional:
|
|
211
|
+
* when omitted, an operator role with the required trust policy and managed permissions is
|
|
212
|
+
* created automatically at deploy time.
|
|
213
|
+
*/
|
|
214
|
+
operatorRoleArn: exports.OperatorRoleArnSchema.optional(),
|
|
215
|
+
/** Compute resources for the capacity provider (immutable after creation). */
|
|
216
|
+
computeConfiguration: exports.ComputeConfigurationSchema,
|
|
217
|
+
/** Optional resource tags. */
|
|
218
|
+
tags: tags_1.TagsSchema.optional(),
|
|
219
|
+
});
|
|
220
|
+
//# sourceMappingURL=capacity-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity-provider.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/capacity-provider.ts"],"names":[],"mappings":";;;AAiDA,wDAEC;AAkCD,sDAEC;AAvFD,iCAAoC;AACpC,6BAAwB;AAExB,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,4EAA4E;AAC5E,gEAAgE;AAChE,EAAE;AACF,wDAAwD;AACxD,8EAA8E;AAC9E,+EAA+E;AAE/E;;;GAGG;AACU,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;KAC5C,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E;;;;GAIG;AACH,sGAAsG;AACzF,QAAA,2CAA2C,GAAG,wCAAwC,CAAC;AAEvF,QAAA,qBAAqB,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IAAI,CAAC,CAAC,QAAQ,EAAE;IACnD;;;;OAIG;IACH,eAAe,EAAE,6BAAqB,CAAC,QAAQ,EAAE;IACjD,8EAA8E;IAC9E,oBAAoB,EAAE,kCAA0B;IAChD,8BAA8B;IAC9B,IAAI,EAAE,iBAAU,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ConfigBundleNameSchema: z.ZodString;
|
|
3
|
+
export declare const ConfigBundleDescriptionSchema: z.ZodOptional<z.ZodString>;
|
|
4
|
+
/** Freeform configuration for a single component within a bundle. */
|
|
5
|
+
export declare const ComponentConfigurationSchema: z.ZodObject<{
|
|
6
|
+
configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ComponentConfiguration = z.infer<typeof ComponentConfigurationSchema>;
|
|
9
|
+
/**
|
|
10
|
+
* Map of component identifier (ARN or placeholder) to its configuration.
|
|
11
|
+
*
|
|
12
|
+
* Keys are typically resource ARNs (runtime ARN, gateway ARN) but may use
|
|
13
|
+
* placeholder tokens like `{{agent:<agentName>}}` when the bundle is created
|
|
14
|
+
* before deploy and ARNs are not yet available.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ComponentConfigurationMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17
|
+
configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
export type ComponentConfigurationMap = z.infer<typeof ComponentConfigurationMapSchema>;
|
|
20
|
+
export declare const ConfigBundleSchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
components: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
24
|
+
configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
27
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
28
|
+
kmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type ConfigBundle = z.infer<typeof ConfigBundleSchema>;
|
|
31
|
+
//# sourceMappingURL=config-bundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-bundle.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/config-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB,aAOhC,CAAC;AAEJ,eAAO,MAAM,6BAA6B,4BAAwC,CAAC;AAEnF,qEAAqE;AACrE,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;kBAAqD,CAAC;AAElG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,kBAAkB;;;;;;;;;iBAc7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigBundleSchema = exports.ComponentConfigurationMapSchema = exports.ComponentConfigurationSchema = exports.ConfigBundleDescriptionSchema = exports.ConfigBundleNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Configuration Bundle Types
|
|
7
|
+
// ============================================================================
|
|
8
|
+
exports.ConfigBundleNameSchema = zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Name is required')
|
|
11
|
+
.max(100)
|
|
12
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,99}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 100 chars)');
|
|
13
|
+
exports.ConfigBundleDescriptionSchema = zod_1.z.string().min(1).max(500).optional();
|
|
14
|
+
/** Freeform configuration for a single component within a bundle. */
|
|
15
|
+
exports.ComponentConfigurationSchema = zod_1.z.object({
|
|
16
|
+
configuration: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Map of component identifier (ARN or placeholder) to its configuration.
|
|
20
|
+
*
|
|
21
|
+
* Keys are typically resource ARNs (runtime ARN, gateway ARN) but may use
|
|
22
|
+
* placeholder tokens like `{{agent:<agentName>}}` when the bundle is created
|
|
23
|
+
* before deploy and ARNs are not yet available.
|
|
24
|
+
*/
|
|
25
|
+
exports.ComponentConfigurationMapSchema = zod_1.z.record(zod_1.z.string(), exports.ComponentConfigurationSchema);
|
|
26
|
+
exports.ConfigBundleSchema = zod_1.z.object({
|
|
27
|
+
name: exports.ConfigBundleNameSchema,
|
|
28
|
+
description: exports.ConfigBundleDescriptionSchema,
|
|
29
|
+
/** Component configurations keyed by component ARN or placeholder. */
|
|
30
|
+
components: exports.ComponentConfigurationMapSchema,
|
|
31
|
+
/** Optional branch name for versioning. */
|
|
32
|
+
branchName: zod_1.z.string().max(128).optional(),
|
|
33
|
+
/** Optional commit message for this version. */
|
|
34
|
+
commitMessage: zod_1.z.string().max(500).optional(),
|
|
35
|
+
/** Optional KMS key ARN for customer-managed encryption of the bundle. */
|
|
36
|
+
kmsKeyArn: zod_1.z
|
|
37
|
+
.string()
|
|
38
|
+
.regex(/^arn:[^:]+:kms:[a-zA-Z0-9-]*:[0-9]{12}:key\/[a-zA-Z0-9-]{36}$/, 'Must be a valid KMS key ARN')
|
|
39
|
+
.optional(),
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=config-bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-bundle.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/config-bundle.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAElE,QAAA,sBAAsB,GAAG,OAAC;KACpC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CACJ,8BAA8B,EAC9B,mGAAmG,CACpG,CAAC;AAES,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEnF,qEAAqE;AACxD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;CACjD,CAAC,CAAC;AAIH;;;;;;GAMG;AACU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,oCAA4B,CAAC,CAAC;AAIrF,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,8BAAsB;IAC5B,WAAW,EAAE,qCAA6B;IAC1C,sEAAsE;IACtE,UAAU,EAAE,uCAA+B;IAC3C,2CAA2C;IAC3C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC1C,gDAAgD;IAChD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC7C,0EAA0E;IAC1E,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,KAAK,CAAC,+DAA+D,EAAE,6BAA6B,CAAC;SACrG,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Dataset name validation.
|
|
4
|
+
* Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$
|
|
5
|
+
*/
|
|
6
|
+
export declare const DatasetNameSchema: z.ZodString;
|
|
7
|
+
/**
|
|
8
|
+
* Versioned schema type governing the structure of dataset examples.
|
|
9
|
+
* Immutable after creation (createOnly CFN property).
|
|
10
|
+
*/
|
|
11
|
+
export declare const DatasetSchemaTypeSchema: z.ZodEnum<{
|
|
12
|
+
AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1";
|
|
13
|
+
AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1";
|
|
14
|
+
}>;
|
|
15
|
+
export type DatasetSchemaType = z.infer<typeof DatasetSchemaTypeSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Managed dataset config — CLI manages the local file and syncs to service.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DatasetManagedConfigSchema: z.ZodObject<{
|
|
20
|
+
location: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
/**
|
|
23
|
+
* Dataset configuration.
|
|
24
|
+
*/
|
|
25
|
+
export declare const DatasetConfigSchema: z.ZodObject<{
|
|
26
|
+
managed: z.ZodObject<{
|
|
27
|
+
location: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
/**
|
|
31
|
+
* Dataset specification in agentcore.json.
|
|
32
|
+
*
|
|
33
|
+
* Content management (push/pull/publish) is handled by the CLI via
|
|
34
|
+
* `agentcore dataset push`. The `config.managed.location` field points
|
|
35
|
+
* to the local JSONL file — it is NOT passed to CloudFormation.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DatasetSchema: z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
schemaType: z.ZodEnum<{
|
|
40
|
+
AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1";
|
|
41
|
+
AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1";
|
|
42
|
+
}>;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
config: z.ZodObject<{
|
|
45
|
+
managed: z.ZodObject<{
|
|
46
|
+
location: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
kmsKeyArn: z.ZodOptional<z.ZodString>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type Dataset = z.infer<typeof DatasetSchema>;
|
|
53
|
+
//# sourceMappingURL=dataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/dataset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAO3B,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;EAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;iBAE9B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;iBAmBxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|