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

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

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

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationObjectStorageArgs.builder
import com.pulumi.awsnative.datasync.kotlin.enums.LocationObjectStorageServerProtocol
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::DataSync::LocationObjectStorage.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property accessKey Optional. The access key is used if credentials are required to access the self-managed object storage server.
 * @property agentArns The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
 * @property bucketName The name of the bucket on the self-managed object storage server.
 * @property secretKey Optional. The secret key is used if credentials are required to access the self-managed object storage server.
 * @property serverCertificate X.509 PEM content containing a certificate authority or chain to trust.
 * @property serverHostname The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
 * @property serverPort The port that your self-managed server accepts inbound network traffic on.
 * @property serverProtocol The protocol that the object storage server uses to communicate.
 * @property subdirectory The subdirectory in the self-managed object storage server that is used to read data from.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class LocationObjectStorageArgs(
    public val accessKey: Output? = null,
    public val agentArns: Output>? = null,
    public val bucketName: Output? = null,
    public val secretKey: Output? = null,
    public val serverCertificate: Output? = null,
    public val serverHostname: Output? = null,
    public val serverPort: Output? = null,
    public val serverProtocol: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationObjectStorageArgs =
        com.pulumi.awsnative.datasync.LocationObjectStorageArgs.builder()
            .accessKey(accessKey?.applyValue({ args0 -> args0 }))
            .agentArns(agentArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .secretKey(secretKey?.applyValue({ args0 -> args0 }))
            .serverCertificate(serverCertificate?.applyValue({ args0 -> args0 }))
            .serverHostname(serverHostname?.applyValue({ args0 -> args0 }))
            .serverPort(serverPort?.applyValue({ args0 -> args0 }))
            .serverProtocol(serverProtocol?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationObjectStorageArgs].
 */
@PulumiTagMarker
public class LocationObjectStorageArgsBuilder internal constructor() {
    private var accessKey: Output? = null

    private var agentArns: Output>? = null

    private var bucketName: Output? = null

    private var secretKey: Output? = null

    private var serverCertificate: Output? = null

    private var serverHostname: Output? = null

    private var serverPort: Output? = null

    private var serverProtocol: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Optional. The access key is used if credentials are required to access the self-managed object storage server.
     */
    @JvmName("nmtbnfygvlyqpicy")
    public suspend fun accessKey(`value`: Output) {
        this.accessKey = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
     */
    @JvmName("lwtpdphykuwpfqgq")
    public suspend fun agentArns(`value`: Output>) {
        this.agentArns = value
    }

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

    /**
     * @param values The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
     */
    @JvmName("hwyaikpywlvalpgl")
    public suspend fun agentArns(values: List>) {
        this.agentArns = Output.all(values)
    }

    /**
     * @param value The name of the bucket on the self-managed object storage server.
     */
    @JvmName("khjhugtkqtskynxr")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value Optional. The secret key is used if credentials are required to access the self-managed object storage server.
     */
    @JvmName("rtmrjmnrrvchcbum")
    public suspend fun secretKey(`value`: Output) {
        this.secretKey = value
    }

    /**
     * @param value X.509 PEM content containing a certificate authority or chain to trust.
     */
    @JvmName("npoiokmrktiwxeno")
    public suspend fun serverCertificate(`value`: Output) {
        this.serverCertificate = value
    }

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

    /**
     * @param value The port that your self-managed server accepts inbound network traffic on.
     */
    @JvmName("edldqbglueqlchuh")
    public suspend fun serverPort(`value`: Output) {
        this.serverPort = value
    }

    /**
     * @param value The protocol that the object storage server uses to communicate.
     */
    @JvmName("vqffjkejequkpruc")
    public suspend fun serverProtocol(`value`: Output) {
        this.serverProtocol = value
    }

    /**
     * @param value The subdirectory in the self-managed object storage server that is used to read data from.
     */
    @JvmName("csnbdxqwakhyodlc")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

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

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

    /**
     * @param value Optional. The access key is used if credentials are required to access the self-managed object storage server.
     */
    @JvmName("rwboqetqkmacmhlv")
    public suspend fun accessKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessKey = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
     */
    @JvmName("ybhstshgybpagugj")
    public suspend fun agentArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentArns = mapped
    }

    /**
     * @param values The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
     */
    @JvmName("lcyvjgptrfaadkkf")
    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 bucket on the self-managed object storage server.
     */
    @JvmName("tevhekeciqlsbysp")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value Optional. The secret key is used if credentials are required to access the self-managed object storage server.
     */
    @JvmName("jusavrjxvdrempud")
    public suspend fun secretKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretKey = mapped
    }

    /**
     * @param value X.509 PEM content containing a certificate authority or chain to trust.
     */
    @JvmName("pvyutgamjqtaygur")
    public suspend fun serverCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverCertificate = mapped
    }

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

    /**
     * @param value The port that your self-managed server accepts inbound network traffic on.
     */
    @JvmName("gwirfhuxiynaxitq")
    public suspend fun serverPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverPort = mapped
    }

    /**
     * @param value The protocol that the object storage server uses to communicate.
     */
    @JvmName("oengjrmjattmakvb")
    public suspend fun serverProtocol(`value`: LocationObjectStorageServerProtocol?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverProtocol = mapped
    }

    /**
     * @param value The subdirectory in the self-managed object storage server that is used to read data from.
     */
    @JvmName("evkngtdujfqeoagp")
    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("lmbddphqqwepwtxc")
    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("pithovjkytsyiwuk")
    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("nxqjgboejyxpynkg")
    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("mvrmxuyuorwdphfb")
    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("ttynasbjefgsimsy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationObjectStorageArgs = LocationObjectStorageArgs(
        accessKey = accessKey,
        agentArns = agentArns,
        bucketName = bucketName,
        secretKey = secretKey,
        serverCertificate = serverCertificate,
        serverHostname = serverHostname,
        serverPort = serverPort,
        serverProtocol = serverProtocol,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy