Class: AWSCDK::Interfaces::AWSSmsvoice::PhoneNumberReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSSmsvoice::PhoneNumberReference
- Defined in:
- interfaces/aws_smsvoice/phone_number_reference.rb
Overview
A reference to a PhoneNumber resource.
Instance Attribute Summary collapse
-
#phone_number_arn ⇒ String
readonly
The ARN of the PhoneNumber resource.
-
#phone_number_id ⇒ String
readonly
The PhoneNumberId of the PhoneNumber resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(phone_number_arn:, phone_number_id:) ⇒ PhoneNumberReference
constructor
A new instance of PhoneNumberReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(phone_number_arn:, phone_number_id:) ⇒ PhoneNumberReference
Returns a new instance of PhoneNumberReference.
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_arn ⇒ String (readonly)
The ARN of the PhoneNumber resource.
19 20 21 |
# File 'interfaces/aws_smsvoice/phone_number_reference.rb', line 19 def phone_number_arn @phone_number_arn end |
#phone_number_id ⇒ String (readonly)
The PhoneNumberId of the PhoneNumber resource.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |