io.burkard.cdk.services.cognito.OAuthFlows.scala Maven / Gradle / Ivy
package io.burkard.cdk.services.cognito
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object OAuthFlows {
def apply(
implicitCodeGrant: Option[Boolean] = None,
authorizationCodeGrant: Option[Boolean] = None,
clientCredentials: Option[Boolean] = None
): software.amazon.awscdk.services.cognito.OAuthFlows =
(new software.amazon.awscdk.services.cognito.OAuthFlows.Builder)
.implicitCodeGrant(implicitCodeGrant.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.authorizationCodeGrant(authorizationCodeGrant.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.clientCredentials(clientCredentials.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.build()
}