Class: AWSCDK::SMSVoice::CfnConfigurationSetProps

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

Overview

Properties for defining a CfnConfigurationSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration_set_name: nil, default_sender_id: nil, event_destinations: nil, message_feedback_enabled: nil, protect_configuration_id: nil, tags: nil) ⇒ CfnConfigurationSetProps

Returns a new instance of CfnConfigurationSetProps.

Parameters:

  • configuration_set_name (String, nil) (defaults to: nil)

    The name of the ConfigurationSet.

  • default_sender_id (String, nil) (defaults to: nil)

    The default sender ID used by the ConfigurationSet.

  • event_destinations (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SMSVoice::CfnConfigurationSet::EventDestinationProperty>, nil) (defaults to: nil)

    An array of EventDestination objects that describe any events to log and where to log them.

  • message_feedback_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Set to true to enable feedback for the message.

  • protect_configuration_id (String, nil) (defaults to: nil)

    The unique identifier for the protect configuration.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key and value pair tags that's associated with the new configuration set.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'sms_voice/cfn_configuration_set_props.rb', line 15

def initialize(configuration_set_name: nil, default_sender_id: nil, event_destinations: nil, message_feedback_enabled: nil, protect_configuration_id: nil, tags: nil)
  @configuration_set_name = configuration_set_name
  Jsii::Type.check_type(@configuration_set_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationSetName") unless @configuration_set_name.nil?
  @default_sender_id = default_sender_id
  Jsii::Type.check_type(@default_sender_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultSenderId") unless @default_sender_id.nil?
  @event_destinations = event_destinations
  Jsii::Type.check_type(@event_destinations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc21zdm9pY2UuQ2ZuQ29uZmlndXJhdGlvblNldC5FdmVudERlc3RpbmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "eventDestinations") unless @event_destinations.nil?
  @message_feedback_enabled = message_feedback_enabled
  Jsii::Type.check_type(@message_feedback_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "messageFeedbackEnabled") unless @message_feedback_enabled.nil?
  @protect_configuration_id = protect_configuration_id
  Jsii::Type.check_type(@protect_configuration_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protectConfigurationId") unless @protect_configuration_id.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

#configuration_set_nameString? (readonly)

The name of the ConfigurationSet.



34
35
36
# File 'sms_voice/cfn_configuration_set_props.rb', line 34

def configuration_set_name
  @configuration_set_name
end

#default_sender_idString? (readonly)

The default sender ID used by the ConfigurationSet.



39
40
41
# File 'sms_voice/cfn_configuration_set_props.rb', line 39

def default_sender_id
  @default_sender_id
end

#event_destinationsAWSCDK::IResolvable, ... (readonly)

An array of EventDestination objects that describe any events to log and where to log them.



44
45
46
# File 'sms_voice/cfn_configuration_set_props.rb', line 44

def event_destinations
  @event_destinations
end

#message_feedback_enabledBoolean, ... (readonly)

Set to true to enable feedback for the message.



49
50
51
# File 'sms_voice/cfn_configuration_set_props.rb', line 49

def message_feedback_enabled
  @message_feedback_enabled
end

#protect_configuration_idString? (readonly)

The unique identifier for the protect configuration.



54
55
56
# File 'sms_voice/cfn_configuration_set_props.rb', line 54

def protect_configuration_id
  @protect_configuration_id
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key and value pair tags that's associated with the new configuration set.



59
60
61
# File 'sms_voice/cfn_configuration_set_props.rb', line 59

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'sms_voice/cfn_configuration_set_props.rb', line 61

def self.jsii_properties
  {
    :configuration_set_name => "configurationSetName",
    :default_sender_id => "defaultSenderId",
    :event_destinations => "eventDestinations",
    :message_feedback_enabled => "messageFeedbackEnabled",
    :protect_configuration_id => "protectConfigurationId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'sms_voice/cfn_configuration_set_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "configurationSetName" => @configuration_set_name,
    "defaultSenderId" => @default_sender_id,
    "eventDestinations" => @event_destinations,
    "messageFeedbackEnabled" => @message_feedback_enabled,
    "protectConfigurationId" => @protect_configuration_id,
    "tags" => @tags,
  })
  result.compact
end