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 |
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
Synopsis
- data UpdateRoute = UpdateRoute' {}
- newUpdateRoute :: RouteActivationState -> Text -> Text -> Text -> UpdateRoute
- updateRoute_activationState :: Lens' UpdateRoute RouteActivationState
- updateRoute_applicationIdentifier :: Lens' UpdateRoute Text
- updateRoute_environmentIdentifier :: Lens' UpdateRoute Text
- updateRoute_routeIdentifier :: Lens' UpdateRoute Text
- data UpdateRouteResponse = UpdateRouteResponse' {
- applicationId :: Maybe Text
- arn :: Maybe Text
- lastUpdatedTime :: Maybe POSIX
- routeId :: Maybe Text
- serviceId :: Maybe Text
- state :: Maybe RouteState
- httpStatus :: Int
- newUpdateRouteResponse :: Int -> UpdateRouteResponse
- updateRouteResponse_applicationId :: Lens' UpdateRouteResponse (Maybe Text)
- updateRouteResponse_arn :: Lens' UpdateRouteResponse (Maybe Text)
- updateRouteResponse_lastUpdatedTime :: Lens' UpdateRouteResponse (Maybe UTCTime)
- updateRouteResponse_routeId :: Lens' UpdateRouteResponse (Maybe Text)
- updateRouteResponse_serviceId :: Lens' UpdateRouteResponse (Maybe Text)
- updateRouteResponse_state :: Lens' UpdateRouteResponse (Maybe RouteState)
- updateRouteResponse_httpStatus :: Lens' UpdateRouteResponse Int
Creating a Request
data UpdateRoute Source #
See: newUpdateRoute
smart constructor.
UpdateRoute' | |
|
Instances
:: RouteActivationState | |
-> Text | |
-> Text | |
-> 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:
UpdateRoute
, updateRoute_activationState
- If set to ACTIVE
, traffic is forwarded to this route’s service after
the route is updated.
$sel:applicationIdentifier:UpdateRoute'
, updateRoute_applicationIdentifier
- The ID of the application within which the route is being updated.
$sel:environmentIdentifier:UpdateRoute'
, updateRoute_environmentIdentifier
- The ID of the environment in which the route is being updated.
$sel:routeIdentifier:UpdateRoute'
, updateRoute_routeIdentifier
- The unique identifier of the route to update.
Request Lenses
updateRoute_activationState :: Lens' UpdateRoute RouteActivationState Source #
If set to ACTIVE
, traffic is forwarded to this route’s service after
the route is updated.
updateRoute_applicationIdentifier :: Lens' UpdateRoute Text Source #
The ID of the application within which the route is being updated.
updateRoute_environmentIdentifier :: Lens' UpdateRoute Text Source #
The ID of the environment in which the route is being updated.
updateRoute_routeIdentifier :: Lens' UpdateRoute Text Source #
The unique identifier of the route to update.
Destructuring the Response
data UpdateRouteResponse Source #
See: newUpdateRouteResponse
smart constructor.
UpdateRouteResponse' | |
|
Instances
newUpdateRouteResponse Source #
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:
UpdateRouteResponse
, updateRouteResponse_applicationId
- The ID of the application in which the route is being updated.
UpdateRouteResponse
, updateRouteResponse_arn
- The Amazon Resource Name (ARN) of the route. The format for this ARN is
arn:aws:refactor-spaces:
region
:
account-id
:
resource-type/resource-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the Amazon Web Services General Reference.
UpdateRouteResponse
, updateRouteResponse_lastUpdatedTime
- A timestamp that indicates when the route was last updated.
UpdateRouteResponse
, updateRouteResponse_routeId
- The unique identifier of the route.
UpdateRouteResponse
, updateRouteResponse_serviceId
- The ID of service in which the route was created. Traffic that matches
this route is forwarded to this service.
UpdateRouteResponse
, updateRouteResponse_state
- The current state of the route.
$sel:httpStatus:UpdateRouteResponse'
, updateRouteResponse_httpStatus
- The response's http status code.
Response Lenses
updateRouteResponse_applicationId :: Lens' UpdateRouteResponse (Maybe Text) Source #
The ID of the application in which the route is being updated.
updateRouteResponse_arn :: Lens' UpdateRouteResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the route. The format for this ARN is
arn:aws:refactor-spaces:
region
:
account-id
:
resource-type/resource-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the Amazon Web Services General Reference.
updateRouteResponse_lastUpdatedTime :: Lens' UpdateRouteResponse (Maybe UTCTime) Source #
A timestamp that indicates when the route was last updated.
updateRouteResponse_routeId :: Lens' UpdateRouteResponse (Maybe Text) Source #
The unique identifier of the route.
updateRouteResponse_serviceId :: Lens' UpdateRouteResponse (Maybe Text) Source #
The ID of service in which the route was created. Traffic that matches this route is forwarded to this service.
updateRouteResponse_state :: Lens' UpdateRouteResponse (Maybe RouteState) Source #
The current state of the route.
updateRouteResponse_httpStatus :: Lens' UpdateRouteResponse Int Source #
The response's http status code.