
com.pulumi.awsnative.dms.kotlin.MigrationProject.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.dms.kotlin
import com.pulumi.awsnative.dms.kotlin.outputs.MigrationProjectDataProviderDescriptor
import com.pulumi.awsnative.dms.kotlin.outputs.SchemaConversionApplicationAttributesProperties
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.dms.kotlin.outputs.MigrationProjectDataProviderDescriptor.Companion.toKotlin as migrationProjectDataProviderDescriptorToKotlin
import com.pulumi.awsnative.dms.kotlin.outputs.SchemaConversionApplicationAttributesProperties.Companion.toKotlin as schemaConversionApplicationAttributesPropertiesToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [MigrationProject].
*/
@PulumiTagMarker
public class MigrationProjectResourceBuilder internal constructor() {
public var name: String? = null
public var args: MigrationProjectArgs = MigrationProjectArgs()
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 MigrationProjectArgsBuilder.() -> Unit) {
val builder = MigrationProjectArgsBuilder()
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(): MigrationProject {
val builtJavaResource = com.pulumi.awsnative.dms.MigrationProject(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return MigrationProject(builtJavaResource)
}
}
/**
* Resource schema for AWS::DMS::MigrationProject
*/
public class MigrationProject internal constructor(
override val javaResource: com.pulumi.awsnative.dms.MigrationProject,
) : KotlinCustomResource(javaResource, MigrationProjectMapper) {
/**
* The optional description of the migration project.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an instance profile arn for the migration project. For read
*/
public val instanceProfileArn: Output?
get() = javaResource.instanceProfileArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an instance profile identifier for the migration project. For create
*/
public val instanceProfileIdentifier: Output?
get() = javaResource.instanceProfileIdentifier().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an instance profile name for the migration project. For read
*/
public val instanceProfileName: Output?
get() = javaResource.instanceProfileName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an ARN of the migration project.
*/
public val migrationProjectArn: Output
get() = javaResource.migrationProjectArn().applyValue({ args0 -> args0 })
/**
* The property describes a creating time of the migration project.
*/
public val migrationProjectCreationTime: Output?
get() = javaResource.migrationProjectCreationTime().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn
*/
public val migrationProjectIdentifier: Output?
get() = javaResource.migrationProjectIdentifier().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes a name to identify the migration project.
*/
public val migrationProjectName: Output?
get() = javaResource.migrationProjectName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The property describes schema conversion application attributes for the migration project.
*/
public val schemaConversionApplicationAttributes:
Output?
get() = javaResource.schemaConversionApplicationAttributes().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
schemaConversionApplicationAttributesPropertiesToKotlin(args0)
})
}).orElse(null)
})
/**
* The property describes source data provider descriptors for the migration project.
*/
public val sourceDataProviderDescriptors: Output>?
get() = javaResource.sourceDataProviderDescriptors().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
migrationProjectDataProviderDescriptorToKotlin(args0)
})
})
}).orElse(null)
})
/**
* An array of key-value pairs to apply 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)
})
/**
* The property describes target data provider descriptors for the migration project.
*/
public val targetDataProviderDescriptors: Output>?
get() = javaResource.targetDataProviderDescriptors().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
migrationProjectDataProviderDescriptorToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The property describes transformation rules for the migration project.
*/
public val transformationRules: Output?
get() = javaResource.transformationRules().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
}
public object MigrationProjectMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.dms.MigrationProject::class == javaResource::class
override fun map(javaResource: Resource): MigrationProject = MigrationProject(
javaResource as
com.pulumi.awsnative.dms.MigrationProject,
)
}
/**
* @see [MigrationProject].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [MigrationProject].
*/
public suspend fun migrationProject(
name: String,
block: suspend MigrationProjectResourceBuilder.() -> Unit,
): MigrationProject {
val builder = MigrationProjectResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [MigrationProject].
* @param name The _unique_ name of the resulting resource.
*/
public fun migrationProject(name: String): MigrationProject {
val builder = MigrationProjectResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy