com.pulumi.awsnative.cognito.kotlin.UserPoolUserToGroupAttachmentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cognito.kotlin
import com.pulumi.awsnative.cognito.UserPoolUserToGroupAttachmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::Cognito::UserPoolUserToGroupAttachment
* @property groupName The name of the group that you want to add your user to.
* @property userPoolId The user pool ID for the user pool.
* @property username
*/
public data class UserPoolUserToGroupAttachmentArgs(
public val groupName: Output? = null,
public val userPoolId: Output? = null,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cognito.UserPoolUserToGroupAttachmentArgs =
com.pulumi.awsnative.cognito.UserPoolUserToGroupAttachmentArgs.builder()
.groupName(groupName?.applyValue({ args0 -> args0 }))
.userPoolId(userPoolId?.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserPoolUserToGroupAttachmentArgs].
*/
@PulumiTagMarker
public class UserPoolUserToGroupAttachmentArgsBuilder internal constructor() {
private var groupName: Output? = null
private var userPoolId: Output? = null
private var username: Output? = null
/**
* @param value The name of the group that you want to add your user to.
*/
@JvmName("ysylycmqtuuqjcas")
public suspend fun groupName(`value`: Output) {
this.groupName = value
}
/**
* @param value The user pool ID for the user pool.
*/
@JvmName("rxqgrcwilxesqwjv")
public suspend fun userPoolId(`value`: Output) {
this.userPoolId = value
}
/**
* @param value
*/
@JvmName("miuwctwkectpuyhw")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value The name of the group that you want to add your user to.
*/
@JvmName("vgxwgmstcocondqb")
public suspend fun groupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupName = mapped
}
/**
* @param value The user pool ID for the user pool.
*/
@JvmName("baajqpmyeyaxiqts")
public suspend fun userPoolId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userPoolId = mapped
}
/**
* @param value
*/
@JvmName("jetdisvinwiwfeen")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): UserPoolUserToGroupAttachmentArgs = UserPoolUserToGroupAttachmentArgs(
groupName = groupName,
userPoolId = userPoolId,
username = username,
)
}