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 a Route.
Synopsis
- data UpdateRoute = UpdateRoute' {
- apiKeyRequired :: Maybe Bool
- authorizationScopes :: Maybe [Text]
- authorizationType :: Maybe AuthorizationType
- authorizerId :: Maybe Text
- modelSelectionExpression :: Maybe Text
- operationName :: Maybe Text
- requestModels :: Maybe (HashMap Text Text)
- requestParameters :: Maybe (HashMap Text ParameterConstraints)
- routeKey :: Maybe Text
- routeResponseSelectionExpression :: Maybe Text
- target :: Maybe Text
- apiId :: Text
- routeId :: Text
- newUpdateRoute :: Text -> Text -> UpdateRoute
- updateRoute_apiKeyRequired :: Lens' UpdateRoute (Maybe Bool)
- updateRoute_authorizationScopes :: Lens' UpdateRoute (Maybe [Text])
- updateRoute_authorizationType :: Lens' UpdateRoute (Maybe AuthorizationType)
- updateRoute_authorizerId :: Lens' UpdateRoute (Maybe Text)
- updateRoute_modelSelectionExpression :: Lens' UpdateRoute (Maybe Text)
- updateRoute_operationName :: Lens' UpdateRoute (Maybe Text)
- updateRoute_requestModels :: Lens' UpdateRoute (Maybe (HashMap Text Text))
- updateRoute_requestParameters :: Lens' UpdateRoute (Maybe (HashMap Text ParameterConstraints))
- updateRoute_routeKey :: Lens' UpdateRoute (Maybe Text)
- updateRoute_routeResponseSelectionExpression :: Lens' UpdateRoute (Maybe Text)
- updateRoute_target :: Lens' UpdateRoute (Maybe Text)
- updateRoute_apiId :: Lens' UpdateRoute Text
- updateRoute_routeId :: Lens' UpdateRoute Text
- data UpdateRouteResponse' = UpdateRouteResponse'' {
- apiGatewayManaged :: Maybe Bool
- apiKeyRequired :: Maybe Bool
- authorizationScopes :: Maybe [Text]
- authorizationType :: Maybe AuthorizationType
- authorizerId :: Maybe Text
- modelSelectionExpression :: Maybe Text
- operationName :: Maybe Text
- requestModels :: Maybe (HashMap Text Text)
- requestParameters :: Maybe (HashMap Text ParameterConstraints)
- routeId :: Maybe Text
- routeKey :: Maybe Text
- routeResponseSelectionExpression :: Maybe Text
- target :: Maybe Text
- httpStatus :: Int
- newUpdateRouteResponse' :: Int -> UpdateRouteResponse'
- updateRouteResponse'_apiGatewayManaged :: Lens' UpdateRouteResponse' (Maybe Bool)
- updateRouteResponse'_apiKeyRequired :: Lens' UpdateRouteResponse' (Maybe Bool)
- updateRouteResponse'_authorizationScopes :: Lens' UpdateRouteResponse' (Maybe [Text])
- updateRouteResponse'_authorizationType :: Lens' UpdateRouteResponse' (Maybe AuthorizationType)
- updateRouteResponse'_authorizerId :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_modelSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_operationName :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_requestModels :: Lens' UpdateRouteResponse' (Maybe (HashMap Text Text))
- updateRouteResponse'_requestParameters :: Lens' UpdateRouteResponse' (Maybe (HashMap Text ParameterConstraints))
- updateRouteResponse'_routeId :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_routeKey :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_target :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_httpStatus :: Lens' UpdateRouteResponse' Int
Creating a Request
data UpdateRoute Source #
Updates a Route.
See: newUpdateRoute
smart constructor.
UpdateRoute' | |
|
Instances
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_apiKeyRequired
- Specifies whether an API key is required for the route. Supported only
for WebSocket APIs.
UpdateRoute
, updateRoute_authorizationScopes
- The authorization scopes supported by this route.
UpdateRoute
, updateRoute_authorizationType
- The authorization type for the route. For WebSocket APIs, valid values
are NONE for open access, AWS_IAM for using AWS IAM permissions, and
CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using
AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
UpdateRoute
, updateRoute_authorizerId
- The identifier of the Authorizer resource to be associated with this
route. The authorizer identifier is generated by API Gateway when you
created the authorizer.
UpdateRoute
, updateRoute_modelSelectionExpression
- The model selection expression for the route. Supported only for
WebSocket APIs.
UpdateRoute
, updateRoute_operationName
- The operation name for the route.
UpdateRoute
, updateRoute_requestModels
- The request models for the route. Supported only for WebSocket APIs.
UpdateRoute
, updateRoute_requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.
UpdateRoute
, updateRoute_routeKey
- The route key for the route.
UpdateRoute
, updateRoute_routeResponseSelectionExpression
- The route response selection expression for the route. Supported only
for WebSocket APIs.
UpdateRoute
, updateRoute_target
- The target for the route.
UpdateRoute
, updateRoute_apiId
- The API identifier.
UpdateRoute
, updateRoute_routeId
- The route ID.
Request Lenses
updateRoute_apiKeyRequired :: Lens' UpdateRoute (Maybe Bool) Source #
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
updateRoute_authorizationScopes :: Lens' UpdateRoute (Maybe [Text]) Source #
The authorization scopes supported by this route.
updateRoute_authorizationType :: Lens' UpdateRoute (Maybe AuthorizationType) Source #
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
updateRoute_authorizerId :: Lens' UpdateRoute (Maybe Text) Source #
The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
updateRoute_modelSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #
The model selection expression for the route. Supported only for WebSocket APIs.
updateRoute_operationName :: Lens' UpdateRoute (Maybe Text) Source #
The operation name for the route.
updateRoute_requestModels :: Lens' UpdateRoute (Maybe (HashMap Text Text)) Source #
The request models for the route. Supported only for WebSocket APIs.
updateRoute_requestParameters :: Lens' UpdateRoute (Maybe (HashMap Text ParameterConstraints)) Source #
The request parameters for the route. Supported only for WebSocket APIs.
updateRoute_routeKey :: Lens' UpdateRoute (Maybe Text) Source #
The route key for the route.
updateRoute_routeResponseSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #
The route response selection expression for the route. Supported only for WebSocket APIs.
updateRoute_target :: Lens' UpdateRoute (Maybe Text) Source #
The target for the route.
updateRoute_apiId :: Lens' UpdateRoute Text Source #
The API identifier.
updateRoute_routeId :: Lens' UpdateRoute Text Source #
The route ID.
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'_apiGatewayManaged
- Specifies whether a route is managed by API Gateway. If you created an
API using quick create, the $default route is managed by API Gateway.
You can't modify the $default route key.
UpdateRoute
, updateRouteResponse'_apiKeyRequired
- Specifies whether an API key is required for this route. Supported only
for WebSocket APIs.
UpdateRoute
, updateRouteResponse'_authorizationScopes
- A list of authorization scopes configured on a route. The scopes are
used with a JWT authorizer to authorize the method invocation. The
authorization works by matching the route scopes against the scopes
parsed from the access token in the incoming request. The method
invocation is authorized if any route scope matches a claimed scope in
the access token. Otherwise, the invocation is not authorized. When the
route scope is configured, the client must provide an access token
instead of an identity token for authorization purposes.
UpdateRoute
, updateRouteResponse'_authorizationType
- The authorization type for the route. For WebSocket APIs, valid values
are NONE for open access, AWS_IAM for using AWS IAM permissions, and
CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using
AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
UpdateRoute
, updateRouteResponse'_authorizerId
- The identifier of the Authorizer resource to be associated with this
route. The authorizer identifier is generated by API Gateway when you
created the authorizer.
UpdateRoute
, updateRouteResponse'_modelSelectionExpression
- The model selection expression for the route. Supported only for
WebSocket APIs.
UpdateRoute
, updateRouteResponse'_operationName
- The operation name for the route.
UpdateRoute
, updateRouteResponse'_requestModels
- The request models for the route. Supported only for WebSocket APIs.
UpdateRoute
, updateRouteResponse'_requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.
UpdateRoute
, updateRouteResponse'_routeId
- The route ID.
UpdateRoute
, updateRouteResponse'_routeKey
- The route key for the route.
UpdateRoute
, updateRouteResponse'_routeResponseSelectionExpression
- The route response selection expression for the route. Supported only
for WebSocket APIs.
UpdateRoute
, updateRouteResponse'_target
- The target for the route.
$sel:httpStatus:UpdateRouteResponse''
, updateRouteResponse'_httpStatus
- The response's http status code.
Response Lenses
updateRouteResponse'_apiGatewayManaged :: Lens' UpdateRouteResponse' (Maybe Bool) Source #
Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.
updateRouteResponse'_apiKeyRequired :: Lens' UpdateRouteResponse' (Maybe Bool) Source #
Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
updateRouteResponse'_authorizationScopes :: Lens' UpdateRouteResponse' (Maybe [Text]) Source #
A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
updateRouteResponse'_authorizationType :: Lens' UpdateRouteResponse' (Maybe AuthorizationType) Source #
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
updateRouteResponse'_authorizerId :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
updateRouteResponse'_modelSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The model selection expression for the route. Supported only for WebSocket APIs.
updateRouteResponse'_operationName :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The operation name for the route.
updateRouteResponse'_requestModels :: Lens' UpdateRouteResponse' (Maybe (HashMap Text Text)) Source #
The request models for the route. Supported only for WebSocket APIs.
updateRouteResponse'_requestParameters :: Lens' UpdateRouteResponse' (Maybe (HashMap Text ParameterConstraints)) Source #
The request parameters for the route. Supported only for WebSocket APIs.
updateRouteResponse'_routeId :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The route ID.
updateRouteResponse'_routeKey :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The route key for the route.
updateRouteResponse'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The route response selection expression for the route. Supported only for WebSocket APIs.
updateRouteResponse'_target :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The target for the route.
updateRouteResponse'_httpStatus :: Lens' UpdateRouteResponse' Int Source #
The response's http status code.