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