libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • instanceId :: Maybe Text

    (Optional) Lists commands issued against this instance ID.

    You can't specify an instance ID in the same command that you specify Status = Pending. This is because the command hasn't reached the instance yet.

  • filters :: Maybe (NonEmpty CommandFilter)

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

  • nextToken :: Maybe Text

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

  • commandId :: Maybe Text

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

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

Instances

Instances details
Eq ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Read ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Show ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Generic ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Associated Types

type Rep ListCommands :: Type -> Type #

NFData ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Methods

rnf :: ListCommands -> () #

Hashable ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

ToJSON 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 #

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

type Rep ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommands = D1 ('MetaData "ListCommands" "Amazonka.SSM.ListCommands" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ListCommands'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty CommandFilter)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "commandId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse ListCommands Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

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:

$sel:instanceId:ListCommands', listCommands_instanceId - (Optional) Lists commands issued against this instance ID.

You can't specify an instance ID in the same command that you specify Status = Pending. This is because the command hasn't reached the instance yet.

$sel:filters:ListCommands', listCommands_filters - (Optional) One or more filters. Use a filter to return a more specific list of results.

$sel:nextToken:ListCommands', listCommands_nextToken - (Optional) The token for the next set of items to return. (You received this token from a previous call.)

$sel:commandId:ListCommands', listCommands_commandId - (Optional) If provided, lists only the specified command.

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

Request Lenses

listCommands_instanceId :: Lens' ListCommands (Maybe Text) Source #

(Optional) Lists commands issued against this instance ID.

You can't specify an instance ID in the same command that you specify Status = Pending. This is because the command hasn't reached the instance yet.

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

listCommands_commandId :: Lens' ListCommands (Maybe Text) Source #

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

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.

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
Eq ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Read ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Show ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Generic ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Associated Types

type Rep ListCommandsResponse :: Type -> Type #

NFData ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

Methods

rnf :: ListCommandsResponse -> () #

type Rep ListCommandsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListCommands

type Rep ListCommandsResponse = D1 ('MetaData "ListCommandsResponse" "Amazonka.SSM.ListCommands" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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.

$sel:nextToken: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.)