All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ecs.kotlin.inputs.TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * This parameter is specified when you're using [Amazon FSx for Windows File Server](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) file system for task storage.
 *  For more information and the input format, see [Amazon FSx for Windows File Server volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.
 * @property authorizationConfig The authorization configuration details for the Amazon FSx for Windows File Server file system.
 * @property fileSystemId The Amazon FSx for Windows File Server file system ID to use.
 * @property rootDirectory The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.
 */
public data class TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs(
    public val authorizationConfig: Output? = null,
    public val fileSystemId: Output,
    public val rootDirectory: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs.builder()
            .authorizationConfig(
                authorizationConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .fileSystemId(fileSystemId.applyValue({ args0 -> args0 }))
            .rootDirectory(rootDirectory.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs].
 */
@PulumiTagMarker
public class TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgsBuilder internal constructor() {
    private var authorizationConfig: Output? = null

    private var fileSystemId: Output? = null

    private var rootDirectory: Output? = null

    /**
     * @param value The authorization configuration details for the Amazon FSx for Windows File Server file system.
     */
    @JvmName("hmypflmeqmvevxrh")
    public suspend fun authorizationConfig(`value`: Output) {
        this.authorizationConfig = value
    }

    /**
     * @param value The Amazon FSx for Windows File Server file system ID to use.
     */
    @JvmName("hunqqvovpgtxwflp")
    public suspend fun fileSystemId(`value`: Output) {
        this.fileSystemId = value
    }

    /**
     * @param value The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.
     */
    @JvmName("cnesputfgbjkxrah")
    public suspend fun rootDirectory(`value`: Output) {
        this.rootDirectory = value
    }

    /**
     * @param value The authorization configuration details for the Amazon FSx for Windows File Server file system.
     */
    @JvmName("kxcfpbdwfaomnniv")
    public suspend fun authorizationConfig(`value`: TaskDefinitionFSxAuthorizationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizationConfig = mapped
    }

    /**
     * @param argument The authorization configuration details for the Amazon FSx for Windows File Server file system.
     */
    @JvmName("vqrenjiqxkevlqjk")
    public suspend fun authorizationConfig(argument: suspend TaskDefinitionFSxAuthorizationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = TaskDefinitionFSxAuthorizationConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authorizationConfig = mapped
    }

    /**
     * @param value The Amazon FSx for Windows File Server file system ID to use.
     */
    @JvmName("exryuhxgvxfuiflg")
    public suspend fun fileSystemId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileSystemId = mapped
    }

    /**
     * @param value The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.
     */
    @JvmName("xestclgxqrgjtsoc")
    public suspend fun rootDirectory(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rootDirectory = mapped
    }

    internal fun build(): TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs =
        TaskDefinitionFSxWindowsFileServerVolumeConfigurationArgs(
            authorizationConfig = authorizationConfig,
            fileSystemId = fileSystemId ?: throw PulumiNullFieldException("fileSystemId"),
            rootDirectory = rootDirectory ?: throw PulumiNullFieldException("rootDirectory"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy