Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists the commands requested by users of the AWS account.
This operation returns paginated results.
- listCommands :: ListCommands
- data ListCommands
- lcInstanceId :: Lens' ListCommands (Maybe Text)
- lcFilters :: Lens' ListCommands (Maybe (NonEmpty CommandFilter))
- lcNextToken :: Lens' ListCommands (Maybe Text)
- lcCommandId :: Lens' ListCommands (Maybe Text)
- lcMaxResults :: Lens' ListCommands (Maybe Natural)
- listCommandsResponse :: Int -> ListCommandsResponse
- data ListCommandsResponse
- lcrsCommands :: Lens' ListCommandsResponse [Command]
- lcrsNextToken :: Lens' ListCommandsResponse (Maybe Text)
- lcrsResponseStatus :: Lens' ListCommandsResponse Int
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:
lcInstanceId
- (Optional) Lists commands issued against this instance ID.lcFilters
- (Optional) One or more filters. Use a filter to return a more specific list of results.lcNextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)lcCommandId
- (Optional) If provided, lists only the specified command.lcMaxResults
- (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.
data ListCommands Source #
See: listCommands
smart constructor.
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
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:
lcrsCommands
- (Optional) The list of commands requested by the user.lcrsNextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)lcrsResponseStatus
- -- | The response status code.
data ListCommandsResponse Source #
See: listCommandsResponse
smart constructor.
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.)
lcrsResponseStatus :: Lens' ListCommandsResponse Int Source #
- - | The response status code.