All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ec2.FlowLogDestinationConfig.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ec2

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object FlowLogDestinationConfig {

  def apply(
    logDestinationType: software.amazon.awscdk.services.ec2.FlowLogDestinationType,
    logGroup: Option[software.amazon.awscdk.services.logs.ILogGroup] = None,
    s3Bucket: Option[software.amazon.awscdk.services.s3.IBucket] = None,
    iamRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
    destinationOptions: Option[software.amazon.awscdk.services.ec2.DestinationOptions] = None,
    keyPrefix: Option[String] = None
  ): software.amazon.awscdk.services.ec2.FlowLogDestinationConfig =
    (new software.amazon.awscdk.services.ec2.FlowLogDestinationConfig.Builder)
      .logDestinationType(logDestinationType)
      .logGroup(logGroup.orNull)
      .s3Bucket(s3Bucket.orNull)
      .iamRole(iamRole.orNull)
      .destinationOptions(destinationOptions.orNull)
      .keyPrefix(keyPrefix.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy