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 |
Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
Synopsis
- data AttachVpnGateway = AttachVpnGateway' {}
- newAttachVpnGateway :: Text -> Text -> AttachVpnGateway
- attachVpnGateway_dryRun :: Lens' AttachVpnGateway (Maybe Bool)
- attachVpnGateway_vpcId :: Lens' AttachVpnGateway Text
- attachVpnGateway_vpnGatewayId :: Lens' AttachVpnGateway Text
- data AttachVpnGatewayResponse = AttachVpnGatewayResponse' {}
- newAttachVpnGatewayResponse :: Int -> AttachVpnGatewayResponse
- attachVpnGatewayResponse_vpcAttachment :: Lens' AttachVpnGatewayResponse (Maybe VpcAttachment)
- attachVpnGatewayResponse_httpStatus :: Lens' AttachVpnGatewayResponse Int
Creating a Request
data AttachVpnGateway Source #
Contains the parameters for AttachVpnGateway.
See: newAttachVpnGateway
smart constructor.
AttachVpnGateway' | |
|
Instances
Create a value of AttachVpnGateway
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:AttachVpnGateway'
, attachVpnGateway_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
.
AttachVpnGateway
, attachVpnGateway_vpcId
- The ID of the VPC.
AttachVpnGateway
, attachVpnGateway_vpnGatewayId
- The ID of the virtual private gateway.
Request Lenses
attachVpnGateway_dryRun :: Lens' AttachVpnGateway (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
.
attachVpnGateway_vpcId :: Lens' AttachVpnGateway Text Source #
The ID of the VPC.
attachVpnGateway_vpnGatewayId :: Lens' AttachVpnGateway Text Source #
The ID of the virtual private gateway.
Destructuring the Response
data AttachVpnGatewayResponse Source #
Contains the output of AttachVpnGateway.
See: newAttachVpnGatewayResponse
smart constructor.
AttachVpnGatewayResponse' | |
|
Instances
newAttachVpnGatewayResponse Source #
Create a value of AttachVpnGatewayResponse
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:vpcAttachment:AttachVpnGatewayResponse'
, attachVpnGatewayResponse_vpcAttachment
- Information about the attachment.
$sel:httpStatus:AttachVpnGatewayResponse'
, attachVpnGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
attachVpnGatewayResponse_vpcAttachment :: Lens' AttachVpnGatewayResponse (Maybe VpcAttachment) Source #
Information about the attachment.
attachVpnGatewayResponse_httpStatus :: Lens' AttachVpnGatewayResponse Int Source #
The response's http status code.