Copyright | (c) 2013-2021 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 |
Updates an existing route for a specified service mesh and virtual router.
Synopsis
- data UpdateRoute = UpdateRoute' {}
- newUpdateRoute :: Text -> Text -> RouteSpec -> Text -> UpdateRoute
- updateRoute_clientToken :: Lens' UpdateRoute (Maybe Text)
- updateRoute_meshOwner :: Lens' UpdateRoute (Maybe Text)
- updateRoute_meshName :: Lens' UpdateRoute Text
- updateRoute_routeName :: Lens' UpdateRoute Text
- updateRoute_spec :: Lens' UpdateRoute RouteSpec
- updateRoute_virtualRouterName :: Lens' UpdateRoute Text
- data UpdateRouteResponse = UpdateRouteResponse' {
- httpStatus :: Int
- route :: RouteData
- newUpdateRouteResponse :: Int -> RouteData -> UpdateRouteResponse
- updateRouteResponse_httpStatus :: Lens' UpdateRouteResponse Int
- updateRouteResponse_route :: Lens' UpdateRouteResponse RouteData
Creating a Request
data UpdateRoute Source #
See: newUpdateRoute
smart constructor.
UpdateRoute' | |
|
Instances
:: Text | |
-> Text | |
-> RouteSpec | |
-> Text | |
-> UpdateRoute |
Create a value of UpdateRoute
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:clientToken:UpdateRoute'
, updateRoute_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. Up to 36 letters, numbers, hyphens, and
underscores are allowed.
$sel:meshOwner:UpdateRoute'
, updateRoute_meshOwner
- The AWS IAM account ID of the service mesh owner. If the account ID is
not your own, then it's the ID of the account that shared the mesh with
your account. For more information about mesh sharing, see
Working with shared meshes.
$sel:meshName:UpdateRoute'
, updateRoute_meshName
- The name of the service mesh that the route resides in.
$sel:routeName:UpdateRoute'
, updateRoute_routeName
- The name of the route to update.
$sel:spec:UpdateRoute'
, updateRoute_spec
- The new route specification to apply. This overwrites the existing data.
$sel:virtualRouterName:UpdateRoute'
, updateRoute_virtualRouterName
- The name of the virtual router that the route is associated with.
Request Lenses
updateRoute_clientToken :: Lens' UpdateRoute (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
updateRoute_meshOwner :: Lens' UpdateRoute (Maybe Text) Source #
The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
updateRoute_meshName :: Lens' UpdateRoute Text Source #
The name of the service mesh that the route resides in.
updateRoute_routeName :: Lens' UpdateRoute Text Source #
The name of the route to update.
updateRoute_spec :: Lens' UpdateRoute RouteSpec Source #
The new route specification to apply. This overwrites the existing data.
updateRoute_virtualRouterName :: Lens' UpdateRoute Text Source #
The name of the virtual router that the route is associated with.
Destructuring the Response
data UpdateRouteResponse Source #
See: newUpdateRouteResponse
smart constructor.
UpdateRouteResponse' | |
|
Instances
newUpdateRouteResponse Source #
:: Int | |
-> RouteData | |
-> UpdateRouteResponse |
Create a value of UpdateRouteResponse
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:httpStatus:UpdateRouteResponse'
, updateRouteResponse_httpStatus
- The response's http status code.
$sel:route:UpdateRouteResponse'
, updateRouteResponse_route
- A full description of the route that was updated.
Response Lenses
updateRouteResponse_httpStatus :: Lens' UpdateRouteResponse Int Source #
The response's http status code.
updateRouteResponse_route :: Lens' UpdateRouteResponse RouteData Source #
A full description of the route that was updated.