![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.cognito.kotlin.UserPoolUiCustomizationAttachment.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cognito.kotlin
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
/**
* Builder for [UserPoolUiCustomizationAttachment].
*/
@PulumiTagMarker
public class UserPoolUiCustomizationAttachmentResourceBuilder internal constructor() {
public var name: String? = null
public var args: UserPoolUiCustomizationAttachmentArgs = UserPoolUiCustomizationAttachmentArgs()
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 UserPoolUiCustomizationAttachmentArgsBuilder.() -> Unit) {
val builder = UserPoolUiCustomizationAttachmentArgsBuilder()
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(): UserPoolUiCustomizationAttachment {
val builtJavaResource =
com.pulumi.awsnative.cognito.UserPoolUiCustomizationAttachment(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return UserPoolUiCustomizationAttachment(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::Cognito::UserPoolUICustomizationAttachment
*/
public class UserPoolUiCustomizationAttachment internal constructor(
override val javaResource: com.pulumi.awsnative.cognito.UserPoolUiCustomizationAttachment,
) : KotlinCustomResource(javaResource, UserPoolUiCustomizationAttachmentMapper) {
/**
* The client ID for the client app. You can specify the UI customization settings for a single client (with a specific clientId) or for all clients (by setting the clientId to `ALL` ).
*/
public val clientId: Output
get() = javaResource.clientId().applyValue({ args0 -> args0 })
/**
* The CSS values in the UI customization.
*/
public val css: Output?
get() = javaResource.css().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The user pool ID for the user pool.
*/
public val userPoolId: Output
get() = javaResource.userPoolId().applyValue({ args0 -> args0 })
}
public object UserPoolUiCustomizationAttachmentMapper :
ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.cognito.UserPoolUiCustomizationAttachment::class == javaResource::class
override fun map(javaResource: Resource): UserPoolUiCustomizationAttachment =
UserPoolUiCustomizationAttachment(
javaResource as
com.pulumi.awsnative.cognito.UserPoolUiCustomizationAttachment,
)
}
/**
* @see [UserPoolUiCustomizationAttachment].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [UserPoolUiCustomizationAttachment].
*/
public suspend fun userPoolUiCustomizationAttachment(
name: String,
block: suspend UserPoolUiCustomizationAttachmentResourceBuilder.() -> Unit,
): UserPoolUiCustomizationAttachment {
val builder = UserPoolUiCustomizationAttachmentResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [UserPoolUiCustomizationAttachment].
* @param name The _unique_ name of the resulting resource.
*/
public fun userPoolUiCustomizationAttachment(name: String): UserPoolUiCustomizationAttachment {
val builder = UserPoolUiCustomizationAttachmentResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy