logging_options
Creates, updates, deletes, gets or lists a logging_options resource.
Overview
| Name | logging_options |
| Type | Resource |
| Id | aws.iot.logging_options |
Fields
The following fields are returned by SELECT queries:
- get_logging_options
| Name | Datatype | Description |
|---|---|---|
log_level | string | The logging level. (DEBUG, INFO, ERROR, WARN, DISABLED) |
role_arn | string | The ARN of the IAM role that grants access. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_logging_options | select | region | Gets the logging options. NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead. Requires permission to access the GetLoggingOptions action. | |
set_logging_options | update | region, loggingOptionsPayload | Sets the logging options. NOTE: use of this command is not recommended. Use SetV2LoggingOptions instead. Requires permission to access the SetLoggingOptions action. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_logging_options
Gets the logging options. NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead. Requires permission to access the GetLoggingOptions action.
SELECT
log_level,
role_arn
FROM aws.iot.logging_options
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- set_logging_options
Sets the logging options. NOTE: use of this command is not recommended. Use SetV2LoggingOptions instead. Requires permission to access the SetLoggingOptions action.
UPDATE aws.iot.logging_options
SET
loggingOptionsPayload = '{{ loggingOptionsPayload }}'
WHERE
region = '{{ region }}' --required
AND loggingOptionsPayload = '{{ loggingOptionsPayload }}' --required;