Class: AWSCDK::ImageBuilder::CfnLifecyclePolicy::ActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnLifecyclePolicy::ActionProperty
- Defined in:
- image_builder/cfn_lifecycle_policy.rb
Overview
Contains selection criteria for the lifecycle policy.
Instance Attribute Summary collapse
-
#include_resources ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the resources that the lifecycle policy applies to.
-
#type ⇒ String
readonly
Specifies the lifecycle action to take.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, include_resources: nil) ⇒ ActionProperty
constructor
A new instance of ActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, include_resources: nil) ⇒ ActionProperty
Returns a new instance of ActionProperty.
609 610 611 612 613 614 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 609 def initialize(type:, include_resources: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @include_resources = include_resources.is_a?(Hash) ? ::AWSCDK::ImageBuilder::CfnLifecyclePolicy::IncludeResourcesProperty.new(**include_resources.transform_keys(&:to_sym)) : include_resources Jsii::Type.check_type(@include_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbWFnZWJ1aWxkZXIuQ2ZuTGlmZWN5Y2xlUG9saWN5LkluY2x1ZGVSZXNvdXJjZXNQcm9wZXJ0eSJ9XX19")), "includeResources") unless @include_resources.nil? end |
Instance Attribute Details
#include_resources ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the resources that the lifecycle policy applies to.
625 626 627 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 625 def include_resources @include_resources end |
#type ⇒ String (readonly)
Specifies the lifecycle action to take.
620 621 622 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 620 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
627 628 629 630 631 632 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 627 def self.jsii_properties { :type => "type", :include_resources => "includeResources", } end |
Instance Method Details
#to_jsii ⇒ Object
634 635 636 637 638 639 640 641 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 634 def to_jsii result = {} result.merge!({ "type" => @type, "includeResources" => @include_resources, }) result.compact end |