com.pulumi.awsnative.cleanrooms.kotlin.IdNamespaceAssociation.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cleanrooms.kotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdNamespaceAssociationIdMappingConfig
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdNamespaceAssociationInputReferenceConfig
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdNamespaceAssociationInputReferenceProperties
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.IdNamespaceAssociationIdMappingConfig.Companion.toKotlin as idNamespaceAssociationIdMappingConfigToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdNamespaceAssociationInputReferenceConfig.Companion.toKotlin as idNamespaceAssociationInputReferenceConfigToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.IdNamespaceAssociationInputReferenceProperties.Companion.toKotlin as idNamespaceAssociationInputReferencePropertiesToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [IdNamespaceAssociation].
*/
@PulumiTagMarker
public class IdNamespaceAssociationResourceBuilder internal constructor() {
public var name: String? = null
public var args: IdNamespaceAssociationArgs = IdNamespaceAssociationArgs()
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 IdNamespaceAssociationArgsBuilder.() -> Unit) {
val builder = IdNamespaceAssociationArgsBuilder()
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(): IdNamespaceAssociation {
val builtJavaResource =
com.pulumi.awsnative.cleanrooms.IdNamespaceAssociation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return IdNamespaceAssociation(builtJavaResource)
}
}
/**
* Represents an association between an ID namespace and a collaboration
*/
public class IdNamespaceAssociation internal constructor(
override val javaResource: com.pulumi.awsnative.cleanrooms.IdNamespaceAssociation,
) : KotlinCustomResource(javaResource, IdNamespaceAssociationMapper) {
/**
* The Amazon Resource Name (ARN) of the ID namespace association.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the collaboration that contains this ID namespace association.
*/
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 namespace association.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The configuration settings for the ID mapping table.
*/
public val idMappingConfig: Output?
get() = javaResource.idMappingConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> idNamespaceAssociationIdMappingConfigToKotlin(args0) })
}).orElse(null)
})
public val idNamespaceAssociationIdentifier: Output
get() = javaResource.idNamespaceAssociationIdentifier().applyValue({ args0 -> args0 })
/**
* The input reference configuration for the ID namespace association.
*/
public val inputReferenceConfig: Output
get() = javaResource.inputReferenceConfig().applyValue({ args0 ->
args0.let({ args0 ->
idNamespaceAssociationInputReferenceConfigToKotlin(args0)
})
})
public val inputReferenceProperties: Output
get() = javaResource.inputReferenceProperties().applyValue({ args0 ->
args0.let({ args0 ->
idNamespaceAssociationInputReferencePropertiesToKotlin(args0)
})
})
/**
* The Amazon Resource Name (ARN) of the membership resource for this ID namespace association.
*/
public val membershipArn: Output
get() = javaResource.membershipArn().applyValue({ args0 -> args0 })
/**
* The unique identifier of the membership that contains the ID namespace association.
*/
public val membershipIdentifier: Output
get() = javaResource.membershipIdentifier().applyValue({ args0 -> args0 })
/**
* The name of this ID namespace association.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object IdNamespaceAssociationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.cleanrooms.IdNamespaceAssociation::class == javaResource::class
override fun map(javaResource: Resource): IdNamespaceAssociation =
IdNamespaceAssociation(javaResource as com.pulumi.awsnative.cleanrooms.IdNamespaceAssociation)
}
/**
* @see [IdNamespaceAssociation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [IdNamespaceAssociation].
*/
public suspend fun idNamespaceAssociation(
name: String,
block: suspend IdNamespaceAssociationResourceBuilder.() -> Unit,
): IdNamespaceAssociation {
val builder = IdNamespaceAssociationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [IdNamespaceAssociation].
* @param name The _unique_ name of the resulting resource.
*/
public fun idNamespaceAssociation(name: String): IdNamespaceAssociation {
val builder = IdNamespaceAssociationResourceBuilder()
builder.name(name)
return builder.build()
}