amazonka-apigatewayv2-2.0: Amazon ApiGatewayV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.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

AWSRequest UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type AWSResponse UpdateRoute #

Generic UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type Rep UpdateRoute :: Type -> Type #

Read UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Show UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

NFData UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Methods

rnf :: UpdateRoute -> () #

Eq UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Hashable UpdateRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type AWSResponse 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" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateRoute'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "authorizationScopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizationType)))) :*: (S1 ('MetaSel ('Just "authorizerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "requestModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ParameterConstraints))) :*: S1 ('MetaSel ('Just "routeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "routeResponseSelectionExpression") '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))))))

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:

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.

Destructuring the Response

data UpdateRouteResponse' Source #

See: newUpdateRouteResponse' smart constructor.

Constructors

UpdateRouteResponse'' 

Fields

  • 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.

  • apiKeyRequired :: Maybe Bool

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

  • 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.

  • 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.

  • 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.

  • modelSelectionExpression :: Maybe Text

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

  • operationName :: Maybe Text

    The operation name for the route.

  • requestModels :: Maybe (HashMap Text Text)

    The request models 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.

  • routeKey :: Maybe Text

    The route key for the route.

  • routeResponseSelectionExpression :: Maybe Text

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

  • target :: Maybe Text

    The target for the route.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Associated Types

type Rep UpdateRouteResponse' :: Type -> Type #

Read UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Show UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

NFData UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

Methods

rnf :: UpdateRouteResponse' -> () #

Eq UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type Rep UpdateRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateRoute

type Rep UpdateRouteResponse' = D1 ('MetaData "UpdateRouteResponse'" "Amazonka.ApiGatewayV2.UpdateRoute" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateRouteResponse''" 'PrefixI 'True) (((S1 ('MetaSel ('Just "apiGatewayManaged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "apiKeyRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "authorizationScopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "authorizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizationType)) :*: S1 ('MetaSel ('Just "authorizerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "requestModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text 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 "routeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "routeResponseSelectionExpression") '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:

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'_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'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #

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