dcloud ecr lifecycle-policy set-mode

Inherit the organization default, or let nothing expire

IAM ecr:PutLifecyclePolicyChanges stateAsks before it deletes (-y skips)

"inherit": the registry default applies; "none": nothing expires (an explicit choice).

Synopsis

dcloud ecr lifecycle-policy set-mode id --mode mode

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --modeRequired

    enum

    inherit: the organization’s registry default applies; none: nothing in this repository expires. A stored own policy is kept, unused, for a later PUT lifecycle-policy

    One of: inherit, none

Example

dcloud ecr lifecycle-policy set-mode id --mode inherit

Generated from the API description, the same one the API checks requests against and the CLI is built from.