amazonka-apigateway-1.4.1: 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.GetMethod

Contents

Description

Describe an existing Method resource.

Synopsis

Creating a Request

getMethod Source #

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

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

data GetMethod Source #

Request to describe an existing Method resource.

See: getMethod smart constructor.

Instances

Eq GetMethod Source # 
Data GetMethod Source # 

Methods

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

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

toConstr :: GetMethod -> Constr #

dataTypeOf :: GetMethod -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetMethod Source # 
Show GetMethod Source # 
Generic GetMethod Source # 

Associated Types

type Rep GetMethod :: * -> * #

Hashable GetMethod Source # 
NFData GetMethod Source # 

Methods

rnf :: GetMethod -> () #

AWSRequest GetMethod Source # 
ToQuery GetMethod Source # 
ToPath GetMethod Source # 
ToHeaders GetMethod Source # 

Methods

toHeaders :: GetMethod -> [Header] #

type Rep GetMethod Source # 
type Rep GetMethod = D1 (MetaData "GetMethod" "Network.AWS.APIGateway.GetMethod" "amazonka-apigateway-1.4.1-9LwN6bvDRGjBL5d3wQjvoh" False) (C1 (MetaCons "GetMethod'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gmmRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_gmmResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gmmHttpMethod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetMethod Source # 

Request Lenses

gmmRestAPIId :: Lens' GetMethod Text Source #

The RestApi identifier for the Method resource.

gmmResourceId :: Lens' GetMethod Text Source #

The Resource identifier for the Method resource.

gmmHttpMethod :: Lens' GetMethod Text Source #

Specifies the put method request's HTTP method type.

Destructuring the Response

method :: Method Source #

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

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

data Method Source #

Represents a method.

See: method smart constructor.

Instances

Eq Method Source # 

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Data Method Source # 

Methods

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

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

toConstr :: Method -> Constr #

dataTypeOf :: Method -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Method Source # 
Show Method Source # 
Generic Method Source # 

Associated Types

type Rep Method :: * -> * #

Methods

from :: Method -> Rep Method x #

to :: Rep Method x -> Method #

Hashable Method Source # 

Methods

hashWithSalt :: Int -> Method -> Int #

hash :: Method -> Int #

FromJSON Method Source # 
NFData Method Source # 

Methods

rnf :: Method -> () #

type Rep Method Source # 

Response Lenses

mMethodResponses :: Lens' Method (HashMap Text MethodResponse) Source #

Represents available responses that can be sent to the caller. Method responses are represented as a key/value map, with an HTTP status code as the key and a MethodResponse as the value. The status codes are available for the Integration responses to map to.

mHttpMethod :: Lens' Method (Maybe Text) Source #

The HTTP method.

mRequestModels :: Lens' Method (HashMap Text Text) Source #

Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.

mRequestParameters :: Lens' Method (HashMap Text Bool) Source #

Represents request parameters that can be accepted by Amazon API Gateway. Request parameters are represented as a key/value map, with a source as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A source must match the pattern 'method.request.{location}.{name}', where location is either querystring, path, or header. name is a valid, unique parameter name. Sources specified here are available to the integration for mapping to integration request parameters or templates.

mAuthorizerId :: Lens' Method (Maybe Text) Source #

Specifies the identifier of an Authorizer to use on this Method. The authorizationType must be CUSTOM.

mAuthorizationType :: Lens' Method (Maybe Text) Source #

The method's authorization type.

mApiKeyRequired :: Lens' Method (Maybe Bool) Source #

Specifies whether the method requires a valid ApiKey.

mMethodIntegration :: Lens' Method (Maybe Integration) Source #

The method's integration.