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

Description

Returns a list of source and destination locations.

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

This operation returns paginated results.

Synopsis

Creating a Request

data ListLocations Source #

ListLocationsRequest

See: newListLocations smart constructor.

Constructors

ListLocations' 

Fields

  • filters :: Maybe [LocationFilter]

    You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals.

  • maxResults :: Maybe Natural

    The maximum number of locations to return.

  • nextToken :: Maybe Text

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

Instances

Instances details
ToJSON ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

ToHeaders ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

ToPath ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

ToQuery ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

AWSPager ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

AWSRequest ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Associated Types

type AWSResponse ListLocations #

Generic ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Associated Types

type Rep ListLocations :: Type -> Type #

Read ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Show ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

NFData ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Methods

rnf :: ListLocations -> () #

Eq ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Hashable ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

type AWSResponse ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

type Rep ListLocations Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

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

newListLocations :: ListLocations Source #

Create a value of ListLocations 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:filters:ListLocations', listLocations_filters - You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals.

$sel:maxResults:ListLocations', listLocations_maxResults - The maximum number of locations to return.

ListLocations, listLocations_nextToken - An opaque string that indicates the position at which to begin the next list of locations.

Request Lenses

listLocations_filters :: Lens' ListLocations (Maybe [LocationFilter]) Source #

You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals.

listLocations_maxResults :: Lens' ListLocations (Maybe Natural) Source #

The maximum number of locations to return.

listLocations_nextToken :: Lens' ListLocations (Maybe Text) Source #

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

Destructuring the Response

data ListLocationsResponse Source #

ListLocationsResponse

See: newListLocationsResponse smart constructor.

Constructors

ListLocationsResponse' 

Fields

Instances

Instances details
Generic ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Associated Types

type Rep ListLocationsResponse :: Type -> Type #

Read ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Show ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

NFData ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

Methods

rnf :: ListLocationsResponse -> () #

Eq ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

type Rep ListLocationsResponse Source # 
Instance details

Defined in Amazonka.DataSync.ListLocations

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

newListLocationsResponse Source #

Create a value of ListLocationsResponse 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:locations:ListLocationsResponse', listLocationsResponse_locations - An array that contains a list of locations.

ListLocations, listLocationsResponse_nextToken - An opaque string that indicates the position at which to begin returning the next list of locations.

$sel:httpStatus:ListLocationsResponse', listLocationsResponse_httpStatus - The response's http status code.

Response Lenses

listLocationsResponse_nextToken :: Lens' ListLocationsResponse (Maybe Text) Source #

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