Skip to main content

event_log_configurations

Creates, updates, deletes, gets or lists an event_log_configurations resource.

Overview​

Nameevent_log_configurations
TypeResource
Idaws.iot_managed_integrations.event_log_configurations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_log_levelstringThe logging level for the event log configuration. (DEBUG, ERROR, INFO, WARN)
idstringThe identifier of the event log configuration. (pattern: <code>[A-Za-z0-9]+</code>)
resource_idstringThe identifier of the resource for the event log configuration. (pattern: <code>[a-zA-Z0-9+]</code>)
resource_typestringThe type of resource for the event log configuration. (pattern: <code>[*]$|^(managed-thing|credential-locker|provisioning-profile|ota-task|account-association)</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_log_configurationselectid, regionGet an event log configuration.
list_event_log_configurationsselectregionNextToken, MaxResultsList all event log configurations for an account.
create_event_log_configurationinsertregion, ResourceType, EventLogLevelSet the event log configuration for the account, resource type, or specific resource.
update_event_log_configurationupdateid, region, EventLogLevelUpdate an event log configuration by log configuration ID.
delete_event_log_configurationdeleteid, regionDelete an event log configuration.

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
idstringThe identifier of the event log configuration.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.

SELECT examples​

Get an event log configuration.

SELECT
event_log_level,
id,
resource_id,
resource_type
FROM aws.iot_managed_integrations.event_log_configurations
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Set the event log configuration for the account, resource type, or specific resource.

INSERT INTO aws.iot_managed_integrations.event_log_configurations (
ResourceType,
ResourceId,
EventLogLevel,
ClientToken,
region
)
SELECT
'{{ ResourceType }}' /* required */,
'{{ ResourceId }}',
'{{ EventLogLevel }}' /* required */,
'{{ ClientToken }}',
'{{ region }}'
RETURNING
id
;

UPDATE examples​

Update an event log configuration by log configuration ID.

UPDATE aws.iot_managed_integrations.event_log_configurations
SET
EventLogLevel = '{{ EventLogLevel }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND EventLogLevel = '{{ EventLogLevel }}' --required;

DELETE examples​

Delete an event log configuration.

DELETE FROM aws.iot_managed_integrations.event_log_configurations
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;