Class: AWSCDK::SMSVoice::CfnPool::TwoWayProperty

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

Overview

The pool's two-way SMS configuration object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, channel_arn: nil, channel_role: nil) ⇒ TwoWayProperty

Returns a new instance of TwoWayProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    By default this is set to false.

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

    The Amazon Resource Name (ARN) of the two way channel.

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

    An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.



804
805
806
807
808
809
810
811
# File 'sms_voice/cfn_pool.rb', line 804

def initialize(enabled:, channel_arn: nil, channel_role: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
  @channel_arn = channel_arn
  Jsii::Type.check_type(@channel_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelArn") unless @channel_arn.nil?
  @channel_role = channel_role
  Jsii::Type.check_type(@channel_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelRole") unless @channel_role.nil?
end

Instance Attribute Details

#channel_arnString? (readonly)

The Amazon Resource Name (ARN) of the two way channel.



824
825
826
# File 'sms_voice/cfn_pool.rb', line 824

def channel_arn
  @channel_arn
end

#channel_roleString? (readonly)

An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.



829
830
831
# File 'sms_voice/cfn_pool.rb', line 829

def channel_role
  @channel_role
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

By default this is set to false.

When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.



819
820
821
# File 'sms_voice/cfn_pool.rb', line 819

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



831
832
833
834
835
836
837
# File 'sms_voice/cfn_pool.rb', line 831

def self.jsii_properties
  {
    :enabled => "enabled",
    :channel_arn => "channelArn",
    :channel_role => "channelRole",
  }
end

Instance Method Details

#to_jsiiObject



839
840
841
842
843
844
845
846
847
# File 'sms_voice/cfn_pool.rb', line 839

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "channelArn" => @channel_arn,
    "channelRole" => @channel_role,
  })
  result.compact
end