ContainerImageConfig Struct
The configuration for creating a container image.
| Source | aws-ecs/lib/container-image.ts |
|---|
Example
ts
// 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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
container_image_config = ecs.ContainerImageConfig(
image_name="imageName",
# the properties below are optional
repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(
credentials_parameter="credentialsParameter"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
ContainerImageConfig containerImageConfig = ContainerImageConfig.builder()
.imageName("imageName")
// the properties below are optional
.repositoryCredentials(RepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var containerImageConfig = new ContainerImageConfig {
ImageName = "imageName",
// the properties below are optional
RepositoryCredentials = new RepositoryCredentialsProperty {
CredentialsParameter = "credentialsParameter"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
containerImageConfig := &ContainerImageConfig{
ImageName: jsii.String("imageName"),
// the properties below are optional
RepositoryCredentials: &RepositoryCredentialsProperty{
CredentialsParameter: jsii.String("credentialsParameter"),
},
}
Properties
Specifies the name of the container image.
repositoryCredentialsoptionalCfnTaskDefinition.repository_credentialsoptionalRepositoryCredentialsPropertyrepositoryCredentialsoptionalRepositoryCredentialsPropertyRepositoryCredentialsoptionalRepositoryCredentialsPropertyRepositoryCredentialsoptionalRepositoryCredentialsProperty #Specifies the credentials used to access the image repository.