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

com.pulumi.awsnative.datasync.kotlin.LocationFSxOntapArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationFSxOntapArgs.builder
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationFSxOntapProtocolArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationFSxOntapProtocolArgsBuilder
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::LocationFSxONTAP.
 * @property protocol Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
 * @property securityGroupArns The ARNs of the security groups that are to use to configure the FSx ONTAP file system.
 * @property storageVirtualMachineArn The Amazon Resource Name (ARN) for the FSx ONTAP SVM.
 * @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 LocationFSxOntapArgs(
    public val protocol: Output? = null,
    public val securityGroupArns: Output>? = null,
    public val storageVirtualMachineArn: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationFSxOntapArgs =
        com.pulumi.awsnative.datasync.LocationFSxOntapArgs.builder()
            .protocol(protocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityGroupArns(securityGroupArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .storageVirtualMachineArn(storageVirtualMachineArn?.applyValue({ args0 -> args0 }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationFSxOntapArgs].
 */
@PulumiTagMarker
public class LocationFSxOntapArgsBuilder internal constructor() {
    private var protocol: Output? = null

    private var securityGroupArns: Output>? = null

    private var storageVirtualMachineArn: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
     */
    @JvmName("mpgohtruymddfefs")
    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 ONTAP file system.
     */
    @JvmName("gihiyfvnyntillig")
    public suspend fun securityGroupArns(`value`: Output>) {
        this.securityGroupArns = value
    }

    @JvmName("dimsgonhyddhynna")
    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 ONTAP file system.
     */
    @JvmName("ycmsofattnfcmima")
    public suspend fun securityGroupArns(values: List>) {
        this.securityGroupArns = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the FSx ONTAP SVM.
     */
    @JvmName("oaokxkqghrilgufn")
    public suspend fun storageVirtualMachineArn(`value`: Output) {
        this.storageVirtualMachineArn = value
    }

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

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

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

    /**
     * @param value Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
     */
    @JvmName("uwmllenlgjnyvupf")
    public suspend fun protocol(`value`: LocationFSxOntapProtocolArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param argument Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
     */
    @JvmName("kfftpifitbdyfwdb")
    public suspend fun protocol(argument: suspend LocationFSxOntapProtocolArgsBuilder.() -> Unit) {
        val toBeMapped = LocationFSxOntapProtocolArgsBuilder().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 ONTAP file system.
     */
    @JvmName("ucxwaqeshjvugbyi")
    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 ONTAP file system.
     */
    @JvmName("qtxlugiuscspstdn")
    public suspend fun securityGroupArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

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

    /**
     * @param value A subdirectory in the location's path.
     */
    @JvmName("fnllqjahstgisjje")
    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("pejwbmpnjagvncdv")
    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("iqourejkacjceqkl")
    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("mpnaldvnplqekiju")
    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("yscqaumxcnhhlvoy")
    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("hbxnhekfxkbeicnx")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationFSxOntapArgs = LocationFSxOntapArgs(
        protocol = protocol,
        securityGroupArns = securityGroupArns,
        storageVirtualMachineArn = storageVirtualMachineArn,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy