Class: AWSCDK::ECR::CfnRepository::LifecyclePolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnRepository::LifecyclePolicyProperty
- Defined in:
- ecr/cfn_repository.rb
Overview
The LifecyclePolicy property type specifies a lifecycle policy.
For information about lifecycle policy syntax, see Lifecycle policy template in the Amazon ECR User Guide .
Instance Attribute Summary collapse
-
#lifecycle_policy_text ⇒ String?
readonly
The JSON repository policy text to apply to the repository.
-
#registry_id ⇒ String?
readonly
The AWS account ID associated with the registry that contains the repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lifecycle_policy_text: nil, registry_id: nil) ⇒ LifecyclePolicyProperty
constructor
A new instance of LifecyclePolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lifecycle_policy_text: nil, registry_id: nil) ⇒ LifecyclePolicyProperty
Returns a new instance of LifecyclePolicyProperty.
802 803 804 805 806 807 |
# File 'ecr/cfn_repository.rb', line 802 def initialize(lifecycle_policy_text: nil, registry_id: nil) @lifecycle_policy_text = lifecycle_policy_text Jsii::Type.check_type(@lifecycle_policy_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lifecyclePolicyText") unless @lifecycle_policy_text.nil? @registry_id = registry_id Jsii::Type.check_type(@registry_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "registryId") unless @registry_id.nil? end |
Instance Attribute Details
#lifecycle_policy_text ⇒ String? (readonly)
The JSON repository policy text to apply to the repository.
813 814 815 |
# File 'ecr/cfn_repository.rb', line 813 def lifecycle_policy_text @lifecycle_policy_text end |
#registry_id ⇒ String? (readonly)
The AWS account ID associated with the registry that contains the repository.
If you do not specify a registry, the default registry is assumed.
820 821 822 |
# File 'ecr/cfn_repository.rb', line 820 def registry_id @registry_id end |
Class Method Details
.jsii_properties ⇒ Object
822 823 824 825 826 827 |
# File 'ecr/cfn_repository.rb', line 822 def self.jsii_properties { :lifecycle_policy_text => "lifecyclePolicyText", :registry_id => "registryId", } end |
Instance Method Details
#to_jsii ⇒ Object
829 830 831 832 833 834 835 836 |
# File 'ecr/cfn_repository.rb', line 829 def to_jsii result = {} result.merge!({ "lifecyclePolicyText" => @lifecycle_policy_text, "registryId" => @registry_id, }) result.compact end |