amazonka-connect-2.0: Amazon Connect Service 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.Connect.ListInstances

Description

This API is in preview release for Amazon Connect and is subject to change.

Return a list of instances which are in active state, creation-in-progress state, and failed state. Instances that aren't successfully created (they are in a failed state) are returned only for 24 hours after the CreateInstance API was invoked.

This operation returns paginated results.

Synopsis

Creating a Request

data ListInstances Source #

See: newListInstances smart constructor.

Constructors

ListInstances' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • nextToken :: Maybe Text

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Instances

Instances details
ToHeaders ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

ToPath ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

ToQuery ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

AWSPager ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

AWSRequest ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Associated Types

type AWSResponse ListInstances #

Generic ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Associated Types

type Rep ListInstances :: Type -> Type #

Read ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Show ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

NFData ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Methods

rnf :: ListInstances -> () #

Eq ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Hashable ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

type AWSResponse ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

type Rep ListInstances Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

type Rep ListInstances = D1 ('MetaData "ListInstances" "Amazonka.Connect.ListInstances" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "ListInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListInstances :: ListInstances Source #

Create a value of ListInstances 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:maxResults:ListInstances', listInstances_maxResults - The maximum number of results to return per page.

ListInstances, listInstances_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Request Lenses

listInstances_maxResults :: Lens' ListInstances (Maybe Natural) Source #

The maximum number of results to return per page.

listInstances_nextToken :: Lens' ListInstances (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Destructuring the Response

data ListInstancesResponse Source #

See: newListInstancesResponse smart constructor.

Constructors

ListInstancesResponse' 

Fields

Instances

Instances details
Generic ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Associated Types

type Rep ListInstancesResponse :: Type -> Type #

Show ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

NFData ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

Methods

rnf :: ListInstancesResponse -> () #

Eq ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

type Rep ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Connect.ListInstances

type Rep ListInstancesResponse = D1 ('MetaData "ListInstancesResponse" "Amazonka.Connect.ListInstances" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "ListInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceSummaryList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListInstancesResponse Source #

Create a value of ListInstancesResponse 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:instanceSummaryList:ListInstancesResponse', listInstancesResponse_instanceSummaryList - Information about the instances.

ListInstances, listInstancesResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:httpStatus:ListInstancesResponse', listInstancesResponse_httpStatus - The response's http status code.

Response Lenses

listInstancesResponse_nextToken :: Lens' ListInstancesResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.