| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorks.DescribeInstances
Description
Requests a description of a set of instances.
This call accepts only one resource-identifying parameter.
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 about user permissions, see Managing User Permissions.
Synopsis
- data DescribeInstances = DescribeInstances' {}
- newDescribeInstances :: DescribeInstances
- describeInstances_instanceIds :: Lens' DescribeInstances (Maybe [Text])
- describeInstances_layerId :: Lens' DescribeInstances (Maybe Text)
- describeInstances_stackId :: Lens' DescribeInstances (Maybe Text)
- data DescribeInstancesResponse = DescribeInstancesResponse' {
- instances :: Maybe [Instance]
- httpStatus :: Int
- newDescribeInstancesResponse :: Int -> DescribeInstancesResponse
- describeInstancesResponse_instances :: Lens' DescribeInstancesResponse (Maybe [Instance])
- describeInstancesResponse_httpStatus :: Lens' DescribeInstancesResponse Int
Creating a Request
data DescribeInstances Source #
See: newDescribeInstances smart constructor.
Constructors
| DescribeInstances' | |
Fields
| |
Instances
newDescribeInstances :: DescribeInstances 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:
DescribeInstances, describeInstances_instanceIds - 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.
DescribeInstances, describeInstances_layerId - A layer ID. If you use this parameter, DescribeInstances returns
descriptions of the instances associated with the specified layer.
DescribeInstances, describeInstances_stackId - A stack ID. If you use this parameter, DescribeInstances returns
descriptions of the instances associated with the specified stack.
Request Lenses
describeInstances_instanceIds :: Lens' DescribeInstances (Maybe [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.
describeInstances_layerId :: Lens' DescribeInstances (Maybe Text) Source #
A layer ID. If you use this parameter, DescribeInstances returns
descriptions of the instances associated with the specified layer.
describeInstances_stackId :: Lens' DescribeInstances (Maybe Text) Source #
A stack ID. If you use this parameter, DescribeInstances returns
descriptions of the instances associated with the specified stack.
Destructuring the Response
data DescribeInstancesResponse Source #
Contains the response to a DescribeInstances request.
See: newDescribeInstancesResponse smart constructor.
Constructors
| DescribeInstancesResponse' | |
Fields
| |
Instances
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:instances:DescribeInstancesResponse', describeInstancesResponse_instances - An array of Instance objects that describe the instances.
$sel:httpStatus:DescribeInstancesResponse', describeInstancesResponse_httpStatus - The response's http status code.
Response Lenses
describeInstancesResponse_instances :: Lens' DescribeInstancesResponse (Maybe [Instance]) Source #
An array of Instance objects that describe the instances.
describeInstancesResponse_httpStatus :: Lens' DescribeInstancesResponse Int Source #
The response's http status code.