amazonka-cloudwatch-events-2.0: Amazon EventBridge 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.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
ToJSON ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.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

AWSRequest ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type AWSResponse ListArchives #

Generic ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type Rep ListArchives :: Type -> Type #

Read ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Show ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

NFData ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Methods

rnf :: ListArchives -> () #

Eq ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Hashable ListArchives Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type AWSResponse 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "ListArchives'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eventSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "namePrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArchiveState))))))

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:

ListArchives, listArchives_eventSourceArn - The ARN of the event source associated with the archive.

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

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

ListArchives, listArchives_nextToken - The token returned by a previous call to retrieve the next set of results.

ListArchives, listArchives_state - The state of the archive.

Request Lenses

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

The ARN of the event source associated with the archive.

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

The maximum number of results to return.

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_nextToken :: Lens' ListArchives (Maybe Text) Source #

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

Destructuring the Response

data ListArchivesResponse Source #

See: newListArchivesResponse smart constructor.

Constructors

ListArchivesResponse' 

Fields

Instances

Instances details
Generic ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Associated Types

type Rep ListArchivesResponse :: Type -> Type #

Read ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Show ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

NFData ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

Methods

rnf :: ListArchivesResponse -> () #

Eq ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type Rep ListArchivesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.ListArchives

type Rep ListArchivesResponse = D1 ('MetaData "ListArchivesResponse" "Amazonka.CloudWatchEvents.ListArchives" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" '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.

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.