Class: AWSCDK::Interfaces::AWSRDS::DBProxyReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsrds/db_proxy_reference.rb

Overview

A reference to a DBProxy resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_proxy_arn:, db_proxy_name:) ⇒ DBProxyReference

Returns a new instance of DBProxyReference.

Parameters:

  • db_proxy_arn (String)

    The ARN of the DBProxy resource.

  • db_proxy_name (String)

    The DBProxyName of the DBProxy resource.



9
10
11
12
13
14
# File 'interfaces/awsrds/db_proxy_reference.rb', line 9

def initialize(db_proxy_arn:, db_proxy_name:)
  @db_proxy_arn = db_proxy_arn
  Jsii::Type.check_type(@db_proxy_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbProxyArn")
  @db_proxy_name = db_proxy_name
  Jsii::Type.check_type(@db_proxy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbProxyName")
end

Instance Attribute Details

#db_proxy_arnString (readonly)

The ARN of the DBProxy resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsrds/db_proxy_reference.rb', line 19

def db_proxy_arn
  @db_proxy_arn
end

#db_proxy_nameString (readonly)

The DBProxyName of the DBProxy resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsrds/db_proxy_reference.rb', line 23

def db_proxy_name
  @db_proxy_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awsrds/db_proxy_reference.rb', line 25

def self.jsii_properties
  {
    :db_proxy_arn => "dbProxyArn",
    :db_proxy_name => "dbProxyName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/awsrds/db_proxy_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "dbProxyArn" => @db_proxy_arn,
    "dbProxyName" => @db_proxy_name,
  })
  result.compact
end