Class CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogDeliveryConfiguration.LogConfigurationProperty>
- Enclosing interface:
CfnLogDeliveryConfiguration.LogConfigurationProperty
@Stability(Stable)
public static final class CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogDeliveryConfiguration.LogConfigurationProperty>
A builder for
CfnLogDeliveryConfiguration.LogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchLogsConfiguration(IResolvable cloudWatchLogsConfiguration) cloudWatchLogsConfiguration(CfnLogDeliveryConfiguration.CloudWatchLogsConfigurationProperty cloudWatchLogsConfiguration) eventSource(String eventSource) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getEventSource()Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogsConfiguration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder cloudWatchLogsConfiguration(IResolvable cloudWatchLogsConfiguration) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getCloudWatchLogsConfiguration()- Parameters:
cloudWatchLogsConfiguration- The CloudWatch logging destination of a user pool detailed activity logging configuration.- Returns:
this
-
cloudWatchLogsConfiguration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder cloudWatchLogsConfiguration(CfnLogDeliveryConfiguration.CloudWatchLogsConfigurationProperty cloudWatchLogsConfiguration) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getCloudWatchLogsConfiguration()- Parameters:
cloudWatchLogsConfiguration- The CloudWatch logging destination of a user pool detailed activity logging configuration.- Returns:
this
-
eventSource
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder eventSource(String eventSource) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getEventSource()- Parameters:
eventSource- The source of events that your user pool sends for detailed activity logging.- Returns:
this
-
logLevel
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder logLevel(String logLevel) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getLogLevel()- Parameters:
logLevel- Theerrorlevelselection of logs that a user pool sends for detailed activity logging.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogDeliveryConfiguration.LogConfigurationProperty>- Returns:
- a new instance of
CfnLogDeliveryConfiguration.LogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-