interface CfnLoggingProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoT.CfnLoggingProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnLoggingProps |
Java | software.amazon.awscdk.services.iot.CfnLoggingProps |
Python | aws_cdk.aws_iot.CfnLoggingProps |
TypeScript | aws-cdk-lib » aws_iot » CfnLoggingProps |
Properties for defining a CfnLogging.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnLoggingProps: iot.CfnLoggingProps = {
accountId: 'accountId',
defaultLogLevel: 'defaultLogLevel',
roleArn: 'roleArn',
// the properties below are optional
eventConfigurations: [{
eventType: 'eventType',
// the properties below are optional
logDestination: 'logDestination',
logLevel: 'logLevel',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| account | string | The account ID. |
| default | string | The default log level. |
| role | string | IRole | The role ARN used for the log. |
| event | IResolvable | (IResolvable | Event)[] | Configurations for event-based logging that specifies which event types to log and their logging settings. |
accountId
Type:
string
The account ID.
defaultLogLevel
Type:
string
The default log level.
Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED
roleArn
Type:
string | IRole
The role ARN used for the log.
eventConfigurations?
Type:
IResolvable | (IResolvable | Event)[]
(optional)
Configurations for event-based logging that specifies which event types to log and their logging settings.
Overrides account-level logging for the specified event

.NET
Go
Java
Python
TypeScript