libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ApiGatewayV2.UpdateRoute

Description

Updates a Route.

Synopsis

Creating a Request

data UpdateRoute Source #

Updates a Route.

See: newUpdateRoute smart constructor.

Constructors

UpdateRoute' 

Fields

Instances

Instances details
Eq UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Read UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Show UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Generic UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type Rep UpdateRoute :: Type -> Type #

NFData UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Methods

rnf :: UpdateRoute -> () #

Hashable UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

ToJSON UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

AWSRequest UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type AWSResponse UpdateRoute #

ToHeaders UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Methods

toHeaders :: UpdateRoute -> [Header] #

ToPath UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

ToQuery UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type Rep UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type Rep UpdateRoute = D1 ('MetaData "UpdateRoute" "Amazonka.ApiGatewayV2.UpdateRoute" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "UpdateRoute'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "authorizationScopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: (S1 ('MetaSel ('Just "routeResponseSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ParameterConstraints))) :*: S1 ('MetaSel ('Just "authorizerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "operationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizationType)) :*: S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "routeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "routeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))
type AWSResponse UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

newUpdateRoute Source #

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.

Destructuring the Response

data UpdateRouteResponse' Source #

See: newUpdateRouteResponse' smart constructor.

Constructors

UpdateRouteResponse'' 

Fields

  • authorizationScopes :: Maybe [Text]

    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.

  • modelSelectionExpression :: Maybe Text

    The model selection expression for the route. Supported only for WebSocket APIs.

  • requestModels :: Maybe (HashMap Text Text)

    The request models for the route. Supported only for WebSocket APIs.

  • routeResponseSelectionExpression :: Maybe Text

    The route response selection expression for the route. Supported only for WebSocket APIs.

  • requestParameters :: Maybe (HashMap Text ParameterConstraints)

    The request parameters for the route. Supported only for WebSocket APIs.

  • routeId :: Maybe Text

    The route ID.

  • authorizerId :: Maybe Text

    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.

  • operationName :: Maybe Text

    The operation name for the route.

  • apiGatewayManaged :: Maybe Bool

    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.

  • authorizationType :: Maybe 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.

  • apiKeyRequired :: Maybe Bool

    Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

  • routeKey :: Maybe Text

    The route key for the route.

  • target :: Maybe Text

    The target for the route.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Read UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Show UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Generic UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type Rep UpdateRouteResponse' :: Type -> Type #

NFData UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Methods

rnf :: UpdateRouteResponse' -> () #

type Rep UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type Rep UpdateRouteResponse' = D1 ('MetaData "UpdateRouteResponse'" "Amazonka.ApiGatewayV2.UpdateRoute" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "UpdateRouteResponse''" 'PrefixI 'True) (((S1 ('MetaSel ('Just "authorizationScopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: ((S1 ('MetaSel ('Just "routeResponseSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ParameterConstraints)))) :*: (S1 ('MetaSel ('Just "routeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "authorizerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "operationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "apiGatewayManaged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizationType)))) :*: ((S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "routeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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'_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'_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.