amazonka-ec2-1.6.1: 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 Source #

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

Contains the parameters for ResetInstanceAttribute.

See: resetInstanceAttribute smart constructor.

Instances
Eq ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Data ResetInstanceAttribute Source # 
Instance details

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

Defined in Network.AWS.EC2.ResetInstanceAttribute

Show ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Generic ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttribute :: Type -> Type #

Hashable ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

AWSRequest ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rs ResetInstanceAttribute :: Type #

ToHeaders ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

ToPath ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

ToQuery ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

NFData ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Methods

rnf :: ResetInstanceAttribute -> () #

type Rep ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttribute = D1 (MetaData "ResetInstanceAttribute" "Network.AWS.EC2.ResetInstanceAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ResetInstanceAttribute'" PrefixI True) (S1 (MetaSel (Just "_riaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_riaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceAttributeName) :*: S1 (MetaSel (Just "_riaInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ResetInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Request Lenses

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

riaAttribute :: Lens' ResetInstanceAttribute InstanceAttributeName Source #

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

Destructuring the Response

resetInstanceAttributeResponse :: ResetInstanceAttributeResponse Source #

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

data ResetInstanceAttributeResponse Source #

See: resetInstanceAttributeResponse smart constructor.

Instances
Eq ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Data ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

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

Defined in Network.AWS.EC2.ResetInstanceAttribute

Show ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Generic ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttributeResponse :: Type -> Type #

NFData ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttributeResponse = D1 (MetaData "ResetInstanceAttributeResponse" "Network.AWS.EC2.ResetInstanceAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ResetInstanceAttributeResponse'" PrefixI False) (U1 :: Type -> Type))