libZSservicesZSamazonka-robomakerZSamazonka-robomaker
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.RobOMaker.ListWorlds

Description

Lists worlds.

This operation returns paginated results.

Synopsis

Creating a Request

data ListWorlds Source #

See: newListWorlds smart constructor.

Constructors

ListWorlds' 

Fields

  • filters :: Maybe (NonEmpty Filter)

    Optional filters to limit results. You can use status.

  • nextToken :: Maybe Text

    If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

  • maxResults :: Maybe Int

    When this parameter is used, ListWorlds only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListWorlds request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListWorlds returns up to 100 results and a nextToken value if applicable.

Instances

Instances details
Eq ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Read ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Show ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Generic ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Associated Types

type Rep ListWorlds :: Type -> Type #

NFData ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Methods

rnf :: ListWorlds -> () #

Hashable ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

ToJSON ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

AWSPager ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

AWSRequest ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Associated Types

type AWSResponse ListWorlds #

ToHeaders ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Methods

toHeaders :: ListWorlds -> [Header] #

ToPath ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

ToQuery ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type Rep ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type Rep ListWorlds = D1 ('MetaData "ListWorlds" "Amazonka.RobOMaker.ListWorlds" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "ListWorlds'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Filter))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

newListWorlds :: ListWorlds Source #

Create a value of ListWorlds 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:filters:ListWorlds', listWorlds_filters - Optional filters to limit results. You can use status.

$sel:nextToken:ListWorlds', listWorlds_nextToken - If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

$sel:maxResults:ListWorlds', listWorlds_maxResults - When this parameter is used, ListWorlds only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListWorlds request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListWorlds returns up to 100 results and a nextToken value if applicable.

Request Lenses

listWorlds_filters :: Lens' ListWorlds (Maybe (NonEmpty Filter)) Source #

Optional filters to limit results. You can use status.

listWorlds_nextToken :: Lens' ListWorlds (Maybe Text) Source #

If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

listWorlds_maxResults :: Lens' ListWorlds (Maybe Int) Source #

When this parameter is used, ListWorlds only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListWorlds request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListWorlds returns up to 100 results and a nextToken value if applicable.

Destructuring the Response

data ListWorldsResponse Source #

See: newListWorldsResponse smart constructor.

Constructors

ListWorldsResponse' 

Fields

  • nextToken :: Maybe Text

    If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

  • worldSummaries :: Maybe [WorldSummary]

    Summary information for worlds.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Read ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Show ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Generic ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Associated Types

type Rep ListWorldsResponse :: Type -> Type #

NFData ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Methods

rnf :: ListWorldsResponse -> () #

type Rep ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type Rep ListWorldsResponse = D1 ('MetaData "ListWorldsResponse" "Amazonka.RobOMaker.ListWorlds" "libZSservicesZSamazonka-robomakerZSamazonka-robomaker" 'False) (C1 ('MetaCons "ListWorldsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "worldSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WorldSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListWorldsResponse Source #

Create a value of ListWorldsResponse 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:ListWorlds', listWorldsResponse_nextToken - If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

$sel:worldSummaries:ListWorldsResponse', listWorldsResponse_worldSummaries - Summary information for worlds.

$sel:httpStatus:ListWorldsResponse', listWorldsResponse_httpStatus - The response's http status code.

Response Lenses

listWorldsResponse_nextToken :: Lens' ListWorldsResponse (Maybe Text) Source #

If the previous paginated request did not return all of the remaining results, the response object's nextToken parameter value is set to a token. To retrieve the next set of results, call ListWorlds again and assign that token to the request object's nextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.