Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .
You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.
Synopsis
- replaceRouteTableAssociation :: Text -> Text -> ReplaceRouteTableAssociation
- data ReplaceRouteTableAssociation
- rrtaDryRun :: Lens' ReplaceRouteTableAssociation (Maybe Bool)
- rrtaAssociationId :: Lens' ReplaceRouteTableAssociation Text
- rrtaRouteTableId :: Lens' ReplaceRouteTableAssociation Text
- replaceRouteTableAssociationResponse :: Int -> ReplaceRouteTableAssociationResponse
- data ReplaceRouteTableAssociationResponse
- rrtarsNewAssociationId :: Lens' ReplaceRouteTableAssociationResponse (Maybe Text)
- rrtarsResponseStatus :: Lens' ReplaceRouteTableAssociationResponse Int
Creating a Request
replaceRouteTableAssociation Source #
Creates a value of ReplaceRouteTableAssociation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrtaDryRun
- 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
.rrtaAssociationId
- The association ID.rrtaRouteTableId
- The ID of the new route table to associate with the subnet.
data ReplaceRouteTableAssociation Source #
Contains the parameters for ReplaceRouteTableAssociation.
See: replaceRouteTableAssociation
smart constructor.
Instances
Request Lenses
rrtaDryRun :: Lens' ReplaceRouteTableAssociation (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
.
rrtaAssociationId :: Lens' ReplaceRouteTableAssociation Text Source #
The association ID.
rrtaRouteTableId :: Lens' ReplaceRouteTableAssociation Text Source #
The ID of the new route table to associate with the subnet.
Destructuring the Response
replaceRouteTableAssociationResponse Source #
Creates a value of ReplaceRouteTableAssociationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrtarsNewAssociationId
- The ID of the new association.rrtarsResponseStatus
- -- | The response status code.
data ReplaceRouteTableAssociationResponse Source #
Contains the output of ReplaceRouteTableAssociation.
See: replaceRouteTableAssociationResponse
smart constructor.
Instances
Response Lenses
rrtarsNewAssociationId :: Lens' ReplaceRouteTableAssociationResponse (Maybe Text) Source #
The ID of the new association.
rrtarsResponseStatus :: Lens' ReplaceRouteTableAssociationResponse Int Source #
- - | The response status code.