| 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.SSM.ListCommands
Description
Lists the commands requested by users of the Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListCommands = ListCommands' {}
- newListCommands :: ListCommands
- listCommands_commandId :: Lens' ListCommands (Maybe Text)
- listCommands_filters :: Lens' ListCommands (Maybe (NonEmpty CommandFilter))
- listCommands_instanceId :: Lens' ListCommands (Maybe Text)
- listCommands_maxResults :: Lens' ListCommands (Maybe Natural)
- listCommands_nextToken :: Lens' ListCommands (Maybe Text)
- data ListCommandsResponse = ListCommandsResponse' {}
- newListCommandsResponse :: Int -> ListCommandsResponse
- listCommandsResponse_commands :: Lens' ListCommandsResponse (Maybe [Command])
- listCommandsResponse_nextToken :: Lens' ListCommandsResponse (Maybe Text)
- listCommandsResponse_httpStatus :: Lens' ListCommandsResponse Int
Creating a Request
data ListCommands Source #
See: newListCommands smart constructor.
Constructors
| ListCommands' | |
Fields
| |
Instances
newListCommands :: ListCommands Source #
Create a value of ListCommands 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:
ListCommands, listCommands_commandId - (Optional) If provided, lists only the specified command.
ListCommands, listCommands_filters - (Optional) One or more filters. Use a filter to return a more specific
list of results.
ListCommands, listCommands_instanceId - (Optional) Lists commands issued against this managed node ID.
You can't specify a managed node ID in the same command that you
specify Status = Pending. This is because the command hasn't
reached the managed node yet.
$sel:maxResults:ListCommands', listCommands_maxResults - (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.
ListCommands, listCommands_nextToken - (Optional) The token for the next set of items to return. (You received
this token from a previous call.)
Request Lenses
listCommands_commandId :: Lens' ListCommands (Maybe Text) Source #
(Optional) If provided, lists only the specified command.
listCommands_filters :: Lens' ListCommands (Maybe (NonEmpty CommandFilter)) Source #
(Optional) One or more filters. Use a filter to return a more specific list of results.
listCommands_instanceId :: Lens' ListCommands (Maybe Text) Source #
(Optional) Lists commands issued against this managed node ID.
You can't specify a managed node ID in the same command that you
specify Status = Pending. This is because the command hasn't
reached the managed node yet.
listCommands_maxResults :: 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.
listCommands_nextToken :: Lens' ListCommands (Maybe Text) Source #
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
Destructuring the Response
data ListCommandsResponse Source #
See: newListCommandsResponse smart constructor.
Constructors
| ListCommandsResponse' | |
Instances
newListCommandsResponse Source #
Arguments
| :: Int | |
| -> ListCommandsResponse |
Create a value of ListCommandsResponse 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:ListCommandsResponse', listCommandsResponse_commands - (Optional) The list of commands requested by the user.
ListCommands, listCommandsResponse_nextToken - (Optional) The token for the next set of items to return. (You received
this token from a previous call.)
$sel:httpStatus:ListCommandsResponse', listCommandsResponse_httpStatus - The response's http status code.
Response Lenses
listCommandsResponse_commands :: Lens' ListCommandsResponse (Maybe [Command]) Source #
(Optional) The list of commands requested by the user.
listCommandsResponse_nextToken :: Lens' ListCommandsResponse (Maybe Text) Source #
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
listCommandsResponse_httpStatus :: Lens' ListCommandsResponse Int Source #
The response's http status code.