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 |
Creates a RouteResponse for a Route.
Synopsis
- data CreateRouteResponse = CreateRouteResponse' {}
- newCreateRouteResponse :: Text -> Text -> Text -> CreateRouteResponse
- createRouteResponse_modelSelectionExpression :: Lens' CreateRouteResponse (Maybe Text)
- createRouteResponse_responseModels :: Lens' CreateRouteResponse (Maybe (HashMap Text Text))
- createRouteResponse_responseParameters :: Lens' CreateRouteResponse (Maybe (HashMap Text ParameterConstraints))
- createRouteResponse_apiId :: Lens' CreateRouteResponse Text
- createRouteResponse_routeId :: Lens' CreateRouteResponse Text
- createRouteResponse_routeResponseKey :: Lens' CreateRouteResponse Text
- data CreateRouteResponseResponse = CreateRouteResponseResponse' {}
- newCreateRouteResponseResponse :: Int -> CreateRouteResponseResponse
- createRouteResponseResponse_modelSelectionExpression :: Lens' CreateRouteResponseResponse (Maybe Text)
- createRouteResponseResponse_responseModels :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text Text))
- createRouteResponseResponse_routeResponseId :: Lens' CreateRouteResponseResponse (Maybe Text)
- createRouteResponseResponse_routeResponseKey :: Lens' CreateRouteResponseResponse (Maybe Text)
- createRouteResponseResponse_responseParameters :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text ParameterConstraints))
- createRouteResponseResponse_httpStatus :: Lens' CreateRouteResponseResponse Int
Creating a Request
data CreateRouteResponse Source #
Creates a new RouteResponse resource to represent a route response.
See: newCreateRouteResponse
smart constructor.
CreateRouteResponse' | |
|
Instances
newCreateRouteResponse Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateRouteResponse |
Create a value of CreateRouteResponse
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:modelSelectionExpression:CreateRouteResponse'
, createRouteResponse_modelSelectionExpression
- The model selection expression for the route response. Supported only
for WebSocket APIs.
$sel:responseModels:CreateRouteResponse'
, createRouteResponse_responseModels
- The response models for the route response.
$sel:responseParameters:CreateRouteResponse'
, createRouteResponse_responseParameters
- The route response parameters.
$sel:apiId:CreateRouteResponse'
, createRouteResponse_apiId
- The API identifier.
$sel:routeId:CreateRouteResponse'
, createRouteResponse_routeId
- The route ID.
$sel:routeResponseKey:CreateRouteResponse'
, createRouteResponse_routeResponseKey
- The route response key.
Request Lenses
createRouteResponse_modelSelectionExpression :: Lens' CreateRouteResponse (Maybe Text) Source #
The model selection expression for the route response. Supported only for WebSocket APIs.
createRouteResponse_responseModels :: Lens' CreateRouteResponse (Maybe (HashMap Text Text)) Source #
The response models for the route response.
createRouteResponse_responseParameters :: Lens' CreateRouteResponse (Maybe (HashMap Text ParameterConstraints)) Source #
The route response parameters.
createRouteResponse_apiId :: Lens' CreateRouteResponse Text Source #
The API identifier.
createRouteResponse_routeId :: Lens' CreateRouteResponse Text Source #
The route ID.
createRouteResponse_routeResponseKey :: Lens' CreateRouteResponse Text Source #
The route response key.
Destructuring the Response
data CreateRouteResponseResponse Source #
See: newCreateRouteResponseResponse
smart constructor.
CreateRouteResponseResponse' | |
|
Instances
newCreateRouteResponseResponse Source #
Create a value of CreateRouteResponseResponse
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:modelSelectionExpression:CreateRouteResponse'
, createRouteResponseResponse_modelSelectionExpression
- Represents the model selection expression of a route response. Supported
only for WebSocket APIs.
$sel:responseModels:CreateRouteResponse'
, createRouteResponseResponse_responseModels
- Represents the response models of a route response.
$sel:routeResponseId:CreateRouteResponseResponse'
, createRouteResponseResponse_routeResponseId
- Represents the identifier of a route response.
$sel:routeResponseKey:CreateRouteResponse'
, createRouteResponseResponse_routeResponseKey
- Represents the route response key of a route response.
$sel:responseParameters:CreateRouteResponse'
, createRouteResponseResponse_responseParameters
- Represents the response parameters of a route response.
$sel:httpStatus:CreateRouteResponseResponse'
, createRouteResponseResponse_httpStatus
- The response's http status code.
Response Lenses
createRouteResponseResponse_modelSelectionExpression :: Lens' CreateRouteResponseResponse (Maybe Text) Source #
Represents the model selection expression of a route response. Supported only for WebSocket APIs.
createRouteResponseResponse_responseModels :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text Text)) Source #
Represents the response models of a route response.
createRouteResponseResponse_routeResponseId :: Lens' CreateRouteResponseResponse (Maybe Text) Source #
Represents the identifier of a route response.
createRouteResponseResponse_routeResponseKey :: Lens' CreateRouteResponseResponse (Maybe Text) Source #
Represents the route response key of a route response.
createRouteResponseResponse_responseParameters :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text ParameterConstraints)) Source #
Represents the response parameters of a route response.
createRouteResponseResponse_httpStatus :: Lens' CreateRouteResponseResponse Int Source #
The response's http status code.