libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents
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.SSMIncidents.CreateTimelineEvent

Description

Creates a custom timeline event on the incident details page of an incident record. Timeline events are automatically created by Incident Manager, marking key moment during an incident. You can create custom timeline events to mark important events that are automatically detected by Incident Manager.

Synopsis

Creating a Request

data CreateTimelineEvent Source #

See: newCreateTimelineEvent smart constructor.

Constructors

CreateTimelineEvent' 

Fields

  • clientToken :: Maybe Text

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

  • eventData :: Text

    A valid JSON string. There is no other schema imposed. A short description of the event.

  • eventTime :: POSIX

    The time that the event occurred.

  • eventType :: Text

    The type of the event. You can create timeline events of type Custom Event.

  • incidentRecordArn :: Text

    The Amazon Resource Name (ARN) of the incident record you are adding the event to.

Instances

Instances details
Eq CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Read CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Show CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Generic CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Associated Types

type Rep CreateTimelineEvent :: Type -> Type #

NFData CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Methods

rnf :: CreateTimelineEvent -> () #

Hashable CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

ToJSON CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

AWSRequest CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Associated Types

type AWSResponse CreateTimelineEvent #

ToHeaders CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

ToPath CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

ToQuery CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

type Rep CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

type Rep CreateTimelineEvent = D1 ('MetaData "CreateTimelineEvent" "Amazonka.SSMIncidents.CreateTimelineEvent" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" 'False) (C1 ('MetaCons "CreateTimelineEvent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "eventTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: (S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "incidentRecordArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateTimelineEvent Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

newCreateTimelineEvent Source #

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

$sel:eventData:CreateTimelineEvent', createTimelineEvent_eventData - A valid JSON string. There is no other schema imposed. A short description of the event.

$sel:eventTime:CreateTimelineEvent', createTimelineEvent_eventTime - The time that the event occurred.

$sel:eventType:CreateTimelineEvent', createTimelineEvent_eventType - The type of the event. You can create timeline events of type Custom Event.

$sel:incidentRecordArn:CreateTimelineEvent', createTimelineEvent_incidentRecordArn - The Amazon Resource Name (ARN) of the incident record you are adding the event to.

Request Lenses

createTimelineEvent_clientToken :: Lens' CreateTimelineEvent (Maybe Text) Source #

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

createTimelineEvent_eventData :: Lens' CreateTimelineEvent Text Source #

A valid JSON string. There is no other schema imposed. A short description of the event.

createTimelineEvent_eventType :: Lens' CreateTimelineEvent Text Source #

The type of the event. You can create timeline events of type Custom Event.

createTimelineEvent_incidentRecordArn :: Lens' CreateTimelineEvent Text Source #

The Amazon Resource Name (ARN) of the incident record you are adding the event to.

Destructuring the Response

data CreateTimelineEventResponse Source #

See: newCreateTimelineEventResponse smart constructor.

Constructors

CreateTimelineEventResponse' 

Fields

Instances

Instances details
Eq CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Read CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Show CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Generic CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

Associated Types

type Rep CreateTimelineEventResponse :: Type -> Type #

NFData CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

type Rep CreateTimelineEventResponse Source # 
Instance details

Defined in Amazonka.SSMIncidents.CreateTimelineEvent

type Rep CreateTimelineEventResponse = D1 ('MetaData "CreateTimelineEventResponse" "Amazonka.SSMIncidents.CreateTimelineEvent" "libZSservicesZSamazonka-ssm-incidentsZSamazonka-ssm-incidents" 'False) (C1 ('MetaCons "CreateTimelineEventResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "eventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "incidentRecordArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateTimelineEventResponse Source #

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

$sel:eventId:CreateTimelineEventResponse', createTimelineEventResponse_eventId - The ID of the event for easy reference later.

$sel:incidentRecordArn:CreateTimelineEvent', createTimelineEventResponse_incidentRecordArn - The ARN of the incident record that you added the event to.

Response Lenses

createTimelineEventResponse_eventId :: Lens' CreateTimelineEventResponse Text Source #

The ID of the event for easy reference later.

createTimelineEventResponse_incidentRecordArn :: Lens' CreateTimelineEventResponse Text Source #

The ARN of the incident record that you added the event to.