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 |
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 for ClassicLink. You can then link EC2-Classic instances
to your ClassicLink-enabled VPC to allow communication over private IP
addresses. You cannot enable your VPC for ClassicLink if any of your VPC
route tables have existing routes for address ranges within the
10.0.0.0/8
IP address range, excluding local routes for VPCs in the
10.0.0.0/16
and 10.1.0.0/16
IP address ranges. For more
information, see
ClassicLink
in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data EnableVpcClassicLink = EnableVpcClassicLink' {}
- newEnableVpcClassicLink :: Text -> EnableVpcClassicLink
- enableVpcClassicLink_dryRun :: Lens' EnableVpcClassicLink (Maybe Bool)
- enableVpcClassicLink_vpcId :: Lens' EnableVpcClassicLink Text
- data EnableVpcClassicLinkResponse = EnableVpcClassicLinkResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newEnableVpcClassicLinkResponse :: Int -> EnableVpcClassicLinkResponse
- enableVpcClassicLinkResponse_return :: Lens' EnableVpcClassicLinkResponse (Maybe Bool)
- enableVpcClassicLinkResponse_httpStatus :: Lens' EnableVpcClassicLinkResponse Int
Creating a Request
data EnableVpcClassicLink Source #
See: newEnableVpcClassicLink
smart constructor.
EnableVpcClassicLink' | |
|
Instances
newEnableVpcClassicLink Source #
Create a value of EnableVpcClassicLink
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:EnableVpcClassicLink'
, enableVpcClassicLink_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
.
EnableVpcClassicLink
, enableVpcClassicLink_vpcId
- The ID of the VPC.
Request Lenses
enableVpcClassicLink_dryRun :: Lens' EnableVpcClassicLink (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
.
enableVpcClassicLink_vpcId :: Lens' EnableVpcClassicLink Text Source #
The ID of the VPC.
Destructuring the Response
data EnableVpcClassicLinkResponse Source #
See: newEnableVpcClassicLinkResponse
smart constructor.
EnableVpcClassicLinkResponse' | |
|
Instances
newEnableVpcClassicLinkResponse Source #
Create a value of EnableVpcClassicLinkResponse
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':EnableVpcClassicLinkResponse'
, enableVpcClassicLinkResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:EnableVpcClassicLinkResponse'
, enableVpcClassicLinkResponse_httpStatus
- The response's http status code.
Response Lenses
enableVpcClassicLinkResponse_return :: Lens' EnableVpcClassicLinkResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
enableVpcClassicLinkResponse_httpStatus :: Lens' EnableVpcClassicLinkResponse Int Source #
The response's http status code.