Class: AWSCDK::Route53Profiles::CfnProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Profiles::CfnProfileProps
- Defined in:
- route53_profiles/cfn_profile_props.rb
Overview
Properties for defining a CfnProfile.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name of the Profile.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of the tag keys and values that you want to associate with the profile.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, tags: nil) ⇒ CfnProfileProps
constructor
A new instance of CfnProfileProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, tags: nil) ⇒ CfnProfileProps
Returns a new instance of CfnProfileProps.
11 12 13 14 15 16 |
# File 'route53_profiles/cfn_profile_props.rb', line 11 def initialize(name:, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
Name of the Profile.
22 23 24 |
# File 'route53_profiles/cfn_profile_props.rb', line 22 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of the tag keys and values that you want to associate with the profile.
27 28 29 |
# File 'route53_profiles/cfn_profile_props.rb', line 27 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'route53_profiles/cfn_profile_props.rb', line 29 def self.jsii_properties { :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'route53_profiles/cfn_profile_props.rb', line 36 def to_jsii result = {} result.merge!({ "name" => @name, "tags" => @tags, }) result.compact end |