Skip to content
v2.274.0

Experimental

@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ContainerDistribution Struct ​

The regional distribution settings to use for a container build.

Example ​

ts
const ecrRepository = ecr.Repository.fromRepositoryName(this, 'ECRRepository', 'my-repo');
const containerRepository = imagebuilder.Repository.fromEcr(ecrRepository);
const containerDistributionConfiguration = new imagebuilder.DistributionConfiguration(
  this,
  'ContainerDistributionConfiguration'
);

containerDistributionConfiguration.addContainerDistributions({
  containerRepository,
  containerDescription: 'Test container image',
  containerTags: ['latest', 'latest-1.0']
});

Properties ​

containerDescriptionstringcontainer_descriptionstrcontainerDescriptionStringContainerDescriptionstringContainerDescription*string= None#
The description of the container image.
containerRepositoryRepositorycontainer_repositoryRepositorycontainerRepositoryRepositoryContainerRepositoryRepositoryContainerRepositoryRepositoryrequired#
The destination repository to distribute the output container to.

Default: The target repository in the container recipe is used

containerTagsstring[]container_tagstyping.List[str]containerTagsList<String>ContainerTagsstring[]ContainerTags*[]*string= None#
The additional tags to apply to the distributed container images.
regionstringregionstrregionStringRegionstringRegion*string#
The target region to distribute containers to.

Default: The current region is used