
commonMain.aws.sdk.kotlin.services.appmesh.model.VirtualGatewayClientTlsCertificate.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 virtual gateway's client's Transport Layer Security (TLS) certificate.
*/
public sealed class VirtualGatewayClientTlsCertificate {
/**
* 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.VirtualGatewayListenerTlsFileCertificate) : aws.sdk.kotlin.services.appmesh.model.VirtualGatewayClientTlsCertificate() {
}
/**
* A reference to an object that represents a virtual gateway's client's Secret Discovery Service certificate.
*/
public data class Sds(val value: aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsSdsCertificate) : aws.sdk.kotlin.services.appmesh.model.VirtualGatewayClientTlsCertificate() {
}
public object SdkUnknown : aws.sdk.kotlin.services.appmesh.model.VirtualGatewayClientTlsCertificate() {
}
/**
* Casts this [VirtualGatewayClientTlsCertificate] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsFileCertificate] value. Throws an exception if the [VirtualGatewayClientTlsCertificate] is not a
* [File].
*/
public fun asFile(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsFileCertificate = (this as VirtualGatewayClientTlsCertificate.File).value
/**
* Casts this [VirtualGatewayClientTlsCertificate] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsFileCertificate] value. Returns null if the [VirtualGatewayClientTlsCertificate] is not a [File].
*/
public fun asFileOrNull(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsFileCertificate? = (this as? VirtualGatewayClientTlsCertificate.File)?.value
/**
* Casts this [VirtualGatewayClientTlsCertificate] as a [Sds] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsSdsCertificate] value. Throws an exception if the [VirtualGatewayClientTlsCertificate] is not a
* [Sds].
*/
public fun asSds(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsSdsCertificate = (this as VirtualGatewayClientTlsCertificate.Sds).value
/**
* Casts this [VirtualGatewayClientTlsCertificate] as a [Sds] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsSdsCertificate] value. Returns null if the [VirtualGatewayClientTlsCertificate] is not a [Sds].
*/
public fun asSdsOrNull(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayListenerTlsSdsCertificate? = (this as? VirtualGatewayClientTlsCertificate.Sds)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy