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

com.pulumi.aws.opensearch.kotlin.inputs.DomainCognitoOptionsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opensearch.kotlin.inputs

import com.pulumi.aws.opensearch.inputs.DomainCognitoOptionsArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is `false`.
 * @property identityPoolId ID of the Cognito Identity Pool to use.
 * @property roleArn ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached.
 * @property userPoolId ID of the Cognito User Pool to use.
 */
public data class DomainCognitoOptionsArgs(
    public val enabled: Output? = null,
    public val identityPoolId: Output,
    public val roleArn: Output,
    public val userPoolId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opensearch.inputs.DomainCognitoOptionsArgs =
        com.pulumi.aws.opensearch.inputs.DomainCognitoOptionsArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .identityPoolId(identityPoolId.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .userPoolId(userPoolId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DomainCognitoOptionsArgs].
 */
@PulumiTagMarker
public class DomainCognitoOptionsArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var identityPoolId: Output? = null

    private var roleArn: Output? = null

    private var userPoolId: Output? = null

    /**
     * @param value Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is `false`.
     */
    @JvmName("neblgaxtyrknqgjd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value ID of the Cognito Identity Pool to use.
     */
    @JvmName("nfcdeyllcskyvcfp")
    public suspend fun identityPoolId(`value`: Output) {
        this.identityPoolId = value
    }

    /**
     * @param value ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached.
     */
    @JvmName("vmsaqvqjcjpfjldq")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value ID of the Cognito User Pool to use.
     */
    @JvmName("jqldjfblsuoyljvc")
    public suspend fun userPoolId(`value`: Output) {
        this.userPoolId = value
    }

    /**
     * @param value Whether Amazon Cognito authentication with Dashboard is enabled or not. Default is `false`.
     */
    @JvmName("hqewcbbbxmepjcbw")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value ID of the Cognito Identity Pool to use.
     */
    @JvmName("apvvgfwvckfgthia")
    public suspend fun identityPoolId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityPoolId = mapped
    }

    /**
     * @param value ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached.
     */
    @JvmName("yxtmwlluhjnxbiyo")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value ID of the Cognito User Pool to use.
     */
    @JvmName("xdjcgseafftwgqad")
    public suspend fun userPoolId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userPoolId = mapped
    }

    internal fun build(): DomainCognitoOptionsArgs = DomainCognitoOptionsArgs(
        enabled = enabled,
        identityPoolId = identityPoolId ?: throw PulumiNullFieldException("identityPoolId"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        userPoolId = userPoolId ?: throw PulumiNullFieldException("userPoolId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy