UNPKG

1.32 kBTypeScriptView Raw
1import * as ecr from '@aws-cdk/aws-ecr';
2import { ContainerDefinition } from '../container-definition';
3import { ContainerImage, ContainerImageConfig } from '../container-image';
4import { Construct } from '@aws-cdk/core';
5/**
6 * A special type of {@link ContainerImage} that uses an ECR repository for the image,
7 * but a CloudFormation Parameter for the tag of the image in that repository.
8 * This allows providing this tag through the Parameter at deploy time,
9 * for example in a CodePipeline that pushes a new tag of the image to the repository during a build step,
10 * and then provides that new tag through the CloudFormation Parameter in the deploy step.
11 *
12 * @see #tagParameterName
13 */
14export declare class TagParameterContainerImage extends ContainerImage {
15 private readonly repository;
16 private imageTagParameter?;
17 constructor(repository: ecr.IRepository);
18 bind(scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
19 /**
20 * Returns the name of the CloudFormation Parameter that represents the tag of the image
21 * in the ECR repository.
22 */
23 get tagParameterName(): string;
24 /**
25 * Returns the value of the CloudFormation Parameter that represents the tag of the image
26 * in the ECR repository.
27 */
28 get tagParameterValue(): string;
29}