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 |
Creates a static route for the specified local gateway route table. You must specify one of the following targets:
LocalGatewayVirtualInterfaceGroupId
NetworkInterfaceId
Synopsis
- data CreateLocalGatewayRoute = CreateLocalGatewayRoute' {}
- newCreateLocalGatewayRoute :: Text -> Text -> CreateLocalGatewayRoute
- createLocalGatewayRoute_dryRun :: Lens' CreateLocalGatewayRoute (Maybe Bool)
- createLocalGatewayRoute_localGatewayVirtualInterfaceGroupId :: Lens' CreateLocalGatewayRoute (Maybe Text)
- createLocalGatewayRoute_networkInterfaceId :: Lens' CreateLocalGatewayRoute (Maybe Text)
- createLocalGatewayRoute_destinationCidrBlock :: Lens' CreateLocalGatewayRoute Text
- createLocalGatewayRoute_localGatewayRouteTableId :: Lens' CreateLocalGatewayRoute Text
- data CreateLocalGatewayRouteResponse = CreateLocalGatewayRouteResponse' {}
- newCreateLocalGatewayRouteResponse :: Int -> CreateLocalGatewayRouteResponse
- createLocalGatewayRouteResponse_route :: Lens' CreateLocalGatewayRouteResponse (Maybe LocalGatewayRoute)
- createLocalGatewayRouteResponse_httpStatus :: Lens' CreateLocalGatewayRouteResponse Int
Creating a Request
data CreateLocalGatewayRoute Source #
See: newCreateLocalGatewayRoute
smart constructor.
CreateLocalGatewayRoute' | |
|
Instances
newCreateLocalGatewayRoute Source #
Create a value of CreateLocalGatewayRoute
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:CreateLocalGatewayRoute'
, createLocalGatewayRoute_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
.
CreateLocalGatewayRoute
, createLocalGatewayRoute_localGatewayVirtualInterfaceGroupId
- The ID of the virtual interface group.
CreateLocalGatewayRoute
, createLocalGatewayRoute_networkInterfaceId
- The ID of the network interface.
CreateLocalGatewayRoute
, createLocalGatewayRoute_destinationCidrBlock
- The CIDR range used for destination matches. Routing decisions are based
on the most specific match.
CreateLocalGatewayRoute
, createLocalGatewayRoute_localGatewayRouteTableId
- The ID of the local gateway route table.
Request Lenses
createLocalGatewayRoute_dryRun :: Lens' CreateLocalGatewayRoute (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
.
createLocalGatewayRoute_localGatewayVirtualInterfaceGroupId :: Lens' CreateLocalGatewayRoute (Maybe Text) Source #
The ID of the virtual interface group.
createLocalGatewayRoute_networkInterfaceId :: Lens' CreateLocalGatewayRoute (Maybe Text) Source #
The ID of the network interface.
createLocalGatewayRoute_destinationCidrBlock :: Lens' CreateLocalGatewayRoute Text Source #
The CIDR range used for destination matches. Routing decisions are based on the most specific match.
createLocalGatewayRoute_localGatewayRouteTableId :: Lens' CreateLocalGatewayRoute Text Source #
The ID of the local gateway route table.
Destructuring the Response
data CreateLocalGatewayRouteResponse Source #
See: newCreateLocalGatewayRouteResponse
smart constructor.
CreateLocalGatewayRouteResponse' | |
|
Instances
Generic CreateLocalGatewayRouteResponse Source # | |
Read CreateLocalGatewayRouteResponse Source # | |
Show CreateLocalGatewayRouteResponse Source # | |
Defined in Amazonka.EC2.CreateLocalGatewayRoute | |
NFData CreateLocalGatewayRouteResponse Source # | |
Defined in Amazonka.EC2.CreateLocalGatewayRoute rnf :: CreateLocalGatewayRouteResponse -> () # | |
Eq CreateLocalGatewayRouteResponse Source # | |
type Rep CreateLocalGatewayRouteResponse Source # | |
Defined in Amazonka.EC2.CreateLocalGatewayRoute type Rep CreateLocalGatewayRouteResponse = D1 ('MetaData "CreateLocalGatewayRouteResponse" "Amazonka.EC2.CreateLocalGatewayRoute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateLocalGatewayRouteResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "route") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LocalGatewayRoute)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateLocalGatewayRouteResponse Source #
Create a value of CreateLocalGatewayRouteResponse
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:route:CreateLocalGatewayRouteResponse'
, createLocalGatewayRouteResponse_route
- Information about the route.
$sel:httpStatus:CreateLocalGatewayRouteResponse'
, createLocalGatewayRouteResponse_httpStatus
- The response's http status code.
Response Lenses
createLocalGatewayRouteResponse_route :: Lens' CreateLocalGatewayRouteResponse (Maybe LocalGatewayRoute) Source #
Information about the route.
createLocalGatewayRouteResponse_httpStatus :: Lens' CreateLocalGatewayRouteResponse Int Source #
The response's http status code.