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

com.pulumi.awsnative.datasync.kotlin.LocationEfsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationEfsArgs.builder
import com.pulumi.awsnative.datasync.kotlin.enums.LocationEfsInTransitEncryption
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationEfsEc2ConfigArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationEfsEc2ConfigArgsBuilder
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::DataSync::LocationEFS.
 * @property accessPointArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
 * @property ec2Config Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) .
 * @property efsFilesystemArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
 * @property fileSystemAccessRoleArn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
 * @property inTransitEncryption Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.
 * @property subdirectory A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class LocationEfsArgs(
    public val accessPointArn: Output? = null,
    public val ec2Config: Output? = null,
    public val efsFilesystemArn: Output? = null,
    public val fileSystemAccessRoleArn: Output? = null,
    public val inTransitEncryption: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationEfsArgs =
        com.pulumi.awsnative.datasync.LocationEfsArgs.builder()
            .accessPointArn(accessPointArn?.applyValue({ args0 -> args0 }))
            .ec2Config(ec2Config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .efsFilesystemArn(efsFilesystemArn?.applyValue({ args0 -> args0 }))
            .fileSystemAccessRoleArn(fileSystemAccessRoleArn?.applyValue({ args0 -> args0 }))
            .inTransitEncryption(
                inTransitEncryption?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationEfsArgs].
 */
@PulumiTagMarker
public class LocationEfsArgsBuilder internal constructor() {
    private var accessPointArn: Output? = null

    private var ec2Config: Output? = null

    private var efsFilesystemArn: Output? = null

    private var fileSystemAccessRoleArn: Output? = null

    private var inTransitEncryption: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
     */
    @JvmName("unksahjqyxcgmpnf")
    public suspend fun accessPointArn(`value`: Output) {
        this.accessPointArn = value
    }

    /**
     * @param value Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) .
     */
    @JvmName("fredhgojyikcyovn")
    public suspend fun ec2Config(`value`: Output) {
        this.ec2Config = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the Amazon EFS file system.
     */
    @JvmName("qxfqxlnyanheawue")
    public suspend fun efsFilesystemArn(`value`: Output) {
        this.efsFilesystemArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
     */
    @JvmName("qdwyfvqwbpkwaxxs")
    public suspend fun fileSystemAccessRoleArn(`value`: Output) {
        this.fileSystemAccessRoleArn = value
    }

    /**
     * @param value Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.
     */
    @JvmName("hysbrieiakqoqxky")
    public suspend fun inTransitEncryption(`value`: Output) {
        this.inTransitEncryption = value
    }

    /**
     * @param value A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.
     */
    @JvmName("fwgppggwlpibyify")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

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

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

    /**
     * @param value The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
     */
    @JvmName("yfagleuihgaqoxsf")
    public suspend fun accessPointArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPointArn = mapped
    }

    /**
     * @param value Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) .
     */
    @JvmName("xgicfruqglfamkvd")
    public suspend fun ec2Config(`value`: LocationEfsEc2ConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ec2Config = mapped
    }

    /**
     * @param argument Specifies the subnet and security groups DataSync uses to connect to one of your Amazon EFS file system's [mount targets](https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html) .
     */
    @JvmName("vkdwnmwgrrnhrjgc")
    public suspend fun ec2Config(argument: suspend LocationEfsEc2ConfigArgsBuilder.() -> Unit) {
        val toBeMapped = LocationEfsEc2ConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ec2Config = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the Amazon EFS file system.
     */
    @JvmName("nfrtjbgkuhwdsfco")
    public suspend fun efsFilesystemArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.efsFilesystemArn = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
     */
    @JvmName("fltjhikjawmgxxrb")
    public suspend fun fileSystemAccessRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileSystemAccessRoleArn = mapped
    }

    /**
     * @param value Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.
     */
    @JvmName("rhkrlaynqkwyehoq")
    public suspend fun inTransitEncryption(`value`: LocationEfsInTransitEncryption?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inTransitEncryption = mapped
    }

    /**
     * @param value A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.
     */
    @JvmName("umqmrntotqlxkcdf")
    public suspend fun subdirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subdirectory = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("xmcsosdfskjnwuxr")
    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("fefesoxocuadiknb")
    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("trnunynisnsfdvfa")
    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("jwtqwkgkdexadgxl")
    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("xujwyabtbgxvnfbv")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationEfsArgs = LocationEfsArgs(
        accessPointArn = accessPointArn,
        ec2Config = ec2Config,
        efsFilesystemArn = efsFilesystemArn,
        fileSystemAccessRoleArn = fileSystemAccessRoleArn,
        inTransitEncryption = inTransitEncryption,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy