com.pulumi.awsnative.datasync.kotlin.LocationNfsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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