logging_options
Creates, updates, deletes, gets or lists a logging_options resource.
Overview
| Name | logging_options |
| Type | Resource |
| Id | aws.iotfleetwise.logging_options |
Fields
The following fields are returned by SELECT queries:
- get_logging_options
| Name | Datatype | Description |
|---|---|---|
log_group_name | string | The Amazon CloudWatch Logs group the operation sends data to. (pattern: <code>[.-_/#A-Za-z0-9]+</code>) |
log_type | string | The type of log to send data to Amazon CloudWatch Logs. (OFF, ERROR) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_logging_options | select | region | Retrieves the logging options. | |
put_logging_options | replace | region, cloudWatchLogDelivery | Creates 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_logging_options
Retrieves the logging options.
SELECT
log_group_name,
log_type
FROM aws.iotfleetwise.logging_options
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_logging_options
Creates or updates the logging option.
REPLACE aws.iotfleetwise.logging_options
SET
cloudWatchLogDelivery = '{{ cloudWatchLogDelivery }}'
WHERE
region = '{{ region }}' --required
AND cloudWatchLogDelivery = '{{ cloudWatchLogDelivery }}' --required;