CfnLoggingProps

class aws_cdk.aws_iot.CfnLoggingProps(*, account_id, default_log_level, role_arn, event_configurations=None)

Bases: object

Properties for defining a CfnLogging.

Parameters:
  • account_id (str) – The account ID.

  • default_log_level (str) – The default log level. Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED

  • role_arn (Union[str, IRoleRef]) – The role ARN used for the log.

  • event_configurations (Union[IResolvable, Sequence[Union[IResolvable, EventConfigurationProperty, Dict[str, Any]]], None]) – Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

cfn_logging_props = iot.CfnLoggingProps(
    account_id="accountId",
    default_log_level="defaultLogLevel",
    role_arn="roleArn",

    # the properties below are optional
    event_configurations=[iot.CfnLogging.EventConfigurationProperty(
        event_type="eventType",

        # the properties below are optional
        log_destination="logDestination",
        log_level="logLevel"
    )]
)

Attributes

account_id

The account ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html#cfn-iot-logging-accountid

default_log_level

The default log level.

Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html#cfn-iot-logging-defaultloglevel

event_configurations

Configurations for event-based logging that specifies which event types to log and their logging settings.

Overrides account-level logging for the specified event

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html#cfn-iot-logging-eventconfigurations

role_arn

The role ARN used for the log.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-logging.html#cfn-iot-logging-rolearn