cdk-local 0.155.0 → 0.157.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $t as JwtAuthorizer, A as addListSpecificOptions, An as AgentCoreWsBridgeHandle, At as DEFAULT_SHADOW_READY_TIMEOUT_MS, B as LocalStartCloudFrontError, Bn as tryResolveImageFnJoin, Bt as addRunTaskSpecificOptions, C as StudioEventBus, Cn as resolveProfileCredentials, Ct as resolveEcsAssumeRoleOption, D as StudioTargetKind, Dt as ResolvedListenerAction, E as StudioServeEvent, En as isProxyEnvConfigured, Er as TemplateResource, Et as FrontDoorForwardTarget, Fn as invokeAgentCoreWs, G as parseOriginOverrides, Gn as addInvokeSpecificOptions, Ht as EcsTaskResolutionError, In as ImageResolutionContext, J as addAlbSpecificOptions, Jn as ResolvedZipLambda, K as resolveCloudFrontTarget, Kt as WatchPredicates, L as addStartAgentCoreSpecificOptions, Ln as derivePseudoParametersFromRegion, Lt as CdkLocalError, Mn as BridgeAgentCoreWsOptions, Mt as setShadowReadyTimeoutMs, Nn as InvokeAgentCoreWsOptions, Nt as TargetEntry, On as addInvokeAgentCoreSpecificOptions, Ot as isApplicationLoadBalancer, P as addStartWebFunctionSpecificOptions, Pn as bridgeAgentCoreWs, Pt as TargetListing, Q as resolveAlbTarget, Qt as CognitoUserPoolAuthorizer, Rn as formatStateRemedy, Rt as LocalInvokeBuildError, S as createStudioDispatcher, Sn as buildStsClientConfig, St as parseRestartPolicy, T as StudioLogEvent, Tn as buildProxyClientConfig, Tr as CloudFormationTemplate, Tt as runEcsServiceEmulator, U as normalizeKvsFileKeys, Ut as ResolvedEcsTask, V as addStartCloudFrontSpecificOptions, W as parseKvsFileOverrides, Wt as ApiTargetSubset, Xt as resolveApiTargetSubset, Y as albStrategy, Yn as StackInfo, Yt as createWatchPredicates, Z as parseLbPortOverrides, Zt as AuthorizerInfo, _ as startStudioProxy, _n as pickResponseTemplate, _t as addEcsAssumeRoleOptions, a as coerceServeRequest, an as WebSocketRouteEntry, at as FrontDoorPlan, b as StudioRunRequest, bn as CdkWatchConfig, bt as ecsClusterOption, c as resolveServeBaseUrl, cn as discoverWebSocketApisOrThrow, ct as PlannedEcsForwardTarget, d as StudioServeRequest, dn as webSocketApiMatchesIdentifier, dt as PlannedForwardTarget, en as LambdaRequestAuthorizer, et as addStartServiceSpecificOptions, f as StudioServeState, fn as DiscoveredRoute, ft as PlannedFrontDoorListener, g as StudioProxyConfig, gn as evaluateResponseParameters, gt as addCommonEcsServiceOptions, h as RunningStudioProxy, hn as IntegrationResponseEntry, ht as ServiceBoot, i as coerceRunRequest, in as DiscoveredWebSocketApi, it as EmulatorStrategy, jn as AgentCoreWsResult, jt as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, kt as resolveAlbFrontDoor, l as StudioServeManager, ln as filterWebSocketApisByIdentifiers, lt as PlannedFixedResponseAction, m as createStudioServeManager, mn as discoverRoutes, mt as PlannedRedirectAction, n as StudioServeRequestPayload, nn as RouteWithAuth, nt as serviceStrategy, o as coerceStopRequest, on as availableWebSocketApiIdentifiers, ot as MAX_TASKS_SUBNET_RANGE_CAP, p as StudioStopRequest, pn as RestV1IntegrationConfig, pt as PlannedLambdaForwardTarget, qn as ResolvedArnLambdaLayer, qt as addStartApiSpecificOptions, r as addStudioSpecificOptions, rn as attachAuthorizers, rt as EcsServiceEmulatorOptions, sn as discoverWebSocketApis, st as PlannedAction, tn as LambdaTokenAuthorizer, u as StudioServeManagerConfig, un as parseSelectionExpressionPath, ut as PlannedForwardAction, v as StudioDispatchConfig, vn as selectIntegrationResponse, vt as addImageOverrideOptions, w as StudioInvocationEvent, wn as AwsProxyClientConfig, wt as resolveSharedSidecarCredentials, x as StudioRunResult, xn as resolveWatchConfig, xt as parseMaxTasks, y as StudioDispatcher, yn as tryParseStatus, yt as buildEcsImageResolutionContext, zn as substituteImagePlaceholders } from "./local-studio-D5Ycx74D.js";
1
+ import { $ as resolveMicrovmImageTarget, $n as AssetManifest, $t as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, A as addListSpecificOptions, An as discoverWebSocketApisOrThrow, At as PlannedEcsForwardTarget, B as MICROVM_DEFAULT_INGRESS_PORT, Bn as selectIntegrationResponse, Bt as addImageOverrideOptions, C as StudioEventBus, Cn as LambdaTokenAuthorizer, D as StudioTargetKind, Dn as WebSocketRouteEntry, Dt as FrontDoorPlan, E as StudioServeEvent, En as DiscoveredWebSocketApi, Et as EmulatorStrategy, F as buildMicrovmLambdaView, Fn as RestV1IntegrationConfig, Ft as PlannedLambdaForwardTarget, G as MicrovmHookName, Gn as resolveProfileCredentials, Gt as resolveEcsAssumeRoleOption, H as MicrovmBuildHook, Hn as CdkWatchConfig, Ht as ecsClusterOption, In as discoverRoutes, It as PlannedRedirectAction, J as MicrovmRuntimeHook, Jn as isProxyEnvConfigured, Jt as FrontDoorForwardTarget, K as MicrovmImageConfig, Kn as AwsProxyClientConfig, Kt as resolveSharedSidecarCredentials, L as finalizeMicrovmEnv, Ln as IntegrationResponseEntry, Lt as ServiceBoot, Mn as parseSelectionExpressionPath, Mt as PlannedForwardAction, Nn as webSocketApiMatchesIdentifier, Nt as PlannedForwardTarget, On as availableWebSocketApiIdentifiers, Ot as MAX_TASKS_SUBNET_RANGE_CAP, P as addStartMicrovmSpecificOptions, Pn as DiscoveredRoute, Pt as PlannedFrontDoorListener, Q as resolveMicrovmCodeArtifact, Qn as AssetManifestLoader, Qr as TemplateResource, Qt as DEFAULT_SHADOW_READY_TIMEOUT_MS, R as microvmFidelityWarnings, Rn as evaluateResponseParameters, Rt as addCommonEcsServiceOptions, S as createStudioDispatcher, Sn as LambdaRequestAuthorizer, St as addStartServiceSpecificOptions, T as StudioLogEvent, Tn as attachAuthorizers, Tt as EcsServiceEmulatorOptions, U as MicrovmCodeArtifact, Un as resolveWatchConfig, Ut as parseMaxTasks, V as MICROVM_IMAGE_TYPE, Vn as tryParseStatus, Vt as buildEcsImageResolutionContext, W as MicrovmHookConfig, Wn as buildStsClientConfig, Wt as parseRestartPolicy, X as disposeMicrovmCodeArtifact, Xn as addInvokeAgentCoreSpecificOptions, Xt as isApplicationLoadBalancer, Y as ResolvedMicrovmImage, Yt as ResolvedListenerAction, Z as readMicrovmImageConfig, Zr as CloudFormationTemplate, Zt as resolveAlbFrontDoor, _ as startStudioProxy, _n as createWatchPredicates, _r as addInvokeSpecificOptions, _t as albStrategy, a as coerceServeRequest, an as CdkLocalError, ar as InvokeAgentCoreWsOptions, at as addStartAgentCoreSpecificOptions, b as StudioRunRequest, bn as CognitoUserPoolAuthorizer, br as ResolvedZipLambda, bt as resolveAlbTarget, c as resolveServeBaseUrl, cn as addRunTaskSpecificOptions, cr as ImageResolutionContext, ct as LocalStartCloudFrontError, d as StudioServeRequest, dn as ResolvedEcsTask, dr as substituteImagePlaceholders, dt as normalizeKvsFileKeys, en as setShadowReadyTimeoutMs, er as DockerImageAssetSource, et as s3KeyOfUri, f as StudioServeState, fn as ApiTargetSubset, fr as tryResolveImageFnJoin, ft as parseKvsFileOverrides, g as StudioProxyConfig, gt as addAlbSpecificOptions, h as RunningStudioProxy, hn as addStartApiSpecificOptions, i as coerceRunRequest, ir as BridgeAgentCoreWsOptions, jn as filterWebSocketApisByIdentifiers, jt as PlannedFixedResponseAction, kn as discoverWebSocketApis, kt as PlannedAction, l as StudioServeManager, lr as derivePseudoParametersFromRegion, lt as addStartCloudFrontSpecificOptions, m as createStudioServeManager, mn as WatchPredicates, mt as resolveCloudFrontTarget, n as StudioServeRequestPayload, nn as TargetListing, nr as AgentCoreWsBridgeHandle, nt as addStartWebFunctionSpecificOptions, o as coerceStopRequest, on as LocalInvokeBuildError, or as bridgeAgentCoreWs, p as StudioStopRequest, pt as parseOriginOverrides, q as MicrovmResolutionError, qn as buildProxyClientConfig, qt as runEcsServiceEmulator, r as addStudioSpecificOptions, rr as AgentCoreWsResult, sr as invokeAgentCoreWs, tn as TargetEntry, tr as FileAsset, u as StudioServeManagerConfig, un as EcsTaskResolutionError, ur as formatStateRemedy, v as StudioDispatchConfig, vn as resolveApiTargetSubset, w as StudioInvocationEvent, wn as RouteWithAuth, wt as serviceStrategy, x as StudioRunResult, xn as JwtAuthorizer, xr as StackInfo, y as StudioDispatcher, yn as AuthorizerInfo, yr as ResolvedArnLambdaLayer, yt as parseLbPortOverrides, z as readRunHookPayload, zn as pickResponseTemplate, zt as addEcsAssumeRoleOptions } from "./local-studio-DXVr171Y.js";
2
2
  import { IncomingHttpHeaders, IncomingMessage, Server, ServerResponse } from "node:http";
