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

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

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

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationNfsArgs.builder
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationNfsMountOptionsArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationNfsMountOptionsArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationNfsOnPremConfigArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationNfsOnPremConfigArgsBuilder
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::LocationNFS
 * @property mountOptions Specifies the options that DataSync can use to mount your NFS file server.
 * @property onPremConfig Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
 * You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .
 * @property serverHostname The name of the NFS server. This value is the IP address or DNS name of the NFS server.
 * @property subdirectory The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class LocationNfsArgs(
    public val mountOptions: Output? = null,
    public val onPremConfig: Output? = null,
    public val serverHostname: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationNfsArgs =
        com.pulumi.awsnative.datasync.LocationNfsArgs.builder()
            .mountOptions(mountOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .onPremConfig(onPremConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .serverHostname(serverHostname?.applyValue({ args0 -> args0 }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationNfsArgs].
 */
@PulumiTagMarker
public class LocationNfsArgsBuilder internal constructor() {
    private var mountOptions: Output? = null

    private var onPremConfig: Output? = null

    private var serverHostname: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies the options that DataSync can use to mount your NFS file server.
     */
    @JvmName("yuqejifhdmknpoyf")
    public suspend fun mountOptions(`value`: Output) {
        this.mountOptions = value
    }

    /**
     * @param value Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .
     */
    @JvmName("ogvndbnovfraxera")
    public suspend fun onPremConfig(`value`: Output) {
        this.onPremConfig = value
    }

    /**
     * @param value The name of the NFS server. This value is the IP address or DNS name of the NFS server.
     */
    @JvmName("jlbiifrbgiijccyc")
    public suspend fun serverHostname(`value`: Output) {
        this.serverHostname = value
    }

    /**
     * @param value The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.
     */
    @JvmName("iaaqlbrcrnxanlgt")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

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

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

    /**
     * @param value Specifies the options that DataSync can use to mount your NFS file server.
     */
    @JvmName("uwcbejxvccobjhud")
    public suspend fun mountOptions(`value`: LocationNfsMountOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param argument Specifies the options that DataSync can use to mount your NFS file server.
     */
    @JvmName("hegorwldstbhkwce")
    public suspend fun mountOptions(argument: suspend LocationNfsMountOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = LocationNfsMountOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mountOptions = mapped
    }

    /**
     * @param value Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .
     */
    @JvmName("seuemhkkntnodhba")
    public suspend fun onPremConfig(`value`: LocationNfsOnPremConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onPremConfig = mapped
    }

    /**
     * @param argument Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple DataSync agents](https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents) .
     */
    @JvmName("ywiehqjukwuugbhh")
    public suspend fun onPremConfig(argument: suspend LocationNfsOnPremConfigArgsBuilder.() -> Unit) {
        val toBeMapped = LocationNfsOnPremConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.onPremConfig = mapped
    }

    /**
     * @param value The name of the NFS server. This value is the IP address or DNS name of the NFS server.
     */
    @JvmName("gohuvmgisntqudpo")
    public suspend fun serverHostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverHostname = mapped
    }

    /**
     * @param value The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.
     */
    @JvmName("vdybjjjtjectdcec")
    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("lqnjsfdyflxedblj")
    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("adsmnsbhwuvyjfrm")
    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("qajtxjwyiyqaupkj")
    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("qijqyhnwggsywosd")
    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("jgmoempeqamcvvgr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationNfsArgs = LocationNfsArgs(
        mountOptions = mountOptions,
        onPremConfig = onPremConfig,
        serverHostname = serverHostname,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy