amazonka-route53-autonaming-2.0: Amazon Cloud Map 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.Route53AutoNaming.ListInstances

Description

Lists summary information about the instances that you registered by using a specified service.

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 instances that you want Cloud Map to return in the response to a ListInstances request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 instances.

  • nextToken :: Maybe Text

    For the first ListInstances request, omit this value.

    If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

  • serviceId :: Text

    The ID of the service that you want to list instances for.

Instances

Instances details
ToJSON ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

ToHeaders ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

ToPath ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

ToQuery ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

AWSPager ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

AWSRequest ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Associated Types

type AWSResponse ListInstances #

Generic ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Associated Types

type Rep ListInstances :: Type -> Type #

Read ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Show ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

NFData ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Methods

rnf :: ListInstances -> () #

Eq ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Hashable ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

type AWSResponse ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

type Rep ListInstances Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

type Rep ListInstances = D1 ('MetaData "ListInstances" "Amazonka.Route53AutoNaming.ListInstances" "amazonka-route53-autonaming-2.0-98MlwjLW1enGruUXoTOCqp" '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)) :*: S1 ('MetaSel ('Just "serviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListInstances 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 instances that you want Cloud Map to return in the response to a ListInstances request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 instances.

ListInstances, listInstances_nextToken - For the first ListInstances request, omit this value.

If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

$sel:serviceId:ListInstances', listInstances_serviceId - The ID of the service that you want to list instances for.

Request Lenses

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

The maximum number of instances that you want Cloud Map to return in the response to a ListInstances request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 instances.

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

For the first ListInstances request, omit this value.

If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

listInstances_serviceId :: Lens' ListInstances Text Source #

The ID of the service that you want to list instances for.

Destructuring the Response

data ListInstancesResponse Source #

See: newListInstancesResponse smart constructor.

Constructors

ListInstancesResponse' 

Fields

  • instances :: Maybe [InstanceSummary]

    Summary information about the instances that are associated with the specified service.

  • nextToken :: Maybe Text

    If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Associated Types

type Rep ListInstancesResponse :: Type -> Type #

Read ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Show ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

NFData ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

Methods

rnf :: ListInstancesResponse -> () #

Eq ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

type Rep ListInstancesResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.ListInstances

type Rep ListInstancesResponse = D1 ('MetaData "ListInstancesResponse" "Amazonka.Route53AutoNaming.ListInstances" "amazonka-route53-autonaming-2.0-98MlwjLW1enGruUXoTOCqp" 'False) (C1 ('MetaCons "ListInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instances") '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:instances:ListInstancesResponse', listInstancesResponse_instances - Summary information about the instances that are associated with the specified service.

ListInstances, listInstancesResponse_nextToken - If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

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

Response Lenses

listInstancesResponse_instances :: Lens' ListInstancesResponse (Maybe [InstanceSummary]) Source #

Summary information about the instances that are associated with the specified service.

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

If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.