This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
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:StringTargetName:StringTargetType:String
Properties
LogLevel-
The default log level.Valid Values:
DEBUG | INFO | ERROR | WARN | DISABLEDRequired: Yes
Type: String
Allowed values:
ERROR | WARN | INFO | DEBUG | DISABLEDUpdate requires: No interruption
TargetName-
The target name.
Required: Yes
Type: String
Pattern:
[a-zA-Z0-9.:\s_\-]+Minimum:
1Maximum:
128Update requires: Replacement
TargetType-
The target type. Valid Values:
DEFAULT | THING_GROUPRequired: Yes
Type: String
Allowed values:
THING_GROUP | CLIENT_ID | SOURCE_IP | PRINCIPAL_ID | EVENT_TYPEUpdate 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.