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