amazonka-robomaker-2.0: Amazon RoboMaker SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

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

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

Instances

Instances details
ToJSON ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.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

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 #

Generic ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Associated Types

type Rep ListWorlds :: Type -> Type #

Read ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Show ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

NFData ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Methods

rnf :: ListWorlds -> () #

Eq ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Hashable ListWorlds Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type AWSResponse 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" "amazonka-robomaker-2.0-7StvfiX8F7FIYnuj4Jp3Jq" 'False) (C1 ('MetaCons "ListWorlds'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Filter))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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

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.

Request Lenses

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

Optional filters to limit results. You can use status.

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.

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.

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

Defined in Amazonka.RobOMaker.ListWorlds

Associated Types

type Rep ListWorldsResponse :: Type -> Type #

Read ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Show ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

NFData ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

Methods

rnf :: ListWorldsResponse -> () #

Eq ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type Rep ListWorldsResponse Source # 
Instance details

Defined in Amazonka.RobOMaker.ListWorlds

type Rep ListWorldsResponse = D1 ('MetaData "ListWorldsResponse" "Amazonka.RobOMaker.ListWorlds" "amazonka-robomaker-2.0-7StvfiX8F7FIYnuj4Jp3Jq" '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:

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.