com.pulumi.awsnative.cognito.kotlin.UserPoolUser.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.kotlin.outputs.UserPoolUserAttributeType
import com.pulumi.awsnative.cognito.kotlin.outputs.UserPoolUserAttributeType.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Builder for [UserPoolUser].
*/
@PulumiTagMarker
public class UserPoolUserResourceBuilder internal constructor() {
public var name: String? = null
public var args: UserPoolUserArgs = UserPoolUserArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend UserPoolUserArgsBuilder.() -> Unit) {
val builder = UserPoolUserArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): UserPoolUser {
val builtJavaResource = com.pulumi.awsnative.cognito.UserPoolUser(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return UserPoolUser(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::Cognito::UserPoolUser
*/
public class UserPoolUser internal constructor(
override val javaResource: com.pulumi.awsnative.cognito.UserPoolUser,
) : KotlinCustomResource(javaResource, UserPoolUserMapper) {
/**
* A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
* You create custom workflows by assigning AWS Lambda functions to user pool triggers. When you use the AdminCreateUser API action, Amazon Cognito invokes the function that is assigned to the *pre sign-up* trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminCreateUser request. In your function code in AWS Lambda , you can process the `clientMetadata` value to enhance your workflow for your specific needs.
* For more information, see [Customizing user pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html) in the *Amazon Cognito Developer Guide* .
* > When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
* >
* > - Store the ClientMetadata value. This data is available only to AWS Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
* > - Validate the ClientMetadata value.
* > - Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
*/
public val clientMetadata: Output