Class CfnLogging.EventConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnLogging.EventConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogging.EventConfigurationProperty>
- Enclosing interface:
CfnLogging.EventConfigurationProperty
@Stability(Stable)
public static final class CfnLogging.EventConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogging.EventConfigurationProperty>
A builder for
CfnLogging.EventConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLogging.EventConfigurationProperty.getEventType()logDestination(String logDestination) Sets the value ofCfnLogging.EventConfigurationProperty.getLogDestination()Sets the value ofCfnLogging.EventConfigurationProperty.getLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
Sets the value ofCfnLogging.EventConfigurationProperty.getEventType()- Parameters:
eventType- The type of event to log. This parameter is required. These include event types like Connect, Publish, and Disconnect.- Returns:
this
-
logDestination
@Stability(Stable) public CfnLogging.EventConfigurationProperty.Builder logDestination(String logDestination) Sets the value ofCfnLogging.EventConfigurationProperty.getLogDestination()- Parameters:
logDestination- 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.- Returns:
this
-
logLevel
Sets the value ofCfnLogging.EventConfigurationProperty.getLogLevel()- Parameters:
logLevel- The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogging.EventConfigurationProperty>- Returns:
- a new instance of
CfnLogging.EventConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-