amazonka-discovery-1.6.1: Amazon Application Discovery Service 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.Discovery.DescribeAgents

Contents

Description

Lists agents or the Connector by ID or lists all agents/Connectors associated with your user account if you did not specify an ID.

Synopsis

Creating a Request

describeAgents :: DescribeAgents Source #

Creates a value of DescribeAgents with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • daAgentIds - The agent or the Connector IDs for which you want information. If you specify no IDs, the system returns information about all agents/Connectors associated with your AWS user account.
  • daFilters - You can filter the request using various logical operators and a key -value format. For example: {"key": "collectionStatus", "value": STARTED}
  • daNextToken - Token to retrieve the next set of results. For example, if you previously specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.
  • daMaxResults - The total number of agents/Connectors to return in a single page of output. The maximum value is 100.

data DescribeAgents Source #

See: describeAgents smart constructor.

Instances
Eq DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Data DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Methods

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

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

toConstr :: DescribeAgents -> Constr #

dataTypeOf :: DescribeAgents -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Show DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Generic DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Associated Types

type Rep DescribeAgents :: Type -> Type #

Hashable DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

ToJSON DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

AWSRequest DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Associated Types

type Rs DescribeAgents :: Type #

ToHeaders DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

ToPath DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

ToQuery DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

NFData DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Methods

rnf :: DescribeAgents -> () #

type Rep DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

type Rep DescribeAgents = D1 (MetaData "DescribeAgents" "Network.AWS.Discovery.DescribeAgents" "amazonka-discovery-1.6.1-BCKU0SsQ5St9AKTJSgbzOA" False) (C1 (MetaCons "DescribeAgents'" PrefixI True) ((S1 (MetaSel (Just "_daAgentIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_daFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 (MetaSel (Just "_daNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_daMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs DescribeAgents Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Request Lenses

daAgentIds :: Lens' DescribeAgents [Text] Source #

The agent or the Connector IDs for which you want information. If you specify no IDs, the system returns information about all agents/Connectors associated with your AWS user account.

daFilters :: Lens' DescribeAgents [Filter] Source #

You can filter the request using various logical operators and a key -value format. For example: {"key": "collectionStatus", "value": STARTED}

daNextToken :: Lens' DescribeAgents (Maybe Text) Source #

Token to retrieve the next set of results. For example, if you previously specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.

daMaxResults :: Lens' DescribeAgents (Maybe Int) Source #

The total number of agents/Connectors to return in a single page of output. The maximum value is 100.

Destructuring the Response

describeAgentsResponse Source #

Creates a value of DescribeAgentsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dasrsAgentsInfo - Lists agents or the Connector by ID or lists all agentsConnectors associated with your user account if you did not specify an agentConnector ID. The output includes agentConnector IDs, IP addresses, media access control (MAC) addresses, agentConnector health, host name where the agentConnector resides, and the version number of each agentConnector.
  • dasrsNextToken - Token to retrieve the next set of results. For example, if you specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.
  • dasrsResponseStatus - -- | The response status code.

data DescribeAgentsResponse Source #

See: describeAgentsResponse smart constructor.

Instances
Eq DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Data DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Methods

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

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

toConstr :: DescribeAgentsResponse -> Constr #

dataTypeOf :: DescribeAgentsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Show DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Generic DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Associated Types

type Rep DescribeAgentsResponse :: Type -> Type #

NFData DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

Methods

rnf :: DescribeAgentsResponse -> () #

type Rep DescribeAgentsResponse Source # 
Instance details

Defined in Network.AWS.Discovery.DescribeAgents

type Rep DescribeAgentsResponse = D1 (MetaData "DescribeAgentsResponse" "Network.AWS.Discovery.DescribeAgents" "amazonka-discovery-1.6.1-BCKU0SsQ5St9AKTJSgbzOA" False) (C1 (MetaCons "DescribeAgentsResponse'" PrefixI True) (S1 (MetaSel (Just "_dasrsAgentsInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AgentInfo])) :*: (S1 (MetaSel (Just "_dasrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dasrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dasrsAgentsInfo :: Lens' DescribeAgentsResponse [AgentInfo] Source #

Lists agents or the Connector by ID or lists all agentsConnectors associated with your user account if you did not specify an agentConnector ID. The output includes agentConnector IDs, IP addresses, media access control (MAC) addresses, agentConnector health, host name where the agentConnector resides, and the version number of each agentConnector.

dasrsNextToken :: Lens' DescribeAgentsResponse (Maybe Text) Source #

Token to retrieve the next set of results. For example, if you specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.