aws-cdk-lib.aws_ecs.ContainerImageConfig

interface ContainerImageConfig

LanguageType name
.NETAmazon.CDK.AWS.ECS.ContainerImageConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#ContainerImageConfig
Javasoftware.amazon.awscdk.services.ecs.ContainerImageConfig
Pythonaws_cdk.aws_ecs.ContainerImageConfig
TypeScript (source)aws-cdk-lib » aws_ecs » ContainerImageConfig

Obtainable from AssetImage.bind(), ContainerImage.bind(), EcrImage.bind(), RepositoryImage.bind(), TagParameterContainerImage.bind()

The configuration for creating a container image.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const containerImageConfig: ecs.ContainerImageConfig = {
  imageName: 'imageName',

  // the properties below are optional
  repositoryCredentials: {
    credentialsParameter: 'credentialsParameter',
  },
};

Properties

NameTypeDescription
imageNamestringSpecifies the name of the container image.
repositoryCredentials?RepositoryCredentialsPropertySpecifies the credentials used to access the image repository.

imageName

Type: string

Specifies the name of the container image.


repositoryCredentials?

Type: RepositoryCredentialsProperty (optional)

Specifies the credentials used to access the image repository.