amazonka-apigateway-1.4.2: Amazon API Gateway SDK.

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

Network.AWS.APIGateway.TestInvokeMethod

Contents

Description

Simulate the execution of a Method in your RestApi with headers, parameters, and an incoming request body.

Synopsis

Creating a Request

testInvokeMethod Source #

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

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

data TestInvokeMethod Source #

Make a request to simulate the execution of a Method.

See: testInvokeMethod smart constructor.

Instances

Eq TestInvokeMethod Source # 
Data TestInvokeMethod Source # 

Methods

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

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

toConstr :: TestInvokeMethod -> Constr #

dataTypeOf :: TestInvokeMethod -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: TestInvokeMethod -> () #

AWSRequest TestInvokeMethod Source # 
ToPath TestInvokeMethod Source # 
ToHeaders TestInvokeMethod Source # 
ToQuery TestInvokeMethod Source # 
type Rep TestInvokeMethod Source # 
type Rep TestInvokeMethod = D1 (MetaData "TestInvokeMethod" "Network.AWS.APIGateway.TestInvokeMethod" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "TestInvokeMethod'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_timPathWithQueryString") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_timBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_timClientCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_timStageVariables") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_timHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_timRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_timResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_timHttpMethod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs TestInvokeMethod Source # 

Request Lenses

timPathWithQueryString :: Lens' TestInvokeMethod (Maybe Text) Source #

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

timBody :: Lens' TestInvokeMethod (Maybe Text) Source #

The simulated request body of an incoming invocation request.

timClientCertificateId :: Lens' TestInvokeMethod (Maybe Text) Source #

A ClientCertificate identifier to use in the test invocation. API Gateway will use use the certificate when making the HTTPS request to the defined backend endpoint.

timStageVariables :: Lens' TestInvokeMethod (HashMap Text Text) Source #

A key-value map of stage variables to simulate an invocation on a deployed Stage.

timHeaders :: Lens' TestInvokeMethod (HashMap Text Text) Source #

A key-value map of headers to simulate an incoming invocation request.

timRestAPIId :: Lens' TestInvokeMethod Text Source #

Specifies a test invoke method request's API identifier.

timResourceId :: Lens' TestInvokeMethod Text Source #

Specifies a test invoke method request's resource ID.

timHttpMethod :: Lens' TestInvokeMethod Text Source #

Specifies a test invoke method request's HTTP method.

Destructuring the Response

testInvokeMethodResponse Source #

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

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

data TestInvokeMethodResponse Source #

Represents the response of the test invoke request in HTTP method.

See: testInvokeMethodResponse smart constructor.

Instances

Eq TestInvokeMethodResponse Source # 
Data TestInvokeMethodResponse Source # 

Methods

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

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

toConstr :: TestInvokeMethodResponse -> Constr #

dataTypeOf :: TestInvokeMethodResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TestInvokeMethodResponse Source # 
Show TestInvokeMethodResponse Source # 
Generic TestInvokeMethodResponse Source # 
NFData TestInvokeMethodResponse Source # 
type Rep TestInvokeMethodResponse Source # 
type Rep TestInvokeMethodResponse = D1 (MetaData "TestInvokeMethodResponse" "Network.AWS.APIGateway.TestInvokeMethod" "amazonka-apigateway-1.4.2-1ZfIGe0X9Tw3KKubfE7kqg" False) (C1 (MetaCons "TestInvokeMethodResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_timrsLog") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_timrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_timrsBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_timrsLatency") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))) ((:*:) (S1 (MetaSel (Just Symbol "_timrsHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_timrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

timrsLog :: Lens' TestInvokeMethodResponse (Maybe Text) Source #

The Amazon API Gateway execution log for the test invoke request.

timrsBody :: Lens' TestInvokeMethodResponse (Maybe Text) Source #

The body of HTTP response.

timrsLatency :: Lens' TestInvokeMethodResponse (Maybe Integer) Source #

The execution latency of the test invoke request.