AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::ResourceSpecificLogging

IoT ResourceSpecificLogging

Resource-specific logging allows you to specify a logging level for a specific thing group.

Properties

3 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
LogLevel
string
Required
TargetName
string
RequiredCreate-only
TargetType
string
RequiredCreate-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
TargetIdstringUnique Id for a Target (TargetType:TargetName), this will be internally built to serve as primary identifier for a log target.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::ResourceSpecificLogging

Resources:
  MyResource:
    Type: AWS::IoT::ResourceSpecificLogging
    Properties:
      TargetName: "my-targetname"
      TargetType: "THING_GROUP"
      LogLevel: "ERROR"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iot:ListV2LoggingLevelsiot:SetV2LoggingLevel

read

iot:ListV2LoggingLevels

update

iot:ListV2LoggingLevelsiot:SetV2LoggingLevel

delete

iot:ListV2LoggingLevelsiot:DeleteV2LoggingLevel

list

iot:ListV2LoggingLevels

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoT
Properties4
Required3
TaggingNot supported
Primary IDTargetId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

TargetNameTargetType

External Links