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

io.burkard.cdk.services.mediastore.CfnContainerProps.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnContainerProps {

  def apply(
    containerName: String,
    metricPolicy: Option[software.amazon.awscdk.services.mediastore.CfnContainer.MetricPolicyProperty] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    lifecyclePolicy: Option[String] = None,
    corsPolicy: Option[List[_]] = None,
    accessLoggingEnabled: Option[Boolean] = None,
    policy: Option[String] = None
  ): software.amazon.awscdk.services.mediastore.CfnContainerProps =
    (new software.amazon.awscdk.services.mediastore.CfnContainerProps.Builder)
      .containerName(containerName)
      .metricPolicy(metricPolicy.orNull)
      .tags(tags.map(_.asJava).orNull)
      .lifecyclePolicy(lifecyclePolicy.orNull)
      .corsPolicy(corsPolicy.map(_.asJava).orNull)
      .accessLoggingEnabled(accessLoggingEnabled.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
      .policy(policy.orNull)
      .build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy