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