amazonka-cloudwatch-events-2.0: Amazon EventBridge 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.CloudWatchEvents.PutEvents

Description

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

PutEvents will only process nested JSON up to 1100 levels deep.

Synopsis

Creating a Request

data PutEvents Source #

See: newPutEvents smart constructor.

Constructors

PutEvents' 

Fields

  • endpointId :: Maybe Text

    The URL subdomain of the endpoint. For example, if the URL for Endpoint is abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.

    When using Java, you must include auth-crt on the class path.

  • 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
ToJSON PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.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

AWSRequest PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type AWSResponse PutEvents #

Generic PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEvents :: Type -> Type #

Read PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Show PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

NFData PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Methods

rnf :: PutEvents -> () #

Eq PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Hashable PutEvents Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type AWSResponse 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "PutEvents'" 'PrefixI 'True) (S1 ('MetaSel ('Just "endpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty PutEventsRequestEntry))))

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:

PutEvents, putEvents_endpointId - The URL subdomain of the endpoint. For example, if the URL for Endpoint is abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.

When using Java, you must include auth-crt on the class path.

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_endpointId :: Lens' PutEvents (Maybe Text) Source #

The URL subdomain of the endpoint. For example, if the URL for Endpoint is abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.

When using Java, you must include auth-crt on the class path.

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

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

  • failedEntryCount :: Maybe Int

    The number of failed entries.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Associated Types

type Rep PutEventsResponse :: Type -> Type #

Read PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Show PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

NFData PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

Methods

rnf :: PutEventsResponse -> () #

Eq PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type Rep PutEventsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.PutEvents

type Rep PutEventsResponse = D1 ('MetaData "PutEventsResponse" "Amazonka.CloudWatchEvents.PutEvents" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "PutEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PutEventsResultEntry])) :*: (S1 ('MetaSel ('Just "failedEntryCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: 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:

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

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