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

com.pulumi.awsnative.datasync.kotlin.inputs.LocationEfsEc2ConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datasync.kotlin.inputs

import com.pulumi.awsnative.datasync.inputs.LocationEfsEc2ConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The subnet and security group that DataSync uses to access target EFS file system.
 * @property securityGroupArns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
 * @property subnetArn The ARN of the subnet that DataSync uses to access the target EFS file system.
 */
public data class LocationEfsEc2ConfigArgs(
    public val securityGroupArns: Output>,
    public val subnetArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.inputs.LocationEfsEc2ConfigArgs =
        com.pulumi.awsnative.datasync.inputs.LocationEfsEc2ConfigArgs.builder()
            .securityGroupArns(securityGroupArns.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetArn(subnetArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocationEfsEc2ConfigArgs].
 */
@PulumiTagMarker
public class LocationEfsEc2ConfigArgsBuilder internal constructor() {
    private var securityGroupArns: Output>? = null

    private var subnetArn: Output? = null

    /**
     * @param value The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
     */
    @JvmName("wenuvhmrikqeiaqq")
    public suspend fun securityGroupArns(`value`: Output>) {
        this.securityGroupArns = value
    }

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

    /**
     * @param values The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
     */
    @JvmName("bcypmfysojoocfgb")
    public suspend fun securityGroupArns(values: List>) {
        this.securityGroupArns = Output.all(values)
    }

    /**
     * @param value The ARN of the subnet that DataSync uses to access the target EFS file system.
     */
    @JvmName("mogcqmebrnysxjky")
    public suspend fun subnetArn(`value`: Output) {
        this.subnetArn = value
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
     */
    @JvmName("qyyititfvyivenjd")
    public suspend fun securityGroupArns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
     */
    @JvmName("jbyhqoetvexqyqss")
    public suspend fun securityGroupArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param value The ARN of the subnet that DataSync uses to access the target EFS file system.
     */
    @JvmName("yddwcoxmixvckbbr")
    public suspend fun subnetArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetArn = mapped
    }

    internal fun build(): LocationEfsEc2ConfigArgs = LocationEfsEc2ConfigArgs(
        securityGroupArns = securityGroupArns ?: throw PulumiNullFieldException("securityGroupArns"),
        subnetArn = subnetArn ?: throw PulumiNullFieldException("subnetArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy