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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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 Source #

Contains the parameters for ModifyVolumeAttribute.

See: modifyVolumeAttribute smart constructor.

Instances

Eq ModifyVolumeAttribute Source # 
Data ModifyVolumeAttribute Source # 

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 Source # 
Show ModifyVolumeAttribute Source # 
Generic ModifyVolumeAttribute Source # 
Hashable ModifyVolumeAttribute Source # 
NFData ModifyVolumeAttribute Source # 

Methods

rnf :: ModifyVolumeAttribute -> () #

AWSRequest ModifyVolumeAttribute Source # 
ToHeaders ModifyVolumeAttribute Source # 
ToPath ModifyVolumeAttribute Source # 
ToQuery ModifyVolumeAttribute Source # 
type Rep ModifyVolumeAttribute Source # 
type Rep ModifyVolumeAttribute = D1 * (MetaData "ModifyVolumeAttribute" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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 Source # 

Request Lenses

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

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

mvaDryRun :: 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

modifyVolumeAttributeResponse :: ModifyVolumeAttributeResponse Source #

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

data ModifyVolumeAttributeResponse Source #

See: modifyVolumeAttributeResponse smart constructor.

Instances

Eq ModifyVolumeAttributeResponse Source # 
Data ModifyVolumeAttributeResponse Source # 

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 Source # 
Show ModifyVolumeAttributeResponse Source # 
Generic ModifyVolumeAttributeResponse Source # 
NFData ModifyVolumeAttributeResponse Source # 
type Rep ModifyVolumeAttributeResponse Source # 
type Rep ModifyVolumeAttributeResponse = D1 * (MetaData "ModifyVolumeAttributeResponse" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ModifyVolumeAttributeResponse'" PrefixI False) (U1 *))