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 |
Accepts a request to attach a VPC to a transit gateway.
The VPC attachment must be in the pendingAcceptance
state. Use
DescribeTransitGatewayVpcAttachments to view your pending VPC attachment
requests. Use RejectTransitGatewayVpcAttachment to reject a VPC
attachment request.
Synopsis
- data AcceptTransitGatewayVpcAttachment = AcceptTransitGatewayVpcAttachment' {}
- newAcceptTransitGatewayVpcAttachment :: Text -> AcceptTransitGatewayVpcAttachment
- acceptTransitGatewayVpcAttachment_dryRun :: Lens' AcceptTransitGatewayVpcAttachment (Maybe Bool)
- acceptTransitGatewayVpcAttachment_transitGatewayAttachmentId :: Lens' AcceptTransitGatewayVpcAttachment Text
- data AcceptTransitGatewayVpcAttachmentResponse = AcceptTransitGatewayVpcAttachmentResponse' {}
- newAcceptTransitGatewayVpcAttachmentResponse :: Int -> AcceptTransitGatewayVpcAttachmentResponse
- acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens' AcceptTransitGatewayVpcAttachmentResponse (Maybe TransitGatewayVpcAttachment)
- acceptTransitGatewayVpcAttachmentResponse_httpStatus :: Lens' AcceptTransitGatewayVpcAttachmentResponse Int
Creating a Request
data AcceptTransitGatewayVpcAttachment Source #
See: newAcceptTransitGatewayVpcAttachment
smart constructor.
AcceptTransitGatewayVpcAttachment' | |
|
Instances
newAcceptTransitGatewayVpcAttachment Source #
Create a value of AcceptTransitGatewayVpcAttachment
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:AcceptTransitGatewayVpcAttachment'
, acceptTransitGatewayVpcAttachment_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
.
AcceptTransitGatewayVpcAttachment
, acceptTransitGatewayVpcAttachment_transitGatewayAttachmentId
- The ID of the attachment.
Request Lenses
acceptTransitGatewayVpcAttachment_dryRun :: Lens' AcceptTransitGatewayVpcAttachment (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
.
acceptTransitGatewayVpcAttachment_transitGatewayAttachmentId :: Lens' AcceptTransitGatewayVpcAttachment Text Source #
The ID of the attachment.
Destructuring the Response
data AcceptTransitGatewayVpcAttachmentResponse Source #
See: newAcceptTransitGatewayVpcAttachmentResponse
smart constructor.
AcceptTransitGatewayVpcAttachmentResponse' | |
|
Instances
newAcceptTransitGatewayVpcAttachmentResponse Source #
Create a value of AcceptTransitGatewayVpcAttachmentResponse
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:transitGatewayVpcAttachment:AcceptTransitGatewayVpcAttachmentResponse'
, acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment
- The VPC attachment.
$sel:httpStatus:AcceptTransitGatewayVpcAttachmentResponse'
, acceptTransitGatewayVpcAttachmentResponse_httpStatus
- The response's http status code.
Response Lenses
acceptTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens' AcceptTransitGatewayVpcAttachmentResponse (Maybe TransitGatewayVpcAttachment) Source #
The VPC attachment.
acceptTransitGatewayVpcAttachmentResponse_httpStatus :: Lens' AcceptTransitGatewayVpcAttachmentResponse Int Source #
The response's http status code.