amazonka-apigateway-2.0: Amazon API Gateway 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.APIGateway.UpdateGatewayResponse

Description

Updates a GatewayResponse of a specified response type on the given RestApi.

Synopsis

Creating a Request

data UpdateGatewayResponse Source #

Updates a GatewayResponse of a specified response type on the given RestApi.

See: newUpdateGatewayResponse smart constructor.

Constructors

UpdateGatewayResponse' 

Fields

Instances

Instances details
ToJSON UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

ToHeaders UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

ToPath UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

ToQuery UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

AWSRequest UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

Associated Types

type AWSResponse UpdateGatewayResponse #

Generic UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

Associated Types

type Rep UpdateGatewayResponse :: Type -> Type #

Read UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

Show UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

NFData UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

Methods

rnf :: UpdateGatewayResponse -> () #

Eq UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

Hashable UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

type AWSResponse UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

type Rep UpdateGatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateGatewayResponse

type Rep UpdateGatewayResponse = D1 ('MetaData "UpdateGatewayResponse" "Amazonka.APIGateway.UpdateGatewayResponse" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "UpdateGatewayResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "patchOperations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PatchOperation])) :*: (S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "responseType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GatewayResponseType))))

newUpdateGatewayResponse Source #

Create a value of UpdateGatewayResponse 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:patchOperations:UpdateGatewayResponse', updateGatewayResponse_patchOperations - For more information about supported patch operations, see Patch Operations.

UpdateGatewayResponse, updateGatewayResponse_restApiId - The string identifier of the associated RestApi.

UpdateGatewayResponse, updateGatewayResponse_responseType - The response type of the associated GatewayResponse.

Request Lenses

updateGatewayResponse_patchOperations :: Lens' UpdateGatewayResponse (Maybe [PatchOperation]) Source #

For more information about supported patch operations, see Patch Operations.

updateGatewayResponse_restApiId :: Lens' UpdateGatewayResponse Text Source #

The string identifier of the associated RestApi.

updateGatewayResponse_responseType :: Lens' UpdateGatewayResponse GatewayResponseType Source #

The response type of the associated GatewayResponse.

Destructuring the Response

data GatewayResponse Source #

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

See: newGatewayResponse smart constructor.

Constructors

GatewayResponse' 

Fields

Instances

Instances details
FromJSON GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Generic GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Associated Types

type Rep GatewayResponse :: Type -> Type #

Read GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Show GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

NFData GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Methods

rnf :: GatewayResponse -> () #

Eq GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

Hashable GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

type Rep GatewayResponse Source # 
Instance details

Defined in Amazonka.APIGateway.Types.GatewayResponse

type Rep GatewayResponse = D1 ('MetaData "GatewayResponse" "Amazonka.APIGateway.Types.GatewayResponse" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "GatewayResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "responseParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "responseTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "responseType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GatewayResponseType)) :*: S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newGatewayResponse :: GatewayResponse Source #

Create a value of GatewayResponse 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:defaultResponse:GatewayResponse', gatewayResponse_defaultResponse - A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

$sel:responseParameters:GatewayResponse', gatewayResponse_responseParameters - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

$sel:responseTemplates:GatewayResponse', gatewayResponse_responseTemplates - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

$sel:responseType:GatewayResponse', gatewayResponse_responseType - The response type of the associated GatewayResponse.

$sel:statusCode:GatewayResponse', gatewayResponse_statusCode - The HTTP status code for this GatewayResponse.

Response Lenses

gatewayResponse_defaultResponse :: Lens' GatewayResponse (Maybe Bool) Source #

A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

gatewayResponse_responseParameters :: Lens' GatewayResponse (Maybe (HashMap Text Text)) Source #

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

gatewayResponse_responseTemplates :: Lens' GatewayResponse (Maybe (HashMap Text Text)) Source #

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

gatewayResponse_responseType :: Lens' GatewayResponse (Maybe GatewayResponseType) Source #

The response type of the associated GatewayResponse.

gatewayResponse_statusCode :: Lens' GatewayResponse (Maybe Text) Source #

The HTTP status code for this GatewayResponse.