Class: AWSCDK::RDS::DatabaseProxyAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::DatabaseProxyAttributes
- Defined in:
- rds/database_proxy_attributes.rb
Overview
Properties that describe an existing DB Proxy.
Instance Attribute Summary collapse
-
#db_proxy_arn ⇒ String
readonly
DB Proxy ARN.
-
#db_proxy_name ⇒ String
readonly
DB Proxy Name.
-
#endpoint ⇒ String
readonly
Endpoint.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>
readonly
The security groups of the instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(db_proxy_arn:, db_proxy_name:, endpoint:, security_groups:) ⇒ DatabaseProxyAttributes
constructor
A new instance of DatabaseProxyAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(db_proxy_arn:, db_proxy_name:, endpoint:, security_groups:) ⇒ DatabaseProxyAttributes
Returns a new instance of DatabaseProxyAttributes.
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_arn ⇒ String (readonly)
DB Proxy ARN.
25 26 27 |
# File 'rds/database_proxy_attributes.rb', line 25 def db_proxy_arn @db_proxy_arn end |
#db_proxy_name ⇒ String (readonly)
DB Proxy Name.
29 30 31 |
# File 'rds/database_proxy_attributes.rb', line 29 def db_proxy_name @db_proxy_name end |
#endpoint ⇒ String (readonly)
Endpoint.
33 34 35 |
# File 'rds/database_proxy_attributes.rb', line 33 def endpoint @endpoint end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup> (readonly)
The security groups of the instance.
37 38 39 |
# File 'rds/database_proxy_attributes.rb', line 37 def security_groups @security_groups end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |