amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ModifyVolumeAttribute

Description

Modifies a volume attribute.

By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

Synopsis

Creating a Request

data ModifyVolumeAttribute Source #

See: newModifyVolumeAttribute smart constructor.

Constructors

ModifyVolumeAttribute' 

Fields

  • autoEnableIO :: Maybe AttributeBooleanValue

    Indicates whether the volume should be auto-enabled for I/O operations.

  • dryRun :: Maybe Bool

    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.

  • volumeId :: Text

    The ID of the volume.

Instances

Instances details
ToHeaders ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

ToPath ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

ToQuery ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

AWSRequest ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Associated Types

type AWSResponse ModifyVolumeAttribute #

Generic ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Associated Types

type Rep ModifyVolumeAttribute :: Type -> Type #

Read ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Show ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

NFData ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Methods

rnf :: ModifyVolumeAttribute -> () #

Eq ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Hashable ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

type AWSResponse ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttribute = D1 ('MetaData "ModifyVolumeAttribute" "Amazonka.EC2.ModifyVolumeAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVolumeAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoEnableIO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newModifyVolumeAttribute Source #

Create a value of ModifyVolumeAttribute with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:autoEnableIO:ModifyVolumeAttribute', modifyVolumeAttribute_autoEnableIO - Indicates whether the volume should be auto-enabled for I/O operations.

$sel:dryRun:ModifyVolumeAttribute', modifyVolumeAttribute_dryRun - 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.

ModifyVolumeAttribute, modifyVolumeAttribute_volumeId - The ID of the volume.

Request Lenses

modifyVolumeAttribute_autoEnableIO :: Lens' ModifyVolumeAttribute (Maybe AttributeBooleanValue) Source #

Indicates whether the volume should be auto-enabled for I/O operations.

modifyVolumeAttribute_dryRun :: Lens' ModifyVolumeAttribute (Maybe Bool) Source #

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.

Destructuring the Response

data ModifyVolumeAttributeResponse Source #

See: newModifyVolumeAttributeResponse smart constructor.

Instances

Instances details
Generic ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Associated Types

type Rep ModifyVolumeAttributeResponse :: Type -> Type #

Read ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Show ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

NFData ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

Eq ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttributeResponse = D1 ('MetaData "ModifyVolumeAttributeResponse" "Amazonka.EC2.ModifyVolumeAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVolumeAttributeResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newModifyVolumeAttributeResponse :: ModifyVolumeAttributeResponse Source #

Create a value of ModifyVolumeAttributeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.