Class: AWSCDK::Interfaces::AWSSmsvoice::SenderIdReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_smsvoice/sender_id_reference.rb

Overview

A reference to a SenderId resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iso_country_code:, sender_id:, sender_id_arn:) ⇒ SenderIdReference

Returns a new instance of SenderIdReference.

Parameters:

  • iso_country_code (String)

    The IsoCountryCode of the SenderId resource.

  • sender_id (String)

    The SenderId of the SenderId resource.

  • sender_id_arn (String)

    The ARN of the SenderId resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 10

def initialize(iso_country_code:, sender_id:, sender_id_arn:)
  @iso_country_code = iso_country_code
  Jsii::Type.check_type(@iso_country_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "isoCountryCode")
  @sender_id = sender_id
  Jsii::Type.check_type(@sender_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "senderId")
  @sender_id_arn = sender_id_arn
  Jsii::Type.check_type(@sender_id_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "senderIdArn")
end

Instance Attribute Details

#iso_country_codeString (readonly)

The IsoCountryCode of the SenderId resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 22

def iso_country_code
  @iso_country_code
end

#sender_idString (readonly)

The SenderId of the SenderId resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 26

def sender_id
  @sender_id
end

#sender_id_arnString (readonly)

The ARN of the SenderId resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 30

def sender_id_arn
  @sender_id_arn
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 32

def self.jsii_properties
  {
    :iso_country_code => "isoCountryCode",
    :sender_id => "senderId",
    :sender_id_arn => "senderIdArn",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_smsvoice/sender_id_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "isoCountryCode" => @iso_country_code,
    "senderId" => @sender_id,
    "senderIdArn" => @sender_id_arn,
  })
  result.compact
end