Class: Aws::EC2::Types::VolumeAttachment

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Describes volume attachment details.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#associated_resource ⇒ String

The ARN of the Amazon Web Services-managed resource to which the volume is attached.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#attach_time ⇒ Time

The time stamp when the attachment initiated.

Returns:

  • (Time)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#availability_zone ⇒ String

The name of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZone (the active Availability Zone) and the standby Availability Zone in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#availability_zone_id ⇒ String

The ID of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZoneId (the active Availability Zone) and the standby Availability Zone ID in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#delete_on_termination ⇒ Boolean

Indicates whether the EBS volume is deleted on instance termination.

Returns:

  • (Boolean)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#device ⇒ String

The device name.

If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#ebs_card_index ⇒ Integer

The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.

Returns:

  • (Integer)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#instance_id ⇒ String

The ID of the instance.

If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#instance_owning_service ⇒ String

The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.

This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#state ⇒ String

The attachment state of the volume.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#trim_state ⇒ String

A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's TrimOnAttach setting when the volume attaches, and the value doesn't change for the life of the attachment. You can't set TrimState directly. To change it, modify TrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its own TrimState. This value isn't returned for unattached volumes.

Valid values:

  • enabled: The volume reports TRIM support to the operating system.

  • disabled: The volume does not report TRIM support to the operating system.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end

#volume_id ⇒ String

The ID of the volume.

Returns:

  • (String)


98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
98766
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 98751

class VolumeAttachment < Struct.new(
  :delete_on_termination,
  :associated_resource,
  :instance_owning_service,
  :ebs_card_index,
  :availability_zone,
  :availability_zone_id,
  :trim_state,
  :volume_id,
  :instance_id,
  :device,
  :state,
  :attach_time)
  SENSITIVE = []
  include Aws::Structure
end