Skip to main content

resource_event_configurations

Creates, updates, deletes, gets or lists a resource_event_configurations resource.

Overview

Nameresource_event_configurations
TypeResource
Idaws.iotwireless.resource_event_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connection_statusobjectEvent configuration for the connection status event.
device_registration_stateobjectEvent configuration for the device registration state event.
joinobjectEvent configuration for the join event.
message_delivery_statusobjectEvent configuration for the message delivery status event.
proximityobjectEvent configuration for the proximity event.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_event_configurationselectidentifier, identifierType, regionpartnerTypeGet the event configuration for a particular resource identifier.
update_resource_event_configurationupdateidentifier, identifierType, regionpartnerTypeUpdate the event configuration for a particular resource identifier.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
identifierstringResource identifier to opt in for event messaging.
identifierTypestringIdentifier type of the particular resource identifier for event configuration.
regionstringAWS region (default: us-east-1)
partnerTypestringPartner type of the resource if the identifier type is PartnerAccountId

SELECT examples

Get the event configuration for a particular resource identifier.

SELECT
connection_status,
device_registration_state,
join,
message_delivery_status,
proximity
FROM aws.iotwireless.resource_event_configurations
WHERE identifier = '{{ identifier }}' -- required
AND identifierType = '{{ identifierType }}' -- required
AND region = '{{ region }}' -- required
AND partnerType = '{{ partnerType }}'
;

UPDATE examples

Update the event configuration for a particular resource identifier.

UPDATE aws.iotwireless.resource_event_configurations
SET
DeviceRegistrationState = '{{ DeviceRegistrationState }}',
Proximity = '{{ Proximity }}',
Join = '{{ Join }}',
ConnectionStatus = '{{ ConnectionStatus }}',
MessageDeliveryStatus = '{{ MessageDeliveryStatus }}'
WHERE
identifier = '{{ identifier }}' --required
AND identifierType = '{{ identifierType }}' --required
AND region = '{{ region }}' --required
AND partnerType = '{{ partnerType}}';