Class: AWSCDK::RDS::DatabaseProxyAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/database_proxy_attributes.rb

Overview

Properties that describe an existing DB Proxy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_proxy_arn:, db_proxy_name:, endpoint:, security_groups:) ⇒ DatabaseProxyAttributes

Returns a new instance of DatabaseProxyAttributes.

Parameters:

  • db_proxy_arn (String)

    DB Proxy ARN.

  • db_proxy_name (String)

    DB Proxy Name.

  • endpoint (String)

    Endpoint.

  • security_groups (Array<AWSCDK::EC2::ISecurityGroup>)

    The security groups of the instance.



11
12
13
14
15
16
17
18
19
20
# File 'rds/database_proxy_attributes.rb', line 11

def initialize(db_proxy_arn:, db_proxy_name:, endpoint:, security_groups:)
  @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")
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
  @security_groups = security_groups
  Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups")
end

Instance Attribute Details

#db_proxy_arnString (readonly)

DB Proxy ARN.

Returns:

  • (String)


25
26
27
# File 'rds/database_proxy_attributes.rb', line 25

def db_proxy_arn
  @db_proxy_arn
end

#db_proxy_nameString (readonly)

DB Proxy Name.

Returns:

  • (String)


29
30
31
# File 'rds/database_proxy_attributes.rb', line 29

def db_proxy_name
  @db_proxy_name
end

#endpointString (readonly)

Endpoint.

Returns:

  • (String)


33
34
35
# File 'rds/database_proxy_attributes.rb', line 33

def endpoint
  @endpoint
end

#security_groupsArray<AWSCDK::EC2::ISecurityGroup> (readonly)

The security groups of the instance.

Returns:



37
38
39
# File 'rds/database_proxy_attributes.rb', line 37

def security_groups
  @security_groups
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'rds/database_proxy_attributes.rb', line 39

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

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'rds/database_proxy_attributes.rb', line 48

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