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

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:

  • adoDryRun - 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 - The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
  • adoVPCId - The ID of the VPC.

data AssociateDHCPOptions #

Contains the parameters for AssociateDhcpOptions.

See: associateDHCPOptions smart constructor.

Instances

Eq AssociateDHCPOptions # 
Data AssociateDHCPOptions # 

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 # 
Show AssociateDHCPOptions # 
Generic AssociateDHCPOptions # 
Hashable AssociateDHCPOptions # 
NFData AssociateDHCPOptions # 

Methods

rnf :: AssociateDHCPOptions -> () #

AWSRequest AssociateDHCPOptions # 
ToQuery AssociateDHCPOptions # 
ToPath AssociateDHCPOptions # 
ToHeaders AssociateDHCPOptions # 
type Rep AssociateDHCPOptions # 
type Rep AssociateDHCPOptions = D1 (MetaData "AssociateDHCPOptions" "Network.AWS.EC2.AssociateDHCPOptions" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

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

adoDHCPOptionsId :: Lens' AssociateDHCPOptions Text #

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

Destructuring the Response

associateDHCPOptionsResponse :: AssociateDHCPOptionsResponse #

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

data AssociateDHCPOptionsResponse #

See: associateDHCPOptionsResponse smart constructor.

Instances

Eq AssociateDHCPOptionsResponse # 
Data AssociateDHCPOptionsResponse # 

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 # 
Show AssociateDHCPOptionsResponse # 
Generic AssociateDHCPOptionsResponse # 
NFData AssociateDHCPOptionsResponse # 
type Rep AssociateDHCPOptionsResponse # 
type Rep AssociateDHCPOptionsResponse = D1 (MetaData "AssociateDHCPOptionsResponse" "Network.AWS.EC2.AssociateDHCPOptions" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "AssociateDHCPOptionsResponse'" PrefixI False) U1)