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

Description

Creates a RouteResponse for a Route.

Synopsis

Creating a Request

data CreateRouteResponse Source #

Creates a new RouteResponse resource to represent a route response.

See: newCreateRouteResponse smart constructor.

Constructors

CreateRouteResponse' 

Fields

Instances

Instances details
ToJSON CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

ToHeaders CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

ToPath CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

ToQuery CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

AWSRequest CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Associated Types

type AWSResponse CreateRouteResponse #

Generic CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Associated Types

type Rep CreateRouteResponse :: Type -> Type #

Read CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Show CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

NFData CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Methods

rnf :: CreateRouteResponse -> () #

Eq CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Hashable CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

type AWSResponse CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

type Rep CreateRouteResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

type Rep CreateRouteResponse = D1 ('MetaData "CreateRouteResponse" "Amazonka.ApiGatewayV2.CreateRouteResponse" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "CreateRouteResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "responseModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ParameterConstraints))))) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "routeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "routeResponseKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateRouteResponse Source #

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

CreateRouteResponse, createRouteResponse_modelSelectionExpression - The model selection expression for the route response. Supported only for WebSocket APIs.

CreateRouteResponse, createRouteResponse_responseModels - The response models for the route response.

CreateRouteResponse, createRouteResponse_responseParameters - The route response parameters.

CreateRouteResponse, createRouteResponse_apiId - The API identifier.

CreateRouteResponse, createRouteResponse_routeId - The route ID.

CreateRouteResponse, createRouteResponse_routeResponseKey - The route response key.

Request Lenses

createRouteResponse_modelSelectionExpression :: Lens' CreateRouteResponse (Maybe Text) Source #

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

createRouteResponse_responseModels :: Lens' CreateRouteResponse (Maybe (HashMap Text Text)) Source #

The response models for the route response.

Destructuring the Response

data CreateRouteResponseResponse Source #

See: newCreateRouteResponseResponse smart constructor.

Constructors

CreateRouteResponseResponse' 

Fields

Instances

Instances details
Generic CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Associated Types

type Rep CreateRouteResponseResponse :: Type -> Type #

Read CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Show CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

NFData CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

Eq CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

type Rep CreateRouteResponseResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.CreateRouteResponse

type Rep CreateRouteResponseResponse = D1 ('MetaData "CreateRouteResponseResponse" "Amazonka.ApiGatewayV2.CreateRouteResponse" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "CreateRouteResponseResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "modelSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "responseModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ParameterConstraints))))) :*: (S1 ('MetaSel ('Just "routeResponseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "routeResponseKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateRouteResponseResponse Source #

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

CreateRouteResponse, createRouteResponseResponse_modelSelectionExpression - Represents the model selection expression of a route response. Supported only for WebSocket APIs.

CreateRouteResponse, createRouteResponseResponse_responseModels - Represents the response models of a route response.

CreateRouteResponse, createRouteResponseResponse_responseParameters - Represents the response parameters of a route response.

CreateRouteResponseResponse, createRouteResponseResponse_routeResponseId - Represents the identifier of a route response.

CreateRouteResponse, createRouteResponseResponse_routeResponseKey - Represents the route response key of a route response.

$sel:httpStatus:CreateRouteResponseResponse', createRouteResponseResponse_httpStatus - The response's http status code.

Response Lenses

createRouteResponseResponse_modelSelectionExpression :: Lens' CreateRouteResponseResponse (Maybe Text) Source #

Represents the model selection expression of a route response. Supported only for WebSocket APIs.

createRouteResponseResponse_routeResponseKey :: Lens' CreateRouteResponseResponse (Maybe Text) Source #

Represents the route response key of a route response.