com.pulumi.awsnative.efs.kotlin.outputs.AccessPointRootDirectory.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.outputs
import kotlin.String
import kotlin.Suppress
/**
* 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 AccessPointRootDirectory(
public val creationInfo: AccessPointCreationInfo? = null,
public val path: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.efs.outputs.AccessPointRootDirectory): AccessPointRootDirectory = AccessPointRootDirectory(
creationInfo = javaType.creationInfo().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.efs.kotlin.outputs.AccessPointCreationInfo.Companion.toKotlin(args0)
})
}).orElse(null),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
)
}
}