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 |
Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
Synopsis
- data AssociateRouteTable = AssociateRouteTable' {}
- newAssociateRouteTable :: Text -> AssociateRouteTable
- associateRouteTable_dryRun :: Lens' AssociateRouteTable (Maybe Bool)
- associateRouteTable_gatewayId :: Lens' AssociateRouteTable (Maybe Text)
- associateRouteTable_subnetId :: Lens' AssociateRouteTable (Maybe Text)
- associateRouteTable_routeTableId :: Lens' AssociateRouteTable Text
- data AssociateRouteTableResponse = AssociateRouteTableResponse' {}
- newAssociateRouteTableResponse :: Int -> AssociateRouteTableResponse
- associateRouteTableResponse_associationId :: Lens' AssociateRouteTableResponse (Maybe Text)
- associateRouteTableResponse_associationState :: Lens' AssociateRouteTableResponse (Maybe RouteTableAssociationState)
- associateRouteTableResponse_httpStatus :: Lens' AssociateRouteTableResponse Int
Creating a Request
data AssociateRouteTable Source #
See: newAssociateRouteTable
smart constructor.
AssociateRouteTable' | |
|
Instances
newAssociateRouteTable Source #
Create a value of AssociateRouteTable
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:AssociateRouteTable'
, associateRouteTable_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
.
AssociateRouteTable
, associateRouteTable_gatewayId
- The ID of the internet gateway or virtual private gateway.
AssociateRouteTable
, associateRouteTable_subnetId
- The ID of the subnet.
AssociateRouteTable
, associateRouteTable_routeTableId
- The ID of the route table.
Request Lenses
associateRouteTable_dryRun :: Lens' AssociateRouteTable (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
.
associateRouteTable_gatewayId :: Lens' AssociateRouteTable (Maybe Text) Source #
The ID of the internet gateway or virtual private gateway.
associateRouteTable_subnetId :: Lens' AssociateRouteTable (Maybe Text) Source #
The ID of the subnet.
associateRouteTable_routeTableId :: Lens' AssociateRouteTable Text Source #
The ID of the route table.
Destructuring the Response
data AssociateRouteTableResponse Source #
See: newAssociateRouteTableResponse
smart constructor.
AssociateRouteTableResponse' | |
|
Instances
newAssociateRouteTableResponse Source #
Create a value of AssociateRouteTableResponse
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:
AssociateRouteTableResponse
, associateRouteTableResponse_associationId
- The route table association ID. This ID is required for disassociating
the route table.
AssociateRouteTableResponse
, associateRouteTableResponse_associationState
- The state of the association.
$sel:httpStatus:AssociateRouteTableResponse'
, associateRouteTableResponse_httpStatus
- The response's http status code.
Response Lenses
associateRouteTableResponse_associationId :: Lens' AssociateRouteTableResponse (Maybe Text) Source #
The route table association ID. This ID is required for disassociating the route table.
associateRouteTableResponse_associationState :: Lens' AssociateRouteTableResponse (Maybe RouteTableAssociationState) Source #
The state of the association.
associateRouteTableResponse_httpStatus :: Lens' AssociateRouteTableResponse Int Source #
The response's http status code.