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 |
Creates a transit gateway.
You can use a transit gateway to interconnect your virtual private
clouds (VPC) and on-premises networks. After the transit gateway enters
the available
state, you can attach your VPCs and VPN connections to
the transit gateway.
To attach your VPCs, use CreateTransitGatewayVpcAttachment.
To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.
When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.
Synopsis
- data CreateTransitGateway = CreateTransitGateway' {}
- newCreateTransitGateway :: CreateTransitGateway
- createTransitGateway_description :: Lens' CreateTransitGateway (Maybe Text)
- createTransitGateway_dryRun :: Lens' CreateTransitGateway (Maybe Bool)
- createTransitGateway_options :: Lens' CreateTransitGateway (Maybe TransitGatewayRequestOptions)
- createTransitGateway_tagSpecifications :: Lens' CreateTransitGateway (Maybe [TagSpecification])
- data CreateTransitGatewayResponse = CreateTransitGatewayResponse' {}
- newCreateTransitGatewayResponse :: Int -> CreateTransitGatewayResponse
- createTransitGatewayResponse_transitGateway :: Lens' CreateTransitGatewayResponse (Maybe TransitGateway)
- createTransitGatewayResponse_httpStatus :: Lens' CreateTransitGatewayResponse Int
Creating a Request
data CreateTransitGateway Source #
See: newCreateTransitGateway
smart constructor.
CreateTransitGateway' | |
|
Instances
newCreateTransitGateway :: CreateTransitGateway Source #
Create a value of CreateTransitGateway
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:
CreateTransitGateway
, createTransitGateway_description
- A description of the transit gateway.
$sel:dryRun:CreateTransitGateway'
, createTransitGateway_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
.
CreateTransitGateway
, createTransitGateway_options
- The transit gateway options.
CreateTransitGateway
, createTransitGateway_tagSpecifications
- The tags to apply to the transit gateway.
Request Lenses
createTransitGateway_description :: Lens' CreateTransitGateway (Maybe Text) Source #
A description of the transit gateway.
createTransitGateway_dryRun :: Lens' CreateTransitGateway (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
.
createTransitGateway_options :: Lens' CreateTransitGateway (Maybe TransitGatewayRequestOptions) Source #
The transit gateway options.
createTransitGateway_tagSpecifications :: Lens' CreateTransitGateway (Maybe [TagSpecification]) Source #
The tags to apply to the transit gateway.
Destructuring the Response
data CreateTransitGatewayResponse Source #
See: newCreateTransitGatewayResponse
smart constructor.
CreateTransitGatewayResponse' | |
|
Instances
newCreateTransitGatewayResponse Source #
Create a value of CreateTransitGatewayResponse
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:
CreateTransitGatewayResponse
, createTransitGatewayResponse_transitGateway
- Information about the transit gateway.
$sel:httpStatus:CreateTransitGatewayResponse'
, createTransitGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createTransitGatewayResponse_transitGateway :: Lens' CreateTransitGatewayResponse (Maybe TransitGateway) Source #
Information about the transit gateway.
createTransitGatewayResponse_httpStatus :: Lens' CreateTransitGatewayResponse Int Source #
The response's http status code.