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

commonMain.aws.sdk.kotlin.services.appmesh.model.ClientTlsCertificate.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appmesh.model



/**
 * An object that represents the client's certificate.
 */
public sealed class ClientTlsCertificate {
    /**
     * An object that represents a local file certificate. The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html).
     */
    public data class File(val value: aws.sdk.kotlin.services.appmesh.model.ListenerTlsFileCertificate) : aws.sdk.kotlin.services.appmesh.model.ClientTlsCertificate() {
    }

    /**
     * A reference to an object that represents a client's TLS Secret Discovery Service certificate.
     */
    public data class Sds(val value: aws.sdk.kotlin.services.appmesh.model.ListenerTlsSdsCertificate) : aws.sdk.kotlin.services.appmesh.model.ClientTlsCertificate() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.appmesh.model.ClientTlsCertificate() {
    }

    /**
     * Casts this [ClientTlsCertificate] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.ListenerTlsFileCertificate] value. Throws an exception if the [ClientTlsCertificate] is not a
     * [File].
     */
    public fun asFile(): aws.sdk.kotlin.services.appmesh.model.ListenerTlsFileCertificate = (this as ClientTlsCertificate.File).value

    /**
     * Casts this [ClientTlsCertificate] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.ListenerTlsFileCertificate] value. Returns null if the [ClientTlsCertificate] is not a [File].
     */
    public fun asFileOrNull(): aws.sdk.kotlin.services.appmesh.model.ListenerTlsFileCertificate? = (this as? ClientTlsCertificate.File)?.value

    /**
     * Casts this [ClientTlsCertificate] as a [Sds] and retrieves its [aws.sdk.kotlin.services.appmesh.model.ListenerTlsSdsCertificate] value. Throws an exception if the [ClientTlsCertificate] is not a
     * [Sds].
     */
    public fun asSds(): aws.sdk.kotlin.services.appmesh.model.ListenerTlsSdsCertificate = (this as ClientTlsCertificate.Sds).value

    /**
     * Casts this [ClientTlsCertificate] as a [Sds] and retrieves its [aws.sdk.kotlin.services.appmesh.model.ListenerTlsSdsCertificate] value. Returns null if the [ClientTlsCertificate] is not a [Sds].
     */
    public fun asSdsOrNull(): aws.sdk.kotlin.services.appmesh.model.ListenerTlsSdsCertificate? = (this as? ClientTlsCertificate.Sds)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy