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

Contents

Description

Modifies a subnet attribute. You can only modify one attribute at a time.

Synopsis

Creating a Request

modifySubnetAttribute #

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

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

  • msaAssignIPv6AddressOnCreation - Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address). If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15 or later of the Amazon EC2 API.
  • msaMapPublicIPOnLaunch - Specify true to indicate that network interfaces created in the specified subnet should be assigned a public IPv4 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives a public IPv4 address).
  • msaSubnetId - The ID of the subnet.

data ModifySubnetAttribute #

Contains the parameters for ModifySubnetAttribute.

See: modifySubnetAttribute smart constructor.

Instances

Eq ModifySubnetAttribute # 
Data ModifySubnetAttribute # 

Methods

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

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

toConstr :: ModifySubnetAttribute -> Constr #

dataTypeOf :: ModifySubnetAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifySubnetAttribute # 
Show ModifySubnetAttribute # 
Generic ModifySubnetAttribute # 
Hashable ModifySubnetAttribute # 
NFData ModifySubnetAttribute # 

Methods

rnf :: ModifySubnetAttribute -> () #

AWSRequest ModifySubnetAttribute # 
ToHeaders ModifySubnetAttribute # 
ToPath ModifySubnetAttribute # 
ToQuery ModifySubnetAttribute # 
type Rep ModifySubnetAttribute # 
type Rep ModifySubnetAttribute = D1 * (MetaData "ModifySubnetAttribute" "Network.AWS.EC2.ModifySubnetAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ModifySubnetAttribute'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_msaAssignIPv6AddressOnCreation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))) ((:*:) * (S1 * (MetaSel (Just Symbol "_msaMapPublicIPOnLaunch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))) (S1 * (MetaSel (Just Symbol "_msaSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ModifySubnetAttribute # 

Request Lenses

msaAssignIPv6AddressOnCreation :: Lens' ModifySubnetAttribute (Maybe AttributeBooleanValue) #

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address). If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15 or later of the Amazon EC2 API.

msaMapPublicIPOnLaunch :: Lens' ModifySubnetAttribute (Maybe AttributeBooleanValue) #

Specify true to indicate that network interfaces created in the specified subnet should be assigned a public IPv4 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives a public IPv4 address).

msaSubnetId :: Lens' ModifySubnetAttribute Text #

The ID of the subnet.

Destructuring the Response

modifySubnetAttributeResponse :: ModifySubnetAttributeResponse #

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

data ModifySubnetAttributeResponse #

See: modifySubnetAttributeResponse smart constructor.

Instances

Eq ModifySubnetAttributeResponse # 
Data ModifySubnetAttributeResponse # 

Methods

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

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

toConstr :: ModifySubnetAttributeResponse -> Constr #

dataTypeOf :: ModifySubnetAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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