Class: AWSCDK::Interfaces::AWSRDS::DBInstanceReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSRDS::DBInstanceReference
- Defined in:
- interfaces/awsrds/db_instance_reference.rb
Overview
A reference to a DBInstance resource.
Instance Attribute Summary collapse
-
#db_instance_arn ⇒ String
readonly
The ARN of the DBInstance resource.
-
#db_instance_identifier ⇒ String
readonly
The DBInstanceIdentifier of the DBInstance resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(db_instance_arn:, db_instance_identifier:) ⇒ DBInstanceReference
constructor
A new instance of DBInstanceReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(db_instance_arn:, db_instance_identifier:) ⇒ DBInstanceReference
Returns a new instance of DBInstanceReference.
9 10 11 12 13 14 |
# File 'interfaces/awsrds/db_instance_reference.rb', line 9 def initialize(db_instance_arn:, db_instance_identifier:) @db_instance_arn = db_instance_arn Jsii::Type.check_type(@db_instance_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbInstanceArn") @db_instance_identifier = db_instance_identifier Jsii::Type.check_type(@db_instance_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbInstanceIdentifier") end |
Instance Attribute Details
#db_instance_arn ⇒ String (readonly)
The ARN of the DBInstance resource.
19 20 21 |
# File 'interfaces/awsrds/db_instance_reference.rb', line 19 def db_instance_arn @db_instance_arn end |
#db_instance_identifier ⇒ String (readonly)
The DBInstanceIdentifier of the DBInstance resource.
23 24 25 |
# File 'interfaces/awsrds/db_instance_reference.rb', line 23 def db_instance_identifier @db_instance_identifier end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsrds/db_instance_reference.rb', line 25 def self.jsii_properties { :db_instance_arn => "dbInstanceArn", :db_instance_identifier => "dbInstanceIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsrds/db_instance_reference.rb', line 32 def to_jsii result = {} result.merge!({ "dbInstanceArn" => @db_instance_arn, "dbInstanceIdentifier" => @db_instance_identifier, }) result.compact end |