| 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 |
Amazonka.NetworkManager.GetNetworkRoutes
Description
Gets the network routes of the specified global network.
Synopsis
- data GetNetworkRoutes = GetNetworkRoutes' {
- destinationFilters :: Maybe (HashMap Text [Text])
- exactCidrMatches :: Maybe [Text]
- longestPrefixMatches :: Maybe [Text]
- prefixListIds :: Maybe [Text]
- states :: Maybe [RouteState]
- subnetOfMatches :: Maybe [Text]
- supernetOfMatches :: Maybe [Text]
- types :: Maybe [RouteType]
- globalNetworkId :: Text
- routeTableIdentifier :: RouteTableIdentifier
- newGetNetworkRoutes :: Text -> RouteTableIdentifier -> GetNetworkRoutes
- getNetworkRoutes_destinationFilters :: Lens' GetNetworkRoutes (Maybe (HashMap Text [Text]))
- getNetworkRoutes_exactCidrMatches :: Lens' GetNetworkRoutes (Maybe [Text])
- getNetworkRoutes_longestPrefixMatches :: Lens' GetNetworkRoutes (Maybe [Text])
- getNetworkRoutes_prefixListIds :: Lens' GetNetworkRoutes (Maybe [Text])
- getNetworkRoutes_states :: Lens' GetNetworkRoutes (Maybe [RouteState])
- getNetworkRoutes_subnetOfMatches :: Lens' GetNetworkRoutes (Maybe [Text])
- getNetworkRoutes_supernetOfMatches :: Lens' GetNetworkRoutes (Maybe [Text])
- getNetworkRoutes_types :: Lens' GetNetworkRoutes (Maybe [RouteType])
- getNetworkRoutes_globalNetworkId :: Lens' GetNetworkRoutes Text
- getNetworkRoutes_routeTableIdentifier :: Lens' GetNetworkRoutes RouteTableIdentifier
- data GetNetworkRoutesResponse = GetNetworkRoutesResponse' {}
- newGetNetworkRoutesResponse :: Int -> GetNetworkRoutesResponse
- getNetworkRoutesResponse_coreNetworkSegmentEdge :: Lens' GetNetworkRoutesResponse (Maybe CoreNetworkSegmentEdgeIdentifier)
- getNetworkRoutesResponse_networkRoutes :: Lens' GetNetworkRoutesResponse (Maybe [NetworkRoute])
- getNetworkRoutesResponse_routeTableArn :: Lens' GetNetworkRoutesResponse (Maybe Text)
- getNetworkRoutesResponse_routeTableTimestamp :: Lens' GetNetworkRoutesResponse (Maybe UTCTime)
- getNetworkRoutesResponse_routeTableType :: Lens' GetNetworkRoutesResponse (Maybe RouteTableType)
- getNetworkRoutesResponse_httpStatus :: Lens' GetNetworkRoutesResponse Int
Creating a Request
data GetNetworkRoutes Source #
See: newGetNetworkRoutes smart constructor.
Constructors
| GetNetworkRoutes' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RouteTableIdentifier | |
| -> GetNetworkRoutes |
Create a value of GetNetworkRoutes 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:destinationFilters:GetNetworkRoutes', getNetworkRoutes_destinationFilters - Filter by route table destination. Possible Values:
TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.
$sel:exactCidrMatches:GetNetworkRoutes', getNetworkRoutes_exactCidrMatches - An exact CIDR block.
$sel:longestPrefixMatches:GetNetworkRoutes', getNetworkRoutes_longestPrefixMatches - The most specific route that matches the traffic (longest prefix match).
$sel:prefixListIds:GetNetworkRoutes', getNetworkRoutes_prefixListIds - The IDs of the prefix lists.
$sel:states:GetNetworkRoutes', getNetworkRoutes_states - The route states.
$sel:subnetOfMatches:GetNetworkRoutes', getNetworkRoutes_subnetOfMatches - The routes with a subnet that match the specified CIDR filter.
$sel:supernetOfMatches:GetNetworkRoutes', getNetworkRoutes_supernetOfMatches - The routes with a CIDR that encompasses the CIDR filter. Example: If you
specify 10.0.1.0/30, then the result returns 10.0.1.0/29.
$sel:types:GetNetworkRoutes', getNetworkRoutes_types - The route types.
GetNetworkRoutes, getNetworkRoutes_globalNetworkId - The ID of the global network.
$sel:routeTableIdentifier:GetNetworkRoutes', getNetworkRoutes_routeTableIdentifier - The ID of the route table.
Request Lenses
getNetworkRoutes_destinationFilters :: Lens' GetNetworkRoutes (Maybe (HashMap Text [Text])) Source #
Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.
getNetworkRoutes_exactCidrMatches :: Lens' GetNetworkRoutes (Maybe [Text]) Source #
An exact CIDR block.
getNetworkRoutes_longestPrefixMatches :: Lens' GetNetworkRoutes (Maybe [Text]) Source #
The most specific route that matches the traffic (longest prefix match).
getNetworkRoutes_prefixListIds :: Lens' GetNetworkRoutes (Maybe [Text]) Source #
The IDs of the prefix lists.
getNetworkRoutes_states :: Lens' GetNetworkRoutes (Maybe [RouteState]) Source #
The route states.
getNetworkRoutes_subnetOfMatches :: Lens' GetNetworkRoutes (Maybe [Text]) Source #
The routes with a subnet that match the specified CIDR filter.
getNetworkRoutes_supernetOfMatches :: Lens' GetNetworkRoutes (Maybe [Text]) Source #
The routes with a CIDR that encompasses the CIDR filter. Example: If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29.
getNetworkRoutes_types :: Lens' GetNetworkRoutes (Maybe [RouteType]) Source #
The route types.
getNetworkRoutes_globalNetworkId :: Lens' GetNetworkRoutes Text Source #
The ID of the global network.
getNetworkRoutes_routeTableIdentifier :: Lens' GetNetworkRoutes RouteTableIdentifier Source #
The ID of the route table.
Destructuring the Response
data GetNetworkRoutesResponse Source #
See: newGetNetworkRoutesResponse smart constructor.
Constructors
| GetNetworkRoutesResponse' | |
Fields
| |
Instances
newGetNetworkRoutesResponse Source #
Create a value of GetNetworkRoutesResponse 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:
GetNetworkRoutesResponse, getNetworkRoutesResponse_coreNetworkSegmentEdge - Describes a core network segment edge.
$sel:networkRoutes:GetNetworkRoutesResponse', getNetworkRoutesResponse_networkRoutes - The network routes.
$sel:routeTableArn:GetNetworkRoutesResponse', getNetworkRoutesResponse_routeTableArn - The ARN of the route table.
$sel:routeTableTimestamp:GetNetworkRoutesResponse', getNetworkRoutesResponse_routeTableTimestamp - The route table creation time.
$sel:routeTableType:GetNetworkRoutesResponse', getNetworkRoutesResponse_routeTableType - The route table type.
$sel:httpStatus:GetNetworkRoutesResponse', getNetworkRoutesResponse_httpStatus - The response's http status code.
Response Lenses
getNetworkRoutesResponse_coreNetworkSegmentEdge :: Lens' GetNetworkRoutesResponse (Maybe CoreNetworkSegmentEdgeIdentifier) Source #
Describes a core network segment edge.
getNetworkRoutesResponse_networkRoutes :: Lens' GetNetworkRoutesResponse (Maybe [NetworkRoute]) Source #
The network routes.
getNetworkRoutesResponse_routeTableArn :: Lens' GetNetworkRoutesResponse (Maybe Text) Source #
The ARN of the route table.
getNetworkRoutesResponse_routeTableTimestamp :: Lens' GetNetworkRoutesResponse (Maybe UTCTime) Source #
The route table creation time.
getNetworkRoutesResponse_routeTableType :: Lens' GetNetworkRoutesResponse (Maybe RouteTableType) Source #
The route table type.
getNetworkRoutesResponse_httpStatus :: Lens' GetNetworkRoutesResponse Int Source #
The response's http status code.