libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
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.APIGateway.UpdateRequestValidator

Description

Updates a RequestValidator of a given RestApi.

Synopsis

Creating a Request

data UpdateRequestValidator Source #

Updates a RequestValidator of a given RestApi.

See: newUpdateRequestValidator smart constructor.

Constructors

UpdateRequestValidator' 

Fields

Instances

Instances details
Eq UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Read UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Show UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Generic UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Associated Types

type Rep UpdateRequestValidator :: Type -> Type #

NFData UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Methods

rnf :: UpdateRequestValidator -> () #

Hashable UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

ToJSON UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

AWSRequest UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

Associated Types

type AWSResponse UpdateRequestValidator #

ToHeaders UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

ToPath UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

ToQuery UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

type Rep UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

type Rep UpdateRequestValidator = D1 ('MetaData "UpdateRequestValidator" "Amazonka.APIGateway.UpdateRequestValidator" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "UpdateRequestValidator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "patchOperations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PatchOperation])) :*: (S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "requestValidatorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateRequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.UpdateRequestValidator

newUpdateRequestValidator Source #

Create a value of UpdateRequestValidator 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:UpdateRequestValidator', updateRequestValidator_patchOperations - A list of update operations to be applied to the specified resource and in the order specified in this list.

$sel:restApiId:UpdateRequestValidator', updateRequestValidator_restApiId - [Required] The string identifier of the associated RestApi.

$sel:requestValidatorId:UpdateRequestValidator', updateRequestValidator_requestValidatorId - [Required] The identifier of RequestValidator to be updated.

Request Lenses

updateRequestValidator_patchOperations :: Lens' UpdateRequestValidator (Maybe [PatchOperation]) Source #

A list of update operations to be applied to the specified resource and in the order specified in this list.

updateRequestValidator_restApiId :: Lens' UpdateRequestValidator Text Source #

Required
The string identifier of the associated RestApi.

updateRequestValidator_requestValidatorId :: Lens' UpdateRequestValidator Text Source #

Required
The identifier of RequestValidator to be updated.

Destructuring the Response

data RequestValidator Source #

A set of validation rules for incoming Method requests.

In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

Enable Basic Request Validation in API Gateway

See: newRequestValidator smart constructor.

Constructors

RequestValidator' 

Fields

Instances

Instances details
Eq RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Read RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Show RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Generic RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Associated Types

type Rep RequestValidator :: Type -> Type #

NFData RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

Methods

rnf :: RequestValidator -> () #

Hashable RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

FromJSON RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

type Rep RequestValidator Source # 
Instance details

Defined in Amazonka.APIGateway.Types.RequestValidator

type Rep RequestValidator = D1 ('MetaData "RequestValidator" "Amazonka.APIGateway.Types.RequestValidator" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "RequestValidator'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "validateRequestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "validateRequestBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newRequestValidator :: RequestValidator Source #

Create a value of RequestValidator 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:validateRequestParameters:RequestValidator', requestValidator_validateRequestParameters - A Boolean flag to indicate whether to validate request parameters (true) or not (false).

$sel:name:RequestValidator', requestValidator_name - The name of this RequestValidator

$sel:validateRequestBody:RequestValidator', requestValidator_validateRequestBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

$sel:id:RequestValidator', requestValidator_id - The identifier of this RequestValidator.

Response Lenses

requestValidator_validateRequestParameters :: Lens' RequestValidator (Maybe Bool) Source #

A Boolean flag to indicate whether to validate request parameters (true) or not (false).

requestValidator_name :: Lens' RequestValidator (Maybe Text) Source #

The name of this RequestValidator

requestValidator_validateRequestBody :: Lens' RequestValidator (Maybe Bool) Source #

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

requestValidator_id :: Lens' RequestValidator (Maybe Text) Source #

The identifier of this RequestValidator.