![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.entityresolution.kotlin.IdMappingWorkflow.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.entityresolution.kotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdMappingWorkflowIdMappingTechniques
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdMappingWorkflowInputSource
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdMappingWorkflowOutputSource
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.outputs.IdMappingWorkflowIdMappingTechniques.Companion.toKotlin as idMappingWorkflowIdMappingTechniquesToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdMappingWorkflowInputSource.Companion.toKotlin as idMappingWorkflowInputSourceToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.IdMappingWorkflowOutputSource.Companion.toKotlin as idMappingWorkflowOutputSourceToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [IdMappingWorkflow].
*/
@PulumiTagMarker
public class IdMappingWorkflowResourceBuilder internal constructor() {
public var name: String? = null
public var args: IdMappingWorkflowArgs = IdMappingWorkflowArgs()
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 IdMappingWorkflowArgsBuilder.() -> Unit) {
val builder = IdMappingWorkflowArgsBuilder()
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(): IdMappingWorkflow {
val builtJavaResource =
com.pulumi.awsnative.entityresolution.IdMappingWorkflow(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return IdMappingWorkflow(builtJavaResource)
}
}
/**
* IdMappingWorkflow defined in AWS Entity Resolution service
*/
public class IdMappingWorkflow internal constructor(
override val javaResource: com.pulumi.awsnative.entityresolution.IdMappingWorkflow,
) : KotlinCustomResource(javaResource, IdMappingWorkflowMapper) {
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The description of the IdMappingWorkflow
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An object which defines the ID mapping technique and any additional configurations.
*/
public val idMappingTechniques: Output
get() = javaResource.idMappingTechniques().applyValue({ args0 ->
args0.let({ args0 ->
idMappingWorkflowIdMappingTechniquesToKotlin(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.let({ args0 -> idMappingWorkflowInputSourceToKotlin(args0) })
})
})
/**
* A list of `IdMappingWorkflowOutputSource` objects, each of which contains fields `OutputS3Path` and `Output` .
*/
public val outputSourceConfig: Output>?
get() = javaResource.outputSourceConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
idMappingWorkflowOutputSourceToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
*/
public val roleArn: Output
get() = javaResource.roleArn().applyValue({ args0 -> args0 })
/**
* 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)
})
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
public val workflowArn: Output
get() = javaResource.workflowArn().applyValue({ args0 -> args0 })
/**
* The name of the IdMappingWorkflow
*/
public val workflowName: Output
get() = javaResource.workflowName().applyValue({ args0 -> args0 })
}
public object IdMappingWorkflowMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.entityresolution.IdMappingWorkflow::class == javaResource::class
override fun map(javaResource: Resource): IdMappingWorkflow = IdMappingWorkflow(
javaResource as
com.pulumi.awsnative.entityresolution.IdMappingWorkflow,
)
}
/**
* @see [IdMappingWorkflow].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [IdMappingWorkflow].
*/
public suspend fun idMappingWorkflow(
name: String,
block: suspend IdMappingWorkflowResourceBuilder.() -> Unit,
): IdMappingWorkflow {
val builder = IdMappingWorkflowResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [IdMappingWorkflow].
* @param name The _unique_ name of the resulting resource.
*/
public fun idMappingWorkflow(name: String): IdMappingWorkflow {
val builder = IdMappingWorkflowResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy