Class: AWSCDK::SMSVoice::CfnProtectConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SMSVoice::CfnProtectConfigurationProps
- Defined in:
- sms_voice/cfn_protect_configuration_props.rb
Overview
Properties for defining a CfnProtectConfiguration.
Instance Attribute Summary collapse
-
#country_rule_set ⇒ AWSCDK::IResolvable, ...
readonly
The set of
CountryRulesyou specify to control which countries End User Messaging can send your messages to. -
#deletion_protection_enabled ⇒ Boolean, ...
readonly
The status of deletion protection for the protect configuration.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key and value pair tags that are associated with the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(country_rule_set: nil, deletion_protection_enabled: nil, tags: nil) ⇒ CfnProtectConfigurationProps
constructor
A new instance of CfnProtectConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(country_rule_set: nil, deletion_protection_enabled: nil, tags: nil) ⇒ CfnProtectConfigurationProps
Returns a new instance of CfnProtectConfigurationProps.
12 13 14 15 16 17 18 19 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 12 def initialize(country_rule_set: nil, deletion_protection_enabled: nil, tags: nil) @country_rule_set = country_rule_set.is_a?(Hash) ? ::AWSCDK::SMSVoice::CfnProtectConfiguration::CountryRuleSetProperty.new(**country_rule_set.transform_keys(&:to_sym)) : country_rule_set Jsii::Type.check_type(@country_rule_set, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zbXN2b2ljZS5DZm5Qcm90ZWN0Q29uZmlndXJhdGlvbi5Db3VudHJ5UnVsZVNldFByb3BlcnR5In1dfX0=")), "countryRuleSet") unless @country_rule_set.nil? @deletion_protection_enabled = deletion_protection_enabled Jsii::Type.check_type(@deletion_protection_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "deletionProtectionEnabled") unless @deletion_protection_enabled.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
#country_rule_set ⇒ AWSCDK::IResolvable, ... (readonly)
The set of CountryRules you specify to control which countries End User Messaging can send your messages to.
25 26 27 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 25 def country_rule_set @country_rule_set end |
#deletion_protection_enabled ⇒ Boolean, ... (readonly)
The status of deletion protection for the protect configuration.
When set to true deletion protection is enabled. By default this is set to false.
32 33 34 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 32 def deletion_protection_enabled @deletion_protection_enabled end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key and value pair tags that are associated with the resource.
37 38 39 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 39 def self.jsii_properties { :country_rule_set => "countryRuleSet", :deletion_protection_enabled => "deletionProtectionEnabled", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'sms_voice/cfn_protect_configuration_props.rb', line 47 def to_jsii result = {} result.merge!({ "countryRuleSet" => @country_rule_set, "deletionProtectionEnabled" => @deletion_protection_enabled, "tags" => @tags, }) result.compact end |