AWS::IoT::ResourceSpecificLogging
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.