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
-
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. This data type is a request parameter of SetLogDeliveryConfiguration and a response parameter of GetLogDeliveryConfiguration .- 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. This data type is a request parameter of SetLogDeliveryConfiguration and a response parameter of GetLogDeliveryConfiguration .- 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 advanced security features user activity, 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 advanced security features.- 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 advanced security features.- Returns:
this
-
logLevel
@Stability(Stable) public CfnLogDeliveryConfiguration.LogConfigurationProperty.Builder logLevel(String logLevel) Sets the value ofCfnLogDeliveryConfiguration.LogConfigurationProperty.getLogLevel()
- Parameters:
logLevel
- Theerrorlevel
selection of logs that a user pool sends for detailed activity logging. To senduserNotification
activity with information about message delivery , chooseERROR
withCloudWatchLogsConfiguration
. To senduserAuthEvents
activity with user logs from advanced security features, chooseINFO
with 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 advanced security features.- 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 advanced security features.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLogDeliveryConfiguration.LogConfigurationProperty>
- Returns:
- a new instance of
CfnLogDeliveryConfiguration.LogConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-