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

com.pulumi.awsnative.datasync.kotlin.LocationFSxOpenZfsArgs.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.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationFSxOpenZfsArgs.builder
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationFSxOpenZfsProtocolArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationFSxOpenZfsProtocolArgsBuilder
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::LocationFSxOpenZFS.
 * @property fsxFilesystemArn The Amazon Resource Name (ARN) for the FSx OpenZFS file system.
 * @property protocol The type of protocol that AWS DataSync uses to access your file system.
 * @property securityGroupArns The ARNs of the security groups that are to use to configure the FSx OpenZFS file system.
 * @property subdirectory A subdirectory in the location's path.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class LocationFSxOpenZfsArgs(
    public val fsxFilesystemArn: Output? = null,
    public val protocol: Output? = null,
    public val securityGroupArns: Output>? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationFSxOpenZfsArgs =
        com.pulumi.awsnative.datasync.LocationFSxOpenZfsArgs.builder()
            .fsxFilesystemArn(fsxFilesystemArn?.applyValue({ args0 -> args0 }))
            .protocol(protocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityGroupArns(securityGroupArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationFSxOpenZfsArgs].
 */
@PulumiTagMarker
public class LocationFSxOpenZfsArgsBuilder internal constructor() {
    private var fsxFilesystemArn: Output? = null

    private var protocol: Output? = null

    private var securityGroupArns: Output>? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) for the FSx OpenZFS file system.
     */
    @JvmName("ehefcunxwpbmvwga")
    public suspend fun fsxFilesystemArn(`value`: Output) {
        this.fsxFilesystemArn = value
    }

    /**
     * @param value The type of protocol that AWS DataSync uses to access your file system.
     */
    @JvmName("owuytvbdexqqtchq")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value The ARNs of the security groups that are to use to configure the FSx OpenZFS file system.
     */
    @JvmName("omgkyaiprjsfbrrp")
    public suspend fun securityGroupArns(`value`: Output>) {
        this.securityGroupArns = value
    }

    @JvmName("yqmkavfqyshvupwd")
    public suspend fun securityGroupArns(vararg values: Output) {
        this.securityGroupArns = Output.all(values.asList())
    }

    /**
     * @param values The ARNs of the security groups that are to use to configure the FSx OpenZFS file system.
     */
    @JvmName("rfbseinlujgynqkl")
    public suspend fun securityGroupArns(values: List>) {
        this.securityGroupArns = Output.all(values)
    }

    /**
     * @param value A subdirectory in the location's path.
     */
    @JvmName("cfwwcacnrduivgnw")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("dwcoikwnxmdawywh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ryagdvoqngfmrkpu")
    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("alqlecoogswnmmvg")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the FSx OpenZFS file system.
     */
    @JvmName("poarwramuwotgfow")
    public suspend fun fsxFilesystemArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fsxFilesystemArn = mapped
    }

    /**
     * @param value The type of protocol that AWS DataSync uses to access your file system.
     */
    @JvmName("dcbfmqbksrgbelwy")
    public suspend fun protocol(`value`: LocationFSxOpenZfsProtocolArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param argument The type of protocol that AWS DataSync uses to access your file system.
     */
    @JvmName("xtbmcjgkvgkebyol")
    public suspend fun protocol(argument: suspend LocationFSxOpenZfsProtocolArgsBuilder.() -> Unit) {
        val toBeMapped = LocationFSxOpenZfsProtocolArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.protocol = mapped
    }

    /**
     * @param value The ARNs of the security groups that are to use to configure the FSx OpenZFS file system.
     */
    @JvmName("pkktxmhrlxdkykyw")
    public suspend fun securityGroupArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param values The ARNs of the security groups that are to use to configure the FSx OpenZFS file system.
     */
    @JvmName("dppucyexptjsbshy")
    public suspend fun securityGroupArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param value A subdirectory in the location's path.
     */
    @JvmName("eacvkfwrsvxjinec")
    public suspend fun subdirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subdirectory = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("jasyobunaqwwtesd")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("oismnqbtrovvflsa")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ejwaedpqikevipmd")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("qapjhpbbvcehjbrl")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("cnqtuduvjmuhffju")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationFSxOpenZfsArgs = LocationFSxOpenZfsArgs(
        fsxFilesystemArn = fsxFilesystemArn,
        protocol = protocol,
        securityGroupArns = securityGroupArns,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy