AWS::IoT::LoggingLogging Options enable you to configure your IoT V2 logging role and default logging level so that you can monitor progress events logs as it passes from your devices through Iot core service.
4 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
AccountId | string | RequiredCreate-only |
DefaultLogLevel | string | Required |
RoleArn | string | Required |
EventConfigurations | Array<EventConfiguration> |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::Logging
Resources:
MyResource:
Type: AWS::IoT::Logging
Properties:
AccountId: "my-accountid"
RoleArn: "arn:aws:service:region:account:resource"
DefaultLogLevel: "ERROR"Permissions CloudFormation needs in your IAM role to manage this resource.
iot:SetV2LoggingOptionsiot:GetV2LoggingOptionsiam:PassRoleiot:GetV2LoggingOptionsiot:SetV2LoggingOptionsiot:GetV2LoggingOptionsiam:PassRoleiot:SetV2LoggingOptionsiot:GetV2LoggingOptionsiot:GetV2LoggingOptionsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterAccountIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AccountId