amazonka-apigateway-1.6.0: Amazon API Gateway SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.APIGateway.UpdateRequestValidator

Contents

Description

Updates a RequestValidator of a given RestApi .

Synopsis

Creating a Request

updateRequestValidator Source #

Creates a value of UpdateRequestValidator with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateRequestValidator Source #

Updates a RequestValidator of a given RestApi .

See: updateRequestValidator smart constructor.

Instances

Eq UpdateRequestValidator Source # 
Data UpdateRequestValidator Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateRequestValidator -> c UpdateRequestValidator #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateRequestValidator #

toConstr :: UpdateRequestValidator -> Constr #

dataTypeOf :: UpdateRequestValidator -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateRequestValidator) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateRequestValidator) #

gmapT :: (forall b. Data b => b -> b) -> UpdateRequestValidator -> UpdateRequestValidator #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateRequestValidator -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateRequestValidator -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateRequestValidator -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateRequestValidator -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateRequestValidator -> m UpdateRequestValidator #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateRequestValidator -> m UpdateRequestValidator #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateRequestValidator -> m UpdateRequestValidator #

Read UpdateRequestValidator Source # 
Show UpdateRequestValidator Source # 
Generic UpdateRequestValidator Source # 
Hashable UpdateRequestValidator Source # 
ToJSON UpdateRequestValidator Source # 
NFData UpdateRequestValidator Source # 

Methods

rnf :: UpdateRequestValidator -> () #

AWSRequest UpdateRequestValidator Source # 
ToHeaders UpdateRequestValidator Source # 
ToPath UpdateRequestValidator Source # 
ToQuery UpdateRequestValidator Source # 
type Rep UpdateRequestValidator Source # 
type Rep UpdateRequestValidator = D1 * (MetaData "UpdateRequestValidator" "Network.AWS.APIGateway.UpdateRequestValidator" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "UpdateRequestValidator'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_urvPatchOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [PatchOperation]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_urvRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_urvRequestValidatorId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateRequestValidator Source # 

Request Lenses

urvPatchOperations :: Lens' UpdateRequestValidator [PatchOperation] Source #

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

urvRestAPIId :: Lens' UpdateRequestValidator Text Source #

Required
The string identifier of the associated RestApi .

Destructuring the Response

requestValidator :: RequestValidator Source #

Creates a value of RequestValidator with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RequestValidator Source #

A set of validation rules for incoming Method requests.

In Swagger, 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: requestValidator smart constructor.

Instances

Eq RequestValidator Source # 
Data RequestValidator Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RequestValidator -> c RequestValidator #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RequestValidator #

toConstr :: RequestValidator -> Constr #

dataTypeOf :: RequestValidator -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RequestValidator) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RequestValidator) #

gmapT :: (forall b. Data b => b -> b) -> RequestValidator -> RequestValidator #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RequestValidator -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RequestValidator -> r #

gmapQ :: (forall d. Data d => d -> u) -> RequestValidator -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RequestValidator -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RequestValidator -> m RequestValidator #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RequestValidator -> m RequestValidator #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RequestValidator -> m RequestValidator #

Read RequestValidator Source # 
Show RequestValidator Source # 
Generic RequestValidator Source # 
Hashable RequestValidator Source # 
FromJSON RequestValidator Source # 
NFData RequestValidator Source # 

Methods

rnf :: RequestValidator -> () #

type Rep RequestValidator Source # 
type Rep RequestValidator = D1 * (MetaData "RequestValidator" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "RequestValidator'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rvValidateRequestParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rvName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rvValidateRequestBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rvId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))

Response Lenses

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

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

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

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