v2_logging_levels
Creates, updates, deletes, gets or lists a v2_logging_levels resource.
Overview
| Name | v2_logging_levels |
| Type | Resource |
| Id | aws.iot.v2_logging_levels |
Fields
The following fields are returned by SELECT queries:
- list_v2_logging_levels
| Name | Datatype | Description |
|---|---|---|
log_level | string | The logging level. (DEBUG, INFO, ERROR, WARN, DISABLED) |
log_target | object | A log target |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_v2_logging_levels | select | region | targetType, nextToken, maxResults | Lists logging levels. Requires permission to access the ListV2LoggingLevels action. |
set_v2_logging_level | update | region, logTarget, logLevel | Sets the logging level. Requires permission to access the SetV2LoggingLevel action. | |
delete_v2_logging_level | delete | targetType, targetName, region | Deletes a logging level. Requires permission to access the DeleteV2LoggingLevel 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) |
targetName | string | The name of the resource for which you are configuring logging. |
targetType | string | The type of resource for which you are configuring logging. Must be THING_Group. |
maxResults | integer | The maximum number of results to return at one time. |
nextToken | string | To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results. |
targetType | string | The type of resource for which you are configuring logging. Must be THING_Group. |
SELECT examples
- list_v2_logging_levels
Lists logging levels. Requires permission to access the ListV2LoggingLevels action.
SELECT
log_level,
log_target
FROM aws.iot.v2_logging_levels
WHERE region = '{{ region }}' -- required
AND targetType = '{{ targetType }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;
UPDATE examples
- set_v2_logging_level
Sets the logging level. Requires permission to access the SetV2LoggingLevel action.
UPDATE aws.iot.v2_logging_levels
SET
logTarget = '{{ logTarget }}',
logLevel = '{{ logLevel }}'
WHERE
region = '{{ region }}' --required
AND logTarget = '{{ logTarget }}' --required
AND logLevel = '{{ logLevel }}' --required;
DELETE examples
- delete_v2_logging_level
Deletes a logging level. Requires permission to access the DeleteV2LoggingLevel action.
DELETE FROM aws.iot.v2_logging_levels
WHERE targetType = '{{ targetType }}' --required
AND targetName = '{{ targetName }}' --required
AND region = '{{ region }}' --required
;