Class: AWSCDK::ImageBuilder::CfnLifecyclePolicy::ResourceSelectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnLifecyclePolicy::ResourceSelectionProperty
- Defined in:
- image_builder/cfn_lifecycle_policy.rb
Overview
Resource selection criteria for the lifecycle policy.
Instance Attribute Summary collapse
-
#recipes ⇒ AWSCDK::IResolvable, ...
readonly
A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
-
#tag_map ⇒ AWSCDK::IResolvable, ...
readonly
A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(recipes: nil, tag_map: nil) ⇒ ResourceSelectionProperty
constructor
A new instance of ResourceSelectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(recipes: nil, tag_map: nil) ⇒ ResourceSelectionProperty
Returns a new instance of ResourceSelectionProperty.
1035 1036 1037 1038 1039 1040 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1035 def initialize(recipes: nil, tag_map: nil) @recipes = recipes Jsii::Type.check_type(@recipes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW1hZ2VidWlsZGVyLkNmbkxpZmVjeWNsZVBvbGljeS5SZWNpcGVTZWxlY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "recipes") unless @recipes.nil? @tag_map = tag_map Jsii::Type.check_type(@tag_map, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "tagMap") unless @tag_map.nil? end |
Instance Attribute Details
#recipes ⇒ AWSCDK::IResolvable, ... (readonly)
A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
1046 1047 1048 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1046 def recipes @recipes end |
#tag_map ⇒ AWSCDK::IResolvable, ... (readonly)
A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.
1051 1052 1053 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1051 def tag_map @tag_map end |
Class Method Details
.jsii_properties ⇒ Object
1053 1054 1055 1056 1057 1058 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1053 def self.jsii_properties { :recipes => "recipes", :tag_map => "tagMap", } end |
Instance Method Details
#to_jsii ⇒ Object
1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1060 def to_jsii result = {} result.merge!({ "recipes" => @recipes, "tagMap" => @tag_map, }) result.compact end |