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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleDestinationVpcDestinationPropertiesArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleDestinationVpcDestinationPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property roleArn The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
 * @property securityGroups The security groups of the VPC destination.
 * @property subnetIds The subnet IDs of the VPC destination.
 * @property vpcId The ID of the VPC.
 */
public data class TopicRuleDestinationVpcDestinationPropertiesArgs(
    public val roleArn: Output? = null,
    public val securityGroups: Output>? = null,
    public val subnetIds: Output>? = null,
    public val vpcId: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleDestinationVpcDestinationPropertiesArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleDestinationVpcDestinationPropertiesArgs.builder()
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleDestinationVpcDestinationPropertiesArgs].
 */
@PulumiTagMarker
public class TopicRuleDestinationVpcDestinationPropertiesArgsBuilder internal constructor() {
    private var roleArn: Output? = null

    private var securityGroups: Output>? = null

    private var subnetIds: Output>? = null

    private var vpcId: Output? = null

    /**
     * @param value The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
     */
    @JvmName("bppnnqyvrexmnari")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The security groups of the VPC destination.
     */
    @JvmName("xmsiccyyknlqlhgv")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values The security groups of the VPC destination.
     */
    @JvmName("rrnlbiymqmkchcib")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value The subnet IDs of the VPC destination.
     */
    @JvmName("dwvatswbqbxiudbr")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The subnet IDs of the VPC destination.
     */
    @JvmName("qqxyykgfljymxbcq")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value The ID of the VPC.
     */
    @JvmName("srrdvifeniseqeod")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
     */
    @JvmName("hpwrjjyuaofjbffy")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The security groups of the VPC destination.
     */
    @JvmName("ebsgputtphvpgrtn")
    public suspend fun securityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param values The security groups of the VPC destination.
     */
    @JvmName("hdvcwqrdcwkfkwmc")
    public suspend fun securityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param value The subnet IDs of the VPC destination.
     */
    @JvmName("hgexdhvorfxyruah")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The subnet IDs of the VPC destination.
     */
    @JvmName("nxfrveyrlrwkkbia")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value The ID of the VPC.
     */
    @JvmName("uvjxfncmwkfogjhp")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): TopicRuleDestinationVpcDestinationPropertiesArgs =
        TopicRuleDestinationVpcDestinationPropertiesArgs(
            roleArn = roleArn,
            securityGroups = securityGroups,
            subnetIds = subnetIds,
            vpcId = vpcId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy