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

io.burkard.cdk.services.iot.CfnAuthorizer.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    internalResourceId: String,
    authorizerFunctionArn: String,
    tokenSigningPublicKeys: Option[Map[String, String]] = None,
    signingDisabled: Option[Boolean] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    authorizerName: Option[String] = None,
    status: Option[String] = None,
    tokenKeyName: Option[String] = None,
    enableCachingForHttp: Option[Boolean] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.iot.CfnAuthorizer =
    software.amazon.awscdk.services.iot.CfnAuthorizer.Builder
      .create(stackCtx, internalResourceId)
      .authorizerFunctionArn(authorizerFunctionArn)
      .tokenSigningPublicKeys(tokenSigningPublicKeys.map(_.asJava).orNull)
      .signingDisabled(signingDisabled.map(Boolean.box).orNull)
      .tags(tags.map(_.asJava).orNull)
      .authorizerName(authorizerName.orNull)
      .status(status.orNull)
      .tokenKeyName(tokenKeyName.orNull)
      .enableCachingForHttp(enableCachingForHttp.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy