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.ResetInstanceAttribute

Contents

Description

Resets an attribute of an instance to its default value. To reset the kernel or ramdisk , the instance must be in a stopped state. To reset the sourceDestCheck , the instance can be either running or stopped.

The sourceDestCheck attribute controls whether sourcedestination checking is enabled. The default value is true , which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see <http:docs.aws.amazon.comAmazonVPClatestUserGuideVPC_NAT_Instance.html NAT Instances> in the Amazon Virtual Private Cloud User Guide/ .

Synopsis

Creating a Request

resetInstanceAttribute #

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

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

  • riaDryRun - 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 .
  • riaAttribute - The attribute to reset. Important: You can only reset the following attributes: kernel | ramdisk | sourceDestCheck . To change an instance attribute, use ModifyInstanceAttribute .
  • riaInstanceId - The ID of the instance.

data ResetInstanceAttribute #

Contains the parameters for ResetInstanceAttribute.

See: resetInstanceAttribute smart constructor.

Instances

Eq ResetInstanceAttribute # 
Data ResetInstanceAttribute # 

Methods

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

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

toConstr :: ResetInstanceAttribute -> Constr #

dataTypeOf :: ResetInstanceAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetInstanceAttribute # 
Show ResetInstanceAttribute # 
Generic ResetInstanceAttribute # 
Hashable ResetInstanceAttribute # 
NFData ResetInstanceAttribute # 

Methods

rnf :: ResetInstanceAttribute -> () #

AWSRequest ResetInstanceAttribute # 
ToHeaders ResetInstanceAttribute # 
ToPath ResetInstanceAttribute # 
ToQuery ResetInstanceAttribute # 
type Rep ResetInstanceAttribute # 
type Rep ResetInstanceAttribute = D1 * (MetaData "ResetInstanceAttribute" "Network.AWS.EC2.ResetInstanceAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ResetInstanceAttribute'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_riaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_riaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * InstanceAttributeName)) (S1 * (MetaSel (Just Symbol "_riaInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ResetInstanceAttribute # 

Request Lenses

riaDryRun :: Lens' ResetInstanceAttribute (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 .

riaAttribute :: Lens' ResetInstanceAttribute InstanceAttributeName #

The attribute to reset. Important: You can only reset the following attributes: kernel | ramdisk | sourceDestCheck . To change an instance attribute, use ModifyInstanceAttribute .

riaInstanceId :: Lens' ResetInstanceAttribute Text #

The ID of the instance.

Destructuring the Response

resetInstanceAttributeResponse :: ResetInstanceAttributeResponse #

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

data ResetInstanceAttributeResponse #

See: resetInstanceAttributeResponse smart constructor.

Instances

Eq ResetInstanceAttributeResponse # 
Data ResetInstanceAttributeResponse # 

Methods

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

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

toConstr :: ResetInstanceAttributeResponse -> Constr #

dataTypeOf :: ResetInstanceAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetInstanceAttributeResponse # 
Show ResetInstanceAttributeResponse # 
Generic ResetInstanceAttributeResponse # 
NFData ResetInstanceAttributeResponse # 
type Rep ResetInstanceAttributeResponse # 
type Rep ResetInstanceAttributeResponse = D1 * (MetaData "ResetInstanceAttributeResponse" "Network.AWS.EC2.ResetInstanceAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ResetInstanceAttributeResponse'" PrefixI False) (U1 *))