AWS::IoT::ResourceSpecificLogging
Configure resource-specific logging.
Syntax
To declare this entity in your Amazon 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:
DEBUG | DISABLED | ERROR | INFO | WARN
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:
CLIENT_ID | EVENT_TYPE | PRINCIPAL_ID | SOURCE_IP | THING_GROUP
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.