Class: AWSCDK::ImageBuilder::CfnLifecyclePolicy::ResourceSelectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_lifecycle_policy.rb

Overview

Resource selection criteria for the lifecycle policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(recipes: nil, tag_map: nil) ⇒ ResourceSelectionProperty

Returns a new instance of ResourceSelectionProperty.

Parameters:



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

#recipesAWSCDK::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_mapAWSCDK::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_propertiesObject



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_jsiiObject



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