libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchEvents.ListArchives

Description

Lists your archives. You can either list all the archives or you can provide a prefix to match to the archive names. Filter parameters are exclusive.

Synopsis

Creating a Request

data ListArchives Source #

See: newListArchives smart constructor.

Constructors

ListArchives' 

Fields

Instances

Instances details
Eq ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Read ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Show ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Generic ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type Rep ListArchives :: Type -> Type #

NFData ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Methods

rnf :: ListArchives -> () #

Hashable ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

ToJSON ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

AWSRequest ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type AWSResponse ListArchives #

ToHeaders ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

ToPath ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

ToQuery ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type Rep ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type Rep ListArchives = D1 ('MetaData "ListArchives" "Amazonka.CloudWatchEvents.ListArchives" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListArchives'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eventSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArchiveState))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

newListArchives :: ListArchives Source #

Create a value of ListArchives 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:eventSourceArn:ListArchives', listArchives_eventSourceArn - The ARN of the event source associated with the archive.

$sel:state:ListArchives', listArchives_state - The state of the archive.

$sel:nextToken:ListArchives', listArchives_nextToken - The token returned by a previous call to retrieve the next set of results.

$sel:namePrefix:ListArchives', listArchives_namePrefix - A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.

$sel:limit:ListArchives', listArchives_limit - The maximum number of results to return.

Request Lenses

listArchives_eventSourceArn :: Lens' ListArchives (Maybe Text) Source #

The ARN of the event source associated with the archive.

listArchives_nextToken :: Lens' ListArchives (Maybe Text) Source #

The token returned by a previous call to retrieve the next set of results.

listArchives_namePrefix :: Lens' ListArchives (Maybe Text) Source #

A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.

listArchives_limit :: Lens' ListArchives (Maybe Natural) Source #

The maximum number of results to return.

Destructuring the Response

data ListArchivesResponse Source #

See: newListArchivesResponse smart constructor.

Constructors

ListArchivesResponse' 

Fields

Instances

Instances details
Eq ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Read ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Show ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Generic ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type Rep ListArchivesResponse :: Type -> Type #

NFData ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Methods

rnf :: ListArchivesResponse -> () #

type Rep ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type Rep ListArchivesResponse = D1 ('MetaData "ListArchivesResponse" "Amazonka.CloudWatchEvents.ListArchives" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "ListArchivesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "archives") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Archive])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListArchivesResponse Source #

Create a value of ListArchivesResponse 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:archives:ListArchivesResponse', listArchivesResponse_archives - An array of Archive objects that include details about an archive.

$sel:nextToken:ListArchives', listArchivesResponse_nextToken - The token returned by a previous call to retrieve the next set of results.

$sel:httpStatus:ListArchivesResponse', listArchivesResponse_httpStatus - The response's http status code.

Response Lenses

listArchivesResponse_archives :: Lens' ListArchivesResponse (Maybe [Archive]) Source #

An array of Archive objects that include details about an archive.

listArchivesResponse_nextToken :: Lens' ListArchivesResponse (Maybe Text) Source #

The token returned by a previous call to retrieve the next set of results.