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

Description

Updates the specified archive.

Synopsis

Creating a Request

data UpdateArchive Source #

See: newUpdateArchive smart constructor.

Constructors

UpdateArchive' 

Fields

Instances

Instances details
Eq UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Read UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Show UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Generic UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Associated Types

type Rep UpdateArchive :: Type -> Type #

NFData UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Methods

rnf :: UpdateArchive -> () #

Hashable UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

ToJSON UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

AWSRequest UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Associated Types

type AWSResponse UpdateArchive #

ToHeaders UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

ToPath UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

ToQuery UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

type Rep UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

type Rep UpdateArchive = D1 ('MetaData "UpdateArchive" "Amazonka.CloudWatchEvents.UpdateArchive" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "UpdateArchive'" '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))))
type AWSResponse UpdateArchive Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

newUpdateArchive Source #

Create a value of UpdateArchive 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:UpdateArchive', updateArchive_eventPattern - The event pattern to use to filter events sent to the archive.

$sel:retentionDays:UpdateArchive', updateArchive_retentionDays - The number of days to retain events in the archive.

$sel:description:UpdateArchive', updateArchive_description - The description for the archive.

$sel:archiveName:UpdateArchive', updateArchive_archiveName - The name of the archive to update.

Request Lenses

updateArchive_eventPattern :: Lens' UpdateArchive (Maybe Text) Source #

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

updateArchive_retentionDays :: Lens' UpdateArchive (Maybe Natural) Source #

The number of days to retain events in the archive.

updateArchive_description :: Lens' UpdateArchive (Maybe Text) Source #

The description for the archive.

updateArchive_archiveName :: Lens' UpdateArchive Text Source #

The name of the archive to update.

Destructuring the Response

data UpdateArchiveResponse Source #

See: newUpdateArchiveResponse smart constructor.

Constructors

UpdateArchiveResponse' 

Fields

Instances

Instances details
Eq UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Read UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Show UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Generic UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Associated Types

type Rep UpdateArchiveResponse :: Type -> Type #

NFData UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

Methods

rnf :: UpdateArchiveResponse -> () #

type Rep UpdateArchiveResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.UpdateArchive

type Rep UpdateArchiveResponse = D1 ('MetaData "UpdateArchiveResponse" "Amazonka.CloudWatchEvents.UpdateArchive" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "UpdateArchiveResponse'" '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)))))

newUpdateArchiveResponse Source #

Create a value of UpdateArchiveResponse 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:UpdateArchiveResponse', updateArchiveResponse_creationTime - The time at which the archive was updated.

$sel:state:UpdateArchiveResponse', updateArchiveResponse_state - The state of the archive.

$sel:archiveArn:UpdateArchiveResponse', updateArchiveResponse_archiveArn - The ARN of the archive.

$sel:stateReason:UpdateArchiveResponse', updateArchiveResponse_stateReason - The reason that the archive is in the current state.

$sel:httpStatus:UpdateArchiveResponse', updateArchiveResponse_httpStatus - The response's http status code.

Response Lenses

updateArchiveResponse_creationTime :: Lens' UpdateArchiveResponse (Maybe UTCTime) Source #

The time at which the archive was updated.

updateArchiveResponse_stateReason :: Lens' UpdateArchiveResponse (Maybe Text) Source #

The reason that the archive is in the current state.