Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet 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 from the subnet later. A route table can be associated with multiple subnets.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .
- associateRouteTable :: Text -> Text -> AssociateRouteTable
- data AssociateRouteTable
- artDryRun :: Lens' AssociateRouteTable (Maybe Bool)
- artSubnetId :: Lens' AssociateRouteTable Text
- artRouteTableId :: Lens' AssociateRouteTable Text
- associateRouteTableResponse :: Int -> AssociateRouteTableResponse
- data AssociateRouteTableResponse
- artrsAssociationId :: Lens' AssociateRouteTableResponse (Maybe Text)
- artrsResponseStatus :: Lens' AssociateRouteTableResponse Int
Creating a Request
Creates a value of AssociateRouteTable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
artDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.artSubnetId
- The ID of the subnet.artRouteTableId
- The ID of the route table.
data AssociateRouteTable Source #
Contains the parameters for AssociateRouteTable.
See: associateRouteTable
smart constructor.
Request Lenses
artDryRun :: 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
.
artSubnetId :: Lens' AssociateRouteTable Text Source #
The ID of the subnet.
artRouteTableId :: Lens' AssociateRouteTable Text Source #
The ID of the route table.
Destructuring the Response
associateRouteTableResponse Source #
Creates a value of AssociateRouteTableResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
artrsAssociationId
- The route table association ID (needed to disassociate the route table).artrsResponseStatus
- -- | The response status code.
data AssociateRouteTableResponse Source #
Contains the output of AssociateRouteTable.
See: associateRouteTableResponse
smart constructor.
Response Lenses
artrsAssociationId :: Lens' AssociateRouteTableResponse (Maybe Text) Source #
The route table association ID (needed to disassociate the route table).
artrsResponseStatus :: Lens' AssociateRouteTableResponse Int Source #
- - | The response status code.