![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.cleanrooms.kotlin.IdMappingTable.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cleanrooms.kotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdMappingTableInputReferenceConfig
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdMappingTableInputReferenceProperties
import com.pulumi.awsnative.kotlin.outputs.Tag
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 com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdMappingTableInputReferenceConfig.Companion.toKotlin as idMappingTableInputReferenceConfigToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdMappingTableInputReferenceProperties.Companion.toKotlin as idMappingTableInputReferencePropertiesToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [IdMappingTable].
*/
@PulumiTagMarker
public class IdMappingTableResourceBuilder internal constructor() {
public var name: String? = null
public var args: IdMappingTableArgs = IdMappingTableArgs()
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 IdMappingTableArgsBuilder.() -> Unit) {
val builder = IdMappingTableArgsBuilder()
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(): IdMappingTable {
val builtJavaResource = com.pulumi.awsnative.cleanrooms.IdMappingTable(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return IdMappingTable(builtJavaResource)
}
}
/**
* Represents an association between an ID mapping workflow and a collaboration
*/
public class IdMappingTable internal constructor(
override val javaResource: com.pulumi.awsnative.cleanrooms.IdMappingTable,
) : KotlinCustomResource(javaResource, IdMappingTableMapper) {
/**
* The Amazon Resource Name (ARN) of the ID mapping table.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the collaboration that contains this ID mapping table.
*/
public val collaborationArn: Output
get() = javaResource.collaborationArn().applyValue({ args0 -> args0 })
public val collaborationIdentifier: Output
get() = javaResource.collaborationIdentifier().applyValue({ args0 -> args0 })
/**
* The description of the ID mapping table.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
public val idMappingTableIdentifier: Output
get() = javaResource.idMappingTableIdentifier().applyValue({ args0 -> args0 })
/**
* The input reference configuration for the ID mapping table.
*/
public val inputReferenceConfig: Output
get() = javaResource.inputReferenceConfig().applyValue({ args0 ->
args0.let({ args0 ->
idMappingTableInputReferenceConfigToKotlin(args0)
})
})
public val inputReferenceProperties: Output
get() = javaResource.inputReferenceProperties().applyValue({ args0 ->
args0.let({ args0 ->
idMappingTableInputReferencePropertiesToKotlin(args0)
})
})
/**
* The Amazon Resource Name (ARN) of the AWS KMS key.
*/
public val kmsKeyArn: Output?
get() = javaResource.kmsKeyArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The Amazon Resource Name (ARN) of the membership resource for the ID mapping table.
*/
public val membershipArn: Output
get() = javaResource.membershipArn().applyValue({ args0 -> args0 })
/**
* The unique identifier of the membership resource for the ID mapping table.
*/
public val membershipIdentifier: Output
get() = javaResource.membershipIdentifier().applyValue({ args0 -> args0 })
/**
* The name of the ID mapping table.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object IdMappingTableMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.cleanrooms.IdMappingTable::class == javaResource::class
override fun map(javaResource: Resource): IdMappingTable = IdMappingTable(
javaResource as
com.pulumi.awsnative.cleanrooms.IdMappingTable,
)
}
/**
* @see [IdMappingTable].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [IdMappingTable].
*/
public suspend fun idMappingTable(
name: String,
block: suspend IdMappingTableResourceBuilder.() -> Unit,
): IdMappingTable {
val builder = IdMappingTableResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [IdMappingTable].
* @param name The _unique_ name of the resulting resource.
*/
public fun idMappingTable(name: String): IdMappingTable {
val builder = IdMappingTableResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy