![JAR search and dependency download from the Maven repository](/logo.png)
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy