amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSM.ListCommands

Description

Lists the commands requested by users of the Amazon Web Services account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListCommands Source #

See: newListCommands smart constructor.

Constructors

ListCommands' 

Fields

  • commandId :: Maybe Text

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

  • filters :: Maybe (NonEmpty CommandFilter)

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

  • instanceId :: Maybe Text

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

  • maxResults :: Maybe Natural

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

  • nextToken :: Maybe Text

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

Instances

Instances details
ToJSON ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

ToHeaders ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

ToPath ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

ToQuery ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

AWSPager ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

AWSRequest ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Associated Types

type AWSResponse ListCommands #

Generic ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Associated Types

type Rep ListCommands :: Type -> Type #

Read ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Show ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

NFData ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Methods

rnf :: ListCommands -> () #

Eq ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Hashable ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type AWSResponse ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommands = D1 ('MetaData "ListCommands" "Amazonka.SSM.ListCommands" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "ListCommands'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commandId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CommandFilter)))) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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' 

Fields

  • commands :: Maybe [Command]

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

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Associated Types

type Rep ListCommandsResponse :: Type -> Type #

Show ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

NFData ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Methods

rnf :: ListCommandsResponse -> () #

Eq ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommandsResponse = D1 ('MetaData "ListCommandsResponse" "Amazonka.SSM.ListCommands" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "ListCommandsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "commands") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Command])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCommandsResponse Source #

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