Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data AssociateDhcpOptions = AssociateDhcpOptions' {}
- newAssociateDhcpOptions :: Text -> Text -> AssociateDhcpOptions
- associateDhcpOptions_dryRun :: Lens' AssociateDhcpOptions (Maybe Bool)
- associateDhcpOptions_dhcpOptionsId :: Lens' AssociateDhcpOptions Text
- associateDhcpOptions_vpcId :: Lens' AssociateDhcpOptions Text
- data AssociateDhcpOptionsResponse = AssociateDhcpOptionsResponse' {
- newAssociateDhcpOptionsResponse :: AssociateDhcpOptionsResponse
Creating a Request
data AssociateDhcpOptions Source #
See: newAssociateDhcpOptions
smart constructor.
AssociateDhcpOptions' | |
|
Instances
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.
associateDhcpOptions_vpcId :: Lens' AssociateDhcpOptions Text Source #
The ID of the VPC.
Destructuring the Response
data AssociateDhcpOptionsResponse Source #
See: newAssociateDhcpOptionsResponse
smart constructor.
Instances
newAssociateDhcpOptionsResponse :: AssociateDhcpOptionsResponse Source #
Create a value of AssociateDhcpOptionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.