event_log_configurations
Creates, updates, deletes, gets or lists an event_log_configurations resource.
Overview
| Name | event_log_configurations |
| Type | Resource |
| Id | aws.iot_managed_integrations.event_log_configurations |
Fields
The following fields are returned by SELECT queries:
- get_event_log_configuration
- list_event_log_configurations
| Name | Datatype | Description |
|---|---|---|
event_log_level | string | The logging level for the event log configuration. (DEBUG, ERROR, INFO, WARN) |
id | string | The identifier of the event log configuration. (pattern: <code>[A-Za-z0-9]+</code>) |
resource_id | string | The identifier of the resource for the event log configuration. (pattern: <code>[a-zA-Z0-9+]</code>) |
resource_type | string | The type of resource for the event log configuration. (pattern: <code>[*]$|^(managed-thing|credential-locker|provisioning-profile|ota-task|account-association)</code>) |
| Name | Datatype | Description |
|---|---|---|
event_log_level | string | The logging level for the event log configuration. (DEBUG, ERROR, INFO, WARN) |
id | string | The identifier of the event log configuration. (pattern: <code>[A-Za-z0-9]+</code>) |
resource_id | string | The identifier of the resource for the event log configuration. (pattern: <code>[a-zA-Z0-9+]</code>) |
resource_type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_event_log_configuration | select | id, region | Get an event log configuration. | |
list_event_log_configurations | select | region | NextToken, MaxResults | List all event log configurations for an account. |
create_event_log_configuration | insert | region, ResourceType, EventLogLevel | Set the event log configuration for the account, resource type, or specific resource. | |
update_event_log_configuration | update | id, region, EventLogLevel | Update an event log configuration by log configuration ID. | |
delete_event_log_configuration | delete | id, region | Delete 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.
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier of the event log configuration. |
region | string | AWS region (default: us-east-1) |
MaxResults | integer | The maximum number of results to return at one time. |
NextToken | string | A token that can be used to retrieve the next set of results. |
SELECT examples
- get_event_log_configuration
- list_event_log_configurations
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
;
List all event log configurations for an account.
SELECT
event_log_level,
id,
resource_id,
resource_type
FROM aws.iot_managed_integrations.event_log_configurations
WHERE region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;
INSERT examples
- create_event_log_configuration
- Manifest
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
;
# Description fields are for documentation purposes
- name: event_log_configurations
props:
- name: region
value: "{{ region }}"
description: Required parameter for the event_log_configurations resource.
- name: ResourceType
value: "{{ ResourceType }}"
- name: ResourceId
value: "{{ ResourceId }}"
- name: EventLogLevel
value: "{{ EventLogLevel }}"
valid_values: ['DEBUG', 'ERROR', 'INFO', 'WARN']
- name: ClientToken
value: "{{ ClientToken }}"
UPDATE examples
- update_event_log_configuration
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_event_log_configuration
Delete an event log configuration.
DELETE FROM aws.iot_managed_integrations.event_log_configurations
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;