| 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.DescribeCommands
Description
Describes the results of specified commands.
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 DescribeCommands = DescribeCommands' {
- commandIds :: Maybe [Text]
 - deploymentId :: Maybe Text
 - instanceId :: Maybe Text
 
 - newDescribeCommands :: DescribeCommands
 - describeCommands_commandIds :: Lens' DescribeCommands (Maybe [Text])
 - describeCommands_deploymentId :: Lens' DescribeCommands (Maybe Text)
 - describeCommands_instanceId :: Lens' DescribeCommands (Maybe Text)
 - data DescribeCommandsResponse = DescribeCommandsResponse' {
- commands :: Maybe [Command]
 - httpStatus :: Int
 
 - newDescribeCommandsResponse :: Int -> DescribeCommandsResponse
 - describeCommandsResponse_commands :: Lens' DescribeCommandsResponse (Maybe [Command])
 - describeCommandsResponse_httpStatus :: Lens' DescribeCommandsResponse Int
 
Creating a Request
data DescribeCommands Source #
See: newDescribeCommands smart constructor.
Constructors
| DescribeCommands' | |
Fields 
  | |
Instances
newDescribeCommands :: DescribeCommands Source #
Create a value of DescribeCommands 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:commandIds:DescribeCommands', describeCommands_commandIds - An array of command IDs. If you include this parameter,
 DescribeCommands returns a description of the specified commands.
 Otherwise, it returns a description of every command.
DescribeCommands, describeCommands_deploymentId - The deployment ID. If you include this parameter, DescribeCommands
 returns a description of the commands associated with the specified
 deployment.
DescribeCommands, describeCommands_instanceId - The instance ID. If you include this parameter, DescribeCommands
 returns a description of the commands associated with the specified
 instance.
Request Lenses
describeCommands_commandIds :: Lens' DescribeCommands (Maybe [Text]) Source #
An array of command IDs. If you include this parameter,
 DescribeCommands returns a description of the specified commands.
 Otherwise, it returns a description of every command.
describeCommands_deploymentId :: Lens' DescribeCommands (Maybe Text) Source #
The deployment ID. If you include this parameter, DescribeCommands
 returns a description of the commands associated with the specified
 deployment.
describeCommands_instanceId :: Lens' DescribeCommands (Maybe Text) Source #
The instance ID. If you include this parameter, DescribeCommands
 returns a description of the commands associated with the specified
 instance.
Destructuring the Response
data DescribeCommandsResponse Source #
Contains the response to a DescribeCommands request.
See: newDescribeCommandsResponse smart constructor.
Constructors
| DescribeCommandsResponse' | |
Fields 
  | |
Instances
newDescribeCommandsResponse Source #
Create a value of DescribeCommandsResponse 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:commands:DescribeCommandsResponse', describeCommandsResponse_commands - An array of Command objects that describe each of the specified
 commands.
$sel:httpStatus:DescribeCommandsResponse', describeCommandsResponse_httpStatus - The response's http status code.
Response Lenses
describeCommandsResponse_commands :: Lens' DescribeCommandsResponse (Maybe [Command]) Source #
An array of Command objects that describe each of the specified
 commands.
describeCommandsResponse_httpStatus :: Lens' DescribeCommandsResponse Int Source #
The response's http status code.