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

Amazonka.APIGateway.GetResources

Description

Lists information about a collection of Resource resources.

This operation returns paginated results.

Synopsis

Creating a Request

data GetResources Source #

Request to list information about a collection of resources.

See: newGetResources smart constructor.

Constructors

GetResources' 

Fields

  • embed :: Maybe [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.

  • limit :: Maybe Int

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

  • position :: Maybe Text

    The current pagination position in the paged result set.

  • restApiId :: Text
    Required
    The string identifier of the associated RestApi.

Instances

Instances details
Eq GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Read GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Show GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Generic GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Associated Types

type Rep GetResources :: Type -> Type #

NFData GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Methods

rnf :: GetResources -> () #

Hashable GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

AWSPager GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

AWSRequest GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Associated Types

type AWSResponse GetResources #

ToHeaders GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

ToPath GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

ToQuery GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

type Rep GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

type Rep GetResources = D1 ('MetaData "GetResources" "Amazonka.APIGateway.GetResources" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GetResources'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "embed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetResources Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

newGetResources Source #

Create a value of GetResources with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:embed:GetResources', getResources_embed - 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.

$sel:limit:GetResources', getResources_limit - The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

$sel:position:GetResources', getResources_position - The current pagination position in the paged result set.

$sel:restApiId:GetResources', getResources_restApiId - [Required] The string identifier of the associated RestApi.

Request Lenses

getResources_embed :: Lens' GetResources (Maybe [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.

getResources_limit :: Lens' GetResources (Maybe Int) Source #

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

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

The current pagination position in the paged result set.

getResources_restApiId :: Lens' GetResources Text Source #

Required
The string identifier of the associated RestApi.

Destructuring the Response

data GetResourcesResponse Source #

Represents a collection of Resource resources.

Create an API

See: newGetResourcesResponse smart constructor.

Constructors

GetResourcesResponse' 

Fields

Instances

Instances details
Eq GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Read GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Show GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Generic GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Associated Types

type Rep GetResourcesResponse :: Type -> Type #

NFData GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

Methods

rnf :: GetResourcesResponse -> () #

type Rep GetResourcesResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetResources

type Rep GetResourcesResponse = D1 ('MetaData "GetResourcesResponse" "Amazonka.APIGateway.GetResources" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GetResourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Resource])) :*: (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetResourcesResponse Source #

Create a value of GetResourcesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:items:GetResourcesResponse', getResourcesResponse_items - The current page of elements from this collection.

$sel:position:GetResources', getResourcesResponse_position - Undocumented member.

$sel:httpStatus:GetResourcesResponse', getResourcesResponse_httpStatus - The response's http status code.

Response Lenses

getResourcesResponse_items :: Lens' GetResourcesResponse (Maybe [Resource]) Source #

The current page of elements from this collection.