Skip to main content

resource_specific_logging

Gets an individual resource_specific_logging resource

Overview

Nameresource_specific_logging
TypeResource
Descriptionresource_specific_logging
Idawscc.iot.resource_specific_logging

Fields

NameDatatypeDescription
target_typestringThe target type. Value must be THING_GROUP, CLIENT_ID, SOURCE_IP, PRINCIPAL_ID, or EVENT_TYPE.
target_namestringThe target name.
log_levelstringThe log level for a specific target. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
target_idstringUnique Id for a Target (TargetType:TargetName), this will be internally built to serve as primary identifier for a log target.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
target_type,
target_name,
log_level,
target_id
FROM awscc.iot.resource_specific_logging
WHERE data__Identifier = '<TargetId>';

Permissions

To operate on the resource_specific_logging resource, the following permissions are required:

Read

iot:ListV2LoggingLevels

Update

iot:ListV2LoggingLevels,
iot:SetV2LoggingLevel

Delete

iot:ListV2LoggingLevels,
iot:DeleteV2LoggingLevel