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 |
Gets an Amazon Web Services Migration Hub Refactor Spaces route.
Synopsis
- data GetRoute = GetRoute' {}
- newGetRoute :: Text -> Text -> Text -> GetRoute
- getRoute_applicationIdentifier :: Lens' GetRoute Text
- getRoute_environmentIdentifier :: Lens' GetRoute Text
- getRoute_routeIdentifier :: Lens' GetRoute Text
- data GetRouteResponse = GetRouteResponse' {
- applicationId :: Maybe Text
- arn :: Maybe Text
- createdByAccountId :: Maybe Text
- createdTime :: Maybe POSIX
- environmentId :: Maybe Text
- error :: Maybe ErrorResponse
- includeChildPaths :: Maybe Bool
- lastUpdatedTime :: Maybe POSIX
- methods :: Maybe [HttpMethod]
- ownerAccountId :: Maybe Text
- pathResourceToId :: Maybe (HashMap Text Text)
- routeId :: Maybe Text
- routeType :: Maybe RouteType
- serviceId :: Maybe Text
- sourcePath :: Maybe Text
- state :: Maybe RouteState
- tags :: Maybe (Sensitive (HashMap Text Text))
- httpStatus :: Int
- newGetRouteResponse :: Int -> GetRouteResponse
- getRouteResponse_applicationId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_arn :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_createdByAccountId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_createdTime :: Lens' GetRouteResponse (Maybe UTCTime)
- getRouteResponse_environmentId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_error :: Lens' GetRouteResponse (Maybe ErrorResponse)
- getRouteResponse_includeChildPaths :: Lens' GetRouteResponse (Maybe Bool)
- getRouteResponse_lastUpdatedTime :: Lens' GetRouteResponse (Maybe UTCTime)
- getRouteResponse_methods :: Lens' GetRouteResponse (Maybe [HttpMethod])
- getRouteResponse_ownerAccountId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_pathResourceToId :: Lens' GetRouteResponse (Maybe (HashMap Text Text))
- getRouteResponse_routeId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_routeType :: Lens' GetRouteResponse (Maybe RouteType)
- getRouteResponse_serviceId :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_sourcePath :: Lens' GetRouteResponse (Maybe Text)
- getRouteResponse_state :: Lens' GetRouteResponse (Maybe RouteState)
- getRouteResponse_tags :: Lens' GetRouteResponse (Maybe (HashMap Text Text))
- getRouteResponse_httpStatus :: Lens' GetRouteResponse Int
Creating a Request
See: newGetRoute
smart constructor.
GetRoute' | |
|
Instances
Create a value of GetRoute
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:applicationIdentifier:GetRoute'
, getRoute_applicationIdentifier
- The ID of the application.
$sel:environmentIdentifier:GetRoute'
, getRoute_environmentIdentifier
- The ID of the environment.
$sel:routeIdentifier:GetRoute'
, getRoute_routeIdentifier
- The ID of the route.
Request Lenses
Destructuring the Response
data GetRouteResponse Source #
See: newGetRouteResponse
smart constructor.
GetRouteResponse' | |
|
Instances
Create a value of GetRouteResponse
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:
GetRouteResponse
, getRouteResponse_applicationId
- The ID of the application that the route belongs to.
GetRouteResponse
, getRouteResponse_arn
- The Amazon Resource Name (ARN) of the route.
GetRouteResponse
, getRouteResponse_createdByAccountId
- The Amazon Web Services account ID of the route creator.
GetRouteResponse
, getRouteResponse_createdTime
- The timestamp of when the route is created.
GetRouteResponse
, getRouteResponse_environmentId
- Unique identifier of the environment.
GetRouteResponse
, getRouteResponse_error
- Any error associated with the route resource.
GetRouteResponse
, getRouteResponse_includeChildPaths
- Indicates whether to match all subpaths of the given source path. If
this value is false
, requests must match the source path exactly
before they are forwarded to this route's service.
GetRouteResponse
, getRouteResponse_lastUpdatedTime
- A timestamp that indicates when the route was last updated.
GetRouteResponse
, getRouteResponse_methods
- A list of HTTP methods to match. An empty list matches all values. If a
method is present, only HTTP requests using that method are forwarded to
this route’s service.
GetRouteResponse
, getRouteResponse_ownerAccountId
- The Amazon Web Services account ID of the route owner.
GetRouteResponse
, getRouteResponse_pathResourceToId
- A mapping of Amazon API Gateway path resources to resource IDs.
GetRouteResponse
, getRouteResponse_routeId
- The unique identifier of the route.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
GetRouteResponse
, getRouteResponse_routeType
- The type of route.
GetRouteResponse
, getRouteResponse_serviceId
- The unique identifier of the service.
GetRouteResponse
, getRouteResponse_sourcePath
- The path to use to match traffic. Paths must start with /
and are
relative to the base of the application.
GetRouteResponse
, getRouteResponse_state
- The current state of the route.
GetRouteResponse
, getRouteResponse_tags
- The tags assigned to the route. A tag is a label that you assign to an
Amazon Web Services resource. Each tag consists of a key-value pair.
$sel:httpStatus:GetRouteResponse'
, getRouteResponse_httpStatus
- The response's http status code.
Response Lenses
getRouteResponse_applicationId :: Lens' GetRouteResponse (Maybe Text) Source #
The ID of the application that the route belongs to.
getRouteResponse_arn :: Lens' GetRouteResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the route.
getRouteResponse_createdByAccountId :: Lens' GetRouteResponse (Maybe Text) Source #
The Amazon Web Services account ID of the route creator.
getRouteResponse_createdTime :: Lens' GetRouteResponse (Maybe UTCTime) Source #
The timestamp of when the route is created.
getRouteResponse_environmentId :: Lens' GetRouteResponse (Maybe Text) Source #
Unique identifier of the environment.
getRouteResponse_error :: Lens' GetRouteResponse (Maybe ErrorResponse) Source #
Any error associated with the route resource.
getRouteResponse_includeChildPaths :: Lens' GetRouteResponse (Maybe Bool) Source #
Indicates whether to match all subpaths of the given source path. If
this value is false
, requests must match the source path exactly
before they are forwarded to this route's service.
getRouteResponse_lastUpdatedTime :: Lens' GetRouteResponse (Maybe UTCTime) Source #
A timestamp that indicates when the route was last updated.
getRouteResponse_methods :: Lens' GetRouteResponse (Maybe [HttpMethod]) Source #
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
getRouteResponse_ownerAccountId :: Lens' GetRouteResponse (Maybe Text) Source #
The Amazon Web Services account ID of the route owner.
getRouteResponse_pathResourceToId :: Lens' GetRouteResponse (Maybe (HashMap Text Text)) Source #
A mapping of Amazon API Gateway path resources to resource IDs.
getRouteResponse_routeId :: Lens' GetRouteResponse (Maybe Text) Source #
The unique identifier of the route.
DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.
URI_PATH: A route that is based on a URI path.
getRouteResponse_routeType :: Lens' GetRouteResponse (Maybe RouteType) Source #
The type of route.
getRouteResponse_serviceId :: Lens' GetRouteResponse (Maybe Text) Source #
The unique identifier of the service.
getRouteResponse_sourcePath :: Lens' GetRouteResponse (Maybe Text) Source #
The path to use to match traffic. Paths must start with /
and are
relative to the base of the application.
getRouteResponse_state :: Lens' GetRouteResponse (Maybe RouteState) Source #
The current state of the route.
getRouteResponse_tags :: Lens' GetRouteResponse (Maybe (HashMap Text Text)) Source #
The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
getRouteResponse_httpStatus :: Lens' GetRouteResponse Int Source #
The response's http status code.