amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyVolumeAttribute

Contents

Description

Modifies a volume attribute.

By default, all IO 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 IO 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

modifyVolumeAttribute #

Creates a value of ModifyVolumeAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • mvaAutoEnableIO - Indicates whether the volume should be auto-enabled for I/O operations.
  • mvaDryRun - 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 .
  • mvaVolumeId - The ID of the volume.

data ModifyVolumeAttribute #

Contains the parameters for ModifyVolumeAttribute.

See: modifyVolumeAttribute smart constructor.

Instances

Eq ModifyVolumeAttribute # 
Data ModifyVolumeAttribute # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyVolumeAttribute -> c ModifyVolumeAttribute #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyVolumeAttribute #

toConstr :: ModifyVolumeAttribute -> Constr #

dataTypeOf :: ModifyVolumeAttribute -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyVolumeAttribute) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyVolumeAttribute) #

gmapT :: (forall b. Data b => b -> b) -> ModifyVolumeAttribute -> ModifyVolumeAttribute #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVolumeAttribute -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVolumeAttribute -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyVolumeAttribute -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyVolumeAttribute -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyVolumeAttribute -> m ModifyVolumeAttribute #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVolumeAttribute -> m ModifyVolumeAttribute #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVolumeAttribute -> m ModifyVolumeAttribute #

Read ModifyVolumeAttribute # 
Show ModifyVolumeAttribute # 
Generic ModifyVolumeAttribute # 
Hashable ModifyVolumeAttribute # 
NFData ModifyVolumeAttribute # 

Methods

rnf :: ModifyVolumeAttribute -> () #

AWSRequest ModifyVolumeAttribute # 
ToQuery ModifyVolumeAttribute # 
ToPath ModifyVolumeAttribute # 
ToHeaders ModifyVolumeAttribute # 
type Rep ModifyVolumeAttribute # 
type Rep ModifyVolumeAttribute = D1 (MetaData "ModifyVolumeAttribute" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyVolumeAttribute'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mvaAutoEnableIO") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) ((:*:) (S1 (MetaSel (Just Symbol "_mvaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_mvaVolumeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ModifyVolumeAttribute # 

Request Lenses

mvaAutoEnableIO :: Lens' ModifyVolumeAttribute (Maybe AttributeBooleanValue) #

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

mvaDryRun :: Lens' ModifyVolumeAttribute (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 .

mvaVolumeId :: Lens' ModifyVolumeAttribute Text #

The ID of the volume.

Destructuring the Response

modifyVolumeAttributeResponse :: ModifyVolumeAttributeResponse #

Creates a value of ModifyVolumeAttributeResponse with the minimum fields required to make a request.

data ModifyVolumeAttributeResponse #

See: modifyVolumeAttributeResponse smart constructor.

Instances

Eq ModifyVolumeAttributeResponse # 
Data ModifyVolumeAttributeResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyVolumeAttributeResponse -> c ModifyVolumeAttributeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyVolumeAttributeResponse #

toConstr :: ModifyVolumeAttributeResponse -> Constr #

dataTypeOf :: ModifyVolumeAttributeResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyVolumeAttributeResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyVolumeAttributeResponse) #

gmapT :: (forall b. Data b => b -> b) -> ModifyVolumeAttributeResponse -> ModifyVolumeAttributeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVolumeAttributeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyVolumeAttributeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyVolumeAttributeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyVolumeAttributeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyVolumeAttributeResponse -> m ModifyVolumeAttributeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVolumeAttributeResponse -> m ModifyVolumeAttributeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyVolumeAttributeResponse -> m ModifyVolumeAttributeResponse #

Read ModifyVolumeAttributeResponse # 
Show ModifyVolumeAttributeResponse # 
Generic ModifyVolumeAttributeResponse # 
NFData ModifyVolumeAttributeResponse # 
type Rep ModifyVolumeAttributeResponse # 
type Rep ModifyVolumeAttributeResponse = D1 (MetaData "ModifyVolumeAttributeResponse" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyVolumeAttributeResponse'" PrefixI False) U1)