Class: Aws::ECRPublic::Types::SetImageStatusRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECRPublic::Types::SetImageStatusRequest
- Defined in:
- gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#deprecation_period_days ⇒ Integer
The number of days that Amazon ECR waits before it deletes the deprecated image.
-
#image_id ⇒ Types::ImageIdentifier
The image ID of the image to set the status for.
-
#registry_id ⇒ String
The Amazon Web Services account ID that's associated with the public registry that contains the image.
-
#repository_name ⇒ String
The name of the repository that contains the image.
-
#repository_type ⇒ String
The type of the repository.
-
#status ⇒ String
The status to set on the image.
Instance Attribute Details
#deprecation_period_days ⇒ Integer
The number of days that Amazon ECR waits before it deletes the
deprecated image. You can specify a value between 90 and 365. This
parameter is required when you set status to DEPRECATED. Don't
specify it when you set status to ACTIVE.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |
#image_id ⇒ Types::ImageIdentifier
The image ID of the image to set the status for. If you specify a tag, the tag is resolved to the digest of the image that it currently points to, and the status is set on that image.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |
#registry_id ⇒ String
The Amazon Web Services account ID that's associated with the public registry that contains the image. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |
#repository_name ⇒ String
The name of the repository that contains the image.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |
#repository_type ⇒ String
The type of the repository. You can set the image status only in a
PREMIUM repository.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |
#status ⇒ String
The status to set on the image. Valid values:
ACTIVE: Cancels a pending deletion. You can do this only before the scheduled deletion time.DEPRECATED: Schedules the image for deletion after the deprecation period.
After the scheduled deletion time, you can't change the status of the image.
If the image is part of a manifest list, Amazon ECR requires that a
manifest list is deleted before the images that it references. To
deprecate an image that a manifest list references, deprecate the
manifest list first, with a scheduled deletion time before the
image's. You can't set a manifest list to ACTIVE while it
references deprecated images. Requests that break these rules fail
with ValidationException.
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/types.rb', line 3901 class SetImageStatusRequest < Struct.new( :registry_id, :repository_name, :repository_type, :image_id, :status, :deprecation_period_days) SENSITIVE = [] include Aws::Structure end |