CfnLoggingMixinProps

class aws_cdk.mixins_preview.aws_iot.mixins.CfnLoggingMixinProps(*, account_id=None, default_log_level=None, event_configurations=None, role_arn=None)

Bases: object

Properties for CfnLoggingPropsMixin.

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

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

  • 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

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

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.mixins_preview.aws_iot import mixins as iot_mixins

cfn_logging_mixin_props = iot_mixins.CfnLoggingMixinProps(
    account_id="accountId",
    default_log_level="defaultLogLevel",
    event_configurations=[iot_mixins.CfnLoggingPropsMixin.EventConfigurationProperty(
        event_type="eventType",
        log_destination="logDestination",
        log_level="logLevel"
    )],
    role_arn="roleArn"
)

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