com.pulumi.aws.transfer.kotlin.inputs.UserHomeDirectoryMappingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.transfer.kotlin.inputs
import com.pulumi.aws.transfer.inputs.UserHomeDirectoryMappingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property entry Represents an entry and a target.
* @property target Represents the map target.
* The `Restricted` option is achieved using the following mapping:
* ```
* home_directory_mappings {
* entry = "/"
* target = "/${aws_s3_bucket.foo.id}/$${Transfer:UserName}"
* }
* ```
*/
public data class UserHomeDirectoryMappingArgs(
public val entry: Output,
public val target: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.transfer.inputs.UserHomeDirectoryMappingArgs =
com.pulumi.aws.transfer.inputs.UserHomeDirectoryMappingArgs.builder()
.entry(entry.applyValue({ args0 -> args0 }))
.target(target.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserHomeDirectoryMappingArgs].
*/
@PulumiTagMarker
public class UserHomeDirectoryMappingArgsBuilder internal constructor() {
private var entry: Output? = null
private var target: Output? = null
/**
* @param value Represents an entry and a target.
*/
@JvmName("unklrarapoxsboui")
public suspend fun entry(`value`: Output) {
this.entry = value
}
/**
* @param value Represents the map target.
* The `Restricted` option is achieved using the following mapping:
* ```
* home_directory_mappings {
* entry = "/"
* target = "/${aws_s3_bucket.foo.id}/$${Transfer:UserName}"
* }
* ```
*/
@JvmName("fnyevoptunhbuwtb")
public suspend fun target(`value`: Output) {
this.target = value
}
/**
* @param value Represents an entry and a target.
*/
@JvmName("esuliinyifpbfaev")
public suspend fun entry(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.entry = mapped
}
/**
* @param value Represents the map target.
* The `Restricted` option is achieved using the following mapping:
* ```
* home_directory_mappings {
* entry = "/"
* target = "/${aws_s3_bucket.foo.id}/$${Transfer:UserName}"
* }
* ```
*/
@JvmName("wsvisciqqqepptjg")
public suspend fun target(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.target = mapped
}
internal fun build(): UserHomeDirectoryMappingArgs = UserHomeDirectoryMappingArgs(
entry = entry ?: throw PulumiNullFieldException("entry"),
target = target ?: throw PulumiNullFieldException("target"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy