UNPKG

1.18 kBTypeScriptView Raw
1import * as secretsmanager from '@aws-cdk/aws-secretsmanager';
2import { ContainerDefinition } from '../container-definition';
3import { ContainerImage, ContainerImageConfig } from '../container-image';
4import { Construct as CoreConstruct } from '@aws-cdk/core';
5/**
6 * The properties for an image hosted in a public or private repository.
7 */
8export interface RepositoryImageProps {
9 /**
10 * The secret to expose to the container that contains the credentials for the image repository.
11 * The supported value is the full ARN of an AWS Secrets Manager secret.
12 */
13 readonly credentials?: secretsmanager.ISecret;
14}
15/**
16 * An image hosted in a public or private repository. For images hosted in Amazon ECR, see
17 * [EcrImage](https://docs.aws.amazon.com/AmazonECR/latest/userguide/images.html).
18 */
19export declare class RepositoryImage extends ContainerImage {
20 private readonly imageName;
21 private readonly props;
22 /**
23 * Constructs a new instance of the RepositoryImage class.
24 */
25 constructor(imageName: string, props?: RepositoryImageProps);
26 bind(scope: CoreConstruct, containerDefinition: ContainerDefinition): ContainerImageConfig;
27}