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 a RouteResponse.
Synopsis
- data GetRouteResponse = GetRouteResponse' {}
- newGetRouteResponse :: Text -> Text -> Text -> GetRouteResponse
- getRouteResponse_routeResponseId :: Lens' GetRouteResponse Text
- getRouteResponse_apiId :: Lens' GetRouteResponse Text
- getRouteResponse_routeId :: Lens' GetRouteResponse Text
- data GetRouteResponseResponse = GetRouteResponseResponse' {}
- newGetRouteResponseResponse :: Int -> GetRouteResponseResponse
- getRouteResponseResponse_modelSelectionExpression :: Lens' GetRouteResponseResponse (Maybe Text)
- getRouteResponseResponse_responseModels :: Lens' GetRouteResponseResponse (Maybe (HashMap Text Text))
- getRouteResponseResponse_responseParameters :: Lens' GetRouteResponseResponse (Maybe (HashMap Text ParameterConstraints))
- getRouteResponseResponse_routeResponseId :: Lens' GetRouteResponseResponse (Maybe Text)
- getRouteResponseResponse_routeResponseKey :: Lens' GetRouteResponseResponse (Maybe Text)
- getRouteResponseResponse_httpStatus :: Lens' GetRouteResponseResponse Int
Creating a Request
data GetRouteResponse Source #
See: newGetRouteResponse
smart constructor.
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_routeResponseId
- The route response ID.
GetRouteResponse
, getRouteResponse_apiId
- The API identifier.
GetRouteResponse
, getRouteResponse_routeId
- The route ID.
Request Lenses
getRouteResponse_routeResponseId :: Lens' GetRouteResponse Text Source #
The route response ID.
getRouteResponse_apiId :: Lens' GetRouteResponse Text Source #
The API identifier.
getRouteResponse_routeId :: Lens' GetRouteResponse Text Source #
The route ID.
Destructuring the Response
data GetRouteResponseResponse Source #
See: newGetRouteResponseResponse
smart constructor.
GetRouteResponseResponse' | |
|
Instances
newGetRouteResponseResponse Source #
Create a value of GetRouteResponseResponse
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:
GetRouteResponseResponse
, getRouteResponseResponse_modelSelectionExpression
- Represents the model selection expression of a route response. Supported
only for WebSocket APIs.
GetRouteResponseResponse
, getRouteResponseResponse_responseModels
- Represents the response models of a route response.
GetRouteResponseResponse
, getRouteResponseResponse_responseParameters
- Represents the response parameters of a route response.
GetRouteResponse
, getRouteResponseResponse_routeResponseId
- Represents the identifier of a route response.
GetRouteResponseResponse
, getRouteResponseResponse_routeResponseKey
- Represents the route response key of a route response.
$sel:httpStatus:GetRouteResponseResponse'
, getRouteResponseResponse_httpStatus
- The response's http status code.
Response Lenses
getRouteResponseResponse_modelSelectionExpression :: Lens' GetRouteResponseResponse (Maybe Text) Source #
Represents the model selection expression of a route response. Supported only for WebSocket APIs.
getRouteResponseResponse_responseModels :: Lens' GetRouteResponseResponse (Maybe (HashMap Text Text)) Source #
Represents the response models of a route response.
getRouteResponseResponse_responseParameters :: Lens' GetRouteResponseResponse (Maybe (HashMap Text ParameterConstraints)) Source #
Represents the response parameters of a route response.
getRouteResponseResponse_routeResponseId :: Lens' GetRouteResponseResponse (Maybe Text) Source #
Represents the identifier of a route response.
getRouteResponseResponse_routeResponseKey :: Lens' GetRouteResponseResponse (Maybe Text) Source #
Represents the route response key of a route response.
getRouteResponseResponse_httpStatus :: Lens' GetRouteResponseResponse Int Source #
The response's http status code.