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

com.pulumi.awsnative.datasync.kotlin.LocationNfsArgs.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.11.0.0
Show newest version
@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 want to connect to your NFS file server.
 * You can specify more than one agent. For more information, see [Using multiple agents for transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) .
 * @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("ofqueawsgyissjmg")
    public suspend fun mountOptions(`value`: Output) {
        this.mountOptions = value
    }

    /**
     * @param value Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple agents for transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) .
     */
    @JvmName("hyreqyfvlxlgjutn")
    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("dnumncldqqcpkxvf")
    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("laeiffayaigaeubu")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

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

    @JvmName("khwxloefvalsodgb")
    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("uwiuchvobfdskhak")
    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("lebrnlprklflchrx")
    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("grjcjmbjybwsyopo")
    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 want to connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple agents for transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) .
     */
    @JvmName("yarxnlihlriqwpfj")
    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 want to connect to your NFS file server.
     * You can specify more than one agent. For more information, see [Using multiple agents for transfers](https://docs.aws.amazon.com/datasync/latest/userguide/multiple-agents.html) .
     */
    @JvmName("gpykxxauwqksxipq")
    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("lkpdgkifujwajtpc")
    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("atanesneyhqplqbw")
    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("kfidiyvybusyvonm")
    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("ifoxsustmumrpshi")
    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("stoligbosiwyfcyj")
    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("tftdqcbeffsbnxth")
    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("slgbflnxyuydfthd")
    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