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