RepositoryImageProps

class aws_cdk.aws_ecs.RepositoryImageProps(*, credentials=None)

Bases: object

The properties for an image hosted in a public or private repository.

Parameters

credentials (Optional[ISecret]) – The secret to expose to the container that contains the credentials for the image repository. The supported value is the full ARN of an AWS Secrets Manager secret.

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
import aws_cdk.aws_secretsmanager as secretsmanager

# secret is of type Secret

repository_image_props = ecs.RepositoryImageProps(
    credentials=secret
)

Attributes

credentials

The secret to expose to the container that contains the credentials for the image repository.

The supported value is the full ARN of an AWS Secrets Manager secret.

Return type

Optional[ISecret]