io.burkard.cdk.services.events.targets.CloudWatchLogGroup.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.events.targets
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CloudWatchLogGroup {
def apply(
logGroup: software.amazon.awscdk.services.logs.ILogGroup,
maxEventAge: Option[software.amazon.awscdk.Duration] = None,
event: Option[software.amazon.awscdk.services.events.RuleTargetInput] = None,
deadLetterQueue: Option[software.amazon.awscdk.services.sqs.IQueue] = None,
logEvent: Option[software.amazon.awscdk.services.events.targets.LogGroupTargetInput] = None,
retryAttempts: Option[Number] = None
): software.amazon.awscdk.services.events.targets.CloudWatchLogGroup =
software.amazon.awscdk.services.events.targets.CloudWatchLogGroup.Builder
.create(logGroup)
.maxEventAge(maxEventAge.orNull)
.event(event.orNull)
.deadLetterQueue(deadLetterQueue.orNull)
.logEvent(logEvent.orNull)
.retryAttempts(retryAttempts.orNull)
.build()
}