interface ContainerImageConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.ContainerImageConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#ContainerImageConfig |
Java | software.amazon.awscdk.services.ecs.ContainerImageConfig |
Python | aws_cdk.aws_ecs.ContainerImageConfig |
TypeScript (source) | aws-cdk-lib » aws_ecs » ContainerImageConfig |
Obtainable from
Asset.bind(), Container.bind(), Ecr.bind(), Repository.bind(), Tag.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
| Name | Type | Description |
|---|---|---|
| image | string | Specifies the name of the container image. |
| repository | Repository | Specifies the credentials used to access the image repository. |
imageName
Type:
string
Specifies the name of the container image.
repositoryCredentials?
Type:
Repository
(optional)
Specifies the credentials used to access the image repository.

.NET
Go
Java
Python
TypeScript (