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 |
Updates a Route.
Synopsis
- data UpdateRoute = UpdateRoute' {
- authorizationScopes :: Maybe [Text]
- modelSelectionExpression :: Maybe Text
- requestModels :: Maybe (HashMap Text Text)
- routeResponseSelectionExpression :: Maybe Text
- requestParameters :: Maybe (HashMap Text ParameterConstraints)
- authorizerId :: Maybe Text
- operationName :: Maybe Text
- authorizationType :: Maybe AuthorizationType
- apiKeyRequired :: Maybe Bool
- routeKey :: Maybe Text
- target :: Maybe Text
- apiId :: Text
- routeId :: Text
- newUpdateRoute :: Text -> Text -> UpdateRoute
- updateRoute_authorizationScopes :: Lens' UpdateRoute (Maybe [Text])
- updateRoute_modelSelectionExpression :: Lens' UpdateRoute (Maybe Text)
- updateRoute_requestModels :: Lens' UpdateRoute (Maybe (HashMap Text Text))
- updateRoute_routeResponseSelectionExpression :: Lens' UpdateRoute (Maybe Text)
- updateRoute_requestParameters :: Lens' UpdateRoute (Maybe (HashMap Text ParameterConstraints))
- updateRoute_authorizerId :: Lens' UpdateRoute (Maybe Text)
- updateRoute_operationName :: Lens' UpdateRoute (Maybe Text)
- updateRoute_authorizationType :: Lens' UpdateRoute (Maybe AuthorizationType)
- updateRoute_apiKeyRequired :: Lens' UpdateRoute (Maybe Bool)
- updateRoute_routeKey :: Lens' UpdateRoute (Maybe Text)
- updateRoute_target :: Lens' UpdateRoute (Maybe Text)
- updateRoute_apiId :: Lens' UpdateRoute Text
- updateRoute_routeId :: Lens' UpdateRoute Text
- data UpdateRouteResponse' = UpdateRouteResponse'' {
- authorizationScopes :: Maybe [Text]
- modelSelectionExpression :: Maybe Text
- requestModels :: Maybe (HashMap Text Text)
- routeResponseSelectionExpression :: Maybe Text
- requestParameters :: Maybe (HashMap Text ParameterConstraints)
- routeId :: Maybe Text
- authorizerId :: Maybe Text
- operationName :: Maybe Text
- apiGatewayManaged :: Maybe Bool
- authorizationType :: Maybe AuthorizationType
- apiKeyRequired :: Maybe Bool
- routeKey :: Maybe Text
- target :: Maybe Text
- httpStatus :: Int
- newUpdateRouteResponse' :: Int -> UpdateRouteResponse'
- updateRouteResponse'_authorizationScopes :: Lens' UpdateRouteResponse' (Maybe [Text])
- updateRouteResponse'_modelSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_requestModels :: Lens' UpdateRouteResponse' (Maybe (HashMap Text Text))
- updateRouteResponse'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_requestParameters :: Lens' UpdateRouteResponse' (Maybe (HashMap Text ParameterConstraints))
- updateRouteResponse'_routeId :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_authorizerId :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_operationName :: Lens' UpdateRouteResponse' (Maybe Text)
- updateRouteResponse'_apiGatewayManaged :: Lens' UpdateRouteResponse' (Maybe Bool)
- updateRouteResponse'_authorizationType :: Lens' UpdateRouteResponse' (Maybe AuthorizationType)
- updateRouteResponse'_apiKeyRequired :: Lens' UpdateRouteResponse' (Maybe Bool)
- updateRouteResponse'_routeKey :: 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:
$sel:authorizationScopes:UpdateRoute'
, updateRoute_authorizationScopes
- The authorization scopes supported by this route.
$sel:modelSelectionExpression:UpdateRoute'
, updateRoute_modelSelectionExpression
- The model selection expression for the route. Supported only for
WebSocket APIs.
$sel:requestModels:UpdateRoute'
, updateRoute_requestModels
- The request models for the route. Supported only for WebSocket APIs.
$sel:routeResponseSelectionExpression:UpdateRoute'
, updateRoute_routeResponseSelectionExpression
- The route response selection expression for the route. Supported only
for WebSocket APIs.
$sel:requestParameters:UpdateRoute'
, updateRoute_requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.
$sel:authorizerId: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.
$sel:operationName:UpdateRoute'
, updateRoute_operationName
- The operation name for the route.
$sel:authorizationType: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.
$sel:apiKeyRequired:UpdateRoute'
, updateRoute_apiKeyRequired
- Specifies whether an API key is required for the route. Supported only
for WebSocket APIs.
$sel:routeKey:UpdateRoute'
, updateRoute_routeKey
- The route key for the route.
$sel:target:UpdateRoute'
, updateRoute_target
- The target for the route.
$sel:apiId:UpdateRoute'
, updateRoute_apiId
- The API identifier.
$sel:routeId:UpdateRoute'
, updateRoute_routeId
- The route ID.
Request Lenses
updateRoute_authorizationScopes :: Lens' UpdateRoute (Maybe [Text]) Source #
The authorization scopes supported by this route.
updateRoute_modelSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #
The model selection expression for the route. Supported only for WebSocket APIs.
updateRoute_requestModels :: Lens' UpdateRoute (Maybe (HashMap Text Text)) Source #
The request models for the route. Supported only for WebSocket APIs.
updateRoute_routeResponseSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #
The route response selection expression 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_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_operationName :: Lens' UpdateRoute (Maybe Text) Source #
The operation name for the 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_apiKeyRequired :: Lens' UpdateRoute (Maybe Bool) Source #
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
updateRoute_routeKey :: Lens' UpdateRoute (Maybe Text) Source #
The route key for the route.
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:
$sel:authorizationScopes: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.
$sel:modelSelectionExpression:UpdateRoute'
, updateRouteResponse'_modelSelectionExpression
- The model selection expression for the route. Supported only for
WebSocket APIs.
$sel:requestModels:UpdateRoute'
, updateRouteResponse'_requestModels
- The request models for the route. Supported only for WebSocket APIs.
$sel:routeResponseSelectionExpression:UpdateRoute'
, updateRouteResponse'_routeResponseSelectionExpression
- The route response selection expression for the route. Supported only
for WebSocket APIs.
$sel:requestParameters:UpdateRoute'
, updateRouteResponse'_requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.
$sel:routeId:UpdateRoute'
, updateRouteResponse'_routeId
- The route ID.
$sel:authorizerId: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.
$sel:operationName:UpdateRoute'
, updateRouteResponse'_operationName
- The operation name for the route.
$sel:apiGatewayManaged: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.
$sel:authorizationType: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.
$sel:apiKeyRequired:UpdateRoute'
, updateRouteResponse'_apiKeyRequired
- Specifies whether an API key is required for this route. Supported only
for WebSocket APIs.
$sel:routeKey:UpdateRoute'
, updateRouteResponse'_routeKey
- The route key for the route.
$sel:target:UpdateRoute'
, updateRouteResponse'_target
- The target for the route.
$sel:httpStatus:UpdateRouteResponse''
, updateRouteResponse'_httpStatus
- The response's http status code.
Response Lenses
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'_modelSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The model selection expression for the route. Supported only for WebSocket APIs.
updateRouteResponse'_requestModels :: Lens' UpdateRouteResponse' (Maybe (HashMap Text Text)) Source #
The request models for the route. Supported only for WebSocket APIs.
updateRouteResponse'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The route response selection expression 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'_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'_operationName :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The operation name for the route.
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'_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'_apiKeyRequired :: Lens' UpdateRouteResponse' (Maybe Bool) Source #
Specifies whether an API key is required for this route. Supported only for WebSocket APIs.
updateRouteResponse'_routeKey :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The route key for the route.
updateRouteResponse'_target :: Lens' UpdateRouteResponse' (Maybe Text) Source #
The target for the route.
updateRouteResponse'_httpStatus :: Lens' UpdateRouteResponse' Int Source #
The response's http status code.