amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.AssociateDhcpOptions

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

data AssociateDhcpOptions Source #

See: newAssociateDhcpOptions smart constructor.

Constructors

AssociateDhcpOptions' 

Fields

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

  • dhcpOptionsId :: Text

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

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

ToPath AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

ToQuery AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

AWSRequest AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Associated Types

type AWSResponse AssociateDhcpOptions #

Generic AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Associated Types

type Rep AssociateDhcpOptions :: Type -> Type #

Read AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Show AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

NFData AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Methods

rnf :: AssociateDhcpOptions -> () #

Eq AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Hashable AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

type AWSResponse AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

type Rep AssociateDhcpOptions Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

type Rep AssociateDhcpOptions = D1 ('MetaData "AssociateDhcpOptions" "Amazonka.EC2.AssociateDhcpOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AssociateDhcpOptions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "dhcpOptionsId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAssociateDhcpOptions Source #

Create a value of AssociateDhcpOptions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:AssociateDhcpOptions', associateDhcpOptions_dryRun - 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.

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

AssociateDhcpOptions, associateDhcpOptions_vpcId - The ID of the VPC.

Request Lenses

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

associateDhcpOptions_dhcpOptionsId :: Lens' AssociateDhcpOptions Text Source #

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

Destructuring the Response

data AssociateDhcpOptionsResponse Source #

See: newAssociateDhcpOptionsResponse smart constructor.

Instances

Instances details
Generic AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Associated Types

type Rep AssociateDhcpOptionsResponse :: Type -> Type #

Read AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Show AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

NFData AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

Eq AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

type Rep AssociateDhcpOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateDhcpOptions

type Rep AssociateDhcpOptionsResponse = D1 ('MetaData "AssociateDhcpOptionsResponse" "Amazonka.EC2.AssociateDhcpOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AssociateDhcpOptionsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAssociateDhcpOptionsResponse :: AssociateDhcpOptionsResponse Source #

Create a value of AssociateDhcpOptionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.