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()firehoseConfiguration(IResolvable firehoseConfiguration) firehoseConfiguration(CfnLogDeliveryConfiguration.FirehoseConfigurationProperty firehoseConfiguration) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getLogLevel()s3Configuration(IResolvable s3Configuration) s3Configuration(CfnLogDeliveryConfiguration.S3ConfigurationProperty s3Configuration)
-
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- Configuration for the CloudWatch log group destination of user pool detailed activity logging, or of user activity log export with advanced security features.- Returns:
this
-
cloudWatchLogsConfiguration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder cloudWatchLogsConfiguration(CfnLogDeliveryConfiguration.CloudWatchLogsConfigurationProperty cloudWatchLogsConfiguration) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getCloudWatchLogsConfiguration()- Parameters:
cloudWatchLogsConfiguration- Configuration for the CloudWatch log group destination of user pool detailed activity logging, or of user activity log export with advanced security features.- 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 logging. To send error-level logs about user notification activity, set touserNotification. To send info-level logs about threat-protection user activity in user pools with the Plus feature plan, set touserAuthEvents.- Returns:
this
-
firehoseConfiguration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder firehoseConfiguration(IResolvable firehoseConfiguration) - Parameters:
firehoseConfiguration- Configuration for the Amazon Data Firehose stream destination of user activity log export with threat protection.- Returns:
this
-
firehoseConfiguration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder firehoseConfiguration(CfnLogDeliveryConfiguration.FirehoseConfigurationProperty firehoseConfiguration) - Parameters:
firehoseConfiguration- Configuration for the Amazon Data Firehose stream destination of user activity log export with threat protection.- 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. To senduserNotificationactivity with information about message delivery , chooseERRORwithCloudWatchLogsConfiguration. To senduserAuthEventsactivity with user logs from threat protection with the Plus feature plan, chooseINFOwith one ofCloudWatchLogsConfiguration,FirehoseConfiguration, orS3Configuration.- Returns:
this
-
s3Configuration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder s3Configuration(IResolvable s3Configuration) - Parameters:
s3Configuration- Configuration for the Amazon S3 bucket destination of user activity log export with threat protection.- Returns:
this
-
s3Configuration
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder s3Configuration(CfnLogDeliveryConfiguration.S3ConfigurationProperty s3Configuration) - Parameters:
s3Configuration- Configuration for the Amazon S3 bucket destination of user activity log export with threat protection.- 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
-