Skip to main content

logging_options

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

Overview

Namelogging_options
TypeResource
Idaws.iotfleetwise.logging_options

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
log_group_namestringThe Amazon CloudWatch Logs group the operation sends data to. (pattern: <code>[.-_/#A-Za-z0-9]+</code>)
log_typestringThe type of log to send data to Amazon CloudWatch Logs. (OFF, ERROR)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_logging_optionsselectregionRetrieves the logging options.
put_logging_optionsreplaceregion, cloudWatchLogDeliveryCreates or updates the logging option.

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

Retrieves the logging options.

SELECT
log_group_name,
log_type
FROM aws.iotfleetwise.logging_options
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates the logging option.

REPLACE aws.iotfleetwise.logging_options
SET
cloudWatchLogDelivery = '{{ cloudWatchLogDelivery }}'
WHERE
region = '{{ region }}' --required
AND cloudWatchLogDelivery = '{{ cloudWatchLogDelivery }}' --required;