Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Direct Connect gateway, which is an intermediate object that enables you to connect a set of virtual interfaces and virtual private gateways. A Direct Connect gateway is global and visible in any Amazon Web Services Region after it is created. The virtual interfaces and virtual private gateways that are connected through a Direct Connect gateway can be in different Amazon Web Services Regions. This enables you to connect to a VPC in any Region, regardless of the Region in which the virtual interfaces are located, and pass traffic between them.
Synopsis
- data CreateDirectConnectGateway = CreateDirectConnectGateway' {}
- newCreateDirectConnectGateway :: Text -> CreateDirectConnectGateway
- createDirectConnectGateway_amazonSideAsn :: Lens' CreateDirectConnectGateway (Maybe Integer)
- createDirectConnectGateway_directConnectGatewayName :: Lens' CreateDirectConnectGateway Text
- data CreateDirectConnectGatewayResponse = CreateDirectConnectGatewayResponse' {}
- newCreateDirectConnectGatewayResponse :: Int -> CreateDirectConnectGatewayResponse
- createDirectConnectGatewayResponse_directConnectGateway :: Lens' CreateDirectConnectGatewayResponse (Maybe DirectConnectGateway)
- createDirectConnectGatewayResponse_httpStatus :: Lens' CreateDirectConnectGatewayResponse Int
Creating a Request
data CreateDirectConnectGateway Source #
See: newCreateDirectConnectGateway
smart constructor.
CreateDirectConnectGateway' | |
|
Instances
newCreateDirectConnectGateway Source #
Create a value of CreateDirectConnectGateway
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:amazonSideAsn:CreateDirectConnectGateway'
, createDirectConnectGateway_amazonSideAsn
- The autonomous system number (ASN) for Border Gateway Protocol (BGP) to
be configured on the Amazon side of the connection. The ASN must be in
the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294.
The default is 64512.
$sel:directConnectGatewayName:CreateDirectConnectGateway'
, createDirectConnectGateway_directConnectGatewayName
- The name of the Direct Connect gateway.
Request Lenses
createDirectConnectGateway_amazonSideAsn :: Lens' CreateDirectConnectGateway (Maybe Integer) Source #
The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
createDirectConnectGateway_directConnectGatewayName :: Lens' CreateDirectConnectGateway Text Source #
The name of the Direct Connect gateway.
Destructuring the Response
data CreateDirectConnectGatewayResponse Source #
See: newCreateDirectConnectGatewayResponse
smart constructor.
CreateDirectConnectGatewayResponse' | |
|
Instances
newCreateDirectConnectGatewayResponse Source #
Create a value of CreateDirectConnectGatewayResponse
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:directConnectGateway:CreateDirectConnectGatewayResponse'
, createDirectConnectGatewayResponse_directConnectGateway
- The Direct Connect gateway.
$sel:httpStatus:CreateDirectConnectGatewayResponse'
, createDirectConnectGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createDirectConnectGatewayResponse_directConnectGateway :: Lens' CreateDirectConnectGatewayResponse (Maybe DirectConnectGateway) Source #
The Direct Connect gateway.
createDirectConnectGatewayResponse_httpStatus :: Lens' CreateDirectConnectGatewayResponse Int Source #
The response's http status code.