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

io.burkard.cdk.services.kms.CfnKeyProps.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    keyPolicy: AnyRef,
    keyUsage: Option[String] = None,
    pendingWindowInDays: Option[Number] = None,
    description: Option[String] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    enabled: Option[Boolean] = None,
    keySpec: Option[String] = None,
    enableKeyRotation: Option[Boolean] = None,
    multiRegion: Option[Boolean] = None
  ): software.amazon.awscdk.services.kms.CfnKeyProps =
    (new software.amazon.awscdk.services.kms.CfnKeyProps.Builder)
      .keyPolicy(keyPolicy)
      .keyUsage(keyUsage.orNull)
      .pendingWindowInDays(pendingWindowInDays.orNull)
      .description(description.orNull)
      .tags(tags.map(_.asJava).orNull)
      .enabled(enabled.map(Boolean.box).orNull)
      .keySpec(keySpec.orNull)
      .enableKeyRotation(enableKeyRotation.map(Boolean.box).orNull)
      .multiRegion(multiRegion.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy