![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.entityresolution.kotlin.IdNamespace.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.entityresolution.kotlin
import com.pulumi.awsnative.entityresolution.kotlin.enums.IdNamespaceType
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdNamespaceIdMappingWorkflowProperties
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdNamespaceInputSource
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.entityresolution.kotlin.enums.IdNamespaceType.Companion.toKotlin as idNamespaceTypeToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdNamespaceIdMappingWorkflowProperties.Companion.toKotlin as idNamespaceIdMappingWorkflowPropertiesToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdNamespaceInputSource.Companion.toKotlin as idNamespaceInputSourceToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [IdNamespace].
*/
@PulumiTagMarker
public class IdNamespaceResourceBuilder internal constructor() {
public var name: String? = null
public var args: IdNamespaceArgs = IdNamespaceArgs()
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 IdNamespaceArgsBuilder.() -> Unit) {
val builder = IdNamespaceArgsBuilder()
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(): IdNamespace {
val builtJavaResource =
com.pulumi.awsnative.entityresolution.IdNamespace(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return IdNamespace(builtJavaResource)
}
}
/**
* IdNamespace defined in AWS Entity Resolution service
*/
public class IdNamespace internal constructor(
override val javaResource: com.pulumi.awsnative.entityresolution.IdNamespace,
) : KotlinCustomResource(javaResource, IdNamespaceMapper) {
/**
* The date and time when the IdNamespace was created
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The description of the ID namespace.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
*/
public val idMappingWorkflowProperties: Output>?
get() = javaResource.idMappingWorkflowProperties().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
idNamespaceIdMappingWorkflowPropertiesToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The arn associated with the IdNamespace
*/
public val idNamespaceArn: Output
get() = javaResource.idNamespaceArn().applyValue({ args0 -> args0 })
/**
* The name of the ID namespace.
*/
public val idNamespaceName: Output
get() = javaResource.idNamespaceName().applyValue({ args0 -> args0 })
/**
* A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
*/
public val inputSourceConfig: Output>?
get() = javaResource.inputSourceConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
idNamespaceInputSourceToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to access the resources defined in this `IdNamespace` on your behalf as part of the workflow run.
*/
public val roleArn: Output?
get() = javaResource.roleArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The tags used to organize, track, or control access for this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The type of ID namespace. There are two types: `SOURCE` and `TARGET` .
* The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.
* The `TARGET` contains a configuration of `targetId` which all `sourceIds` will resolve to.
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 ->
args0.let({ args0 ->
idNamespaceTypeToKotlin(args0)
})
})
/**
* The date and time when the IdNamespace was updated
*/
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
}
public object IdNamespaceMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.entityresolution.IdNamespace::class == javaResource::class
override fun map(javaResource: Resource): IdNamespace = IdNamespace(
javaResource as
com.pulumi.awsnative.entityresolution.IdNamespace,
)
}
/**
* @see [IdNamespace].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [IdNamespace].
*/
public suspend fun idNamespace(name: String, block: suspend IdNamespaceResourceBuilder.() -> Unit): IdNamespace {
val builder = IdNamespaceResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [IdNamespace].
* @param name The _unique_ name of the resulting resource.
*/
public fun idNamespace(name: String): IdNamespace {
val builder = IdNamespaceResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy