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

com.pulumi.awsnative.datasync.kotlin.StorageSystemArgs.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.StorageSystemArgs.builder
import com.pulumi.awsnative.datasync.kotlin.enums.StorageSystemSystemType
import com.pulumi.awsnative.datasync.kotlin.inputs.StorageSystemServerConfigurationArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.StorageSystemServerConfigurationArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.StorageSystemServerCredentialsArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.StorageSystemServerCredentialsArgsBuilder
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::StorageSystem.
 * @property agentArns The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
 * @property cloudWatchLogGroupArn The ARN of the Amazon CloudWatch log group used to monitor and log discovery job events.
 * @property name A familiar name for the on-premises storage system.
 * @property serverConfiguration Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
 * @property serverCredentials Specifies the user name and password for accessing your on-premises storage system's management interface.
 * @property systemType The type of on-premises storage system that DataSync Discovery will analyze.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class StorageSystemArgs(
    public val agentArns: Output>? = null,
    public val cloudWatchLogGroupArn: Output? = null,
    public val name: Output? = null,
    public val serverConfiguration: Output? = null,
    public val serverCredentials: Output? = null,
    public val systemType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.StorageSystemArgs =
        com.pulumi.awsnative.datasync.StorageSystemArgs.builder()
            .agentArns(agentArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .cloudWatchLogGroupArn(cloudWatchLogGroupArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .serverConfiguration(
                serverConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serverCredentials(serverCredentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .systemType(systemType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var cloudWatchLogGroupArn: Output? = null

    private var name: Output? = null

    private var serverConfiguration: Output? = null

    private var serverCredentials: Output? = null

    private var systemType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
     */
    @JvmName("keinnlndmbmcnfgo")
    public suspend fun agentArns(`value`: Output>) {
        this.agentArns = value
    }

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

    /**
     * @param values The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
     */
    @JvmName("uumyqjgfjffonnah")
    public suspend fun agentArns(values: List>) {
        this.agentArns = Output.all(values)
    }

    /**
     * @param value The ARN of the Amazon CloudWatch log group used to monitor and log discovery job events.
     */
    @JvmName("jcxqrdvfeehwbbbc")
    public suspend fun cloudWatchLogGroupArn(`value`: Output) {
        this.cloudWatchLogGroupArn = value
    }

    /**
     * @param value A familiar name for the on-premises storage system.
     */
    @JvmName("kycjtwlvuxcraiwd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
     */
    @JvmName("rwpgclbdsemskiiv")
    public suspend fun serverConfiguration(`value`: Output) {
        this.serverConfiguration = value
    }

    /**
     * @param value Specifies the user name and password for accessing your on-premises storage system's management interface.
     */
    @JvmName("geufynhngodnobkp")
    public suspend fun serverCredentials(`value`: Output) {
        this.serverCredentials = value
    }

    /**
     * @param value The type of on-premises storage system that DataSync Discovery will analyze.
     */
    @JvmName("xowgryuwnaknjxnq")
    public suspend fun systemType(`value`: Output) {
        this.systemType = value
    }

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

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

    /**
     * @param value The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
     */
    @JvmName("ysylivtwenqhhsxq")
    public suspend fun agentArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param values The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
     */
    @JvmName("lxoqtxicjobikhya")
    public suspend fun agentArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param value The ARN of the Amazon CloudWatch log group used to monitor and log discovery job events.
     */
    @JvmName("kgxcthqxqqfvxxvr")
    public suspend fun cloudWatchLogGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchLogGroupArn = mapped
    }

    /**
     * @param value A familiar name for the on-premises storage system.
     */
    @JvmName("ggeundeghfupprwu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
     */
    @JvmName("bicswuslptvaorkx")
    public suspend fun serverConfiguration(`value`: StorageSystemServerConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverConfiguration = mapped
    }

    /**
     * @param argument Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
     */
    @JvmName("ahgdatilbvpphqlv")
    public suspend fun serverConfiguration(argument: suspend StorageSystemServerConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = StorageSystemServerConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serverConfiguration = mapped
    }

    /**
     * @param value Specifies the user name and password for accessing your on-premises storage system's management interface.
     */
    @JvmName("wvvnlkdighqrlkrc")
    public suspend fun serverCredentials(`value`: StorageSystemServerCredentialsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCredentials = mapped
    }

    /**
     * @param argument Specifies the user name and password for accessing your on-premises storage system's management interface.
     */
    @JvmName("axxdacecnaowqsqf")
    public suspend fun serverCredentials(argument: suspend StorageSystemServerCredentialsArgsBuilder.() -> Unit) {
        val toBeMapped = StorageSystemServerCredentialsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.serverCredentials = mapped
    }

    /**
     * @param value The type of on-premises storage system that DataSync Discovery will analyze.
     */
    @JvmName("uoakmqhkvucbnbup")
    public suspend fun systemType(`value`: StorageSystemSystemType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemType = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("mabcuxpohwkfuiwu")
    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("vwdbebkdcsbrwpwe")
    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("yvtgqvytbncckiia")
    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("rpkdjiufwqrptakp")
    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("ajvuajjmcaojscwu")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StorageSystemArgs = StorageSystemArgs(
        agentArns = agentArns,
        cloudWatchLogGroupArn = cloudWatchLogGroupArn,
        name = name,
        serverConfiguration = serverConfiguration,
        serverCredentials = serverCredentials,
        systemType = systemType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy