Skip to main content

logging_options

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

Overview

Namelogging_options
TypeResource
Idaws.iot.logging_options

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
log_levelstringThe logging level. (DEBUG, INFO, ERROR, WARN, DISABLED)
role_arnstringThe ARN of the IAM role that grants access.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_logging_optionsselectregionGets the logging options. NOTE: use of this command is not recommended. Use GetV2LoggingOptions instead. Requires permission to access the GetLoggingOptions action.
set_logging_optionsupdateregion, loggingOptionsPayloadSets 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

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;