amazonka-ssm-incidents-2.0: Amazon Systems Manager Incident Manager 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.SSMIncidents.UpdateTimelineEvent

Description

Updates a timeline event. You can update events of type Custom Event.

Synopsis

Creating a Request

data UpdateTimelineEvent Source #

See: newUpdateTimelineEvent smart constructor.

Constructors

UpdateTimelineEvent' 

Fields

  • clientToken :: Maybe Text

    A token ensuring that the operation is called only once with the specified details.

  • eventData :: Maybe Text

    A short description of the event.

  • eventReferences :: Maybe [EventReference]

    Updates all existing references in a TimelineEvent. A reference can be an Amazon Web Services resource involved in the incident or in some way associated with it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the resource. You can also specify a related item. As an example, you could specify the ARN of an Amazon DynamoDB (DynamoDB) table. The table for this example is the resource. You could also specify a Amazon CloudWatch metric for that table. The metric is the related item.

    This update action overrides all existing references. If you want to keep existing references, you must specify them in the call. If you don't, this action removes them and enters only new references.

  • eventTime :: Maybe POSIX

    The time that the event occurred.

  • eventType :: Maybe Text

    The type of the event. You can update events of type Custom Event.

  • eventId :: Text

    The ID of the event you are updating. You can find this by using ListTimelineEvents.

  • incidentRecordArn :: Text

    The Amazon Resource Name (ARN) of the incident that includes the timeline event.

Instances

Instances details
ToJSON UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

ToHeaders UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

ToPath UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

ToQuery UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

AWSRequest UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Associated Types

type AWSResponse UpdateTimelineEvent #

Generic UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Associated Types

type Rep UpdateTimelineEvent :: Type -> Type #

Read UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Show UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

NFData UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Methods

rnf :: UpdateTimelineEvent -> () #

Eq UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Hashable UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

type AWSResponse UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

type Rep UpdateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

type Rep UpdateTimelineEvent = D1 ('MetaData "UpdateTimelineEvent" "Amazonka.SSMIncidents.UpdateTimelineEvent" "amazonka-ssm-incidents-2.0-JEcCJ5TIs2l5vrFa2RYlgd" 'False) (C1 ('MetaCons "UpdateTimelineEvent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "eventData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventReferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventReference])))) :*: ((S1 ('MetaSel ('Just "eventTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "eventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "incidentRecordArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateTimelineEvent Source #

Create a value of UpdateTimelineEvent 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:clientToken:UpdateTimelineEvent', updateTimelineEvent_clientToken - A token ensuring that the operation is called only once with the specified details.

UpdateTimelineEvent, updateTimelineEvent_eventData - A short description of the event.

UpdateTimelineEvent, updateTimelineEvent_eventReferences - Updates all existing references in a TimelineEvent. A reference can be an Amazon Web Services resource involved in the incident or in some way associated with it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the resource. You can also specify a related item. As an example, you could specify the ARN of an Amazon DynamoDB (DynamoDB) table. The table for this example is the resource. You could also specify a Amazon CloudWatch metric for that table. The metric is the related item.

This update action overrides all existing references. If you want to keep existing references, you must specify them in the call. If you don't, this action removes them and enters only new references.

UpdateTimelineEvent, updateTimelineEvent_eventTime - The time that the event occurred.

UpdateTimelineEvent, updateTimelineEvent_eventType - The type of the event. You can update events of type Custom Event.

UpdateTimelineEvent, updateTimelineEvent_eventId - The ID of the event you are updating. You can find this by using ListTimelineEvents.

UpdateTimelineEvent, updateTimelineEvent_incidentRecordArn - The Amazon Resource Name (ARN) of the incident that includes the timeline event.

Request Lenses

updateTimelineEvent_clientToken :: Lens' UpdateTimelineEvent (Maybe Text) Source #

A token ensuring that the operation is called only once with the specified details.

updateTimelineEvent_eventReferences :: Lens' UpdateTimelineEvent (Maybe [EventReference]) Source #

Updates all existing references in a TimelineEvent. A reference can be an Amazon Web Services resource involved in the incident or in some way associated with it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the resource. You can also specify a related item. As an example, you could specify the ARN of an Amazon DynamoDB (DynamoDB) table. The table for this example is the resource. You could also specify a Amazon CloudWatch metric for that table. The metric is the related item.

This update action overrides all existing references. If you want to keep existing references, you must specify them in the call. If you don't, this action removes them and enters only new references.

updateTimelineEvent_eventType :: Lens' UpdateTimelineEvent (Maybe Text) Source #

The type of the event. You can update events of type Custom Event.

updateTimelineEvent_eventId :: Lens' UpdateTimelineEvent Text Source #

The ID of the event you are updating. You can find this by using ListTimelineEvents.

updateTimelineEvent_incidentRecordArn :: Lens' UpdateTimelineEvent Text Source #

The Amazon Resource Name (ARN) of the incident that includes the timeline event.

Destructuring the Response

data UpdateTimelineEventResponse Source #

See: newUpdateTimelineEventResponse smart constructor.

Constructors

UpdateTimelineEventResponse' 

Fields

Instances

Instances details
Generic UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Associated Types

type Rep UpdateTimelineEventResponse :: Type -> Type #

Read UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Show UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

NFData UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

Eq UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

type Rep UpdateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.UpdateTimelineEvent

type Rep UpdateTimelineEventResponse = D1 ('MetaData "UpdateTimelineEventResponse" "Amazonka.SSMIncidents.UpdateTimelineEvent" "amazonka-ssm-incidents-2.0-JEcCJ5TIs2l5vrFa2RYlgd" 'False) (C1 ('MetaCons "UpdateTimelineEventResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateTimelineEventResponse Source #

Create a value of UpdateTimelineEventResponse 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:httpStatus:UpdateTimelineEventResponse', updateTimelineEventResponse_httpStatus - The response's http status code.

Response Lenses