
com.pulumi.aws.appsync.kotlin.inputs.GraphQLApiUserPoolConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.appsync.kotlin.inputs
import com.pulumi.aws.appsync.inputs.GraphQLApiUserPoolConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property appIdClientRegex Regular expression for validating the incoming Amazon Cognito User Pool app client ID.
* @property awsRegion AWS region in which the user pool was created.
* @property defaultAction Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY`
* @property userPoolId User pool ID.
*/
public data class GraphQLApiUserPoolConfigArgs(
public val appIdClientRegex: Output? = null,
public val awsRegion: Output? = null,
public val defaultAction: Output,
public val userPoolId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appsync.inputs.GraphQLApiUserPoolConfigArgs =
com.pulumi.aws.appsync.inputs.GraphQLApiUserPoolConfigArgs.builder()
.appIdClientRegex(appIdClientRegex?.applyValue({ args0 -> args0 }))
.awsRegion(awsRegion?.applyValue({ args0 -> args0 }))
.defaultAction(defaultAction.applyValue({ args0 -> args0 }))
.userPoolId(userPoolId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GraphQLApiUserPoolConfigArgs].
*/
@PulumiTagMarker
public class GraphQLApiUserPoolConfigArgsBuilder internal constructor() {
private var appIdClientRegex: Output? = null
private var awsRegion: Output? = null
private var defaultAction: Output? = null
private var userPoolId: Output? = null
/**
* @param value Regular expression for validating the incoming Amazon Cognito User Pool app client ID.
*/
@JvmName("nqxcgkydvkvrjwxp")
public suspend fun appIdClientRegex(`value`: Output) {
this.appIdClientRegex = value
}
/**
* @param value AWS region in which the user pool was created.
*/
@JvmName("xcwifdojpqwcovfu")
public suspend fun awsRegion(`value`: Output) {
this.awsRegion = value
}
/**
* @param value Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY`
*/
@JvmName("eblsatctqhkkrfol")
public suspend fun defaultAction(`value`: Output) {
this.defaultAction = value
}
/**
* @param value User pool ID.
*/
@JvmName("mxxjqgmawukefjet")
public suspend fun userPoolId(`value`: Output) {
this.userPoolId = value
}
/**
* @param value Regular expression for validating the incoming Amazon Cognito User Pool app client ID.
*/
@JvmName("yaqbbjjuumxtavju")
public suspend fun appIdClientRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appIdClientRegex = mapped
}
/**
* @param value AWS region in which the user pool was created.
*/
@JvmName("qbacdvdupnpbjxiw")
public suspend fun awsRegion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.awsRegion = mapped
}
/**
* @param value Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY`
*/
@JvmName("pbsomphgsyurckgt")
public suspend fun defaultAction(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.defaultAction = mapped
}
/**
* @param value User pool ID.
*/
@JvmName("frvmgbttqnefaklw")
public suspend fun userPoolId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.userPoolId = mapped
}
internal fun build(): GraphQLApiUserPoolConfigArgs = GraphQLApiUserPoolConfigArgs(
appIdClientRegex = appIdClientRegex,
awsRegion = awsRegion,
defaultAction = defaultAction ?: throw PulumiNullFieldException("defaultAction"),
userPoolId = userPoolId ?: throw PulumiNullFieldException("userPoolId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy