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

Defined in Network.AWS.EC2.ResetInstanceAttribute

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

Defined in Network.AWS.EC2.ResetInstanceAttribute

Show ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Generic ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttribute :: * -> * #

Hashable ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

AWSRequest ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rs ResetInstanceAttribute :: * #

ToHeaders ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

ToPath ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

ToQuery ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

NFData ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Methods

rnf :: ResetInstanceAttribute -> () #

type Rep ResetInstanceAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttribute = D1 (MetaData "ResetInstanceAttribute" "Network.AWS.EC2.ResetInstanceAttribute" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

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

Defined in Network.AWS.EC2.ResetInstanceAttribute

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

Defined in Network.AWS.EC2.ResetInstanceAttribute

Show ResetInstanceAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Generic ResetInstanceAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

Associated Types

type Rep ResetInstanceAttributeResponse :: * -> * #

NFData ResetInstanceAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

type Rep ResetInstanceAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetInstanceAttribute

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