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

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

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

package com.pulumi.awsnative.cognito.kotlin

import com.pulumi.awsnative.cognito.UserPoolResourceServerArgs.builder
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolResourceServerResourceServerScopeTypeArgs
import com.pulumi.awsnative.cognito.kotlin.inputs.UserPoolResourceServerResourceServerScopeTypeArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Cognito::UserPoolResourceServer
 * @property identifier A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example: `https://my-weather-api.example.com` .
 * @property name A friendly name for the resource server.
 * @property scopes A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
 * @property userPoolId The user pool ID for the user pool.
 */
public data class UserPoolResourceServerArgs(
    public val identifier: Output? = null,
    public val name: Output? = null,
    public val scopes: Output>? = null,
    public val userPoolId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cognito.UserPoolResourceServerArgs =
        com.pulumi.awsnative.cognito.UserPoolResourceServerArgs.builder()
            .identifier(identifier?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .userPoolId(userPoolId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserPoolResourceServerArgs].
 */
@PulumiTagMarker
public class UserPoolResourceServerArgsBuilder internal constructor() {
    private var identifier: Output? = null

    private var name: Output? = null

    private var scopes: Output>? = null

    private var userPoolId: Output? = null

    /**
     * @param value A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example: `https://my-weather-api.example.com` .
     */
    @JvmName("rddoqopkedqouyph")
    public suspend fun identifier(`value`: Output) {
        this.identifier = value
    }

    /**
     * @param value A friendly name for the resource server.
     */
    @JvmName("nydoegsnjsxunltk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("ykihlrjsxrthsiib")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("grvatnydofaukffv")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value The user pool ID for the user pool.
     */
    @JvmName("luhpxxpdhhtqryok")
    public suspend fun userPoolId(`value`: Output) {
        this.userPoolId = value
    }

    /**
     * @param value A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example: `https://my-weather-api.example.com` .
     */
    @JvmName("lpniijqilftxrghj")
    public suspend fun identifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifier = mapped
    }

    /**
     * @param value A friendly name for the resource server.
     */
    @JvmName("gatmijhoaudvqmep")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("rpleantquijvwocx")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param argument A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("vhjqnbtaxtodsuhh")
    public suspend fun scopes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserPoolResourceServerResourceServerScopeTypeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("hhowcmlblbgyehje")
    public suspend fun scopes(vararg argument: suspend UserPoolResourceServerResourceServerScopeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserPoolResourceServerResourceServerScopeTypeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("ntfieulsuhjtxhdi")
    public suspend fun scopes(argument: suspend UserPoolResourceServerResourceServerScopeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserPoolResourceServerResourceServerScopeTypeArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param values A list of scopes. Each scope is a map with keys `ScopeName` and `ScopeDescription` .
     */
    @JvmName("yqvjtdsplfnwgaio")
    public suspend fun scopes(vararg values: UserPoolResourceServerResourceServerScopeTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value The user pool ID for the user pool.
     */
    @JvmName("eqdkoasoaybuieol")
    public suspend fun userPoolId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userPoolId = mapped
    }

    internal fun build(): UserPoolResourceServerArgs = UserPoolResourceServerArgs(
        identifier = identifier,
        name = name,
        scopes = scopes,
        userPoolId = userPoolId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy