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.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
Eq CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Read CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Show CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Generic CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type Rep CreateArchive :: Type -> Type #

NFData CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Methods

rnf :: CreateArchive -> () #

Hashable CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

ToJSON CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

AWSRequest CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type AWSResponse 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

type Rep CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchive = D1 ('MetaData "CreateArchive" "Amazonka.CloudWatchEvents.CreateArchive" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateArchive'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eventPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "retentionDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "archiveName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

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:

$sel:eventPattern:CreateArchive', createArchive_eventPattern - An event pattern to use to filter events sent to the archive.

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

$sel:description:CreateArchive', createArchive_description - A description for the archive.

$sel:archiveName:CreateArchive', createArchive_archiveName - The name for the archive to create.

$sel:eventSourceArn:CreateArchive', createArchive_eventSourceArn - The ARN of the event bus that sends events to the archive.

Request Lenses

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

A description for the archive.

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
Eq CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Read CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Show CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Generic CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Associated Types

type Rep CreateArchiveResponse :: Type -> Type #

NFData CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

Methods

rnf :: CreateArchiveResponse -> () #

type Rep CreateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.CreateArchive

type Rep CreateArchiveResponse = D1 ('MetaData "CreateArchiveResponse" "Amazonka.CloudWatchEvents.CreateArchive" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CreateArchiveResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArchiveState))) :*: (S1 ('MetaSel ('Just "archiveArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (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:creationTime:CreateArchiveResponse', createArchiveResponse_creationTime - The time at which the archive was created.

$sel:state:CreateArchiveResponse', createArchiveResponse_state - The state of the archive that was created.

$sel:archiveArn:CreateArchiveResponse', createArchiveResponse_archiveArn - The ARN of the archive that was created.

$sel:stateReason: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_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_archiveArn :: Lens' CreateArchiveResponse (Maybe Text) Source #

The ARN of the archive that was created.

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

The reason that the archive is in the state.