io.burkard.cdk.services.cloudtrail.CfnTrailProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudtrail
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnTrailProps {
def apply(
s3BucketName: String,
isLogging: Boolean,
includeGlobalServiceEvents: Option[Boolean] = None,
isMultiRegionTrail: Option[Boolean] = None,
enableLogFileValidation: Option[Boolean] = None,
trailName: Option[String] = None,
snsTopicName: Option[String] = None,
insightSelectors: Option[List[_]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
isOrganizationTrail: Option[Boolean] = None,
cloudWatchLogsLogGroupArn: Option[String] = None,
eventSelectors: Option[List[_]] = None,
kmsKeyId: Option[String] = None,
cloudWatchLogsRoleArn: Option[String] = None,
s3KeyPrefix: Option[String] = None
): software.amazon.awscdk.services.cloudtrail.CfnTrailProps =
(new software.amazon.awscdk.services.cloudtrail.CfnTrailProps.Builder)
.s3BucketName(s3BucketName)
.isLogging(isLogging)
.includeGlobalServiceEvents(includeGlobalServiceEvents.map(Boolean.box).orNull)
.isMultiRegionTrail(isMultiRegionTrail.map(Boolean.box).orNull)
.enableLogFileValidation(enableLogFileValidation.map(Boolean.box).orNull)
.trailName(trailName.orNull)
.snsTopicName(snsTopicName.orNull)
.insightSelectors(insightSelectors.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.isOrganizationTrail(isOrganizationTrail.map(Boolean.box).orNull)
.cloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn.orNull)
.eventSelectors(eventSelectors.map(_.asJava).orNull)
.kmsKeyId(kmsKeyId.orNull)
.cloudWatchLogsRoleArn(cloudWatchLogsRoleArn.orNull)
.s3KeyPrefix(s3KeyPrefix.orNull)
.build()
}