com.pulumi.awsnative.efs.kotlin.inputs.AccessPointRootDirectoryArgs.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.efs.kotlin.inputs
import com.pulumi.awsnative.efs.inputs.AccessPointRootDirectoryArgs.builder
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.jvm.JvmName
/**
* Specifies the directory on the Amazon EFS file system that the access point provides access to. The access point exposes the specified file system path as the root directory of your file system to applications using the access point. NFS clients using the access point can only access data in the access point's ``RootDirectory`` and its subdirectories.
* @property creationInfo (Optional) Specifies the POSIX IDs and permissions to apply to the access point's ``RootDirectory``. If the ``RootDirectory`` > ``Path`` specified does not exist, EFS creates the root directory using the ``CreationInfo`` settings when a client connects to an access point. When specifying the ``CreationInfo``, you must provide values for all properties.
* If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.
* @property path Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the ``CreationInfo``.
*/
public data class AccessPointRootDirectoryArgs(
public val creationInfo: Output? = null,
public val path: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.efs.inputs.AccessPointRootDirectoryArgs =
com.pulumi.awsnative.efs.inputs.AccessPointRootDirectoryArgs.builder()
.creationInfo(creationInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.path(path?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessPointRootDirectoryArgs].
*/
@PulumiTagMarker
public class AccessPointRootDirectoryArgsBuilder internal constructor() {
private var creationInfo: Output? = null
private var path: Output? = null
/**
* @param value (Optional) Specifies the POSIX IDs and permissions to apply to the access point's ``RootDirectory``. If the ``RootDirectory`` > ``Path`` specified does not exist, EFS creates the root directory using the ``CreationInfo`` settings when a client connects to an access point. When specifying the ``CreationInfo``, you must provide values for all properties.
* If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.
*/
@JvmName("wxwaobmmdshmtbnl")
public suspend fun creationInfo(`value`: Output) {
this.creationInfo = value
}
/**
* @param value Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the ``CreationInfo``.
*/
@JvmName("fogiktpkpbepcjah")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value (Optional) Specifies the POSIX IDs and permissions to apply to the access point's ``RootDirectory``. If the ``RootDirectory`` > ``Path`` specified does not exist, EFS creates the root directory using the ``CreationInfo`` settings when a client connects to an access point. When specifying the ``CreationInfo``, you must provide values for all properties.
* If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.
*/
@JvmName("uwajvghnoovyidca")
public suspend fun creationInfo(`value`: AccessPointCreationInfoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.creationInfo = mapped
}
/**
* @param argument (Optional) Specifies the POSIX IDs and permissions to apply to the access point's ``RootDirectory``. If the ``RootDirectory`` > ``Path`` specified does not exist, EFS creates the root directory using the ``CreationInfo`` settings when a client connects to an access point. When specifying the ``CreationInfo``, you must provide values for all properties.
* If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.
*/
@JvmName("ladracligujpoami")
public suspend fun creationInfo(argument: suspend AccessPointCreationInfoArgsBuilder.() -> Unit) {
val toBeMapped = AccessPointCreationInfoArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.creationInfo = mapped
}
/**
* @param value Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the ``CreationInfo``.
*/
@JvmName("liimvqhudadaoigy")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
internal fun build(): AccessPointRootDirectoryArgs = AccessPointRootDirectoryArgs(
creationInfo = creationInfo,
path = path,
)
}