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

io.burkard.cdk.services.acmpca.cfnCertificate.ExtensionsProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.acmpca.cfnCertificate

import scala.collection.JavaConverters._

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

  def apply(
    keyUsage: Option[software.amazon.awscdk.services.acmpca.CfnCertificate.KeyUsageProperty] = None,
    customExtensions: Option[List[_]] = None,
    extendedKeyUsage: Option[List[_]] = None,
    subjectAlternativeNames: Option[List[_]] = None,
    certificatePolicies: Option[List[_]] = None
  ): software.amazon.awscdk.services.acmpca.CfnCertificate.ExtensionsProperty =
    (new software.amazon.awscdk.services.acmpca.CfnCertificate.ExtensionsProperty.Builder)
      .keyUsage(keyUsage.orNull)
      .customExtensions(customExtensions.map(_.asJava).orNull)
      .extendedKeyUsage(extendedKeyUsage.map(_.asJava).orNull)
      .subjectAlternativeNames(subjectAlternativeNames.map(_.asJava).orNull)
      .certificatePolicies(certificatePolicies.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy