Skip to content
v2.278.0

EventConfigurationProperty Struct ​

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

Used for account-level logging overrides.

Example ​

ts
// 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 eventConfigurationProperty: iot.CfnLogging.EventConfigurationProperty = {
  eventType: 'eventType',

  // the properties below are optional
  logDestination: 'logDestination',
  logLevel: 'logLevel',
};
python
# 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

event_configuration_property = iot.CfnLogging.EventConfigurationProperty(
    event_type="eventType",

    # the properties below are optional
    log_destination="logDestination",
    log_level="logLevel"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

EventConfigurationProperty eventConfigurationProperty = EventConfigurationProperty.builder()
        .eventType("eventType")

        // the properties below are optional
        .logDestination("logDestination")
        .logLevel("logLevel")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var eventConfigurationProperty = new EventConfigurationProperty {
    EventType = "eventType",

    // the properties below are optional
    LogDestination = "logDestination",
    LogLevel = "logLevel"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eventConfigurationProperty := &EventConfigurationProperty{
	EventType: jsii.String("eventType"),

	// the properties below are optional
	LogDestination: jsii.String("logDestination"),
	LogLevel: jsii.String("logLevel"),
}

Properties ​

eventTypestringevent_typestreventTypeStringEventTypestringEventType*string required #
The type of event to log.

These include event types like Connect, Publish, and Disconnect.

logDestinationoptionalstringlog_destinationoptionalstrlogDestinationoptionalStringLogDestinationoptionalstringLogDestinationoptional*string #
CloudWatch Log Group for event-based logging.

Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.

logLeveloptionalstringlog_leveloptionalstrlogLeveloptionalStringLogLeveloptionalstringLogLeveloptional*string #
The logging level for the specified event type.

Determines the verbosity of log messages generated for this event type.