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

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

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

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationSmbArgs.builder
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationSmbMountOptionsArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationSmbMountOptionsArgsBuilder
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::LocationSMB.
 * @property agentArns The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
 * @property domain The name of the Windows domain that the SMB server belongs to.
 * @property mountOptions Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
 * @property password The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
 * @property serverHostname The name of the SMB server. This value is the IP address or Domain Name Service (DNS) name of the SMB server.
 * @property subdirectory The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination
 * @property tags An array of key-value pairs to apply to this resource.
 * @property user The user who can mount the share, has the permissions to access files and folders in the SMB share.
 */
public data class LocationSmbArgs(
    public val agentArns: Output>? = null,
    public val domain: Output? = null,
    public val mountOptions: Output? = null,
    public val password: Output? = null,
    public val serverHostname: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
    public val user: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationSmbArgs =
        com.pulumi.awsnative.datasync.LocationSmbArgs.builder()
            .agentArns(agentArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .domain(domain?.applyValue({ args0 -> args0 }))
            .mountOptions(mountOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .password(password?.applyValue({ args0 -> args0 }))
            .serverHostname(serverHostname?.applyValue({ args0 -> args0 }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .user(user?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocationSmbArgs].
 */
@PulumiTagMarker
public class LocationSmbArgsBuilder internal constructor() {
    private var agentArns: Output>? = null

    private var domain: Output? = null

    private var mountOptions: Output? = null

    private var password: Output? = null

    private var serverHostname: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    private var user: Output? = null

    /**
     * @param value The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
     */
    @JvmName("eebufccyvrgojapk")
    public suspend fun agentArns(`value`: Output>) {
        this.agentArns = value
    }

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

    /**
     * @param values The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
     */
    @JvmName("eimabvyenwynrrxv")
    public suspend fun agentArns(values: List>) {
        this.agentArns = Output.all(values)
    }

    /**
     * @param value The name of the Windows domain that the SMB server belongs to.
     */
    @JvmName("darospurpgqksnfi")
    public suspend fun domain(`value`: Output) {
        this.domain = value
    }

    /**
     * @param value Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
     */
    @JvmName("yxecrgoleaksdkfn")
    public suspend fun mountOptions(`value`: Output) {
        this.mountOptions = value
    }

    /**
     * @param value The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
     */
    @JvmName("fydhxssospybqwys")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The name of the SMB server. This value is the IP address or Domain Name Service (DNS) name of the SMB server.
     */
    @JvmName("imdvmkvuwbnjghhd")
    public suspend fun serverHostname(`value`: Output) {
        this.serverHostname = value
    }

    /**
     * @param value The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination
     */
    @JvmName("hhuyewkfmwnxxjnr")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

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

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

    /**
     * @param value The user who can mount the share, has the permissions to access files and folders in the SMB share.
     */
    @JvmName("bdsghqpsnpxkvqii")
    public suspend fun user(`value`: Output) {
        this.user = value
    }

    /**
     * @param value The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
     */
    @JvmName("pedxdixjdxlryomm")
    public suspend fun agentArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param values The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location.
     */
    @JvmName("panwdcoaoslhkbyv")
    public suspend fun agentArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param value The name of the Windows domain that the SMB server belongs to.
     */
    @JvmName("tajemrnjpelurhsy")
    public suspend fun domain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domain = mapped
    }

    /**
     * @param value Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
     */
    @JvmName("blrqdnofejtkblwn")
    public suspend fun mountOptions(`value`: LocationSmbMountOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param argument Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
     */
    @JvmName("meomhkpswbxpxuji")
    public suspend fun mountOptions(argument: suspend LocationSmbMountOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = LocationSmbMountOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mountOptions = mapped
    }

    /**
     * @param value The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.
     */
    @JvmName("qacwobeksvnvthky")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The name of the SMB server. This value is the IP address or Domain Name Service (DNS) name of the SMB server.
     */
    @JvmName("fffpegrirbhtctgu")
    public suspend fun serverHostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverHostname = mapped
    }

    /**
     * @param value The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination
     */
    @JvmName("yfnkkddpmyihfaqh")
    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("dquumcbxahmiqtwe")
    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("tvkbkdjqrjuebwsn")
    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("hmyfgvaugupnuxvh")
    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("opmihvgecdvnafbs")
    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("wbopejgxhmagtnxr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The user who can mount the share, has the permissions to access files and folders in the SMB share.
     */
    @JvmName("wmetkgjemrikrhft")
    public suspend fun user(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.user = mapped
    }

    internal fun build(): LocationSmbArgs = LocationSmbArgs(
        agentArns = agentArns,
        domain = domain,
        mountOptions = mountOptions,
        password = password,
        serverHostname = serverHostname,
        subdirectory = subdirectory,
        tags = tags,
        user = user,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy