All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.dms.kotlin.MigrationProjectArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.dms.kotlin

import com.pulumi.awsnative.dms.MigrationProjectArgs.builder
import com.pulumi.awsnative.dms.kotlin.inputs.MigrationProjectDataProviderDescriptorArgs
import com.pulumi.awsnative.dms.kotlin.inputs.MigrationProjectDataProviderDescriptorArgsBuilder
import com.pulumi.awsnative.dms.kotlin.inputs.SchemaConversionApplicationAttributesPropertiesArgs
import com.pulumi.awsnative.dms.kotlin.inputs.SchemaConversionApplicationAttributesPropertiesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::DMS::MigrationProject
 * @property description The optional description of the migration project.
 * @property instanceProfileArn The property describes an instance profile arn for the migration project. For read
 * @property instanceProfileIdentifier The property describes an instance profile identifier for the migration project. For create
 * @property instanceProfileName The property describes an instance profile name for the migration project. For read
 * @property migrationProjectCreationTime The property describes a creating time of the migration project.
 * @property migrationProjectIdentifier The property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
 * @property migrationProjectName The property describes a name to identify the migration project.
 * @property schemaConversionApplicationAttributes The property describes schema conversion application attributes for the migration project.
 * @property sourceDataProviderDescriptors The property describes source data provider descriptors for the migration project.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property targetDataProviderDescriptors The property describes target data provider descriptors for the migration project.
 * @property transformationRules The property describes transformation rules for the migration project.
 */
