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 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_virtualGatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text)
- createDirectConnectGatewayAssociation_addAllowedPrefixesToDirectConnectGateway :: Lens' CreateDirectConnectGatewayAssociation (Maybe [RouteFilterPrefix])
- createDirectConnectGatewayAssociation_gatewayId :: 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.
CreateDirectConnectGatewayAssociation' | |
|
Instances
newCreateDirectConnectGatewayAssociation Source #
:: Text |
|
-> CreateDirectConnectGatewayAssociation |
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:virtualGatewayId:CreateDirectConnectGatewayAssociation'
, createDirectConnectGatewayAssociation_virtualGatewayId
- The ID of the virtual private gateway.
$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.
$sel:directConnectGatewayId:CreateDirectConnectGatewayAssociation'
, createDirectConnectGatewayAssociation_directConnectGatewayId
- The ID of the Direct Connect gateway.
Request Lenses
createDirectConnectGatewayAssociation_virtualGatewayId :: Lens' CreateDirectConnectGatewayAssociation (Maybe Text) Source #
The ID of the virtual private gateway.
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_directConnectGatewayId :: Lens' CreateDirectConnectGatewayAssociation Text Source #
The ID of the Direct Connect gateway.
Destructuring the Response
data CreateDirectConnectGatewayAssociationResponse Source #
See: newCreateDirectConnectGatewayAssociationResponse
smart constructor.
CreateDirectConnectGatewayAssociationResponse' | |
|
Instances
newCreateDirectConnectGatewayAssociationResponse Source #
:: 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.