Class: AWSCDK::ImageBuilder::CfnLifecyclePolicy::RecipeSelectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnLifecyclePolicy::RecipeSelectionProperty
- Defined in:
- image_builder/cfn_lifecycle_policy.rb
Overview
Specifies an Image Builder recipe that the lifecycle policy uses for resource selection.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
-
#semantic_version ⇒ String
readonly
The version of the Image Builder recipe specified by the
namefield.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, semantic_version:) ⇒ RecipeSelectionProperty
constructor
A new instance of RecipeSelectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, semantic_version:) ⇒ RecipeSelectionProperty
Returns a new instance of RecipeSelectionProperty.
992 993 994 995 996 997 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 992 def initialize(name:, semantic_version:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @semantic_version = semantic_version Jsii::Type.check_type(@semantic_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "semanticVersion") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
1003 1004 1005 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1003 def name @name end |
#semantic_version ⇒ String (readonly)
The version of the Image Builder recipe specified by the name field.
1008 1009 1010 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1008 def semantic_version @semantic_version end |
Class Method Details
.jsii_properties ⇒ Object
1010 1011 1012 1013 1014 1015 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1010 def self.jsii_properties { :name => "name", :semantic_version => "semanticVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'image_builder/cfn_lifecycle_policy.rb', line 1017 def to_jsii result = {} result.merge!({ "name" => @name, "semanticVersion" => @semantic_version, }) result.compact end |