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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyNetworkInterfaceAttribute

Contents

Description

Modifies the specified network interface attribute. You can specify only one attribute at a time.

Synopsis

Creating a Request

modifyNetworkInterfaceAttribute #

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

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

  • mniaGroups - Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
  • mniaSourceDestCheck - Indicates whether sourcedestination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. 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/ .
  • mniaAttachment - Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
  • mniaDescription - A description for the network interface.
  • mniaDryRun - 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 .
  • mniaNetworkInterfaceId - The ID of the network interface.

data ModifyNetworkInterfaceAttribute #

Contains the parameters for ModifyNetworkInterfaceAttribute.

See: modifyNetworkInterfaceAttribute smart constructor.

Instances

Eq ModifyNetworkInterfaceAttribute # 
Data ModifyNetworkInterfaceAttribute # 

Methods

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

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

toConstr :: ModifyNetworkInterfaceAttribute -> Constr #

dataTypeOf :: ModifyNetworkInterfaceAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyNetworkInterfaceAttribute # 
Show ModifyNetworkInterfaceAttribute # 
Generic ModifyNetworkInterfaceAttribute # 
Hashable ModifyNetworkInterfaceAttribute # 
NFData ModifyNetworkInterfaceAttribute # 
AWSRequest ModifyNetworkInterfaceAttribute # 
ToQuery ModifyNetworkInterfaceAttribute # 
ToPath ModifyNetworkInterfaceAttribute # 
ToHeaders ModifyNetworkInterfaceAttribute # 
type Rep ModifyNetworkInterfaceAttribute # 
type Rep ModifyNetworkInterfaceAttribute = D1 (MetaData "ModifyNetworkInterfaceAttribute" "Network.AWS.EC2.ModifyNetworkInterfaceAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyNetworkInterfaceAttribute'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_mniaGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_mniaSourceDestCheck") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) (S1 (MetaSel (Just Symbol "_mniaAttachment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkInterfaceAttachmentChanges))))) ((:*:) (S1 (MetaSel (Just Symbol "_mniaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) ((:*:) (S1 (MetaSel (Just Symbol "_mniaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_mniaNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs ModifyNetworkInterfaceAttribute # 

Request Lenses

mniaGroups :: Lens' ModifyNetworkInterfaceAttribute [Text] #

Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

mniaSourceDestCheck :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeBooleanValue) #

Indicates whether sourcedestination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. 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/ .

mniaAttachment :: Lens' ModifyNetworkInterfaceAttribute (Maybe NetworkInterfaceAttachmentChanges) #

Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

mniaDescription :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeValue) #

A description for the network interface.

mniaDryRun :: Lens' ModifyNetworkInterfaceAttribute (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 .

Destructuring the Response

data ModifyNetworkInterfaceAttributeResponse #

Instances

Eq ModifyNetworkInterfaceAttributeResponse # 
Data ModifyNetworkInterfaceAttributeResponse # 

Methods

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

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

toConstr :: ModifyNetworkInterfaceAttributeResponse -> Constr #

dataTypeOf :: ModifyNetworkInterfaceAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyNetworkInterfaceAttributeResponse # 
Show ModifyNetworkInterfaceAttributeResponse # 
Generic ModifyNetworkInterfaceAttributeResponse # 
NFData ModifyNetworkInterfaceAttributeResponse # 
type Rep ModifyNetworkInterfaceAttributeResponse # 
type Rep ModifyNetworkInterfaceAttributeResponse = D1 (MetaData "ModifyNetworkInterfaceAttributeResponse" "Network.AWS.EC2.ModifyNetworkInterfaceAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyNetworkInterfaceAttributeResponse'" PrefixI False) U1)