| 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 |
Amazonka.EC2.EnableVpcClassicLinkDnsSupport
Description
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
Synopsis
- data EnableVpcClassicLinkDnsSupport = EnableVpcClassicLinkDnsSupport' {}
- newEnableVpcClassicLinkDnsSupport :: EnableVpcClassicLinkDnsSupport
- enableVpcClassicLinkDnsSupport_vpcId :: Lens' EnableVpcClassicLinkDnsSupport (Maybe Text)
- data EnableVpcClassicLinkDnsSupportResponse = EnableVpcClassicLinkDnsSupportResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newEnableVpcClassicLinkDnsSupportResponse :: Int -> EnableVpcClassicLinkDnsSupportResponse
- enableVpcClassicLinkDnsSupportResponse_return :: Lens' EnableVpcClassicLinkDnsSupportResponse (Maybe Bool)
- enableVpcClassicLinkDnsSupportResponse_httpStatus :: Lens' EnableVpcClassicLinkDnsSupportResponse Int
Creating a Request
data EnableVpcClassicLinkDnsSupport Source #
See: newEnableVpcClassicLinkDnsSupport smart constructor.
Constructors
| EnableVpcClassicLinkDnsSupport' | |
Instances
newEnableVpcClassicLinkDnsSupport :: EnableVpcClassicLinkDnsSupport Source #
Create a value of EnableVpcClassicLinkDnsSupport 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:
EnableVpcClassicLinkDnsSupport, enableVpcClassicLinkDnsSupport_vpcId - The ID of the VPC.
Request Lenses
enableVpcClassicLinkDnsSupport_vpcId :: Lens' EnableVpcClassicLinkDnsSupport (Maybe Text) Source #
The ID of the VPC.
Destructuring the Response
data EnableVpcClassicLinkDnsSupportResponse Source #
See: newEnableVpcClassicLinkDnsSupportResponse smart constructor.
Constructors
| EnableVpcClassicLinkDnsSupportResponse' | |
Fields
| |
Instances
newEnableVpcClassicLinkDnsSupportResponse Source #
Arguments
| :: Int | |
| -> EnableVpcClassicLinkDnsSupportResponse |
Create a value of EnableVpcClassicLinkDnsSupportResponse 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:return':EnableVpcClassicLinkDnsSupportResponse', enableVpcClassicLinkDnsSupportResponse_return - Returns true if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:EnableVpcClassicLinkDnsSupportResponse', enableVpcClassicLinkDnsSupportResponse_httpStatus - The response's http status code.
Response Lenses
enableVpcClassicLinkDnsSupportResponse_return :: Lens' EnableVpcClassicLinkDnsSupportResponse (Maybe Bool) Source #
Returns true if the request succeeds; otherwise, it returns an error.
enableVpcClassicLinkDnsSupportResponse_httpStatus :: Lens' EnableVpcClassicLinkDnsSupportResponse Int Source #
The response's http status code.