| 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 |
Amazonka.ApiGatewayV2.CreateRouteResponse
Description
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_responseParameters :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text ParameterConstraints))
- createRouteResponseResponse_routeResponseId :: Lens' CreateRouteResponseResponse (Maybe Text)
- createRouteResponseResponse_routeResponseKey :: Lens' CreateRouteResponseResponse (Maybe Text)
- 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.
Constructors
| CreateRouteResponse' | |
Fields
| |
Instances
newCreateRouteResponse Source #
Arguments
| :: 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:
CreateRouteResponse, createRouteResponse_modelSelectionExpression - The model selection expression for the route response. Supported only
for WebSocket APIs.
CreateRouteResponse, createRouteResponse_responseModels - The response models for the route response.
CreateRouteResponse, createRouteResponse_responseParameters - The route response parameters.
CreateRouteResponse, createRouteResponse_apiId - The API identifier.
CreateRouteResponse, createRouteResponse_routeId - The route ID.
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.
Constructors
| CreateRouteResponseResponse' | |
Fields
| |
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:
CreateRouteResponse, createRouteResponseResponse_modelSelectionExpression - Represents the model selection expression of a route response. Supported
only for WebSocket APIs.
CreateRouteResponse, createRouteResponseResponse_responseModels - Represents the response models of a route response.
CreateRouteResponse, createRouteResponseResponse_responseParameters - Represents the response parameters of a route response.
CreateRouteResponseResponse, createRouteResponseResponse_routeResponseId - Represents the identifier of a route response.
CreateRouteResponse, createRouteResponseResponse_routeResponseKey - Represents the route response key 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_responseParameters :: Lens' CreateRouteResponseResponse (Maybe (HashMap Text ParameterConstraints)) Source #
Represents the response parameters 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_httpStatus :: Lens' CreateRouteResponseResponse Int Source #
The response's http status code.