libZSservicesZSamazonka-gameliftZSamazonka-gamelift
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.GameLift.DescribeInstances

Description

Retrieves information about a fleet's instances, including instance IDs, connection data, and status.

This operation can be used in the following ways:

  • To get information on all instances that are deployed to a fleet's home Region, provide the fleet ID.
  • To get information on all instances that are deployed to a fleet's remote location, provide the fleet ID and location name.
  • To get information on a specific instance in a fleet, provide the fleet ID and instance ID.

Use the pagination parameters to retrieve results as a set of sequential pages.

If successful, an Instance object is returned for each requested instance. Instances are not returned in any particular order.

Learn more

Remotely Access Fleet Instances

Debug Fleet Issues

Related actions

DescribeInstances | GetInstanceAccess | DescribeEC2InstanceLimits | All APIs by task

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeInstances Source #

Represents the input for a request operation.

See: newDescribeInstances smart constructor.

Constructors

DescribeInstances' 

Fields

  • instanceId :: Maybe Text

    A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.

  • location :: Maybe Text

    The name of a location to retrieve instance information for, in the form of an AWS Region code such as us-west-2.

  • nextToken :: Maybe Text

    A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

  • limit :: Maybe Natural

    The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

  • fleetId :: Text

    A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.

Instances

Instances details
Eq DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Read DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Show DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Generic DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Associated Types

type Rep DescribeInstances :: Type -> Type #

NFData DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Methods

rnf :: DescribeInstances -> () #

Hashable DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

ToJSON DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

AWSPager DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

AWSRequest DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Associated Types

type AWSResponse DescribeInstances #

ToHeaders DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

ToPath DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

ToQuery DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

type Rep DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

type Rep DescribeInstances = D1 ('MetaData "DescribeInstances" "Amazonka.GameLift.DescribeInstances" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "DescribeInstances'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse DescribeInstances Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

newDescribeInstances Source #

Create a value of DescribeInstances 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:instanceId:DescribeInstances', describeInstances_instanceId - A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.

$sel:location:DescribeInstances', describeInstances_location - The name of a location to retrieve instance information for, in the form of an AWS Region code such as us-west-2.

$sel:nextToken:DescribeInstances', describeInstances_nextToken - A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

$sel:limit:DescribeInstances', describeInstances_limit - The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

$sel:fleetId:DescribeInstances', describeInstances_fleetId - A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.

Request Lenses

describeInstances_instanceId :: Lens' DescribeInstances (Maybe Text) Source #

A unique identifier for an instance to retrieve. Specify an instance ID or leave blank to retrieve all instances in the fleet.

describeInstances_location :: Lens' DescribeInstances (Maybe Text) Source #

The name of a location to retrieve instance information for, in the form of an AWS Region code such as us-west-2.

describeInstances_nextToken :: Lens' DescribeInstances (Maybe Text) Source #

A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

describeInstances_limit :: Lens' DescribeInstances (Maybe Natural) Source #

The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

describeInstances_fleetId :: Lens' DescribeInstances Text Source #

A unique identifier for the fleet to retrieve instance information for. You can use either the fleet ID or ARN value.

Destructuring the Response

data DescribeInstancesResponse Source #

Represents the returned data in response to a request operation.

See: newDescribeInstancesResponse smart constructor.

Constructors

DescribeInstancesResponse' 

Fields

  • nextToken :: Maybe Text

    A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

  • instances :: Maybe [Instance]

    A collection of objects containing properties for each instance returned.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Read DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Show DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Generic DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

Associated Types

type Rep DescribeInstancesResponse :: Type -> Type #

NFData DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

type Rep DescribeInstancesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeInstances

type Rep DescribeInstancesResponse = D1 ('MetaData "DescribeInstancesResponse" "Amazonka.GameLift.DescribeInstances" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "DescribeInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Instance])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeInstancesResponse Source #

Create a value of DescribeInstancesResponse 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:DescribeInstances', describeInstancesResponse_nextToken - A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

$sel:instances:DescribeInstancesResponse', describeInstancesResponse_instances - A collection of objects containing properties for each instance returned.

$sel:httpStatus:DescribeInstancesResponse', describeInstancesResponse_httpStatus - The response's http status code.

Response Lenses

describeInstancesResponse_nextToken :: Lens' DescribeInstancesResponse (Maybe Text) Source #

A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

describeInstancesResponse_instances :: Lens' DescribeInstancesResponse (Maybe [Instance]) Source #

A collection of objects containing properties for each instance returned.