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 |
Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, or egress-only Internet gateway.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .
- replaceRoute :: Text -> ReplaceRoute
- data ReplaceRoute
- rrVPCPeeringConnectionId :: Lens' ReplaceRoute (Maybe Text)
- rrInstanceId :: Lens' ReplaceRoute (Maybe Text)
- rrEgressOnlyInternetGatewayId :: Lens' ReplaceRoute (Maybe Text)
- rrDestinationIPv6CidrBlock :: Lens' ReplaceRoute (Maybe Text)
- rrNatGatewayId :: Lens' ReplaceRoute (Maybe Text)
- rrNetworkInterfaceId :: Lens' ReplaceRoute (Maybe Text)
- rrGatewayId :: Lens' ReplaceRoute (Maybe Text)
- rrDryRun :: Lens' ReplaceRoute (Maybe Bool)
- rrDestinationCidrBlock :: Lens' ReplaceRoute (Maybe Text)
- rrRouteTableId :: Lens' ReplaceRoute Text
- replaceRouteResponse :: ReplaceRouteResponse
- data ReplaceRouteResponse
Creating a Request
Creates a value of ReplaceRoute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrVPCPeeringConnectionId
- The ID of a VPC peering connection.rrInstanceId
- The ID of a NAT instance in your VPC.rrEgressOnlyInternetGatewayId
- [IPv6 traffic only] The ID of an egress-only Internet gateway.rrDestinationIPv6CidrBlock
- The IPv6 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.rrNatGatewayId
- [IPv4 traffic only] The ID of a NAT gateway.rrNetworkInterfaceId
- The ID of a network interface.rrGatewayId
- The ID of an Internet gateway or virtual private gateway.rrDryRun
- 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
.rrDestinationCidrBlock
- The IPv4 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.rrRouteTableId
- The ID of the route table.
data ReplaceRoute Source #
Contains the parameters for ReplaceRoute.
See: replaceRoute
smart constructor.
Request Lenses
rrVPCPeeringConnectionId :: Lens' ReplaceRoute (Maybe Text) Source #
The ID of a VPC peering connection.
rrInstanceId :: Lens' ReplaceRoute (Maybe Text) Source #
The ID of a NAT instance in your VPC.
rrEgressOnlyInternetGatewayId :: Lens' ReplaceRoute (Maybe Text) Source #
- IPv6 traffic only
- The ID of an egress-only Internet gateway.
rrDestinationIPv6CidrBlock :: Lens' ReplaceRoute (Maybe Text) Source #
The IPv6 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
rrNatGatewayId :: Lens' ReplaceRoute (Maybe Text) Source #
- IPv4 traffic only
- The ID of a NAT gateway.
rrNetworkInterfaceId :: Lens' ReplaceRoute (Maybe Text) Source #
The ID of a network interface.
rrGatewayId :: Lens' ReplaceRoute (Maybe Text) Source #
The ID of an Internet gateway or virtual private gateway.
rrDryRun :: Lens' ReplaceRoute (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
.
rrDestinationCidrBlock :: Lens' ReplaceRoute (Maybe Text) Source #
The IPv4 CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
rrRouteTableId :: Lens' ReplaceRoute Text Source #
The ID of the route table.
Destructuring the Response
replaceRouteResponse :: ReplaceRouteResponse Source #
Creates a value of ReplaceRouteResponse
with the minimum fields required to make a request.
data ReplaceRouteResponse Source #
See: replaceRouteResponse
smart constructor.