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

Description

Gets a Route.

Synopsis

Creating a Request

data GetRoute Source #

See: newGetRoute smart constructor.

Constructors

GetRoute' 

Fields

Instances

Instances details
ToHeaders GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Methods

toHeaders :: GetRoute -> [Header] #

ToPath GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

ToQuery GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

AWSRequest GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Associated Types

type AWSResponse GetRoute #

Generic GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Associated Types

type Rep GetRoute :: Type -> Type #

Methods

from :: GetRoute -> Rep GetRoute x #

to :: Rep GetRoute x -> GetRoute #

Read GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Show GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

NFData GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Methods

rnf :: GetRoute -> () #

Eq GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Hashable GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Methods

hashWithSalt :: Int -> GetRoute -> Int #

hash :: GetRoute -> Int #

type AWSResponse GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

type Rep GetRoute Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

type Rep GetRoute = D1 ('MetaData "GetRoute" "Amazonka.ApiGatewayV2.GetRoute" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "GetRoute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "routeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetRoute Source #

Create a value of GetRoute 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:

GetRoute, getRoute_apiId - The API identifier.

GetRoute, getRoute_routeId - The route ID.

Request Lenses

getRoute_apiId :: Lens' GetRoute Text Source #

The API identifier.

Destructuring the Response

data GetRouteResponse' Source #

See: newGetRouteResponse' smart constructor.

Constructors

GetRouteResponse'' 

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 GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Associated Types

type Rep GetRouteResponse' :: Type -> Type #

Read GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Show GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

NFData GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

Methods

rnf :: GetRouteResponse' -> () #

Eq GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

type Rep GetRouteResponse' Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoute

type Rep GetRouteResponse' = D1 ('MetaData "GetRouteResponse'" "Amazonka.ApiGatewayV2.GetRoute" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "GetRouteResponse''" '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))))))

newGetRouteResponse' Source #

Create a value of GetRouteResponse' 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:

GetRouteResponse', getRouteResponse'_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.

GetRouteResponse', getRouteResponse'_apiKeyRequired - Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

GetRouteResponse', getRouteResponse'_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.

GetRouteResponse', getRouteResponse'_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.

GetRouteResponse', getRouteResponse'_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.

GetRouteResponse', getRouteResponse'_modelSelectionExpression - The model selection expression for the route. Supported only for WebSocket APIs.

GetRouteResponse', getRouteResponse'_operationName - The operation name for the route.

GetRouteResponse', getRouteResponse'_requestModels - The request models for the route. Supported only for WebSocket APIs.

GetRouteResponse', getRouteResponse'_requestParameters - The request parameters for the route. Supported only for WebSocket APIs.

GetRoute, getRouteResponse'_routeId - The route ID.

GetRouteResponse', getRouteResponse'_routeKey - The route key for the route.

GetRouteResponse', getRouteResponse'_routeResponseSelectionExpression - The route response selection expression for the route. Supported only for WebSocket APIs.

GetRouteResponse', getRouteResponse'_target - The target for the route.

$sel:httpStatus:GetRouteResponse'', getRouteResponse'_httpStatus - The response's http status code.

Response Lenses

getRouteResponse'_apiGatewayManaged :: Lens' GetRouteResponse' (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.

getRouteResponse'_apiKeyRequired :: Lens' GetRouteResponse' (Maybe Bool) Source #

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

getRouteResponse'_authorizationScopes :: Lens' GetRouteResponse' (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.

getRouteResponse'_authorizationType :: Lens' GetRouteResponse' (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.

getRouteResponse'_authorizerId :: Lens' GetRouteResponse' (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.

getRouteResponse'_modelSelectionExpression :: Lens' GetRouteResponse' (Maybe Text) Source #

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

getRouteResponse'_requestModels :: Lens' GetRouteResponse' (Maybe (HashMap Text Text)) Source #

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

getRouteResponse'_requestParameters :: Lens' GetRouteResponse' (Maybe (HashMap Text ParameterConstraints)) Source #

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

getRouteResponse'_routeResponseSelectionExpression :: Lens' GetRouteResponse' (Maybe Text) Source #

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

getRouteResponse'_httpStatus :: Lens' GetRouteResponse' Int Source #

The response's http status code.