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

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

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

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,
    name: String,
    authorizerType: String,
    apiId: String,
    authorizerResultTtlInSeconds: Option[Number] = None,
    identitySource: Option[List[String]] = None,
    identityValidationExpression: Option[String] = None,
    authorizerPayloadFormatVersion: Option[String] = None,
    jwtConfiguration: Option[software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer.JWTConfigurationProperty] = None,
    enableSimpleResponses: Option[Boolean] = None,
    authorizerUri: Option[String] = None,
    authorizerCredentialsArn: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer =
    software.amazon.awscdk.services.apigatewayv2.CfnAuthorizer.Builder
      .create(stackCtx, internalResourceId)
      .name(name)
      .authorizerType(authorizerType)
      .apiId(apiId)
      .authorizerResultTtlInSeconds(authorizerResultTtlInSeconds.orNull)
      .identitySource(identitySource.map(_.asJava).orNull)
      .identityValidationExpression(identityValidationExpression.orNull)
      .authorizerPayloadFormatVersion(authorizerPayloadFormatVersion.orNull)
      .jwtConfiguration(jwtConfiguration.orNull)
      .enableSimpleResponses(enableSimpleResponses.map(Boolean.box).orNull)
      .authorizerUri(authorizerUri.orNull)
      .authorizerCredentialsArn(authorizerCredentialsArn.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy