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

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

import com.pulumi.awsnative.datasync.kotlin.enums.LocationObjectStorageServerProtocol
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 locationArn The Amazon Resource Name (ARN) of the location that is created.
 * @property locationUri The URL of the object storage location that was described.
 * @property serverCertificate X.509 PEM content containing a certificate authority or chain to trust.
 * @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 tags An array of key-value pairs to apply to this resource.
 */
public data class GetLocationObjectStorageResult(
    public val accessKey: String? = null,
    public val agentArns: List? = null,
    public val locationArn: String? = null,
    public val locationUri: String? = null,
    public val serverCertificate: String? = null,
    public val serverPort: Int? = null,
    public val serverProtocol: LocationObjectStorageServerProtocol? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.datasync.outputs.GetLocationObjectStorageResult): GetLocationObjectStorageResult = GetLocationObjectStorageResult(
            accessKey = javaType.accessKey().map({ args0 -> args0 }).orElse(null),
            agentArns = javaType.agentArns().map({ args0 -> args0 }),
            locationArn = javaType.locationArn().map({ args0 -> args0 }).orElse(null),
            locationUri = javaType.locationUri().map({ args0 -> args0 }).orElse(null),
            serverCertificate = javaType.serverCertificate().map({ args0 -> args0 }).orElse(null),
            serverPort = javaType.serverPort().map({ args0 -> args0 }).orElse(null),
            serverProtocol = javaType.serverProtocol().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.datasync.kotlin.enums.LocationObjectStorageServerProtocol.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy