Class: AWSCDK::SMSVoice::CfnProtectConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sms_voice/cfn_protect_configuration_props.rb

Overview

Properties for defining a CfnProtectConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(country_rule_set: nil, deletion_protection_enabled: nil, tags: nil) ⇒ CfnProtectConfigurationProps

Returns a new instance of CfnProtectConfigurationProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#country_rule_setAWSCDK::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_enabledBoolean, ... (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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