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

Description

Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive.

Synopsis

Creating a Request

data CreateArchive Source #

See: newCreateArchive smart constructor.

Constructors

CreateArchive' 

Fields

Instances

Instances details
ToJSON CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

ToHeaders CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

ToPath CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

ToQuery CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

AWSRequest CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type AWSResponse CreateArchive #

Generic CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type Rep CreateArchive :: Type -> Type #

Read CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Show CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

NFData CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Methods

rnf :: CreateArchive -> () #

Eq CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Hashable CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type AWSResponse CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchive = D1 ('MetaData "CreateArchive" "Amazonka.CloudWatchEvents.CreateArchive" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "CreateArchive'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "retentionDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "archiveName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateArchive Source #

Create a value of CreateArchive 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:

CreateArchive, createArchive_description - A description for the archive.

CreateArchive, createArchive_eventPattern - An event pattern to use to filter events sent to the archive.

CreateArchive, createArchive_retentionDays - The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely

CreateArchive, createArchive_archiveName - The name for the archive to create.

CreateArchive, createArchive_eventSourceArn - The ARN of the event bus that sends events to the archive.

Request Lenses

createArchive_description :: Lens' CreateArchive (Maybe Text) Source #

A description for the archive.

createArchive_eventPattern :: Lens' CreateArchive (Maybe Text) Source #

An event pattern to use to filter events sent to the archive.

createArchive_retentionDays :: Lens' CreateArchive (Maybe Natural) Source #

The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely

createArchive_archiveName :: Lens' CreateArchive Text Source #

The name for the archive to create.

createArchive_eventSourceArn :: Lens' CreateArchive Text Source #

The ARN of the event bus that sends events to the archive.

Destructuring the Response

data CreateArchiveResponse Source #

See: newCreateArchiveResponse smart constructor.

Constructors

CreateArchiveResponse' 

Fields

Instances

Instances details
Generic CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type Rep CreateArchiveResponse :: Type -> Type #

Read CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Show CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

NFData CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Methods

rnf :: CreateArchiveResponse -> () #

Eq CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchiveResponse = D1 ('MetaData "CreateArchiveResponse" "Amazonka.CloudWatchEvents.CreateArchive" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "CreateArchiveResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "archiveArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArchiveState)) :*: (S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateArchiveResponse Source #

Create a value of CreateArchiveResponse 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:archiveArn:CreateArchiveResponse', createArchiveResponse_archiveArn - The ARN of the archive that was created.

CreateArchiveResponse, createArchiveResponse_creationTime - The time at which the archive was created.

CreateArchiveResponse, createArchiveResponse_state - The state of the archive that was created.

CreateArchiveResponse, createArchiveResponse_stateReason - The reason that the archive is in the state.

$sel:httpStatus:CreateArchiveResponse', createArchiveResponse_httpStatus - The response's http status code.

Response Lenses

createArchiveResponse_archiveArn :: Lens' CreateArchiveResponse (Maybe Text) Source #

The ARN of the archive that was created.

createArchiveResponse_creationTime :: Lens' CreateArchiveResponse (Maybe UTCTime) Source #

The time at which the archive was created.

createArchiveResponse_state :: Lens' CreateArchiveResponse (Maybe ArchiveState) Source #

The state of the archive that was created.

createArchiveResponse_stateReason :: Lens' CreateArchiveResponse (Maybe Text) Source #

The reason that the archive is in the state.