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.Types.PutEventsRequestEntry

Description

 
Synopsis

Documentation

data PutEventsRequestEntry Source #

Represents an event to be submitted.

See: newPutEventsRequestEntry smart constructor.

Constructors

PutEventsRequestEntry' 

Fields

  • time :: Maybe POSIX

    The time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the PutEvents call is used.

  • detailType :: Maybe Text

    Free-form string used to decide what fields to expect in the event detail.

  • resources :: Maybe [Text]

    Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

  • eventBusName :: Maybe Text

    The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.

  • source :: Maybe Text

    The source of the event.

  • traceHeader :: Maybe Text

    An X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.

    To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.

  • detail :: Maybe Text

    A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.

Instances

Instances details
Eq PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

Read PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

Show PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

Generic PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

Associated Types

type Rep PutEventsRequestEntry :: Type -> Type #

NFData PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

Methods

rnf :: PutEventsRequestEntry -> () #

Hashable PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

ToJSON PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

type Rep PutEventsRequestEntry Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry

type Rep PutEventsRequestEntry = D1 ('MetaData "PutEventsRequestEntry" "Amazonka.CloudWatchEvents.Types.PutEventsRequestEntry" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "PutEventsRequestEntry'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "detailType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "eventBusName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "traceHeader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "detail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newPutEventsRequestEntry :: PutEventsRequestEntry Source #

Create a value of PutEventsRequestEntry 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:time:PutEventsRequestEntry', putEventsRequestEntry_time - The time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the PutEvents call is used.

$sel:detailType:PutEventsRequestEntry', putEventsRequestEntry_detailType - Free-form string used to decide what fields to expect in the event detail.

$sel:resources:PutEventsRequestEntry', putEventsRequestEntry_resources - Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

$sel:eventBusName:PutEventsRequestEntry', putEventsRequestEntry_eventBusName - The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.

$sel:source:PutEventsRequestEntry', putEventsRequestEntry_source - The source of the event.

$sel:traceHeader:PutEventsRequestEntry', putEventsRequestEntry_traceHeader - An X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.

To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.

$sel:detail:PutEventsRequestEntry', putEventsRequestEntry_detail - A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.

putEventsRequestEntry_time :: Lens' PutEventsRequestEntry (Maybe UTCTime) Source #

The time stamp of the event, per RFC3339. If no time stamp is provided, the time stamp of the PutEvents call is used.

putEventsRequestEntry_detailType :: Lens' PutEventsRequestEntry (Maybe Text) Source #

Free-form string used to decide what fields to expect in the event detail.

putEventsRequestEntry_resources :: Lens' PutEventsRequestEntry (Maybe [Text]) Source #

Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

putEventsRequestEntry_eventBusName :: Lens' PutEventsRequestEntry (Maybe Text) Source #

The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.

putEventsRequestEntry_traceHeader :: Lens' PutEventsRequestEntry (Maybe Text) Source #

An X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.

To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.

putEventsRequestEntry_detail :: Lens' PutEventsRequestEntry (Maybe Text) Source #

A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.