amazonka-opsworks-1.0.0: 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.DescribeCommands

Contents

Description

Describes the results of specified commands.

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 DescribeCommands.

Synopsis

Creating a Request

describeCommands :: DescribeCommands Source

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

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

Request Lenses

dcInstanceId :: 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.

dcDeploymentId :: 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.

dcCommandIds :: Lens' DescribeCommands [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.

Destructuring the Response

describeCommandsResponse Source

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

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

Response Lenses

dcrsCommands :: Lens' DescribeCommandsResponse [Command] Source

An array of Command objects that describe each of the specified commands.

dcrsStatus :: Lens' DescribeCommandsResponse Int Source

The response status code.