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 #

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Data ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Show ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Generic ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Associated Types

type Rep ModifyVolumeAttribute :: * -> * #

Hashable ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

AWSRequest ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Associated Types

type Rs ModifyVolumeAttribute :: * #

ToHeaders ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

ToPath ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

ToQuery ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

NFData ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Methods

rnf :: ModifyVolumeAttribute -> () #

type Rep ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttribute = D1 (MetaData "ModifyVolumeAttribute" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "ModifyVolumeAttribute'" PrefixI True) (S1 (MetaSel (Just "_mvaAutoEnableIO") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: (S1 (MetaSel (Just "_mvaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_mvaVolumeId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ModifyVolumeAttribute # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Data ModifyVolumeAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Show ModifyVolumeAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Generic ModifyVolumeAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

Associated Types

type Rep ModifyVolumeAttributeResponse :: * -> * #

NFData ModifyVolumeAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyVolumeAttribute

type Rep ModifyVolumeAttributeResponse = D1 (MetaData "ModifyVolumeAttributeResponse" "Network.AWS.EC2.ModifyVolumeAttribute" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "ModifyVolumeAttributeResponse'" PrefixI False) (U1 :: * -> *))