io.burkard.cdk.services.apigatewayv2.CfnRoute.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 CfnRoute {
def apply(
internalResourceId: String,
apiId: String,
routeKey: String,
requestParameters: Option[AnyRef] = None,
authorizationScopes: Option[List[String]] = None,
routeResponseSelectionExpression: Option[String] = None,
authorizerId: Option[String] = None,
authorizationType: Option[String] = None,
requestModels: Option[AnyRef] = None,
target: Option[String] = None,
modelSelectionExpression: Option[String] = None,
operationName: Option[String] = None,
apiKeyRequired: Option[Boolean] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.apigatewayv2.CfnRoute =
software.amazon.awscdk.services.apigatewayv2.CfnRoute.Builder
.create(stackCtx, internalResourceId)
.apiId(apiId)
.routeKey(routeKey)
.requestParameters(requestParameters.orNull)
.authorizationScopes(authorizationScopes.map(_.asJava).orNull)
.routeResponseSelectionExpression(routeResponseSelectionExpression.orNull)
.authorizerId(authorizerId.orNull)
.authorizationType(authorizationType.orNull)
.requestModels(requestModels.orNull)
.target(target.orNull)
.modelSelectionExpression(modelSelectionExpression.orNull)
.operationName(operationName.orNull)
.apiKeyRequired(apiKeyRequired.map(Boolean.box).orNull)
.build()
}