Skip to main content

logging

Gets an individual logging resource

Overview

Namelogging
TypeResource
Descriptionlogging
Idawscc.iot.logging

Fields

NameDatatypeDescription
account_idstringYour 12-digit account ID (used as the primary identifier for the CloudFormation resource).
role_arnstringThe ARN of the role that allows IoT to write to Cloudwatch logs.
default_log_levelstringThe log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
account_id,
role_arn,
default_log_level
FROM awscc.iot.logging
WHERE data__Identifier = '<AccountId>';

Permissions

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

Read

iot:GetV2LoggingOptions

Update

iot:SetV2LoggingOptions,
iot:GetV2LoggingOptions,
iam:PassRole

Delete

iot:SetV2LoggingOptions,
iot:GetV2LoggingOptions