amazonka-opsworks-0.1.1: Amazon OpsWorks SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.DescribeInstances

Contents

Description

Requests a description of a set of instances.

You must specify at least one of the parameters.

Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

http://docs.aws.amazon.com/opsworks/latest/APIReference/API_DescribeInstances.html

Synopsis

Request

Request constructor

describeInstances :: DescribeInstances Source

DescribeInstances constructor.

The fields accessible through corresponding lenses are:

Request lenses

diInstanceIds :: Lens' DescribeInstances [Text] Source

An array of instance IDs to be described. If you use this parameter, DescribeInstances returns a description of the specified instances. Otherwise, it returns a description of every instance.

diLayerId :: Lens' DescribeInstances (Maybe Text) Source

A layer ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified layer.

diStackId :: Lens' DescribeInstances (Maybe Text) Source

A stack ID. If you use this parameter, DescribeInstances returns descriptions of the instances associated with the specified stack.

Response

Response constructor

describeInstancesResponse :: DescribeInstancesResponse Source

DescribeInstancesResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

dirInstances :: Lens' DescribeInstancesResponse [Instance] Source

An array of Instance objects that describe the instances.