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