amazonka-opsworks-1.3.3.1: Amazon OpsWorks SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

See: AWS API Reference for DescribeInstances.

Synopsis

Creating a Request

describeInstances :: DescribeInstances Source

Creates a value of DescribeInstances with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

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.

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.

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.

Destructuring the Response

describeInstancesResponse Source

Creates a value of DescribeInstancesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dirsInstances :: Lens' DescribeInstancesResponse [Instance] Source

An array of Instance objects that describe the instances.