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 |
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.
Synopsis
- data ReplaceRouteTableAssociation = ReplaceRouteTableAssociation' {
- dryRun :: Maybe Bool
- associationId :: Text
- routeTableId :: Text
- newReplaceRouteTableAssociation :: Text -> Text -> ReplaceRouteTableAssociation
- replaceRouteTableAssociation_dryRun :: Lens' ReplaceRouteTableAssociation (Maybe Bool)
- replaceRouteTableAssociation_associationId :: Lens' ReplaceRouteTableAssociation Text
- replaceRouteTableAssociation_routeTableId :: Lens' ReplaceRouteTableAssociation Text
- data ReplaceRouteTableAssociationResponse = ReplaceRouteTableAssociationResponse' {}
- newReplaceRouteTableAssociationResponse :: Int -> ReplaceRouteTableAssociationResponse
- replaceRouteTableAssociationResponse_associationState :: Lens' ReplaceRouteTableAssociationResponse (Maybe RouteTableAssociationState)
- replaceRouteTableAssociationResponse_newAssociationId :: Lens' ReplaceRouteTableAssociationResponse (Maybe Text)
- replaceRouteTableAssociationResponse_httpStatus :: Lens' ReplaceRouteTableAssociationResponse Int
Creating a Request
data ReplaceRouteTableAssociation Source #
See: newReplaceRouteTableAssociation
smart constructor.
ReplaceRouteTableAssociation' | |
|
Instances
newReplaceRouteTableAssociation Source #
:: Text | |
-> Text | |
-> ReplaceRouteTableAssociation |
Create a value of ReplaceRouteTableAssociation
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:ReplaceRouteTableAssociation'
, replaceRouteTableAssociation_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
.
ReplaceRouteTableAssociation
, replaceRouteTableAssociation_associationId
- The association ID.
ReplaceRouteTableAssociation
, replaceRouteTableAssociation_routeTableId
- The ID of the new route table to associate with the subnet.
Request Lenses
replaceRouteTableAssociation_dryRun :: 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
.
replaceRouteTableAssociation_associationId :: Lens' ReplaceRouteTableAssociation Text Source #
The association ID.
replaceRouteTableAssociation_routeTableId :: Lens' ReplaceRouteTableAssociation Text Source #
The ID of the new route table to associate with the subnet.
Destructuring the Response
data ReplaceRouteTableAssociationResponse Source #
See: newReplaceRouteTableAssociationResponse
smart constructor.
ReplaceRouteTableAssociationResponse' | |
|
Instances
newReplaceRouteTableAssociationResponse Source #
Create a value of ReplaceRouteTableAssociationResponse
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:
ReplaceRouteTableAssociationResponse
, replaceRouteTableAssociationResponse_associationState
- The state of the association.
$sel:newAssociationId':ReplaceRouteTableAssociationResponse'
, replaceRouteTableAssociationResponse_newAssociationId
- The ID of the new association.
$sel:httpStatus:ReplaceRouteTableAssociationResponse'
, replaceRouteTableAssociationResponse_httpStatus
- The response's http status code.
Response Lenses
replaceRouteTableAssociationResponse_associationState :: Lens' ReplaceRouteTableAssociationResponse (Maybe RouteTableAssociationState) Source #
The state of the association.
replaceRouteTableAssociationResponse_newAssociationId :: Lens' ReplaceRouteTableAssociationResponse (Maybe Text) Source #
The ID of the new association.
replaceRouteTableAssociationResponse_httpStatus :: Lens' ReplaceRouteTableAssociationResponse Int Source #
The response's http status code.