io.burkard.cdk.services.cloudtrail.TrailProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudtrail
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object TrailProps {
def apply(
includeGlobalServiceEvents: Option[Boolean] = None,
cloudWatchLogsRetention: Option[software.amazon.awscdk.services.logs.RetentionDays] = None,
isMultiRegionTrail: Option[Boolean] = None,
trailName: Option[String] = None,
enableFileValidation: Option[Boolean] = None,
cloudWatchLogGroup: Option[software.amazon.awscdk.services.logs.ILogGroup] = None,
sendToCloudWatchLogs: Option[Boolean] = None,
managementEvents: Option[software.amazon.awscdk.services.cloudtrail.ReadWriteType] = None,
snsTopic: Option[software.amazon.awscdk.services.sns.ITopic] = None,
bucket: Option[software.amazon.awscdk.services.s3.IBucket] = None,
encryptionKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
s3KeyPrefix: Option[String] = None
): software.amazon.awscdk.services.cloudtrail.TrailProps =
(new software.amazon.awscdk.services.cloudtrail.TrailProps.Builder)
.includeGlobalServiceEvents(includeGlobalServiceEvents.map(Boolean.box).orNull)
.cloudWatchLogsRetention(cloudWatchLogsRetention.orNull)
.isMultiRegionTrail(isMultiRegionTrail.map(Boolean.box).orNull)
.trailName(trailName.orNull)
.enableFileValidation(enableFileValidation.map(Boolean.box).orNull)
.cloudWatchLogGroup(cloudWatchLogGroup.orNull)
.sendToCloudWatchLogs(sendToCloudWatchLogs.map(Boolean.box).orNull)
.managementEvents(managementEvents.orNull)
.snsTopic(snsTopic.orNull)
.bucket(bucket.orNull)
.encryptionKey(encryptionKey.orNull)
.s3KeyPrefix(s3KeyPrefix.orNull)
.build()
}