Class: AWSCDK::Interfaces::AWSDocdb::DBInstanceReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_docdb/db_instance_reference.rb

Overview

A reference to a DBInstance resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_instance_id:) ⇒ DBInstanceReference

Returns a new instance of DBInstanceReference.

Parameters:

  • db_instance_id (String)

    The Id of the DBInstance resource.



8
9
10
11
# File 'interfaces/aws_docdb/db_instance_reference.rb', line 8

def initialize(db_instance_id:)
  @db_instance_id = db_instance_id
  Jsii::Type.check_type(@db_instance_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbInstanceId")
end

Instance Attribute Details

#db_instance_idString (readonly)

The Id of the DBInstance resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_docdb/db_instance_reference.rb', line 16

def db_instance_id
  @db_instance_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_docdb/db_instance_reference.rb', line 18

def self.jsii_properties
  {
    :db_instance_id => "dbInstanceId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/aws_docdb/db_instance_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "dbInstanceId" => @db_instance_id,
  })
  result.compact
end