3
3
  import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
4
4
  import { SSMClient } from "@aws-sdk/client-ssm";
@@ -178,77 +178,6 @@ interface EnvOverrideFile {
178
178
  }
179
179
  declare function resolveEnvVars(logicalId: string, displayPath: string | undefined, templateEnv: Record<string, unknown> | undefined, overrides?: EnvOverrideFile): EnvResolutionResult;
180
180
  //#endregion
181
- //#region src/types/assets.d.ts
182
- interface AssetManifest {
183
- version: string;
184
- files: Record<string, FileAsset>;
185
- dockerImages: Record<string, DockerImageAsset>;
186
- }
187
- interface FileAsset {
188
- displayName: string;
189
- source: FileAssetSource;
190
- destinations: Record<string, FileAssetDestination>;
191
- }
192
- interface FileAssetSource {
193
- path: string;
194
- packaging: 'file' | 'zip';
195
- executable?: string[];
196
- }
197
- interface FileAssetDestination {
198
- bucketName: string;
199
- objectKey: string;
200
- assumeRoleArn?: string;
201
- region?: string;
202
- }
203
- interface DockerImageAsset {
204
- displayName: string;
205
- source: DockerImageAssetSource;
206
- destinations: Record<string, DockerImageAssetDestination>;
207
- }
208
- interface DockerImageAssetSource {
209
- directory?: string;
210
- executable?: string[];
211
- dockerFile?: string;
212
- dockerBuildTarget?: string;
213
- dockerBuildArgs?: Record<string, string>;
214
- dockerBuildContexts?: Record<string, string>;
215
- dockerBuildSsh?: string;
216
- dockerBuildSecrets?: Record<string, string>;
217
- networkMode?: string;
218
- platform?: string;
219
- dockerOutputs?: string[];
220
- cacheFrom?: DockerCacheOption[];
221
- cacheTo?: DockerCacheOption;
222
- cacheDisabled?: boolean;
223
- }
224
- interface DockerCacheOption {
225
- type: string;
226
- params?: Record<string, string>;
227
- }
228
- interface DockerImageAssetDestination {
229
- repositoryName: string;
230
- imageTag: string;
231
- assumeRoleArn?: string;
232
- region?: string;
233
- }
234
- //#endregion
235
- //#region src/assets/asset-manifest-loader.d.ts
236
- declare class AssetManifestLoader {
237
- private logger;
238
- loadStackManifest(stack: {
239
- stackName: string;
240
- assetManifestPath?: string | undefined;
241
- }, fallbackDir: string): Promise<AssetManifest | null>;
242
- loadManifest(cdkOutputDir: string, stackName: string, fileName?: string): Promise<AssetManifest | null>;
243
- getFileAssets(manifest: AssetManifest): Map<string, FileAsset>;
244
- getAssetSourcePath(cdkOutputDir: string, asset: FileAsset, opts: {
245
- assetOutdir: string;
246
- subject: string;
247
- wrapError: (message: string) => Error;
248
- }): string;
249
- resolveAssetDestinationValue(value: string, accountId: string, region: string, partition?: string): string;
250
- }
251
- //#endregion
252
181
  //#region src/local/container-pool.d.ts
