Class: AWSCDK::Interfaces::AWSOpsworks::InstanceReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_opsworks/instance_reference.rb

Overview

A reference to a Instance resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_id:) ⇒ InstanceReference

Returns a new instance of InstanceReference.

Parameters:

  • instance_id (String)

    The Id of the Instance resource.



8
9
10
11
# File 'interfaces/aws_opsworks/instance_reference.rb', line 8

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

Instance Attribute Details

#instance_idString (readonly)

The Id of the Instance resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_opsworks/instance_reference.rb', line 16

def instance_id
  @instance_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_opsworks/instance_reference.rb', line 18

def self.jsii_properties
  {
    :instance_id => "instanceId",
  }
end

Instance Method Details

#to_jsiiObject



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

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