Class: AWSCDK::Interfaces::AWSSQS::QueueReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSSQS::QueueReference
- Defined in:
- interfaces/awssqs/queue_reference.rb
Overview
A reference to a Queue resource.
Instance Attribute Summary collapse
-
#queue_arn ⇒ String
readonly
The ARN of the Queue resource.
-
#queue_url ⇒ String
readonly
The QueueUrl of the Queue resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(queue_arn:, queue_url:) ⇒ QueueReference
constructor
A new instance of QueueReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(queue_arn:, queue_url:) ⇒ QueueReference
Returns a new instance of QueueReference.
9 10 11 12 13 14 |
# File 'interfaces/awssqs/queue_reference.rb', line 9 def initialize(queue_arn:, queue_url:) @queue_arn = queue_arn Jsii::Type.check_type(@queue_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queueArn") @queue_url = queue_url Jsii::Type.check_type(@queue_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queueUrl") end |
Instance Attribute Details
#queue_arn ⇒ String (readonly)
The ARN of the Queue resource.
19 20 21 |
# File 'interfaces/awssqs/queue_reference.rb', line 19 def queue_arn @queue_arn end |
#queue_url ⇒ String (readonly)
The QueueUrl of the Queue resource.
23 24 25 |
# File 'interfaces/awssqs/queue_reference.rb', line 23 def queue_url @queue_url end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awssqs/queue_reference.rb', line 25 def self.jsii_properties { :queue_arn => "queueArn", :queue_url => "queueUrl", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awssqs/queue_reference.rb', line 32 def to_jsii result = {} result.merge!({ "queueArn" => @queue_arn, "queueUrl" => @queue_url, }) result.compact end |