libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2
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.ApiGatewayV2.GetModels

Description

Gets the Models for an API.

This operation returns paginated results.

Synopsis

Creating a Request

data GetModels Source #

See: newGetModels smart constructor.

Constructors

GetModels' 

Fields

  • nextToken :: Maybe Text

    The next page of elements from this collection. Not valid for the last element of the collection.

  • maxResults :: Maybe Text

    The maximum number of elements to be returned for this resource.

  • apiId :: Text

    The API identifier.

Instances

Instances details
Eq GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Read GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Show GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Generic GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Associated Types

type Rep GetModels :: Type -> Type #

NFData GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Methods

rnf :: GetModels -> () #

Hashable GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

AWSPager GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

AWSRequest GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Associated Types

type AWSResponse GetModels #

ToHeaders GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Methods

toHeaders :: GetModels -> [Header] #

ToPath GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

ToQuery GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

type Rep GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

type Rep GetModels = D1 ('MetaData "GetModels" "Amazonka.ApiGatewayV2.GetModels" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "GetModels'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetModels Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

newGetModels Source #

Create a value of GetModels 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:nextToken:GetModels', getModels_nextToken - The next page of elements from this collection. Not valid for the last element of the collection.

$sel:maxResults:GetModels', getModels_maxResults - The maximum number of elements to be returned for this resource.

$sel:apiId:GetModels', getModels_apiId - The API identifier.

Request Lenses

getModels_nextToken :: Lens' GetModels (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getModels_maxResults :: Lens' GetModels (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getModels_apiId :: Lens' GetModels Text Source #

The API identifier.

Destructuring the Response

data GetModelsResponse Source #

See: newGetModelsResponse smart constructor.

Constructors

GetModelsResponse' 

Fields

Instances

Instances details
Eq GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Read GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Show GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Generic GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Associated Types

type Rep GetModelsResponse :: Type -> Type #

NFData GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

Methods

rnf :: GetModelsResponse -> () #

type Rep GetModelsResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetModels

type Rep GetModelsResponse = D1 ('MetaData "GetModelsResponse" "Amazonka.ApiGatewayV2.GetModels" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "GetModelsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Model])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetModelsResponse Source #

Create a value of GetModelsResponse 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:GetModelsResponse', getModelsResponse_items - The elements from this collection.

$sel:nextToken:GetModels', getModelsResponse_nextToken - The next page of elements from this collection. Not valid for the last element of the collection.

$sel:httpStatus:GetModelsResponse', getModelsResponse_httpStatus - The response's http status code.

Response Lenses

getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model]) Source #

The elements from this collection.

getModelsResponse_nextToken :: Lens' GetModelsResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getModelsResponse_httpStatus :: Lens' GetModelsResponse Int Source #

The response's http status code.