amazonka-apigateway-1.6.1: 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 Source #

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 Source #

Request to list information about a collection of resources.

See: getResources smart constructor.

Instances
Eq GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Data GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.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 Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Show GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Generic GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Associated Types

type Rep GetResources :: Type -> Type #

Hashable GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

AWSPager GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

AWSRequest GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Associated Types

type Rs GetResources :: Type #

ToHeaders GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

ToPath GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

ToQuery GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

NFData GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Methods

rnf :: GetResources -> () #

type Rep GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

type Rep GetResources = D1 (MetaData "GetResources" "Network.AWS.APIGateway.GetResources" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "GetResources'" PrefixI True) ((S1 (MetaSel (Just "_grsEmbed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_grsLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_grsPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_grsRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetResources Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Request Lenses

grsEmbed :: Lens' GetResources [Text] Source #

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) Source #

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

grsPosition :: Lens' GetResources (Maybe Text) Source #

The current pagination position in the paged result set.

grsRestAPIId :: Lens' GetResources Text Source #

Required
The string identifier of the associated RestApi .

Destructuring the Response

getResourcesResponse Source #

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 Source #

Represents a collection of Resource resources.

Create an API

See: getResourcesResponse smart constructor.

Instances
Eq GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Data GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

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 Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Show GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Generic GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Associated Types

type Rep GetResourcesResponse :: Type -> Type #

NFData GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

Methods

rnf :: GetResourcesResponse -> () #

type Rep GetResourcesResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.GetResources

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

Response Lenses

grrsItems :: Lens' GetResourcesResponse [Resource] Source #

The current page of elements from this collection.

grrsResponseStatus :: Lens' GetResourcesResponse Int Source #

  • - | The response status code.