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

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

Contains the parameters for AssociateDhcpOptions.

See: associateDHCPOptions smart constructor.

Instances
Eq AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Data AssociateDHCPOptions Source # 
Instance details

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

Defined in Network.AWS.EC2.AssociateDHCPOptions

Show AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Generic AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Associated Types

type Rep AssociateDHCPOptions :: Type -> Type #

Hashable AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

AWSRequest AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Associated Types

type Rs AssociateDHCPOptions :: Type #

ToHeaders AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

ToPath AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

ToQuery AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

NFData AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Methods

rnf :: AssociateDHCPOptions -> () #

type Rep AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

type Rep AssociateDHCPOptions = D1 (MetaData "AssociateDHCPOptions" "Network.AWS.EC2.AssociateDHCPOptions" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AssociateDHCPOptions'" PrefixI True) (S1 (MetaSel (Just "_adoDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_adoDHCPOptionsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_adoVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AssociateDHCPOptions Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

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

Defined in Network.AWS.EC2.AssociateDHCPOptions

Data AssociateDHCPOptionsResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

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

Defined in Network.AWS.EC2.AssociateDHCPOptions

Show AssociateDHCPOptionsResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Generic AssociateDHCPOptionsResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

Associated Types

type Rep AssociateDHCPOptionsResponse :: Type -> Type #

NFData AssociateDHCPOptionsResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

type Rep AssociateDHCPOptionsResponse Source # 
Instance details

Defined in Network.AWS.EC2.AssociateDHCPOptions

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