| 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 |
Amazonka.DirectConnect.CreateDirectConnectGatewayAssociation
Description
Creates an association between a Direct Connect gateway and a virtual private gateway. The virtual private gateway must be attached to a VPC and must not be associated with another Direct Connect gateway.
Synopsis
- data CreateDirectConnectGatewayAssociation = CreateDirectConnectGatewayAssociation' {}
- newCreateDirectConnectGatewayAssociation :: Text -> CreateDirectConnectGatewayAssociation
- createDirectConnectGatewayAssociation_addAllowedPrefixesToDirectConnectGateway :: Lens' CreateDirectConnectGatewayAssociation (Maybe [RouteFilterPrefix])
- createDirectConnectGatewayAssociation_gatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text)
- createDirectConnectGatewayAssociation_virtualGatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text)
- createDirectConnectGatewayAssociation_directConnectGatewayId :: Lens' CreateDirectConnectGatewayAssociation Text
- data CreateDirectConnectGatewayAssociationResponse = CreateDirectConnectGatewayAssociationResponse' {}
- newCreateDirectConnectGatewayAssociationResponse :: Int -> CreateDirectConnectGatewayAssociationResponse
- createDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation :: Lens' CreateDirectConnectGatewayAssociationResponse (Maybe DirectConnectGatewayAssociation)
- createDirectConnectGatewayAssociationResponse_httpStatus :: Lens' CreateDirectConnectGatewayAssociationResponse Int
Creating a Request
data CreateDirectConnectGatewayAssociation Source #
See: newCreateDirectConnectGatewayAssociation smart constructor.
Constructors
| CreateDirectConnectGatewayAssociation' | |
Fields
| |
Instances
newCreateDirectConnectGatewayAssociation Source #
Create a value of CreateDirectConnectGatewayAssociation 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:addAllowedPrefixesToDirectConnectGateway:CreateDirectConnectGatewayAssociation', createDirectConnectGatewayAssociation_addAllowedPrefixesToDirectConnectGateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
$sel:gatewayId:CreateDirectConnectGatewayAssociation', createDirectConnectGatewayAssociation_gatewayId - The ID of the virtual private gateway or transit gateway.
CreateDirectConnectGatewayAssociation, createDirectConnectGatewayAssociation_virtualGatewayId - The ID of the virtual private gateway.
CreateDirectConnectGatewayAssociation, createDirectConnectGatewayAssociation_directConnectGatewayId - The ID of the Direct Connect gateway.
Request Lenses
createDirectConnectGatewayAssociation_addAllowedPrefixesToDirectConnectGateway :: Lens' CreateDirectConnectGatewayAssociation (Maybe [RouteFilterPrefix]) Source #
The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
createDirectConnectGatewayAssociation_gatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text) Source #
The ID of the virtual private gateway or transit gateway.
createDirectConnectGatewayAssociation_virtualGatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text) Source #
The ID of the virtual private gateway.
createDirectConnectGatewayAssociation_directConnectGatewayId :: Lens' CreateDirectConnectGatewayAssociation Text Source #
The ID of the Direct Connect gateway.
Destructuring the Response
data CreateDirectConnectGatewayAssociationResponse Source #
See: newCreateDirectConnectGatewayAssociationResponse smart constructor.
Constructors
| CreateDirectConnectGatewayAssociationResponse' | |
Fields
| |
Instances
newCreateDirectConnectGatewayAssociationResponse Source #
Arguments
| :: Int |
|
| -> CreateDirectConnectGatewayAssociationResponse |
Create a value of CreateDirectConnectGatewayAssociationResponse 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:directConnectGatewayAssociation:CreateDirectConnectGatewayAssociationResponse', createDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation - The association to be created.
$sel:httpStatus:CreateDirectConnectGatewayAssociationResponse', createDirectConnectGatewayAssociationResponse_httpStatus - The response's http status code.
Response Lenses
createDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation :: Lens' CreateDirectConnectGatewayAssociationResponse (Maybe DirectConnectGatewayAssociation) Source #
The association to be created.
createDirectConnectGatewayAssociationResponse_httpStatus :: Lens' CreateDirectConnectGatewayAssociationResponse Int Source #
The response's http status code.