Class: AWSCDK::Events::ConnectionAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/connection_attributes.rb

Overview

Interface with properties necessary to import a reusable Connection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_arn:, connection_name:, connection_secret_arn:) ⇒ ConnectionAttributes

Returns a new instance of ConnectionAttributes.

Parameters:

  • connection_arn (String)

    The ARN of the connection created.

  • connection_name (String)

    The Name for the connection.

  • connection_secret_arn (String)

    The ARN for the secret created for the connection.



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_arnString (readonly)

The ARN of the connection created.

Returns:

  • (String)


22
23
24
# File 'events/connection_attributes.rb', line 22

def connection_arn
  @connection_arn
end

#connection_nameString (readonly)

The Name for the connection.

Returns:

  • (String)


26
27
28
# File 'events/connection_attributes.rb', line 26

def connection_name
  @connection_name
end

#connection_secret_arnString (readonly)

The ARN for the secret created for the connection.

Returns:

  • (String)


30
31
32
# File 'events/connection_attributes.rb', line 30

def connection_secret_arn
  @connection_secret_arn
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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