amazonka-ssm-1.3.7: Amazon Simple Systems Management Service 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.SSM.ListCommands

Contents

Description

Lists the commands requested by users of the AWS account.

See: AWS API Reference for ListCommands.

Synopsis

Creating a Request

listCommands :: ListCommands Source

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

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

Request Lenses

lcInstanceId :: Lens' ListCommands (Maybe Text) Source

(Optional) Lists commands issued against this instance ID.

lcFilters :: Lens' ListCommands (Maybe (NonEmpty CommandFilter)) Source

(Optional) One or more filters. Use a filter to return a more specific list of results.

lcNextToken :: Lens' ListCommands (Maybe Text) Source

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

lcCommandId :: Lens' ListCommands (Maybe Text) Source

(Optional) If provided, lists only the specified command.

lcMaxResults :: Lens' ListCommands (Maybe Natural) Source

(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Destructuring the Response

listCommandsResponse Source

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

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

Response Lenses

lcrsCommands :: Lens' ListCommandsResponse [Command] Source

(Optional) The list of commands requested by the user.

lcrsNextToken :: Lens' ListCommandsResponse (Maybe Text) Source

(Optional) The token for the next set of items to return. (You received this token from a previous call.)