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

Description

Gets the Routes for an API.

This operation returns paginated results.

Synopsis

Creating a Request

data GetRoutes Source #

See: newGetRoutes smart constructor.

Constructors

GetRoutes' 

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

Defined in Amazonka.ApiGatewayV2.GetRoutes

Read GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Show GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Generic GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Associated Types

type Rep GetRoutes :: Type -> Type #

NFData GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Methods

rnf :: GetRoutes -> () #

Hashable GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

AWSPager GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

AWSRequest GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Associated Types

type AWSResponse GetRoutes #

ToHeaders GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Methods

toHeaders :: GetRoutes -> [Header] #

ToPath GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

ToQuery GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

type Rep GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

type Rep GetRoutes = D1 ('MetaData "GetRoutes" "Amazonka.ApiGatewayV2.GetRoutes" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "GetRoutes'" '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 GetRoutes Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

newGetRoutes Source #

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

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

$sel:apiId:GetRoutes', getRoutes_apiId - The API identifier.

Request Lenses

getRoutes_nextToken :: Lens' GetRoutes (Maybe Text) Source #

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

getRoutes_maxResults :: Lens' GetRoutes (Maybe Text) Source #

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

getRoutes_apiId :: Lens' GetRoutes Text Source #

The API identifier.

Destructuring the Response

data GetRoutesResponse Source #

See: newGetRoutesResponse smart constructor.

Constructors

GetRoutesResponse' 

Fields

Instances

Instances details
Eq GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Read GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Show GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Generic GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Associated Types

type Rep GetRoutesResponse :: Type -> Type #

NFData GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

Methods

rnf :: GetRoutesResponse -> () #

type Rep GetRoutesResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.GetRoutes

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

newGetRoutesResponse Source #

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

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

$sel:httpStatus:GetRoutesResponse', getRoutesResponse_httpStatus - The response's http status code.

Response Lenses

getRoutesResponse_items :: Lens' GetRoutesResponse (Maybe [Route]) Source #

The elements from this collection.

getRoutesResponse_nextToken :: Lens' GetRoutesResponse (Maybe Text) Source #

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

getRoutesResponse_httpStatus :: Lens' GetRoutesResponse Int Source #

The response's http status code.