RepositoryProps

class aws_cdk.aws_ecr.RepositoryProps(*, lifecycle_registry_id=None, lifecycle_rules=None, removal_policy=None, repository_name=None)

Bases: object

__init__(*, lifecycle_registry_id=None, lifecycle_rules=None, removal_policy=None, repository_name=None)
Parameters
  • lifecycle_registry_id (Optional[str]) – The AWS account ID associated with the registry that contains the repository. Default: The default registry is assumed.

  • lifecycle_rules (Optional[List[LifecycleRule]]) – Life cycle rules to apply to this registry. Default: No life cycle rules

  • removal_policy (Optional[RemovalPolicy]) – Determine what happens to the repository when the resource/stack is deleted. Default: RemovalPolicy.Retain

  • repository_name (Optional[str]) – Name for this repository. Default: Automatically generated name.

Attributes

lifecycle_registry_id

The AWS account ID associated with the registry that contains the repository.

default :default: The default registry is assumed.

see :see: https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_PutLifecyclePolicy.html

Return type

Optional[str]

lifecycle_rules

Life cycle rules to apply to this registry.

default :default: No life cycle rules

Return type

Optional[List[LifecycleRule]]

removal_policy

Determine what happens to the repository when the resource/stack is deleted.

default :default: RemovalPolicy.Retain

Return type

Optional[RemovalPolicy]

repository_name

Name for this repository.

default :default: Automatically generated name.

Return type

Optional[str]