import * as ecs from "aws-cdk-lib/aws-ecs"; import type * as secretsmanager from "aws-cdk-lib/aws-secretsmanager"; import { Construct } from "constructs"; export type DockerImageProps = { filePath: string; buildContext: string; buildArgs?: Record; env?: Env; }; type Env = { variables?: Record; secrets?: Record; }; /** What a service needs from an image: how to run it, and what to run it with. */ export interface ServiceImage { /** A content hash of the built image, stable while the image is unchanged. */ readonly assetHash: string; /** The image as an ECS container image, ready for a Fargate task definition. */ readonly containerImage: ecs.ContainerImage; /** Plain environment variables to inject into the container at runtime. */ readonly environment: Record; /** Secrets to inject into the container at runtime, as ECS-sourced secrets. */ readonly secrets: Record; } export declare class DockerImage extends Construct implements ServiceImage { private readonly asset; private readonly env; constructor(scope: Construct, id: string, props: DockerImageProps); /** * A content hash of the built image. Changes whenever the image changes, * making it a stable cache key for the content this image serves. */ get assetHash(): string; get containerImage(): ecs.ContainerImage; get environment(): Record; get secrets(): Record; } export {};