amazonka-ssm-1.6.1: Amazon Simple Systems Manager (SSM) SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

This operation returns paginated results.

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:

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

Instances
Eq ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Data ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListCommands -> c ListCommands #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListCommands #

toConstr :: ListCommands -> Constr #

dataTypeOf :: ListCommands -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListCommands) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListCommands) #

gmapT :: (forall b. Data b => b -> b) -> ListCommands -> ListCommands #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListCommands -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListCommands -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListCommands -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListCommands -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListCommands -> m ListCommands #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListCommands -> m ListCommands #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListCommands -> m ListCommands #

Read ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Show ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Generic ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Associated Types

type Rep ListCommands :: Type -> Type #

Hashable ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

ToJSON ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

AWSPager ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

AWSRequest ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Associated Types

type Rs ListCommands :: Type #

ToHeaders ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

ToPath ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

ToQuery ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

NFData ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Methods

rnf :: ListCommands -> () #

type Rep ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

type Rep ListCommands = D1 (MetaData "ListCommands" "Network.AWS.SSM.ListCommands" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "ListCommands'" PrefixI True) ((S1 (MetaSel (Just "_lcInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 CommandFilter)))) :*: (S1 (MetaSel (Just "_lcNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lcCommandId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs ListCommands Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

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:

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

Instances
Eq ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Data ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListCommandsResponse -> c ListCommandsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListCommandsResponse #

toConstr :: ListCommandsResponse -> Constr #

dataTypeOf :: ListCommandsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListCommandsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListCommandsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListCommandsResponse -> ListCommandsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListCommandsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListCommandsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListCommandsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListCommandsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListCommandsResponse -> m ListCommandsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListCommandsResponse -> m ListCommandsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListCommandsResponse -> m ListCommandsResponse #

Read ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Show ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Generic ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Associated Types

type Rep ListCommandsResponse :: Type -> Type #

NFData ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

Methods

rnf :: ListCommandsResponse -> () #

type Rep ListCommandsResponse Source # 
Instance details

Defined in Network.AWS.SSM.ListCommands

type Rep ListCommandsResponse = D1 (MetaData "ListCommandsResponse" "Network.AWS.SSM.ListCommands" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "ListCommandsResponse'" PrefixI True) (S1 (MetaSel (Just "_lcrsCommands") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Command])) :*: (S1 (MetaSel (Just "_lcrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.