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

com.pulumi.awsnative.cognito.kotlin.IdentityPoolArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cognito.kotlin

import com.pulumi.awsnative.cognito.IdentityPoolArgs.builder
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolCognitoIdentityProviderArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolCognitoIdentityProviderArgsBuilder
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolCognitoStreamsArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolCognitoStreamsArgsBuilder
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolPushSyncArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.IdentityPoolPushSyncArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Cognito::IdentityPool
 * @property allowClassicFlow Enables the Basic (Classic) authentication flow.
 * @property allowUnauthenticatedIdentities Specifies whether the identity pool supports unauthenticated logins.
 * @property cognitoEvents The events to configure.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
 * @property cognitoIdentityProviders The Amazon Cognito user pools and their client IDs.
 * @property cognitoStreams Configuration options for configuring Amazon Cognito streams.
 * @property developerProviderName The "domain" Amazon Cognito uses when referencing your users. This name acts as a placeholder that allows your backend and the Amazon Cognito service to communicate about the developer provider. For the `DeveloperProviderName` , you can use letters and periods (.), underscores (_), and dashes (-).
 * *Minimum length* : 1
 * *Maximum length* : 100
 * @property identityPoolName The name of your Amazon Cognito identity pool.
 * *Minimum length* : 1
 * *Maximum length* : 128
 * *Pattern* : `[\w\s+=,.@-]+`
 * @property openIdConnectProviderArns The Amazon Resource Names (ARNs) of the OpenID connect providers.
 * @property pushSync The configuration options to be applied to the identity pool.
 * @property samlProviderArns The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
 * @property supportedLoginProviders Key-value pairs that map provider names to provider app IDs.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
 */
