Class: AWSCDK::Events::ConnectionAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::ConnectionAttributes
- Defined in:
- events/connection_attributes.rb
Overview
Interface with properties necessary to import a reusable Connection.
Instance Attribute Summary collapse
-
#connection_arn ⇒ String
readonly
The ARN of the connection created.
-
#connection_name ⇒ String
readonly
The Name for the connection.
-
#connection_secret_arn ⇒ String
readonly
The ARN for the secret created for the connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_arn:, connection_name:, connection_secret_arn:) ⇒ ConnectionAttributes
constructor
A new instance of ConnectionAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_arn:, connection_name:, connection_secret_arn:) ⇒ ConnectionAttributes
Returns a new instance of ConnectionAttributes.
10 11 12 13 14 15 16 17 |
# File 'events/connection_attributes.rb', line 10 def initialize(connection_arn:, connection_name:, connection_secret_arn:) @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") @connection_secret_arn = connection_secret_arn Jsii::Type.check_type(@connection_secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionSecretArn") end |
Instance Attribute Details
#connection_arn ⇒ String (readonly)
The ARN of the connection created.
22 23 24 |
# File 'events/connection_attributes.rb', line 22 def connection_arn @connection_arn end |
#connection_name ⇒ String (readonly)
The Name for the connection.
26 27 28 |
# File 'events/connection_attributes.rb', line 26 def connection_name @connection_name end |
#connection_secret_arn ⇒ String (readonly)
The ARN for the secret created for the connection.
30 31 32 |
# File 'events/connection_attributes.rb', line 30 def connection_secret_arn @connection_secret_arn end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'events/connection_attributes.rb', line 32 def self.jsii_properties { :connection_arn => "connectionArn", :connection_name => "connectionName", :connection_secret_arn => "connectionSecretArn", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'events/connection_attributes.rb', line 40 def to_jsii result = {} result.merge!({ "connectionArn" => @connection_arn, "connectionName" => @connection_name, "connectionSecretArn" => @connection_secret_arn, }) result.compact end |