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 (Union[RepositoryCredentialsProperty, Dict[str, Any], None]) – Specifies the credentials used to access the image repository.

ExampleMetadata:

fixture=_generated

Example:

# 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"
    )
)

Attributes

image_name

Specifies the name of the container image.

repository_credentials

Specifies the credentials used to access the image repository.