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 AmazonVirtual Private Cloud User Guide.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-AssociateRouteTable.html
- data AssociateRouteTable
- associateRouteTable :: Text -> Text -> AssociateRouteTable
- artDryRun :: Lens' AssociateRouteTable (Maybe Bool)
- artRouteTableId :: Lens' AssociateRouteTable Text
- artSubnetId :: Lens' AssociateRouteTable Text
- data AssociateRouteTableResponse
- associateRouteTableResponse :: AssociateRouteTableResponse
- artrAssociationId :: Lens' AssociateRouteTableResponse (Maybe Text)
Request
data AssociateRouteTable Source
Request constructor
AssociateRouteTable
constructor.
The fields accessible through corresponding lenses are:
artDryRun
::
Maybe
Bool
artRouteTableId
::
Text
artSubnetId
::
Text
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
.
artRouteTableId :: Lens' AssociateRouteTable Text Source
The ID of the route table.
artSubnetId :: Lens' AssociateRouteTable Text Source
The ID of the subnet.
Response
Response constructor
associateRouteTableResponse :: AssociateRouteTableResponse Source
AssociateRouteTableResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
artrAssociationId :: Lens' AssociateRouteTableResponse (Maybe Text) Source
The route table association ID (needed to disassociate the route table).