Header menu logo FsCDK

ECRRepositoryConfig Type

High-level ECR Repository builder following AWS best practices. **Default Security Settings:** - Image scan on push = enabled (security best practice) - Image tag mutability = MUTABLE (allows tag reuse for development) - Lifecycle policy = delete untagged images after 7 days - Encryption = AES256 (AWS managed encryption) - Removal policy = RETAIN (prevents accidental deletion) **Rationale:** These defaults follow AWS Well-Architected Framework: - Image scanning detects vulnerabilities automatically - Lifecycle policies reduce storage costs - Encryption at rest protects container images - RETAIN policy prevents accidental data loss **Escape Hatch:** Access the underlying CDK Repository via the `Repository` property for advanced scenarios not covered by this builder.

Record fields

Record Field Description

ConstructId

Full Usage: ConstructId

Field type: string option
Field type: string option

EmptyOnDelete

Full Usage: EmptyOnDelete

Field type: bool voption
Field type: bool voption

ImageScanOnPush

Full Usage: ImageScanOnPush

Field type: bool voption
Field type: bool voption

ImageTagMutability

Full Usage: ImageTagMutability

Field type: TagMutability voption
Field type: TagMutability voption

LifecycleRules

Full Usage: LifecycleRules

Field type: LifecycleRule list
Field type: LifecycleRule list

RemovalPolicy

Full Usage: RemovalPolicy

Field type: RemovalPolicy voption
Field type: RemovalPolicy voption

RepositoryName

Full Usage: RepositoryName

Field type: string
Field type: string

Type something to start searching.