amazonka-datasync-2.0: Amazon DataSync 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.DataSync.ListAgents

Description

Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in the request. The returned list is ordered by agent Amazon Resource Name (ARN).

By default, this operation returns a maximum of 100 agents. This operation supports pagination that enables you to optionally reduce the number of agents returned in a response.

If you have more agents than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a marker that you can specify in your next request to fetch the next page of agents.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAgents Source #

ListAgentsRequest

See: newListAgents smart constructor.

Constructors

ListAgents' 

Fields

Instances

Instances details
ToJSON ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

ToHeaders ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Methods

toHeaders :: ListAgents -> [Header] #

ToPath ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

ToQuery ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

AWSPager ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

AWSRequest ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Associated Types

type AWSResponse ListAgents #

Generic ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Associated Types

type Rep ListAgents :: Type -> Type #

Read ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Show ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

NFData ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Methods

rnf :: ListAgents -> () #

Eq ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Hashable ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

type AWSResponse ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

type Rep ListAgents Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

type Rep ListAgents = D1 ('MetaData "ListAgents" "Amazonka.DataSync.ListAgents" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "ListAgents'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListAgents :: ListAgents Source #

Create a value of ListAgents 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:maxResults:ListAgents', listAgents_maxResults - The maximum number of agents to list.

ListAgents, listAgents_nextToken - An opaque string that indicates the position at which to begin the next list of agents.

Request Lenses

listAgents_maxResults :: Lens' ListAgents (Maybe Natural) Source #

The maximum number of agents to list.

listAgents_nextToken :: Lens' ListAgents (Maybe Text) Source #

An opaque string that indicates the position at which to begin the next list of agents.

Destructuring the Response

data ListAgentsResponse Source #

ListAgentsResponse

See: newListAgentsResponse smart constructor.

Constructors

ListAgentsResponse' 

Fields

Instances

Instances details
Generic ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Associated Types

type Rep ListAgentsResponse :: Type -> Type #

Read ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Show ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

NFData ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

Methods

rnf :: ListAgentsResponse -> () #

Eq ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

type Rep ListAgentsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListAgents

type Rep ListAgentsResponse = D1 ('MetaData "ListAgentsResponse" "Amazonka.DataSync.ListAgents" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "ListAgentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "agents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AgentListEntry])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAgentsResponse Source #

Create a value of ListAgentsResponse 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:agents:ListAgentsResponse', listAgentsResponse_agents - A list of agents in your account.

ListAgents, listAgentsResponse_nextToken - An opaque string that indicates the position at which to begin returning the next list of agents.

$sel:httpStatus:ListAgentsResponse', listAgentsResponse_httpStatus - The response's http status code.

Response Lenses

listAgentsResponse_nextToken :: Lens' ListAgentsResponse (Maybe Text) Source #

An opaque string that indicates the position at which to begin returning the next list of agents.