Class: Aws::EC2::Types::DetachVolumeRequest

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

Overview

Note:

When making an API call, you may pass DetachVolumeRequest data as a hash:

{
  device: "String",
  force: false,
  instance_id: "InstanceId",
  volume_id: "VolumeId", # required
  dry_run: false,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#deviceString

The device name.

Returns:

  • (String)


29419
29420
29421
29422
29423
29424
29425
29426
29427
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29419

class DetachVolumeRequest < Struct.new(
  :device,
  :force,
  :instance_id,
  :volume_id,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


29419
29420
29421
29422
29423
29424
29425
29426
29427
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29419

class DetachVolumeRequest < Struct.new(
  :device,
  :force,
  :instance_id,
  :volume_id,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#forceBoolean

Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.

Returns:

  • (Boolean)


29419
29420
29421
29422
29423
29424
29425
29426
29427
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29419

class DetachVolumeRequest < Struct.new(
  :device,
  :force,
  :instance_id,
  :volume_id,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#instance_idString

The ID of the instance. If you are detaching a Multi-Attach enabled volume, you must specify an instance ID.

Returns:

  • (String)


29419
29420
29421
29422
29423
29424
29425
29426
29427
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29419

class DetachVolumeRequest < Struct.new(
  :device,
  :force,
  :instance_id,
  :volume_id,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#volume_idString

The ID of the volume.

Returns:

  • (String)


29419
29420
29421
29422
29423
29424
29425
29426
29427
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 29419

class DetachVolumeRequest < Struct.new(
  :device,
  :force,
  :instance_id,
  :volume_id,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end