ContainerImageConfig

class aws_cdk.aws_ecs.ContainerImageConfig(*, image_name, repository_credentials=None)

Bases: object

The configuration for creating a container image.

Parameters
  • image_name (str) – Specifies the name of the container image.

  • repository_credentials (Optional[RepositoryCredentialsProperty]) – Specifies the credentials used to access the image repository.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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"
    )
)

Attributes

image_name

Specifies the name of the container image.

Return type

str

repository_credentials

Specifies the credentials used to access the image repository.

Return type

Optional[RepositoryCredentialsProperty]