public data class MigrationProjectArgs(
    public val description: Output? = null,
    public val instanceProfileArn: Output? = null,
    public val instanceProfileIdentifier: Output? = null,
    public val instanceProfileName: Output? = null,
    public val migrationProjectCreationTime: Output? = null,
    public val migrationProjectIdentifier: Output? = null,
    public val migrationProjectName: Output? = null,
    public val schemaConversionApplicationAttributes: Output? = null,
    public val sourceDataProviderDescriptors: Output>? = null,
    public val tags: Output>? = null,
    public val targetDataProviderDescriptors: Output>? = null,
    public val transformationRules: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dms.MigrationProjectArgs =
        com.pulumi.awsnative.dms.MigrationProjectArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceProfileArn(instanceProfileArn?.applyValue({ args0 -> args0 }))
            .instanceProfileIdentifier(instanceProfileIdentifier?.applyValue({ args0 -> args0 }))
            .instanceProfileName(instanceProfileName?.applyValue({ args0 -> args0 }))
            .migrationProjectCreationTime(migrationProjectCreationTime?.applyValue({ args0 -> args0 }))
            .migrationProjectIdentifier(migrationProjectIdentifier?.applyValue({ args0 -> args0 }))
            .migrationProjectName(migrationProjectName?.applyValue({ args0 -> args0 }))
            .schemaConversionApplicationAttributes(
                schemaConversionApplicationAttributes?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .sourceDataProviderDescriptors(
                sourceDataProviderDescriptors?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .targetDataProviderDescriptors(
                targetDataProviderDescriptors?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .transformationRules(transformationRules?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MigrationProjectArgs].
 */
@PulumiTagMarker
public class MigrationProjectArgsBuilder internal constructor() {
    private var description: Output? = null

    private var instanceProfileArn: Output? = null

    private var instanceProfileIdentifier: Output? = null

    private var instanceProfileName: Output? = null

    private var migrationProjectCreationTime: Output? = null

    private var migrationProjectIdentifier: Output? = null

    private var migrationProjectName: Output? = null

    private var schemaConversionApplicationAttributes:
        Output? = null

    private var sourceDataProviderDescriptors:
        Output>? = null

    private var tags: Output>? = null

    private var targetDataProviderDescriptors:
        Output>? = null

    private var transformationRules: Output? = null

    /**
     * @param value The optional description of the migration project.
     */
    @JvmName("pprexbouicvuhivf")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The property describes an instance profile arn for the migration project. For read
     */
    @JvmName("aielhkfpowejfjph")
    public suspend fun instanceProfileArn(`value`: Output) {
        this.instanceProfileArn = value
    }

    /**
     * @param value The property describes an instance profile identifier for the migration project. For create
     */
    @JvmName("sajirtngxorjhsbn")
    public suspend fun instanceProfileIdentifier(`value`: Output) {
        this.instanceProfileIdentifier = value
    }

    /**
     * @param value The property describes an instance profile name for the migration project. For read
     */
    @JvmName("tkxmmqprydxkgpxj")
    public suspend fun instanceProfileName(`value`: Output) {
        this.instanceProfileName = value
    }

    /**
     * @param value The property describes a creating time of the migration project.
     */
    @JvmName("bxxqcmnvvxeyvgil")
    public suspend fun migrationProjectCreationTime(`value`: Output) {
        this.migrationProjectCreationTime = value
    }

    /**
     * @param value The property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
     */
    @JvmName("povccolwqsueomto")
    public suspend fun migrationProjectIdentifier(`value`: Output) {
        this.migrationProjectIdentifier = value
    }

    /**
     * @param value The property describes a name to identify the migration project.
     */
    @JvmName("ceylrwldbhmbsdsr")
    public suspend fun migrationProjectName(`value`: Output) {
        this.migrationProjectName = value
    }

    /**
     * @param value The property describes schema conversion application attributes for the migration project.
     */
    @JvmName("whuiouxybblrkjyp")
    public suspend fun schemaConversionApplicationAttributes(`value`: Output) {
        this.schemaConversionApplicationAttributes = value
    }

    /**
     * @param value The property describes source data provider descriptors for the migration project.
     */
    @JvmName("bvmxwynwvjvtoykk")
    public suspend fun sourceDataProviderDescriptors(`value`: Output>) {
        this.sourceDataProviderDescriptors = value
    }

    @JvmName("vfpxmwlpovucssug")
    public suspend fun sourceDataProviderDescriptors(vararg values: Output) {
        this.sourceDataProviderDescriptors = Output.all(values.asList())
    }

    /**
     * @param values The property describes source data provider descriptors for the migration project.
     */
    @JvmName("kxwxwxhixsegivep")
    public suspend fun sourceDataProviderDescriptors(values: List>) {
        this.sourceDataProviderDescriptors = Output.all(values)
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("pergqjntissjsgrt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("jengcbxsbrtkhstk")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("lwhsglbycdxbonyj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The property describes target data provider descriptors for the migration project.
     */
    @JvmName("tylowxkbitfumlbt")
    public suspend fun targetDataProviderDescriptors(`value`: Output>) {
        this.targetDataProviderDescriptors = value
    }

    @JvmName("aemkdjjrcoolhpdq")
    public suspend fun targetDataProviderDescriptors(vararg values: Output) {
        this.targetDataProviderDescriptors = Output.all(values.asList())
    }

    /**
     * @param values The property describes target data provider descriptors for the migration project.
     */
    @JvmName("mkmbsucnhvgqcycy")
    public suspend fun targetDataProviderDescriptors(values: List>) {
        this.targetDataProviderDescriptors = Output.all(values)
    }

    /**
     * @param value The property describes transformation rules for the migration project.
     */
    @JvmName("hixegeonhjnvqbot")
    public suspend fun transformationRules(`value`: Output) {
        this.transformationRules = value
    }

    /**
     * @param value The optional description of the migration project.
     */
    @JvmName("nyinhvjkqyrecjsg")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The property describes an instance profile arn for the migration project. For read
     */
    @JvmName("hgomjdwfaokvfmhp")
    public suspend fun instanceProfileArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceProfileArn = mapped
    }

    /**
     * @param value The property describes an instance profile identifier for the migration project. For create
     */
    @JvmName("rgnfimqyrgbureww")
    public suspend fun instanceProfileIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceProfileIdentifier = mapped
    }

    /**
     * @param value The property describes an instance profile name for the migration project. For read
     */
    @JvmName("mtftomqlsdvhgvck")
    public suspend fun instanceProfileName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceProfileName = mapped
    }

    /**
     * @param value The property describes a creating time of the migration project.
     */
    @JvmName("vwbydujnbrljymrc")
    public suspend fun migrationProjectCreationTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.migrationProjectCreationTime = mapped
    }

    /**
     * @param value The property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
     */
    @JvmName("hdudikfyxlnvrvhl")
    public suspend fun migrationProjectIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.migrationProjectIdentifier = mapped
    }

    /**
     * @param value The property describes a name to identify the migration project.
     */
    @JvmName("xmcofenwivfqwhrh")
    public suspend fun migrationProjectName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.migrationProjectName = mapped
    }

    /**
     * @param value The property describes schema conversion application attributes for the migration project.
     */
    @JvmName("dgmnuysptvtluyhk")
    public suspend fun schemaConversionApplicationAttributes(`value`: SchemaConversionApplicationAttributesPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaConversionApplicationAttributes = mapped
    }

    /**
     * @param argument The property describes schema conversion application attributes for the migration project.
     */
    @JvmName("pnhykauvbulduxmm")
    public suspend fun schemaConversionApplicationAttributes(argument: suspend SchemaConversionApplicationAttributesPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = SchemaConversionApplicationAttributesPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.schemaConversionApplicationAttributes = mapped
    }

    /**
     * @param value The property describes source data provider descriptors for the migration project.
     */
    @JvmName("iljyfdqjhxlqwrxl")
    public suspend fun sourceDataProviderDescriptors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes source data provider descriptors for the migration project.
     */
    @JvmName("chmgivmpbrtclwyf")
    public suspend fun sourceDataProviderDescriptors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sourceDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes source data provider descriptors for the migration project.
     */
    @JvmName("gjoqsjyctqdkjqbc")
    public suspend fun sourceDataProviderDescriptors(vararg argument: suspend MigrationProjectDataProviderDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sourceDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes source data provider descriptors for the migration project.
     */
    @JvmName("jqlbyqfsdkrnesbn")
    public suspend fun sourceDataProviderDescriptors(argument: suspend MigrationProjectDataProviderDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sourceDataProviderDescriptors = mapped
    }

    /**
     * @param values The property describes source data provider descriptors for the migration project.
     */
    @JvmName("fjvrfkqdkstffwpa")
    public suspend fun sourceDataProviderDescriptors(vararg values: MigrationProjectDataProviderDescriptorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceDataProviderDescriptors = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fbcmiibeukrbicvy")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("nnkwhmljemswwegk")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("sfrjgjhrfgwmxhwr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("gfrcfxjbtgoadlqa")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("vwwsfldyixyhrpit")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The property describes target data provider descriptors for the migration project.
     */
    @JvmName("puhitrqnnlkwomrf")
    public suspend fun targetDataProviderDescriptors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes target data provider descriptors for the migration project.
     */
    @JvmName("smsnrwvxbmxrgtxe")
    public suspend fun targetDataProviderDescriptors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes target data provider descriptors for the migration project.
     */
    @JvmName("yhdxgniaiclljyex")
    public suspend fun targetDataProviderDescriptors(vararg argument: suspend MigrationProjectDataProviderDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetDataProviderDescriptors = mapped
    }

    /**
     * @param argument The property describes target data provider descriptors for the migration project.
     */
    @JvmName("vlatibcsojcsiecd")
    public suspend fun targetDataProviderDescriptors(argument: suspend MigrationProjectDataProviderDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MigrationProjectDataProviderDescriptorArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.targetDataProviderDescriptors = mapped
    }

    /**
     * @param values The property describes target data provider descriptors for the migration project.
     */
    @JvmName("iagfnikpjujiibeo")
    public suspend fun targetDataProviderDescriptors(vararg values: MigrationProjectDataProviderDescriptorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetDataProviderDescriptors = mapped
    }

    /**
     * @param value The property describes transformation rules for the migration project.
     */
    @JvmName("uysunfyxldpcywhw")
    public suspend fun transformationRules(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformationRules = mapped
    }

    internal fun build(): MigrationProjectArgs = MigrationProjectArgs(
        description = description,
        instanceProfileArn = instanceProfileArn,
        instanceProfileIdentifier = instanceProfileIdentifier,
        instanceProfileName = instanceProfileName,
        migrationProjectCreationTime = migrationProjectCreationTime,
        migrationProjectIdentifier = migrationProjectIdentifier,
        migrationProjectName = migrationProjectName,
        schemaConversionApplicationAttributes = schemaConversionApplicationAttributes,
        sourceDataProviderDescriptors = sourceDataProviderDescriptors,
        tags = tags,
        targetDataProviderDescriptors = targetDataProviderDescriptors,
        transformationRules = transformationRules,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy