Class: AWSCDK::SMSVoice::CfnOptOutListProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SMSVoice::CfnOptOutListProps
- Defined in:
- sms_voice/cfn_opt_out_list_props.rb
Overview
Properties for defining a CfnOptOutList.
Instance Attribute Summary collapse
-
#opt_out_list_name ⇒ String?
readonly
The name of the OptOutList.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of tags (key and value pairs) to associate with the new OptOutList.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opt_out_list_name: nil, tags: nil) ⇒ CfnOptOutListProps
constructor
A new instance of CfnOptOutListProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(opt_out_list_name: nil, tags: nil) ⇒ CfnOptOutListProps
Returns a new instance of CfnOptOutListProps.
11 12 13 14 15 16 |
# File 'sms_voice/cfn_opt_out_list_props.rb', line 11 def initialize(opt_out_list_name: nil, tags: nil) @opt_out_list_name = opt_out_list_name Jsii::Type.check_type(@opt_out_list_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "optOutListName") unless @opt_out_list_name.nil? @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
#opt_out_list_name ⇒ String? (readonly)
The name of the OptOutList.
22 23 24 |
# File 'sms_voice/cfn_opt_out_list_props.rb', line 22 def opt_out_list_name @opt_out_list_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of tags (key and value pairs) to associate with the new OptOutList.
27 28 29 |
# File 'sms_voice/cfn_opt_out_list_props.rb', line 27 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'sms_voice/cfn_opt_out_list_props.rb', line 29 def self.jsii_properties { :opt_out_list_name => "optOutListName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'sms_voice/cfn_opt_out_list_props.rb', line 36 def to_jsii result = {} result.merge!({ "optOutListName" => @opt_out_list_name, "tags" => @tags, }) result.compact end |