Class: AWSCDK::Interfaces::AWSSmsvoice::PhoneNumberReference

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

Overview

A reference to a PhoneNumber resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(phone_number_arn:, phone_number_id:) ⇒ PhoneNumberReference

Returns a new instance of PhoneNumberReference.

Parameters:

  • phone_number_arn (String)

    The ARN of the PhoneNumber resource.

  • phone_number_id (String)

    The PhoneNumberId of the PhoneNumber resource.



9
10
11
12
13
14
# File 'interfaces/aws_smsvoice/phone_number_reference.rb', line 9

def initialize(phone_number_arn:, phone_number_id:)
  @phone_number_arn = phone_number_arn
  Jsii::Type.check_type(@phone_number_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneNumberArn")
  @phone_number_id = phone_number_id
  Jsii::Type.check_type(@phone_number_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneNumberId")
end

Instance Attribute Details

#phone_number_arnString (readonly)

The ARN of the PhoneNumber resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_smsvoice/phone_number_reference.rb', line 19

def phone_number_arn
  @phone_number_arn
end

#phone_number_idString (readonly)

The PhoneNumberId of the PhoneNumber resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_smsvoice/phone_number_reference.rb', line 23

def phone_number_id
  @phone_number_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_smsvoice/phone_number_reference.rb', line 25

def self.jsii_properties
  {
    :phone_number_arn => "phoneNumberArn",
    :phone_number_id => "phoneNumberId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "phoneNumberArn" => @phone_number_arn,
    "phoneNumberId" => @phone_number_id,
  })
  result.compact
end