amazonka-ec2-1.4.3: 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.AssociateDHCPOptions

Contents

Description

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

associateDHCPOptions Source #

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

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

data AssociateDHCPOptions Source #

Contains the parameters for AssociateDhcpOptions.

See: associateDHCPOptions smart constructor.

Instances

Eq AssociateDHCPOptions Source # 
Data AssociateDHCPOptions Source # 

Methods

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

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

toConstr :: AssociateDHCPOptions -> Constr #

dataTypeOf :: AssociateDHCPOptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateDHCPOptions Source # 
Show AssociateDHCPOptions Source # 
Generic AssociateDHCPOptions Source # 
Hashable AssociateDHCPOptions Source # 
NFData AssociateDHCPOptions Source # 

Methods

rnf :: AssociateDHCPOptions -> () #

AWSRequest AssociateDHCPOptions Source # 
ToQuery AssociateDHCPOptions Source # 
ToPath AssociateDHCPOptions Source # 
ToHeaders AssociateDHCPOptions Source # 
type Rep AssociateDHCPOptions Source # 
type Rep AssociateDHCPOptions = D1 (MetaData "AssociateDHCPOptions" "Network.AWS.EC2.AssociateDHCPOptions" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "AssociateDHCPOptions'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_adoDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_adoDHCPOptionsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_adoVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs AssociateDHCPOptions Source # 

Request Lenses

adoDryRun :: Lens' AssociateDHCPOptions (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.

adoDHCPOptionsId :: Lens' AssociateDHCPOptions Text Source #

The ID of the DHCP options set, or 'default' to associate no DHCP options with the VPC.

Destructuring the Response

associateDHCPOptionsResponse :: AssociateDHCPOptionsResponse Source #

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

data AssociateDHCPOptionsResponse Source #

See: associateDHCPOptionsResponse smart constructor.

Instances

Eq AssociateDHCPOptionsResponse Source # 
Data AssociateDHCPOptionsResponse Source # 

Methods

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

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

toConstr :: AssociateDHCPOptionsResponse -> Constr #

dataTypeOf :: AssociateDHCPOptionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateDHCPOptionsResponse Source # 
Show AssociateDHCPOptionsResponse Source # 
Generic AssociateDHCPOptionsResponse Source # 
NFData AssociateDHCPOptionsResponse Source # 
type Rep AssociateDHCPOptionsResponse Source # 
type Rep AssociateDHCPOptionsResponse = D1 (MetaData "AssociateDHCPOptionsResponse" "Network.AWS.EC2.AssociateDHCPOptions" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "AssociateDHCPOptionsResponse'" PrefixI False) U1)