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.GetResources

Contents

Description

Lists information about a collection of Resource resources.

This operation returns paginated results.

Synopsis

Creating a Request

getResources #

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

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

  • grsEmbed - A query parameter used to retrieve the specified resources embedded in the returned Resources resource in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET restapis{restapi_id}/resources?embed=methods .
  • grsLimit - The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
  • grsPosition - The current pagination position in the paged result set.
  • grsRestAPIId - [Required] The string identifier of the associated RestApi .

data GetResources #

Request to list information about a collection of resources.

See: getResources smart constructor.

Instances

Eq GetResources # 
Data GetResources # 

Methods

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

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

toConstr :: GetResources -> Constr #

dataTypeOf :: GetResources -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetResources # 
Show GetResources # 
Generic GetResources # 

Associated Types

type Rep GetResources :: * -> * #

Hashable GetResources # 
NFData GetResources # 

Methods

rnf :: GetResources -> () #

AWSPager GetResources # 
AWSRequest GetResources # 
ToHeaders GetResources # 
ToPath GetResources # 
ToQuery GetResources # 
type Rep GetResources # 
type Rep GetResources = D1 * (MetaData "GetResources" "Network.AWS.APIGateway.GetResources" "amazonka-apigateway-1.6.0-6sEXF2HuGsL3K99fRnfViy" False) (C1 * (MetaCons "GetResources'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_grsEmbed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_grsLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_grsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_grsRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs GetResources # 

Request Lenses

grsEmbed :: Lens' GetResources [Text] #

A query parameter used to retrieve the specified resources embedded in the returned Resources resource in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET restapis{restapi_id}/resources?embed=methods .

grsLimit :: Lens' GetResources (Maybe Int) #

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

grsPosition :: Lens' GetResources (Maybe Text) #

The current pagination position in the paged result set.

grsRestAPIId :: Lens' GetResources Text #

Required
The string identifier of the associated RestApi .

Destructuring the Response

getResourcesResponse #

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

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

data GetResourcesResponse #

Represents a collection of Resource resources.

Create an API

See: getResourcesResponse smart constructor.

Instances

Eq GetResourcesResponse # 
Data GetResourcesResponse # 

Methods

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

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

toConstr :: GetResourcesResponse -> Constr #

dataTypeOf :: GetResourcesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetResourcesResponse # 
Show GetResourcesResponse # 
Generic GetResourcesResponse # 
NFData GetResourcesResponse # 

Methods

rnf :: GetResourcesResponse -> () #

type Rep GetResourcesResponse # 
type Rep GetResourcesResponse = D1 * (MetaData "GetResourcesResponse" "Network.AWS.APIGateway.GetResources" "amazonka-apigateway-1.6.0-6sEXF2HuGsL3K99fRnfViy" False) (C1 * (MetaCons "GetResourcesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_grrsItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Resource]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_grrsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_grrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

grrsItems :: Lens' GetResourcesResponse [Resource] #

The current page of elements from this collection.

grrsResponseStatus :: Lens' GetResourcesResponse Int #

  • - | The response status code.