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

Description

Sends custom events to Amazon EventBridge so that they can be matched to rules.

Synopsis

Creating a Request

data PutEvents Source #

See: newPutEvents smart constructor.

Constructors

PutEvents' 

Fields

  • entries :: NonEmpty PutEventsRequestEntry

    The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

Instances

Instances details
Eq PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Read PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Show PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Generic PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEvents :: Type -> Type #

NFData PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Methods

rnf :: PutEvents -> () #

Hashable PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

ToJSON PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

AWSRequest PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type AWSResponse PutEvents #

ToHeaders PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Methods

toHeaders :: PutEvents -> [Header] #

ToPath PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

ToQuery PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type Rep PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type Rep PutEvents = D1 ('MetaData "PutEvents" "Amazonka.CloudWatchEvents.PutEvents" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "PutEvents'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty PutEventsRequestEntry))))
type AWSResponse PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

newPutEvents Source #

Create a value of PutEvents 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:entries:PutEvents', putEvents_entries - The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

Request Lenses

putEvents_entries :: Lens' PutEvents (NonEmpty PutEventsRequestEntry) Source #

The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

Destructuring the Response

data PutEventsResponse Source #

See: newPutEventsResponse smart constructor.

Constructors

PutEventsResponse' 

Fields

  • failedEntryCount :: Maybe Int

    The number of failed entries.

  • entries :: Maybe [PutEventsResultEntry]

    The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Read PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Show PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Generic PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEventsResponse :: Type -> Type #

NFData PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Methods

rnf :: PutEventsResponse -> () #

type Rep PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type Rep PutEventsResponse = D1 ('MetaData "PutEventsResponse" "Amazonka.CloudWatchEvents.PutEvents" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "PutEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedEntryCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PutEventsResultEntry])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newPutEventsResponse Source #

Create a value of PutEventsResponse 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:failedEntryCount:PutEventsResponse', putEventsResponse_failedEntryCount - The number of failed entries.

$sel:entries:PutEvents', putEventsResponse_entries - The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.

$sel:httpStatus:PutEventsResponse', putEventsResponse_httpStatus - The response's http status code.

Response Lenses

putEventsResponse_entries :: Lens' PutEventsResponse (Maybe [PutEventsResultEntry]) Source #

The successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry has the event ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.

putEventsResponse_httpStatus :: Lens' PutEventsResponse Int Source #

The response's http status code.