public data class IdentityPoolArgs(
    public val allowClassicFlow: Output? = null,
    public val allowUnauthenticatedIdentities: Output? = null,
    public val cognitoEvents: Output? = null,
    public val cognitoIdentityProviders: Output>? =
        null,
    public val cognitoStreams: Output? = null,
    public val developerProviderName: Output? = null,
    public val identityPoolName: Output? = null,
    public val openIdConnectProviderArns: Output>? = null,
    public val pushSync: Output? = null,
    public val samlProviderArns: Output>? = null,
    public val supportedLoginProviders: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.IdentityPoolArgs =
        com.pulumi.awsnative.cognito.IdentityPoolArgs.builder()
            .allowClassicFlow(allowClassicFlow?.applyValue({ args0 -> args0 }))
            .allowUnauthenticatedIdentities(allowUnauthenticatedIdentities?.applyValue({ args0 -> args0 }))
            .cognitoEvents(cognitoEvents?.applyValue({ args0 -> args0 }))
            .cognitoIdentityProviders(
                cognitoIdentityProviders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .cognitoStreams(cognitoStreams?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .developerProviderName(developerProviderName?.applyValue({ args0 -> args0 }))
            .identityPoolName(identityPoolName?.applyValue({ args0 -> args0 }))
            .openIdConnectProviderArns(
                openIdConnectProviderArns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .pushSync(pushSync?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .samlProviderArns(samlProviderArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .supportedLoginProviders(supportedLoginProviders?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IdentityPoolArgs].
 */
@PulumiTagMarker
public class IdentityPoolArgsBuilder internal constructor() {
    private var allowClassicFlow: Output? = null

    private var allowUnauthenticatedIdentities: Output? = null

    private var cognitoEvents: Output? = null

    private var cognitoIdentityProviders: Output>? =
        null

    private var cognitoStreams: Output? = null

    private var developerProviderName: Output? = null

    private var identityPoolName: Output? = null

    private var openIdConnectProviderArns: Output>? = null

    private var pushSync: Output? = null

    private var samlProviderArns: Output>? = null

    private var supportedLoginProviders: Output? = null

    /**
     * @param value Enables the Basic (Classic) authentication flow.
     */
    @JvmName("wyvgfllriwlueimp")
    public suspend fun allowClassicFlow(`value`: Output) {
        this.allowClassicFlow = value
    }

    /**
     * @param value Specifies whether the identity pool supports unauthenticated logins.
     */
    @JvmName("kvqrnewrkngewyby")
    public suspend fun allowUnauthenticatedIdentities(`value`: Output) {
        this.allowUnauthenticatedIdentities = value
    }

    /**
     * @param value The events to configure.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
     */
    @JvmName("qbbrpyhgaicrurda")
    public suspend fun cognitoEvents(`value`: Output) {
        this.cognitoEvents = value
    }

    /**
     * @param value The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("itbjjhqftwqdncie")
    public suspend fun cognitoIdentityProviders(`value`: Output>) {
        this.cognitoIdentityProviders = value
    }

    @JvmName("tgfiftwqyrqhdbpo")
    public suspend fun cognitoIdentityProviders(vararg values: Output) {
        this.cognitoIdentityProviders = Output.all(values.asList())
    }

    /**
     * @param values The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("jlkjggebamegeugh")
    public suspend fun cognitoIdentityProviders(values: List>) {
        this.cognitoIdentityProviders = Output.all(values)
    }

    /**
     * @param value Configuration options for configuring Amazon Cognito streams.
     */
    @JvmName("bdjdweljqoqwqiiy")
    public suspend fun cognitoStreams(`value`: Output) {
        this.cognitoStreams = value
    }

    /**
     * @param value The "domain" Amazon Cognito uses when referencing your users. This name acts as a placeholder that allows your backend and the Amazon Cognito service to communicate about the developer provider. For the `DeveloperProviderName` , you can use letters and periods (.), underscores (_), and dashes (-).
     * *Minimum length* : 1
     * *Maximum length* : 100
     */
    @JvmName("aruxnfhaecwgwsky")
    public suspend fun developerProviderName(`value`: Output) {
        this.developerProviderName = value
    }

    /**
     * @param value The name of your Amazon Cognito identity pool.
     * *Minimum length* : 1
     * *Maximum length* : 128
     * *Pattern* : `[\w\s+=,.@-]+`
     */
    @JvmName("qwwdnjpjddlvncot")
    public suspend fun identityPoolName(`value`: Output) {
        this.identityPoolName = value
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of the OpenID connect providers.
     */
    @JvmName("cqpuediqfrwgskuq")
    public suspend fun openIdConnectProviderArns(`value`: Output>) {
        this.openIdConnectProviderArns = value
    }

    @JvmName("reyslbvdktcqnpxy")
    public suspend fun openIdConnectProviderArns(vararg values: Output) {
        this.openIdConnectProviderArns = Output.all(values.asList())
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of the OpenID connect providers.
     */
    @JvmName("vbmuckcpbayosfxl")
    public suspend fun openIdConnectProviderArns(values: List>) {
        this.openIdConnectProviderArns = Output.all(values)
    }

    /**
     * @param value The configuration options to be applied to the identity pool.
     */
    @JvmName("jxdqydtloihqpcub")
    public suspend fun pushSync(`value`: Output) {
        this.pushSync = value
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
     */
    @JvmName("lbkofnfqflpljqiw")
    public suspend fun samlProviderArns(`value`: Output>) {
        this.samlProviderArns = value
    }

    @JvmName("obbmvouavmsltcod")
    public suspend fun samlProviderArns(vararg values: Output) {
        this.samlProviderArns = Output.all(values.asList())
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
     */
    @JvmName("jbejulbwqwomcmly")
    public suspend fun samlProviderArns(values: List>) {
        this.samlProviderArns = Output.all(values)
    }

    /**
     * @param value Key-value pairs that map provider names to provider app IDs.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
     */
    @JvmName("mhwsmhdkgptchhnx")
    public suspend fun supportedLoginProviders(`value`: Output) {
        this.supportedLoginProviders = value
    }

    /**
     * @param value Enables the Basic (Classic) authentication flow.
     */
    @JvmName("phbfdaoddfkmjtkd")
    public suspend fun allowClassicFlow(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowClassicFlow = mapped
    }

    /**
     * @param value Specifies whether the identity pool supports unauthenticated logins.
     */
    @JvmName("famdfjvcrwfqcmsv")
    public suspend fun allowUnauthenticatedIdentities(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowUnauthenticatedIdentities = mapped
    }

    /**
     * @param value The events to configure.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
     */
    @JvmName("implrylimstvtdln")
    public suspend fun cognitoEvents(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cognitoEvents = mapped
    }

    /**
     * @param value The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("rxawcjnoxtpdnxal")
    public suspend fun cognitoIdentityProviders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cognitoIdentityProviders = mapped
    }

    /**
     * @param argument The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("xcgifasvxhoeanym")
    public suspend fun cognitoIdentityProviders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IdentityPoolCognitoIdentityProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.cognitoIdentityProviders = mapped
    }

    /**
     * @param argument The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("bhnpsbxfwdxfpvty")
    public suspend fun cognitoIdentityProviders(vararg argument: suspend IdentityPoolCognitoIdentityProviderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IdentityPoolCognitoIdentityProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.cognitoIdentityProviders = mapped
    }

    /**
     * @param argument The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("enleyxclwxqlnpaw")
    public suspend fun cognitoIdentityProviders(argument: suspend IdentityPoolCognitoIdentityProviderArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IdentityPoolCognitoIdentityProviderArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.cognitoIdentityProviders = mapped
    }

    /**
     * @param values The Amazon Cognito user pools and their client IDs.
     */
    @JvmName("nvthissjcuvvjdng")
    public suspend fun cognitoIdentityProviders(vararg values: IdentityPoolCognitoIdentityProviderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cognitoIdentityProviders = mapped
    }

    /**
     * @param value Configuration options for configuring Amazon Cognito streams.
     */
    @JvmName("ucupvrpsqmdyfaup")
    public suspend fun cognitoStreams(`value`: IdentityPoolCognitoStreamsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cognitoStreams = mapped
    }

    /**
     * @param argument Configuration options for configuring Amazon Cognito streams.
     */
    @JvmName("ovoumwewmiksvwgk")
    public suspend fun cognitoStreams(argument: suspend IdentityPoolCognitoStreamsArgsBuilder.() -> Unit) {
        val toBeMapped = IdentityPoolCognitoStreamsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cognitoStreams = mapped
    }

    /**
     * @param value The "domain" Amazon Cognito uses when referencing your users. This name acts as a placeholder that allows your backend and the Amazon Cognito service to communicate about the developer provider. For the `DeveloperProviderName` , you can use letters and periods (.), underscores (_), and dashes (-).
     * *Minimum length* : 1
     * *Maximum length* : 100
     */
    @JvmName("vufdylaqkexjbgyj")
    public suspend fun developerProviderName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerProviderName = mapped
    }

    /**
     * @param value The name of your Amazon Cognito identity pool.
     * *Minimum length* : 1
     * *Maximum length* : 128
     * *Pattern* : `[\w\s+=,.@-]+`
     */
    @JvmName("uiechrmqvoanuakn")
    public suspend fun identityPoolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityPoolName = mapped
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of the OpenID connect providers.
     */
    @JvmName("prqjxdtnfjvedbgj")
    public suspend fun openIdConnectProviderArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.openIdConnectProviderArns = mapped
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of the OpenID connect providers.
     */
    @JvmName("gmsqimqfmmjymqsx")
    public suspend fun openIdConnectProviderArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.openIdConnectProviderArns = mapped
    }

    /**
     * @param value The configuration options to be applied to the identity pool.
     */
    @JvmName("nyybbabtxyrvyqxw")
    public suspend fun pushSync(`value`: IdentityPoolPushSyncArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pushSync = mapped
    }

    /**
     * @param argument The configuration options to be applied to the identity pool.
     */
    @JvmName("ouxbvkaaljqukggi")
    public suspend fun pushSync(argument: suspend IdentityPoolPushSyncArgsBuilder.() -> Unit) {
        val toBeMapped = IdentityPoolPushSyncArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.pushSync = mapped
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
     */
    @JvmName("jtvndsayepxqitwg")
    public suspend fun samlProviderArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samlProviderArns = mapped
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
     */
    @JvmName("ngluyeyvofykcfql")
    public suspend fun samlProviderArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.samlProviderArns = mapped
    }

    /**
     * @param value Key-value pairs that map provider names to provider app IDs.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Cognito::IdentityPool` for more information about the expected schema for this property.
     */
    @JvmName("bbvpyovbvlnuwost")
    public suspend fun supportedLoginProviders(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedLoginProviders = mapped
    }

    internal fun build(): IdentityPoolArgs = IdentityPoolArgs(
        allowClassicFlow = allowClassicFlow,
        allowUnauthenticatedIdentities = allowUnauthenticatedIdentities,
        cognitoEvents = cognitoEvents,
        cognitoIdentityProviders = cognitoIdentityProviders,
        cognitoStreams = cognitoStreams,
        developerProviderName = developerProviderName,
        identityPoolName = identityPoolName,
        openIdConnectProviderArns = openIdConnectProviderArns,
        pushSync = pushSync,
        samlProviderArns = samlProviderArns,
        supportedLoginProviders = supportedLoginProviders,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy