Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data DescribeInstances
- describeInstances :: DescribeInstances
- diInstanceIds :: Lens' DescribeInstances [Text]
- diLayerId :: Lens' DescribeInstances (Maybe Text)
- diStackId :: Lens' DescribeInstances (Maybe Text)
- data DescribeInstancesResponse
- describeInstancesResponse :: DescribeInstancesResponse
- dirInstances :: Lens' DescribeInstancesResponse [Instance]
Request
data DescribeInstances Source
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:
dirInstances
::
[Instance
]
Response lenses
dirInstances :: Lens' DescribeInstancesResponse [Instance] Source
An array of Instance
objects that describe the instances.