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 |
Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.
After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.
Synopsis
- data CreateTransitGatewayPeeringAttachment = CreateTransitGatewayPeeringAttachment' {}
- newCreateTransitGatewayPeeringAttachment :: Text -> Text -> Text -> Text -> CreateTransitGatewayPeeringAttachment
- createTransitGatewayPeeringAttachment_dryRun :: Lens' CreateTransitGatewayPeeringAttachment (Maybe Bool)
- createTransitGatewayPeeringAttachment_options :: Lens' CreateTransitGatewayPeeringAttachment (Maybe CreateTransitGatewayPeeringAttachmentRequestOptions)
- createTransitGatewayPeeringAttachment_tagSpecifications :: Lens' CreateTransitGatewayPeeringAttachment (Maybe [TagSpecification])
- createTransitGatewayPeeringAttachment_transitGatewayId :: Lens' CreateTransitGatewayPeeringAttachment Text
- createTransitGatewayPeeringAttachment_peerTransitGatewayId :: Lens' CreateTransitGatewayPeeringAttachment Text
- createTransitGatewayPeeringAttachment_peerAccountId :: Lens' CreateTransitGatewayPeeringAttachment Text
- createTransitGatewayPeeringAttachment_peerRegion :: Lens' CreateTransitGatewayPeeringAttachment Text
- data CreateTransitGatewayPeeringAttachmentResponse = CreateTransitGatewayPeeringAttachmentResponse' {}
- newCreateTransitGatewayPeeringAttachmentResponse :: Int -> CreateTransitGatewayPeeringAttachmentResponse
- createTransitGatewayPeeringAttachmentResponse_transitGatewayPeeringAttachment :: Lens' CreateTransitGatewayPeeringAttachmentResponse (Maybe TransitGatewayPeeringAttachment)
- createTransitGatewayPeeringAttachmentResponse_httpStatus :: Lens' CreateTransitGatewayPeeringAttachmentResponse Int
Creating a Request
data CreateTransitGatewayPeeringAttachment Source #
See: newCreateTransitGatewayPeeringAttachment
smart constructor.
CreateTransitGatewayPeeringAttachment' | |
|
Instances
newCreateTransitGatewayPeeringAttachment Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateTransitGatewayPeeringAttachment |
Create a value of CreateTransitGatewayPeeringAttachment
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:CreateTransitGatewayPeeringAttachment'
, createTransitGatewayPeeringAttachment_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
.
CreateTransitGatewayPeeringAttachment
, createTransitGatewayPeeringAttachment_options
- Requests a transit gateway peering attachment.
CreateTransitGatewayPeeringAttachment
, createTransitGatewayPeeringAttachment_tagSpecifications
- The tags to apply to the transit gateway peering attachment.
CreateTransitGatewayPeeringAttachment
, createTransitGatewayPeeringAttachment_transitGatewayId
- The ID of the transit gateway.
CreateTransitGatewayPeeringAttachment
, createTransitGatewayPeeringAttachment_peerTransitGatewayId
- The ID of the peer transit gateway with which to create the peering
attachment.
$sel:peerAccountId:CreateTransitGatewayPeeringAttachment'
, createTransitGatewayPeeringAttachment_peerAccountId
- The ID of the Amazon Web Services account that owns the peer transit
gateway.
$sel:peerRegion:CreateTransitGatewayPeeringAttachment'
, createTransitGatewayPeeringAttachment_peerRegion
- The Region where the peer transit gateway is located.
Request Lenses
createTransitGatewayPeeringAttachment_dryRun :: Lens' CreateTransitGatewayPeeringAttachment (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
.
createTransitGatewayPeeringAttachment_options :: Lens' CreateTransitGatewayPeeringAttachment (Maybe CreateTransitGatewayPeeringAttachmentRequestOptions) Source #
Requests a transit gateway peering attachment.
createTransitGatewayPeeringAttachment_tagSpecifications :: Lens' CreateTransitGatewayPeeringAttachment (Maybe [TagSpecification]) Source #
The tags to apply to the transit gateway peering attachment.
createTransitGatewayPeeringAttachment_transitGatewayId :: Lens' CreateTransitGatewayPeeringAttachment Text Source #
The ID of the transit gateway.
createTransitGatewayPeeringAttachment_peerTransitGatewayId :: Lens' CreateTransitGatewayPeeringAttachment Text Source #
The ID of the peer transit gateway with which to create the peering attachment.
createTransitGatewayPeeringAttachment_peerAccountId :: Lens' CreateTransitGatewayPeeringAttachment Text Source #
The ID of the Amazon Web Services account that owns the peer transit gateway.
createTransitGatewayPeeringAttachment_peerRegion :: Lens' CreateTransitGatewayPeeringAttachment Text Source #
The Region where the peer transit gateway is located.
Destructuring the Response
data CreateTransitGatewayPeeringAttachmentResponse Source #
See: newCreateTransitGatewayPeeringAttachmentResponse
smart constructor.
CreateTransitGatewayPeeringAttachmentResponse' | |
|
Instances
newCreateTransitGatewayPeeringAttachmentResponse Source #
:: Int |
|
-> CreateTransitGatewayPeeringAttachmentResponse |
Create a value of CreateTransitGatewayPeeringAttachmentResponse
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:transitGatewayPeeringAttachment:CreateTransitGatewayPeeringAttachmentResponse'
, createTransitGatewayPeeringAttachmentResponse_transitGatewayPeeringAttachment
- The transit gateway peering attachment.
$sel:httpStatus:CreateTransitGatewayPeeringAttachmentResponse'
, createTransitGatewayPeeringAttachmentResponse_httpStatus
- The response's http status code.
Response Lenses
createTransitGatewayPeeringAttachmentResponse_transitGatewayPeeringAttachment :: Lens' CreateTransitGatewayPeeringAttachmentResponse (Maybe TransitGatewayPeeringAttachment) Source #
The transit gateway peering attachment.
createTransitGatewayPeeringAttachmentResponse_httpStatus :: Lens' CreateTransitGatewayPeeringAttachmentResponse Int Source #
The response's http status code.