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

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

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

package com.pulumi.awsnative.dms.kotlin

import com.pulumi.awsnative.dms.InstanceProfileArgs.builder
import com.pulumi.awsnative.dms.kotlin.enums.InstanceProfileNetworkType
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::DMS::InstanceProfile.
 * @property availabilityZone The property describes an availability zone of the instance profile.
 * @property description The optional description of the instance profile.
 * @property instanceProfileIdentifier The property describes an identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn
 * @property instanceProfileName The property describes a name for the instance profile.
 * @property kmsKeyArn The property describes kms key arn for the instance profile.
 * @property networkType The property describes a network type for the instance profile.
 * @property publiclyAccessible The property describes the publicly accessible of the instance profile
 * @property subnetGroupIdentifier The property describes a subnet group identifier for the instance profile.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property vpcSecurityGroups The property describes vps security groups for the instance profile.
 */
public data class InstanceProfileArgs(
    public val availabilityZone: Output? = null,
    public val description: Output? = null,
    public val instanceProfileIdentifier: Output? = null,
    public val instanceProfileName: Output? = null,
    public val kmsKeyArn: Output? = null,
    public val networkType: Output? = null,
    public val publiclyAccessible: Output? = null,
    public val subnetGroupIdentifier: Output? = null,
    public val tags: Output>? = null,
    public val vpcSecurityGroups: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dms.InstanceProfileArgs =
        com.pulumi.awsnative.dms.InstanceProfileArgs.builder()
            .availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceProfileIdentifier(instanceProfileIdentifier?.applyValue({ args0 -> args0 }))
            .instanceProfileName(instanceProfileName?.applyValue({ args0 -> args0 }))
            .kmsKeyArn(kmsKeyArn?.applyValue({ args0 -> args0 }))
            .networkType(networkType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .publiclyAccessible(publiclyAccessible?.applyValue({ args0 -> args0 }))
            .subnetGroupIdentifier(subnetGroupIdentifier?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcSecurityGroups(vpcSecurityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [InstanceProfileArgs].
 */
@PulumiTagMarker
public class InstanceProfileArgsBuilder internal constructor() {
    private var availabilityZone: Output? = null

    private var description: Output? = null

    private var instanceProfileIdentifier: Output? = null

    private var instanceProfileName: Output? = null

    private var kmsKeyArn: Output? = null

    private var networkType: Output? = null

    private var publiclyAccessible: Output? = null

    private var subnetGroupIdentifier: Output? = null

    private var tags: Output>? = null

    private var vpcSecurityGroups: Output>? = null

    /**
     * @param value The property describes an availability zone of the instance profile.
     */
    @JvmName("ymqogioyqgfqkhpj")
    public suspend fun availabilityZone(`value`: Output) {
        this.availabilityZone = value
    }

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

    /**
     * @param value The property describes an identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn
     */
    @JvmName("wdtgxigprphjeivb")
    public suspend fun instanceProfileIdentifier(`value`: Output) {
        this.instanceProfileIdentifier = value
    }

    /**
     * @param value The property describes a name for the instance profile.
     */
    @JvmName("budtecdunogolxpv")
    public suspend fun instanceProfileName(`value`: Output) {
        this.instanceProfileName = value
    }

    /**
     * @param value The property describes kms key arn for the instance profile.
     */
    @JvmName("rfsvrwmeibjyuwfn")
    public suspend fun kmsKeyArn(`value`: Output) {
        this.kmsKeyArn = value
    }

    /**
     * @param value The property describes a network type for the instance profile.
     */
    @JvmName("ghrvhatpedrcmsrb")
    public suspend fun networkType(`value`: Output) {
        this.networkType = value
    }

    /**
     * @param value The property describes the publicly accessible of the instance profile
     */
    @JvmName("lofpqwhfrtlyvnby")
    public suspend fun publiclyAccessible(`value`: Output) {
        this.publiclyAccessible = value
    }

    /**
     * @param value The property describes a subnet group identifier for the instance profile.
     */
    @JvmName("wbsodfsfawctujec")
    public suspend fun subnetGroupIdentifier(`value`: Output) {
        this.subnetGroupIdentifier = value
    }

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

    @JvmName("pbrxijcadqgseihq")
    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("qrylnvdgwsjqmead")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The property describes vps security groups for the instance profile.
     */
    @JvmName("jlyofnuibltyjrmc")
    public suspend fun vpcSecurityGroups(`value`: Output>) {
        this.vpcSecurityGroups = value
    }

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

    /**
     * @param values The property describes vps security groups for the instance profile.
     */
    @JvmName("nqukbvgjedkcdsfd")
    public suspend fun vpcSecurityGroups(values: List>) {
        this.vpcSecurityGroups = Output.all(values)
    }

    /**
     * @param value The property describes an availability zone of the instance profile.
     */
    @JvmName("iaxnccujclfbwhxd")
    public suspend fun availabilityZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZone = mapped
    }

    /**
     * @param value The optional description of the instance profile.
     */
    @JvmName("jhtqymgyxewioxmd")
    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 identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn
     */
    @JvmName("nkrmdqjwejtewowo")
    public suspend fun instanceProfileIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceProfileIdentifier = mapped
    }

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

    /**
     * @param value The property describes kms key arn for the instance profile.
     */
    @JvmName("xfhkwjbuhjdnsfky")
    public suspend fun kmsKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyArn = mapped
    }

    /**
     * @param value The property describes a network type for the instance profile.
     */
    @JvmName("xykmvhmbxmtvvvgm")
    public suspend fun networkType(`value`: InstanceProfileNetworkType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkType = mapped
    }

    /**
     * @param value The property describes the publicly accessible of the instance profile
     */
    @JvmName("bilqjstfcxrwyttn")
    public suspend fun publiclyAccessible(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publiclyAccessible = mapped
    }

    /**
     * @param value The property describes a subnet group identifier for the instance profile.
     */
    @JvmName("yarugmbxwlndgayr")
    public suspend fun subnetGroupIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetGroupIdentifier = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ftocgxanbabdjkir")
    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("ngsudaytysephhti")
    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("fjxgksiuokfnngsk")
    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("aqwpptvhvnxwijdj")
    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("bvyyrsolahttmvnc")
    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 vps security groups for the instance profile.
     */
    @JvmName("owffnmnnyklbmbwv")
    public suspend fun vpcSecurityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSecurityGroups = mapped
    }

    /**
     * @param values The property describes vps security groups for the instance profile.
     */
    @JvmName("dlffpraublsoxhsl")
    public suspend fun vpcSecurityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSecurityGroups = mapped
    }

    internal fun build(): InstanceProfileArgs = InstanceProfileArgs(
        availabilityZone = availabilityZone,
        description = description,
        instanceProfileIdentifier = instanceProfileIdentifier,
        instanceProfileName = instanceProfileName,
        kmsKeyArn = kmsKeyArn,
        networkType = networkType,
        publiclyAccessible = publiclyAccessible,
        subnetGroupIdentifier = subnetGroupIdentifier,
        tags = tags,
        vpcSecurityGroups = vpcSecurityGroups,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy