Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists agents or connectors as specified by ID or other filters. All
agents/connectors associated with your user account can be listed if
you call DescribeAgents
as is without passing any parameters.
This operation returns paginated results.
Synopsis
- data DescribeAgents = DescribeAgents' {}
- newDescribeAgents :: DescribeAgents
- describeAgents_agentIds :: Lens' DescribeAgents (Maybe [Text])
- describeAgents_filters :: Lens' DescribeAgents (Maybe [Filter])
- describeAgents_nextToken :: Lens' DescribeAgents (Maybe Text)
- describeAgents_maxResults :: Lens' DescribeAgents (Maybe Int)
- data DescribeAgentsResponse = DescribeAgentsResponse' {
- agentsInfo :: Maybe [AgentInfo]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeAgentsResponse :: Int -> DescribeAgentsResponse
- describeAgentsResponse_agentsInfo :: Lens' DescribeAgentsResponse (Maybe [AgentInfo])
- describeAgentsResponse_nextToken :: Lens' DescribeAgentsResponse (Maybe Text)
- describeAgentsResponse_httpStatus :: Lens' DescribeAgentsResponse Int
Creating a Request
data DescribeAgents Source #
See: newDescribeAgents
smart constructor.
DescribeAgents' | |
|
Instances
newDescribeAgents :: DescribeAgents Source #
Create a value of DescribeAgents
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:agentIds:DescribeAgents'
, describeAgents_agentIds
- 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.
$sel:filters:DescribeAgents'
, describeAgents_filters
- You can filter the request using various logical operators and a
key-value format. For example:
{"key": "collectionStatus", "value": "STARTED"}
$sel:nextToken:DescribeAgents'
, describeAgents_nextToken
- 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.
$sel:maxResults:DescribeAgents'
, describeAgents_maxResults
- The total number of agents/Connectors to return in a single page of
output. The maximum value is 100.
Request Lenses
describeAgents_agentIds :: Lens' DescribeAgents (Maybe [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.
describeAgents_filters :: Lens' DescribeAgents (Maybe [Filter]) Source #
You can filter the request using various logical operators and a key-value format. For example:
{"key": "collectionStatus", "value": "STARTED"}
describeAgents_nextToken :: 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.
describeAgents_maxResults :: 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
data DescribeAgentsResponse Source #
See: newDescribeAgentsResponse
smart constructor.
DescribeAgentsResponse' | |
|
Instances
newDescribeAgentsResponse Source #
Create a value of DescribeAgentsResponse
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:agentsInfo:DescribeAgentsResponse'
, describeAgentsResponse_agentsInfo
- Lists agents or the Connector by ID or lists all agents/Connectors
associated with your user account if you did not specify an
agent/Connector ID. The output includes agent/Connector IDs, IP
addresses, media access control (MAC) addresses, agent/Connector
health, host name where the agent/Connector resides, and the version
number of each agent/Connector.
$sel:nextToken:DescribeAgents'
, describeAgentsResponse_nextToken
- 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.
$sel:httpStatus:DescribeAgentsResponse'
, describeAgentsResponse_httpStatus
- The response's http status code.
Response Lenses
describeAgentsResponse_agentsInfo :: Lens' DescribeAgentsResponse (Maybe [AgentInfo]) Source #
Lists agents or the Connector by ID or lists all agents/Connectors associated with your user account if you did not specify an agent/Connector ID. The output includes agent/Connector IDs, IP addresses, media access control (MAC) addresses, agent/Connector health, host name where the agent/Connector resides, and the version number of each agent/Connector.
describeAgentsResponse_nextToken :: 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.
describeAgentsResponse_httpStatus :: Lens' DescribeAgentsResponse Int Source #
The response's http status code.