logging
Gets an individual logging
resource
Overview
Name | logging |
Type | Resource |
Description | logging |
Id | awscc.iot.logging |
Fields
Name | Datatype | Description |
---|---|---|
account_id | string | Your 12-digit account ID (used as the primary identifier for the CloudFormation resource). |
role_arn | string | The ARN of the role that allows IoT to write to Cloudwatch logs. |
default_log_level | string | The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED. |
region | string | AWS 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