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

Contents

Description

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

Synopsis

Creating a Request

modifySubnetAttribute Source #

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

Contains the parameters for ModifySubnetAttribute.

See: modifySubnetAttribute smart constructor.

Instances
Eq ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Data ModifySubnetAttribute Source # 
Instance details

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

Defined in Network.AWS.EC2.ModifySubnetAttribute

Show ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Generic ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Associated Types

type Rep ModifySubnetAttribute :: Type -> Type #

Hashable ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

AWSRequest ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Associated Types

type Rs ModifySubnetAttribute :: Type #

ToHeaders ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

ToPath ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

ToQuery ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

NFData ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Methods

rnf :: ModifySubnetAttribute -> () #

type Rep ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

type Rep ModifySubnetAttribute = D1 (MetaData "ModifySubnetAttribute" "Network.AWS.EC2.ModifySubnetAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifySubnetAttribute'" PrefixI True) (S1 (MetaSel (Just "_msaAssignIPv6AddressOnCreation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: (S1 (MetaSel (Just "_msaMapPublicIPOnLaunch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 (MetaSel (Just "_msaSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ModifySubnetAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Request Lenses

msaAssignIPv6AddressOnCreation :: Lens' ModifySubnetAttribute (Maybe AttributeBooleanValue) Source #

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

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

Destructuring the Response

modifySubnetAttributeResponse :: ModifySubnetAttributeResponse Source #

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

data ModifySubnetAttributeResponse Source #

See: modifySubnetAttributeResponse smart constructor.

Instances
Eq ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Data ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

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

Defined in Network.AWS.EC2.ModifySubnetAttribute

Show ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Generic ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

Associated Types

type Rep ModifySubnetAttributeResponse :: Type -> Type #

NFData ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

type Rep ModifySubnetAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifySubnetAttribute

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