Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::IoT::ResourceSpecificLogging

Focus mode
AWS::IoT::ResourceSpecificLogging - AWS CloudFormation
Filter View

Configure resource-specific logging.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::IoT::ResourceSpecificLogging", "Properties" : { "LogLevel" : String, "TargetName" : String, "TargetType" : String } }

YAML

Type: AWS::IoT::ResourceSpecificLogging Properties: LogLevel: String TargetName: String TargetType: String

Properties

LogLevel

The default log level.Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED

Required: Yes

Type: String

Allowed values: ERROR | WARN | INFO | DEBUG | DISABLED

Update requires: No interruption

TargetName

The target name.

Required: Yes

Type: String

Pattern: [a-zA-Z0-9.:\s_\-]+

Minimum: 1

Maximum: 128

Update requires: Replacement

TargetType

The target type. Valid Values: DEFAULT | THING_GROUP

Required: Yes

Type: String

Allowed values: THING_GROUP | CLIENT_ID | SOURCE_IP | PRINCIPAL_ID | EVENT_TYPE

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the resource-specific log ID. For example:

{"Ref": "MyResourceLog-12345" }

Fn::GetAtt

TargetId

The target Id.

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.