Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.EC2.AttachVPNGateway
Description
Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .
- attachVPNGateway :: Text -> Text -> AttachVPNGateway
- data AttachVPNGateway
- avgDryRun :: Lens' AttachVPNGateway (Maybe Bool)
- avgVPNGatewayId :: Lens' AttachVPNGateway Text
- avgVPCId :: Lens' AttachVPNGateway Text
- attachVPNGatewayResponse :: Int -> AttachVPNGatewayResponse
- data AttachVPNGatewayResponse
- avgrsVPCAttachment :: Lens' AttachVPNGatewayResponse (Maybe VPCAttachment)
- avgrsResponseStatus :: Lens' AttachVPNGatewayResponse Int
Creating a Request
Arguments
:: Text | |
-> Text | |
-> AttachVPNGateway |
Creates a value of AttachVPNGateway
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avgDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.avgVPNGatewayId
- The ID of the virtual private gateway.avgVPCId
- The ID of the VPC.
data AttachVPNGateway #
Contains the parameters for AttachVpnGateway.
See: attachVPNGateway
smart constructor.
Instances
Request Lenses
avgDryRun :: Lens' AttachVPNGateway (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
.
avgVPNGatewayId :: Lens' AttachVPNGateway Text #
The ID of the virtual private gateway.
avgVPCId :: Lens' AttachVPNGateway Text #
The ID of the VPC.
Destructuring the Response
Arguments
:: Int | |
-> AttachVPNGatewayResponse |
Creates a value of AttachVPNGatewayResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avgrsVPCAttachment
- Information about the attachment.avgrsResponseStatus
- -- | The response status code.
data AttachVPNGatewayResponse #
Contains the output of AttachVpnGateway.
See: attachVPNGatewayResponse
smart constructor.
Response Lenses
avgrsVPCAttachment :: Lens' AttachVPNGatewayResponse (Maybe VPCAttachment) #
Information about the attachment.
avgrsResponseStatus :: Lens' AttachVPNGatewayResponse Int #
- - | The response status code.