253
182
  interface ContainerHandle {
254
183
  logicalId: string;
@@ -674,6 +603,11 @@ type ResolvedOrigin = {
674
603
  originId: string;
675
604
  functionLogicalId: string;
676
605
  functionUrlLogicalId: string;
606
+ } | {
607
+ kind: 'web-function';
608
+ originId: string;
609
+ endpointLogicalId: string;
610
+ readTimeoutSeconds?: number;
677
611
  } | {
678
612
  kind: 'custom';
679
613
  originId: string;
@@ -700,10 +634,17 @@ declare function describeS3OriginDomain(value: unknown): {
700
634
  isS3: boolean;
701
635
  bucketName?: string;
702
636
  };
637
+ declare function pickWebFunctionEndpointLogicalIdFromOrigin(value: unknown, template: CloudFormationTemplate): string | undefined;
703
638
  declare function pickFunctionUrlLogicalIdFromOrigin(value: unknown): string | undefined;
704
639
  declare function pickTargetFunctionLogicalId(value: unknown): string | undefined;
705
640
  declare function isCloudFrontDistribution(resource: TemplateResource): boolean;
706
641
  //#endregion
642
+ //#region src/local/cloudfront-web-function-origin.d.ts
643
+ interface WebFunctionOriginTarget {
644
+ host: string;
645
+ port: number;
646
+ }
647
+ //#endregion
707
648
  //#region src/local/cloudfront-s3-origin.d.ts
708
649
  interface S3OriginCredentials {
709
650
  accessKeyId: string;
@@ -763,10 +704,114 @@ interface StartCloudFrontServerOptions {
763
704
  lambdaInvokers?: LambdaUrlInvokerMap;
764
705
  edgeInvokers?: LambdaUrlInvokerMap;
765
706
  s3OriginReaders?: Map<string, S3OriginReader>;
707
+ webFunctionOrigins?: Map<string, WebFunctionOriginTarget>;
766
708
  }
767
709
  declare function startCloudFrontServer(options: StartCloudFrontServerOptions): Promise<StartedCloudFrontServer>;
768
710
  declare function matchBehavior(behaviors: readonly ResolvedBehavior[], uri: string): ResolvedBehavior | undefined;
769
711
  //#endregion
712
+ //#region src/local/web-function-resolver.d.ts
713
+ declare const WEB_FUNCTION_TYPE = "AWS::Lambda::WebFunction";
714
+ declare const WEB_FUNCTION_REVISION_TYPE = "AWS::Lambda::WebFunctionRevision";
715
+ declare const WEB_FUNCTION_ENDPOINT_TYPE = "AWS::Lambda::WebFunctionEndpoint";
716
+ declare class WebFunctionResolutionError extends Error {
717
+ constructor(message: string);
718
+ }
719
+ interface WebFunctionRevisionWeight {
720
+ revisionLogicalId: string | undefined;
721
+ weight: number;
722
+ }
723
+ interface ResolvedWebFunctionEndpoint {
724
+ logicalId: string;
725
+ endpointType: string | undefined;
726
+ authType: string | undefined;
727
+ weights: WebFunctionRevisionWeight[];
728
+ }
729
+ type WebFunctionRevisionSelection = 'target-revision' | 'revision-flag' | 'endpoint-weight' | 'only-revision';
730
+ interface ResolvedWebFunction {
731
+ stack: StackInfo;
732
+ functionLogicalId: string | undefined;
733
+ functionName: string;
734
+ revisionLogicalId: string;
735
+ revision: TemplateResource;
736
+ endpoint: ResolvedWebFunctionEndpoint | undefined;
737
+ selection: WebFunctionRevisionSelection;
738
+ }
739
+ declare function resolveWebFunctionTarget(target: string, stacks: StackInfo[], revisionFlag?: string): ResolvedWebFunction;
740
+ //#endregion
741
+ //#region src/local/web-function-artifact.d.ts
742
+ type WebFunctionArtifact = WebFunctionZipArtifact | WebFunctionImageArtifact;
743
+ interface WebFunctionZipArtifact {
744
+ kind: 'zip';
745
+ runtime: string;
746
+ codeDir: string;
747
+ tmpDir?: string;
748
+ assetHash: string;
749
+ }
750
+ interface WebFunctionImageArtifact {
751
+ kind: 'image';
752
+ imageUri: string;
753
+ }
754
+ interface WebFunctionCodeConfig {
755
+ runtime: string;
756
+ s3Object: {
757
+ bucket: unknown;
758
+ key: string;
759
+ versionId?: string;
760
+ deployment?: {
761
+ logicalId: string;
762
+ index: number;
763
+ };
764
+ };
765
+ }
766
+ declare function parseWebFunctionBuildConfig(revisionLogicalId: string, buildConfig: unknown, template?: CloudFormationTemplate): WebFunctionCodeConfig;
767
+ declare function resolveWebFunctionArtifact(stack: StackInfo, revisionLogicalId: string, code: WebFunctionCodeConfig, loader?: AssetManifestLoader): Promise<WebFunctionArtifact>;
768
+ declare function disposeWebFunctionArtifact(artifact: WebFunctionArtifact | undefined): void;
769
+ //#endregion
770
+ //#region src/local/web-function-runtime.d.ts
771
+ interface WebFunctionRuntimeSpec {
772
+ runtime: string;
773
+ baseImage: string;
774
+ codeMountPath: string;
775
+ architectures: readonly ('arm64' | 'x86_64')[];
776
+ buildStart(env: Readonly<Record<string, string>>, codeDir: string, deps?: {
777
+ fileExists?: (path: string) => boolean;
778
+ }): WebFunctionStartCommand;
779
+ }
780
+ interface WebFunctionStartCommand {
781
+ entryPoint: string[];
782
+ cmd: string[];
783
+ label: string;
784
+ }
785
+ declare function buildNodeEntryFileStart(runtime: string, env: Readonly<Record<string, string>>, codeDir: string, fileExists?: (path: string) => boolean): WebFunctionStartCommand;
786
+ declare const WEB_FUNCTION_RUNTIMES: Readonly<Record<string, WebFunctionRuntimeSpec>>;
787
+ declare function supportedWebFunctionRuntimes(table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): string[];
788
+ declare function resolveWebFunctionRuntime(runtime: string, table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): WebFunctionRuntimeSpec;
789
+ declare function defaultWebFunctionPlatform(spec: WebFunctionRuntimeSpec): string;
790
+ //#endregion
791
+ //#region src/local/web-function-service-config.d.ts
792
+ declare const WEB_FUNCTION_HTTP_ENDPOINT_ENV = "AWS_LAMBDA_HTTP_ENDPOINT";
793
+ interface WebFunctionServiceConfig {
794
+ environmentVariables: Record<string, unknown> | undefined;
795
+ environmentUnreadable: boolean;
796
+ executionRoleArn: unknown;
797
+ egressNetworkConnectorArn: unknown;
798
+ timeoutSeconds: number | undefined;
799
+ logGroup: string | undefined;
800
+ }
801
+ declare function readWebFunctionServiceConfig(revision: ResolvedWebFunction['revision']): WebFunctionServiceConfig;
802
+ declare function buildWebFunctionLambdaView(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig, runtime: string): ResolvedZipLambda;
803
+ declare function webFunctionAssumeRole(assumeRole: string | boolean | undefined, config: WebFunctionServiceConfig): string | boolean | undefined;
804
+ declare function finalizeWebFunctionEnv(lambdaEnv: Readonly<Record<string, string>>, opts: {
805
+ functionName: string;
806
+ containerPort: number;
807
+ timeoutSeconds: number | undefined;
808
+ logGroup: string | undefined;
809
+ }): {
810
+ env: Record<string, string>;
811
+ replacedHttpEndpoint: boolean;
812
+ };
813
+ declare function webFunctionFidelityWarnings(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig): string[];
814
+ //#endregion
770
815
  //#region src/local/agentcore-serve-auth.d.ts
771
816
  interface AgentCoreServeAuthResult {
772
817
  allow: boolean;
@@ -1380,108 +1425,41 @@ declare function attachContainerLogStreamer(prefix: string, containerId: string,
1380
1425
  expectRestart?: () => boolean;
1381
1426
  }): () => void;
1382
1427
  //#endregion
1383
- //#region src/local/web-function-resolver.d.ts
1384
- declare const WEB_FUNCTION_TYPE = "AWS::Lambda::WebFunction";
1385
- declare const WEB_FUNCTION_REVISION_TYPE = "AWS::Lambda::WebFunctionRevision";
1386
- declare const WEB_FUNCTION_ENDPOINT_TYPE = "AWS::Lambda::WebFunctionEndpoint";
1387
- declare class WebFunctionResolutionError extends Error {
1388
- constructor(message: string);
1389
- }
1390
- interface WebFunctionRevisionWeight {
1391
- revisionLogicalId: string | undefined;
1392
- weight: number;
1393
- }
1394
- interface ResolvedWebFunctionEndpoint {
1395
- logicalId: string;
1396
- endpointType: string | undefined;
1397
- authType: string | undefined;
1398
- weights: WebFunctionRevisionWeight[];
1399
- }
1400
- type WebFunctionRevisionSelection = 'target-revision' | 'revision-flag' | 'endpoint-weight' | 'only-revision';
1401
- interface ResolvedWebFunction {
1402
- stack: StackInfo;
1403
- functionLogicalId: string | undefined;
1404
- functionName: string;
1405
- revisionLogicalId: string;
1406
- revision: TemplateResource;
1407
- endpoint: ResolvedWebFunctionEndpoint | undefined;
1408
- selection: WebFunctionRevisionSelection;
1409
- }
1410
- declare function resolveWebFunctionTarget(target: string, stacks: StackInfo[], revisionFlag?: string): ResolvedWebFunction;
1411
- //#endregion
1412
- //#region src/local/web-function-artifact.d.ts
1413
- type WebFunctionArtifact = WebFunctionZipArtifact | WebFunctionImageArtifact;
1414
- interface WebFunctionZipArtifact {
1415
- kind: 'zip';
1416
- runtime: string;
1417
- codeDir: string;
1418
- tmpDir?: string;
1419
- assetHash: string;
1420
- }
1421
- interface WebFunctionImageArtifact {
1422
- kind: 'image';
1423
- imageUri: string;
1424
- }
1425
- interface WebFunctionCodeConfig {
1426
- runtime: string;
1427
- s3Object: {
1428
- bucket: unknown;
1429
- key: string;
1430
- versionId?: string;
1431
- };
1432
- }
1433
- declare function parseWebFunctionBuildConfig(revisionLogicalId: string, buildConfig: unknown): WebFunctionCodeConfig;
1428
+ //#region src/local/s3-object-asset.d.ts
1434
1429
  declare function findFileAssetForObjectKey(manifest: AssetManifest, key: string): {
1435
1430
  hash: string;
1436
1431
  asset: FileAsset;
1437
1432
  } | undefined;
1438
- declare function resolveWebFunctionArtifact(stack: StackInfo, revisionLogicalId: string, code: WebFunctionCodeConfig, loader?: AssetManifestLoader): Promise<WebFunctionArtifact>;
1439
- declare function disposeWebFunctionArtifact(artifact: WebFunctionArtifact | undefined): void;
1440
- //#endregion
1441
- //#region src/local/web-function-runtime.d.ts
1442
- interface WebFunctionRuntimeSpec {
1443
- runtime: string;
1444
- baseImage: string;
1445
- codeMountPath: string;
1446
- architectures: readonly ('arm64' | 'x86_64')[];
1447
- buildStart(env: Readonly<Record<string, string>>, codeDir: string, deps?: {
1448
- fileExists?: (path: string) => boolean;
1449
- }): WebFunctionStartCommand;
1450
- }
1451
- interface WebFunctionStartCommand {
1452
- entryPoint: string[];
1453
- cmd: string[];
1454
- label: string;
1455
- }
1456
- declare function buildNodeEntryFileStart(runtime: string, env: Readonly<Record<string, string>>, codeDir: string, fileExists?: (path: string) => boolean): WebFunctionStartCommand;
1457
- declare const WEB_FUNCTION_RUNTIMES: Readonly<Record<string, WebFunctionRuntimeSpec>>;
1458
- declare function supportedWebFunctionRuntimes(table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): string[];
1459
- declare function resolveWebFunctionRuntime(runtime: string, table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): WebFunctionRuntimeSpec;
1460
- declare function defaultWebFunctionPlatform(spec: WebFunctionRuntimeSpec): string;
1461
- //#endregion
1462
- //#region src/local/web-function-service-config.d.ts
1463
- declare const WEB_FUNCTION_HTTP_ENDPOINT_ENV = "AWS_LAMBDA_HTTP_ENDPOINT";
1464
- interface WebFunctionServiceConfig {
1465
- environmentVariables: Record<string, unknown> | undefined;
1466
- environmentUnreadable: boolean;
1467
- executionRoleArn: unknown;
1468
- egressNetworkConnectorArn: unknown;
1469
- timeoutSeconds: number | undefined;
1470
- logGroup: string | undefined;
1471
- }
1472
- declare function readWebFunctionServiceConfig(revision: ResolvedWebFunction['revision']): WebFunctionServiceConfig;
1473
- declare function buildWebFunctionLambdaView(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig, runtime: string): ResolvedZipLambda;
1474
- declare function webFunctionAssumeRole(assumeRole: string | boolean | undefined, config: WebFunctionServiceConfig): string | boolean | undefined;
1475
- declare function finalizeWebFunctionEnv(lambdaEnv: Readonly<Record<string, string>>, opts: {
1476
- functionName: string;
1477
- containerPort: number;
1478
- timeoutSeconds: number | undefined;
1479
- logGroup: string | undefined;
1480
- }): {
1481
- env: Record<string, string>;
1482
- replacedHttpEndpoint: boolean;
1433
+ declare function isBucketDeploymentResource(resource: TemplateResource | undefined): boolean;
1434
+ declare function bucketDeploymentSourceObjectKeys(resource: TemplateResource): unknown[];
1435
+ type BucketDeploymentObjectKeyResolution = {
1436
+ kind: 'resolved';
1437
+ deploymentLogicalId: string;
1438
+ index: number;
1439
+ sourceObjectKey: string;
1440
+ } | {
1441
+ kind: 'extracts';
1442
+ deploymentLogicalId: string;
1443
+ index: number;
1444
+ } | {
1445
+ kind: 'object-keys-not-output';
1446
+ deploymentLogicalId: string;
1447
+ index: number;
1448
+ } | {
1449
+ kind: 'prefixed-destination';
1450
+ deploymentLogicalId: string;
1451
+ index: number;
1452
+ } | {
1453
+ kind: 'index-out-of-range';
1454
+ deploymentLogicalId: string;
1455
+ index: number;
1456
+ sourceCount: number;
1457
+ } | {
1458
+ kind: 'source-key-not-literal';
1459
+ deploymentLogicalId: string;
1460
+ index: number;
1483
1461
  };
1484
- declare function webFunctionFidelityWarnings(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig): string[];
1462
+ declare function resolveBucketDeploymentObjectKey(template: CloudFormationTemplate, value: unknown): BucketDeploymentObjectKeyResolution | undefined;
1485
1463
  //#endregion
1486
1464
  //#region src/local/web-function-runner.d.ts
1487
1465
  declare const WEB_FUNCTION_CONTAINER_PORT = 8080;
@@ -1542,6 +1520,135 @@ declare function watchContainerExit(containerId: string): {
1542
1520
  };
1543
1521
  declare function readContainerLogTail(containerId: string, lines: number, spawnFn?: typeof spawn): Promise<string[]>;
1544
1522
  //#endregion
1523
+ //#region src/local/microvm-hooks.d.ts
1524
+ declare const MICROVM_HOOK_PATH_PREFIX = "/aws/lambda-microvms/runtime/v1/";
1525
+ declare const MAX_RUN_HOOK_PAYLOAD_BYTES: number;
1526
+ type HookPostResult = {
1527
+ kind: 'status';
1528
+ status: number;
1529
+ body: string;
1530
+ } | {
1531
+ kind: 'refused';
1532
+ } | {
1533
+ kind: 'timeout';
1534
+ };
1535
+ interface MicrovmHookDeps {
1536
+ post: (host: string, port: number, path: string, body: string | undefined, timeoutMs: number) => Promise<HookPostResult>;
1537
+ sleep: (ms: number) => Promise<void>;
1538
+ now: () => number;
1539
+ isAlive?: () => Promise<boolean>;
1540
+ }
1541
+ interface HookEndpoint {
1542
+ host: string;
1543
+ port: number;
1544
+ }
1545
+ declare class MicrovmHookError extends CdkLocalError {
1546
+ constructor(message: string, code?: string);
1547
+ }
1548
+ declare function generateMicrovmId(): string;
1549
+ declare function runHookBody(microvmId: string, runHookPayload: string | undefined): string;
1550
+ declare function pollBuildHook(hook: MicrovmBuildHook, endpoint: HookEndpoint, timeoutMs: number, deps?: MicrovmHookDeps): Promise<number>;
1551
+ declare function callRuntimeHook(hook: MicrovmRuntimeHook, endpoint: HookEndpoint, timeoutMs: number, body: string | undefined, deps?: MicrovmHookDeps): Promise<void>;
1552
+ declare function waitForAppAnswer(endpoint: HookEndpoint, timeoutMs: number, deps?: {
1553
+ probe: (host: string, port: number, timeoutMs: number) => Promise<ProbeOutcome>;
1554
+ sleep: (ms: number) => Promise<void>;
1555
+ now: () => number;
1556
+ isAlive?: () => Promise<boolean>;
1557
+ }): Promise<void>;
1558
+ declare function postHook(host: string, port: number, path: string, body: string | undefined, timeoutMs: number): Promise<HookPostResult>;
1559
+ //#endregion
1560
+ //#region src/local/microvm-front-door.d.ts
1561
+ declare const MICROVM_CONTROL_PATH = "/_cdkl/microvm";
1562
+ declare const PROXY_PORT_HEADER = "x-aws-proxy-port";
1563
+ declare const MICROVM_WS_BASE_PROTOCOL = "lambda-microvms";
1564
+ type MicrovmState = 'running' | 'suspending' | 'suspended' | 'resuming' | 'terminating' | 'terminated';
1565
+ interface MicrovmProxyTarget {
1566
+ readonly microvmId: string;
1567
+ state(): MicrovmState;
1568
+ upstreamFor(containerPort: number): HookEndpoint | undefined;
1569
+ routablePorts(): number[];
1570
+ suspend(): Promise<void>;
1571
+ resume(): Promise<void>;
1572
+ terminate(): Promise<void>;
1573
+ }
1574
+ interface MicrovmFrontDoorOptions {
1575
+ host: string;
1576
+ port: number;
1577
+ target: MicrovmProxyTarget;
1578
+ autoResume: boolean;
1579
+ }
1580
+ interface RunningMicrovmFrontDoor {
1581
+ port: number;
1582
+ close(): Promise<void>;
1583
+ }
1584
+ type PortSelection = {
1585
+ ok: true;
1586
+ port: number;
1587
+ } | {
1588
+ ok: false;
1589
+ status: 400;
1590
+ message: string;
1591
+ };
1592
+ declare function selectTargetPort(headers: IncomingMessage['headers']): PortSelection;
1593
+ declare function stripMicrovmProxyHeaders(headers: NodeJS.Dict<string | string[]>): boolean;
1594
+ declare function startMicrovmFrontDoor(opts: MicrovmFrontDoorOptions): Promise<RunningMicrovmFrontDoor>;
1595
+ declare class MicrovmStateError extends Error {
1596
+ constructor(message: string);
1597
+ }
1598
+ declare function rewriteUpgradeResponseHead(head: string, addBase: boolean): string;
1599
+ //#endregion
1600
+ //#region src/local/microvm-runner.d.ts
1601
+ declare const DEFAULT_TERMINATE_HOOK_TIMEOUT_MS = 10000;
1602
+ declare function microvmImageTag(artifact: MicrovmCodeArtifact): string;
1603
+ declare function buildMicrovmImage(opts: {
1604
+ artifact: MicrovmCodeArtifact;
1605
+ platform: string | undefined;
1606
+ noCache: boolean;
1607
+ }): Promise<string>;
1608
+ declare function readExposedPorts(image: string): Promise<number[]>;
1609
+ declare function planMicrovmPorts(hooksPort: number | undefined, exposed: readonly number[], extra: readonly number[]): number[];
1610
+ declare function setContainerPaused(containerId: string, paused: boolean): Promise<void>;
1611
+ interface LocalMicrovmDeps {
1612
+ setPaused: (containerId: string, paused: boolean) => Promise<void>;
1613
+ remove: (containerId: string) => Promise<void>;
1614
+ hooks?: MicrovmHookDeps;
1615
+ waitForAnswer?: typeof waitForAppAnswer;
1616
+ isAlive?: () => Promise<boolean>;
1617
+ }
1618
+ interface LocalMicrovmOptions {
1619
+ microvmId: string;
1620
+ containerId: string;
1621
+ ports: ReadonlyMap<number, HookEndpoint>;
1622
+ config: MicrovmImageConfig;
1623
+ timeoutMs: number;
1624
+ onTerminated?: (vm: LocalMicrovm) => void;
1625
+ }
1626
+ declare class LocalMicrovm implements MicrovmProxyTarget {
1627
+ readonly microvmId: string;
1628
+ readonly containerId: string;
1629
+ private current;
1630
+ private resuming;
1631
+ private suspending;
1632
+ private paused;
1633
+ private terminating;
1634
+ private readonly opts;
1635
+ private readonly deps;
1636
+ constructor(opts: LocalMicrovmOptions, deps?: Partial<LocalMicrovmDeps>);
1637
+ state(): MicrovmState;
1638
+ upstreamFor(containerPort: number): HookEndpoint | undefined;
1639
+ routablePorts(): number[];
1640
+ private log;
1641
+ private hookEndpoint;
1642
+ private hookTimeoutMs;
1643
+ private hookDeps;
1644
+ private runtimeHook;
1645
+ boot(runHookPayload: string | undefined): Promise<void>;
1646
+ private setPaused;
1647
+ suspend(): Promise<void>;
1648
+ resume(): Promise<void>;
1649
+ terminate(): Promise<void>;
1650
+ }
1651
+ //#endregion
1545
1652
  //#region src/local/cloudfront-edge-event.d.ts
1546
1653
  type EdgeHeaders = Record<string, Array<{
1547
1654
  key: string;
@@ -1822,5 +1929,5 @@ declare function resolveDynamicReferencesInEnv(env: Record<string, string>, opti
1822
1929
  resolvedKeys: string[];
1823
1930
  }>;
1824
1931
  //#endregion
1825
- export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreHttpServerConfig, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreServeAuthCheck, type AgentCoreServeAuthResult, type AgentCoreServeRoute, type AgentCoreServeSignRequest, type AgentCoreWsBridgeHandle, type AgentCoreWsBridgeServerConfig, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AttachedAgentCoreWsBridge, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type AwsProxyClientConfig, type BridgeAgentCoreWsOptions, type BuildAgentCoreCodeImageOptions, type BuildAgentCoreServeAuthCheckOptions, type BuildContainerImageOptions, CLOUDFRONT_DISTRIBUTION_TYPE, type CachedAuthorizerResult, type CallerCredentials, type CdkWatchConfig, type CfRequest, type CfResponse, type CloudFrontClientCredentials, type CloudFrontKvsAssociation, type CloudFrontKvsHandle, type CloudFrontModule, type CloudMapIndex, CloudMapRegistry, type CompiledCloudFrontFunction, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CreateDeployedKvsDataSourceOptions, type CredentialsLoader, DEFAULT_SHADOW_READY_TIMEOUT_MS, type DeployedKvsRef, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type DynamicReference, DynamicReferenceResolutionError, DynamicReferenceResolver, type DynamicReferenceResolverOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EdgeEvent, type EdgeEventType, type EdgeRequest, type EdgeRequestInput, type EdgeResponse, type EdgeResponseResult, type EmulatorStrategy, type EnvOverrideFile, type ErrorResponseCandidate, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FilterStudioCustomResourcesOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_DOCKER_INTERNAL_GATEWAY, HOST_GATEWAY_MIN_VERSION, type HttpRequestSnapshot, type ImageOverrideEntry, ImageOverrideError, type ImageOverrideGlobals, type ImageOverrideMap, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type KvsDataSource, type LambdaArnResolveOutcome, type LambdaUrlInvokerMap, type LambdaUrlOriginRequest, type LambdaUrlOriginResult, LocalInvokeBuildError, LocalStartCloudFrontError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MtlsServerConfig, type PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type ProbeOutcome, type RawImageOverrideFlags, RecentOutput, type RegistrationHandle, type ReinvokeDeps, type ReinvokeInput, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveDeployedOriginBucketOptions, type ResolveEnvDynamicReferencesOptions, type ResolveKvsModulesOptions, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedBehavior, type ResolvedCloudFrontFunction, type ResolvedCustomErrorResponse, type ResolvedDistribution, type ResolvedLambdaEdge, type ResolvedLambdaEdgeAssoc, type ResolvedListenerAction, type ResolvedOrigin, type ResolvedStage, type ResolvedWebFunction, type ResolvedWebFunctionEndpoint, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningAgentCoreHttpServer, type RunningAgentCoreWsBridge, type RunningStudioProxy, type RunningStudioServer, type S3BundleCredentials, type S3BundleLocation, type S3FetchResult, type S3ObjectFetcher, type S3OriginCredentials, type S3OriginReader, type S3OriginReaderOptions, SECOND_ASSUME_MESSAGE, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, type ServeInboundAuthPlan, type ServeRequestInput, type ServeRequestResult, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartWebFunctionContainerOptions, type StartedApiServer, type StartedCloudFrontServer, type StaticOriginResult, type StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeRequestPayload, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, VtlEvaluationError, WEB_FUNCTION_CONTAINER_PORT, WEB_FUNCTION_ENDPOINT_TYPE, WEB_FUNCTION_HTTP_ENDPOINT_ENV, WEB_FUNCTION_REVISION_TYPE, WEB_FUNCTION_RUNTIMES, WEB_FUNCTION_TYPE, type WarnedAt, type WatchPredicates, type WebFunctionArtifact, type WebFunctionCodeConfig, type WebFunctionContainerPlan, type WebFunctionImageArtifact, WebFunctionResolutionError, type WebFunctionRevisionSelection, type WebFunctionRevisionWeight, type WebFunctionRuntimeSpec, type WebFunctionServiceConfig, type WebFunctionStartCommand, type WebFunctionZipArtifact, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartAgentCoreSpecificOptions, addStartApiSpecificOptions, addStartCloudFrontSpecificOptions, addStartServiceSpecificOptions, addStartWebFunctionSpecificOptions, addStudioSpecificOptions, albStrategy, annotateAlbPinnedBackingServices, annotateEcsTaskPinnedTargets, annotatePinnedEcsTargets, applyAuthorizerOverlay, applyCorsResponseHeaders, applyEdgeRequestResult, applyEdgeResponseResult, architectureToPlatform, assumedRoleRecorded, attachAgentCoreWsBridge, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, availableWebSocketApiIdentifiers, bridgeAgentCoreWs, bufferToBody, buildAgentCoreCodeImage, buildAgentCoreServeAuthCheck, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildEdgeRequestEvent, buildEdgeResponseEvent, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildNodeEntryFileStart, buildProxyClientConfig, buildRestV1Event, buildStageMap, buildStsClientConfig, buildWebFunctionLambdaView, canonicalizeImageOverrideKeys, classifyS3Error, classifySourceChange, coerceRunRequest, coerceServeRequest, coerceStopRequest, compileCloudFrontFunction, computeCodeImageTag, computeRequestIdentityHash, containerFailure, containsDynamicReference, createAuthorizerCache, createCloudFrontModule, createDeployedKvsDataSource, createFileWatcher, createJwksCache, createLocalFileKvsDataSource, createS3OriginReader, createStudioDispatcher, createStudioServeManager, createStudioStore, createUnboundCloudFrontModule, createWatchPredicates, defaultCredentialsLoader, defaultWebFunctionPlatform, deployAccountStsClientConfig, deployedFillMayBeSecret, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeCredentialLoadFailure, describePinnedImageUri, describeS3OriginDomain, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, disposeWebFunctionArtifact, downloadAndExtractS3Bundle, ecsClusterOption, edgeHeadersToHttp, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, extractKvsAssociations, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioCustomResources, filterStudioTargetGroups, filterWebSocketApisByIdentifiers, finalizeWebFunctionEnv, findFileAssetForObjectKey, firstUsableRegion, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, httpHeadersToEdge, idFromArn, imageOverrideKeyAliases, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isCloudFrontDistribution, isCustomResourceLambdaTarget, isFunctionUrlOacFronted, isLocalCdkAssetImage, isProxyEnvConfigured, keysNotFromTemplate, keysOverriddenBy, listPinnedTargets, matchBehavior, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, normalizeKvsFileKeys, parseConnectionsPath, parseDynamicReference, parseImageOverrideFlags, parseKvsFileOverrides, parseLbPortOverrides, parseMaxTasks, parseOriginOverrides, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, parseWebFunctionBuildConfig, pickAgentCoreCandidateStack, pickFunctionUrlLogicalIdFromOrigin, pickKvsLogicalIdFromArn, pickLambdaEdgeFunctionLogicalId, pickRefLogicalId, pickResponseTemplate, pickTargetFunctionLogicalId, planWebFunctionContainer, probeHostGatewaySupport, readContainerLogTail, readEnvCallerCredentials, readMtlsMaterialsFromDisk, readWebFunctionServiceConfig, recordAssumedRole, reinvoke, relayServeRequest, renderCodeDockerfile, renderStudioHtml, resetWorkloadIdentity, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveCloudFrontDistribution, resolveCloudFrontTarget, resolveDeployedKvsArnByName, resolveDeployedOriginBucket, resolveDynamicReferencesInEnv, resolveEcsAssumeRoleOption, resolveEnvVars, resolveErrorResponseCandidates, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveKvsModulesForDistribution, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServeBaseUrl, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, resolveWebFunctionArtifact, resolveWebFunctionRuntime, resolveWebFunctionTarget, runEcsServiceEmulator, runImageOverrideBuilds, runViewerRequest, runViewerResponse, selectIntegrationResponse, selectServeInboundAuth, serveFromStaticOrigin, serveLambdaUrlOrigin, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startAgentCoreHttpServer, startAgentCoreWsBridge, startApiServer, startCloudFrontServer, startStudioProxy, startStudioServer, startWebFunctionContainer, stripCloudFrontImport, substituteImagePlaceholders, supportedWebFunctionRuntimes, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCoreHttpReady, waitForAgentCorePing, waitForWebFunctionReady, watchContainerExit, webFunctionAssumeRole, webFunctionFidelityWarnings, webSocketApiMatchesIdentifier, withoutKeys, workloadClientConfig, workloadStsClientConfig };
1932
+ export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreHttpServerConfig, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreServeAuthCheck, type AgentCoreServeAuthResult, type AgentCoreServeRoute, type AgentCoreServeSignRequest, type AgentCoreWsBridgeHandle, type AgentCoreWsBridgeServerConfig, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AttachedAgentCoreWsBridge, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type AwsProxyClientConfig, type BridgeAgentCoreWsOptions, type BucketDeploymentObjectKeyResolution, type BuildAgentCoreCodeImageOptions, type BuildAgentCoreServeAuthCheckOptions, type BuildContainerImageOptions, CLOUDFRONT_DISTRIBUTION_TYPE, type CachedAuthorizerResult, type CallerCredentials, type CdkWatchConfig, type CfRequest, type CfResponse, type CloudFrontClientCredentials, type CloudFrontKvsAssociation, type CloudFrontKvsHandle, type CloudFrontModule, type CloudMapIndex, CloudMapRegistry, type CompiledCloudFrontFunction, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CreateDeployedKvsDataSourceOptions, type CredentialsLoader, DEFAULT_SHADOW_READY_TIMEOUT_MS, DEFAULT_TERMINATE_HOOK_TIMEOUT_MS, type DeployedKvsRef, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type DynamicReference, DynamicReferenceResolutionError, DynamicReferenceResolver, type DynamicReferenceResolverOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EdgeEvent, type EdgeEventType, type EdgeRequest, type EdgeRequestInput, type EdgeResponse, type EdgeResponseResult, type EmulatorStrategy, type EnvOverrideFile, type ErrorResponseCandidate, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FilterStudioCustomResourcesOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_DOCKER_INTERNAL_GATEWAY, HOST_GATEWAY_MIN_VERSION, type HookEndpoint, type HookPostResult, type HttpRequestSnapshot, type ImageOverrideEntry, ImageOverrideError, type ImageOverrideGlobals, type ImageOverrideMap, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type KvsDataSource, type LambdaArnResolveOutcome, type LambdaUrlInvokerMap, type LambdaUrlOriginRequest, type LambdaUrlOriginResult, LocalInvokeBuildError, LocalMicrovm, type LocalMicrovmDeps, type LocalMicrovmOptions, LocalStartCloudFrontError, MAX_RUN_HOOK_PAYLOAD_BYTES, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, MICROVM_CONTROL_PATH, MICROVM_DEFAULT_INGRESS_PORT, MICROVM_HOOK_PATH_PREFIX, MICROVM_IMAGE_TYPE, MICROVM_WS_BASE_PROTOCOL, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MicrovmBuildHook, type MicrovmCodeArtifact, type MicrovmFrontDoorOptions, type MicrovmHookConfig, type MicrovmHookDeps, MicrovmHookError, type MicrovmHookName, type MicrovmImageConfig, type MicrovmProxyTarget, MicrovmResolutionError, type MicrovmRuntimeHook, type MicrovmState, MicrovmStateError, type MtlsServerConfig, PROXY_PORT_HEADER, type PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type PortSelection, type ProbeOutcome, type RawImageOverrideFlags, RecentOutput, type RegistrationHandle, type ReinvokeDeps, type ReinvokeInput, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveDeployedOriginBucketOptions, type ResolveEnvDynamicReferencesOptions, type ResolveKvsModulesOptions, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedBehavior, type ResolvedCloudFrontFunction, type ResolvedCustomErrorResponse, type ResolvedDistribution, type ResolvedLambdaEdge, type ResolvedLambdaEdgeAssoc, type ResolvedListenerAction, type ResolvedMicrovmImage, type ResolvedOrigin, type ResolvedStage, type ResolvedWebFunction, type ResolvedWebFunctionEndpoint, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningAgentCoreHttpServer, type RunningAgentCoreWsBridge, type RunningMicrovmFrontDoor, type RunningStudioProxy, type RunningStudioServer, type S3BundleCredentials, type S3BundleLocation, type S3FetchResult, type S3ObjectFetcher, type S3OriginCredentials, type S3OriginReader, type S3OriginReaderOptions, SECOND_ASSUME_MESSAGE, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, type ServeInboundAuthPlan, type ServeRequestInput, type ServeRequestResult, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartWebFunctionContainerOptions, type StartedApiServer, type StartedCloudFrontServer, type StaticOriginResult, type StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeRequestPayload, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, VtlEvaluationError, WEB_FUNCTION_CONTAINER_PORT, WEB_FUNCTION_ENDPOINT_TYPE, WEB_FUNCTION_HTTP_ENDPOINT_ENV, WEB_FUNCTION_REVISION_TYPE, WEB_FUNCTION_RUNTIMES, WEB_FUNCTION_TYPE, type WarnedAt, type WatchPredicates, type WebFunctionArtifact, type WebFunctionCodeConfig, type WebFunctionContainerPlan, type WebFunctionImageArtifact, WebFunctionResolutionError, type WebFunctionRevisionSelection, type WebFunctionRevisionWeight, type WebFunctionRuntimeSpec, type WebFunctionServiceConfig, type WebFunctionStartCommand, type WebFunctionZipArtifact, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartAgentCoreSpecificOptions, addStartApiSpecificOptions, addStartCloudFrontSpecificOptions, addStartMicrovmSpecificOptions, addStartServiceSpecificOptions, addStartWebFunctionSpecificOptions, addStudioSpecificOptions, albStrategy, annotateAlbPinnedBackingServices, annotateEcsTaskPinnedTargets, annotatePinnedEcsTargets, applyAuthorizerOverlay, applyCorsResponseHeaders, applyEdgeRequestResult, applyEdgeResponseResult, architectureToPlatform, assumedRoleRecorded, attachAgentCoreWsBridge, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, availableWebSocketApiIdentifiers, bridgeAgentCoreWs, bucketDeploymentSourceObjectKeys, bufferToBody, buildAgentCoreCodeImage, buildAgentCoreServeAuthCheck, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildEdgeRequestEvent, buildEdgeResponseEvent, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildMicrovmImage, buildMicrovmLambdaView, buildNodeEntryFileStart, buildProxyClientConfig, buildRestV1Event, buildStageMap, buildStsClientConfig, buildWebFunctionLambdaView, callRuntimeHook, canonicalizeImageOverrideKeys, classifyS3Error, classifySourceChange, coerceRunRequest, coerceServeRequest, coerceStopRequest, compileCloudFrontFunction, computeCodeImageTag, computeRequestIdentityHash, containerFailure, containsDynamicReference, createAuthorizerCache, createCloudFrontModule, createDeployedKvsDataSource, createFileWatcher, createJwksCache, createLocalFileKvsDataSource, createS3OriginReader, createStudioDispatcher, createStudioServeManager, createStudioStore, createUnboundCloudFrontModule, createWatchPredicates, defaultCredentialsLoader, defaultWebFunctionPlatform, deployAccountStsClientConfig, deployedFillMayBeSecret, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeCredentialLoadFailure, describePinnedImageUri, describeS3OriginDomain, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, disposeMicrovmCodeArtifact, disposeWebFunctionArtifact, downloadAndExtractS3Bundle, ecsClusterOption, edgeHeadersToHttp, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, extractKvsAssociations, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioCustomResources, filterStudioTargetGroups, filterWebSocketApisByIdentifiers, finalizeMicrovmEnv, finalizeWebFunctionEnv, findFileAssetForObjectKey, firstUsableRegion, formatStateRemedy, generateMicrovmId, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, httpHeadersToEdge, idFromArn, imageOverrideKeyAliases, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isBucketDeploymentResource, isCloudFrontDistribution, isCustomResourceLambdaTarget, isFunctionUrlOacFronted, isLocalCdkAssetImage, isProxyEnvConfigured, keysNotFromTemplate, keysOverriddenBy, listPinnedTargets, matchBehavior, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, microvmFidelityWarnings, microvmImageTag, normalizeKvsFileKeys, parseConnectionsPath, parseDynamicReference, parseImageOverrideFlags, parseKvsFileOverrides, parseLbPortOverrides, parseMaxTasks, parseOriginOverrides, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, parseWebFunctionBuildConfig, pickAgentCoreCandidateStack, pickFunctionUrlLogicalIdFromOrigin, pickKvsLogicalIdFromArn, pickLambdaEdgeFunctionLogicalId, pickRefLogicalId, pickResponseTemplate, pickTargetFunctionLogicalId, pickWebFunctionEndpointLogicalIdFromOrigin, planMicrovmPorts, planWebFunctionContainer, pollBuildHook, postHook, probeHostGatewaySupport, readContainerLogTail, readEnvCallerCredentials, readExposedPorts, readMicrovmImageConfig, readMtlsMaterialsFromDisk, readRunHookPayload, readWebFunctionServiceConfig, recordAssumedRole, reinvoke, relayServeRequest, renderCodeDockerfile, renderStudioHtml, resetWorkloadIdentity, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveBucketDeploymentObjectKey, resolveCloudFrontDistribution, resolveCloudFrontTarget, resolveDeployedKvsArnByName, resolveDeployedOriginBucket, resolveDynamicReferencesInEnv, resolveEcsAssumeRoleOption, resolveEnvVars, resolveErrorResponseCandidates, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveKvsModulesForDistribution, resolveLambdaArnIntrinsic, resolveMicrovmCodeArtifact, resolveMicrovmImageTarget, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServeBaseUrl, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, resolveWebFunctionArtifact, resolveWebFunctionRuntime, resolveWebFunctionTarget, rewriteUpgradeResponseHead, runEcsServiceEmulator, runHookBody, runImageOverrideBuilds, runViewerRequest, runViewerResponse, s3KeyOfUri, selectIntegrationResponse, selectServeInboundAuth, selectTargetPort, serveFromStaticOrigin, serveLambdaUrlOrigin, serviceStrategy, setContainerPaused, setShadowReadyTimeoutMs, signAgentCoreInvocation, startAgentCoreHttpServer, startAgentCoreWsBridge, startApiServer, startCloudFrontServer, startMicrovmFrontDoor, startStudioProxy, startStudioServer, startWebFunctionContainer, stripCloudFrontImport, stripMicrovmProxyHeaders, substituteImagePlaceholders, supportedWebFunctionRuntimes, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCoreHttpReady, waitForAgentCorePing, waitForAppAnswer, waitForWebFunctionReady, watchContainerExit, webFunctionAssumeRole, webFunctionFidelityWarnings, webSocketApiMatchesIdentifier, withoutKeys, workloadClientConfig, workloadStsClientConfig };
1826
1933
  //# sourceMappingURL=internal.d.ts.map