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

com.pulumi.awsnative.opensearchservice.kotlin.outputs.DomainEndpointOptions.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.opensearchservice.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property customEndpoint The fully qualified URL for your custom endpoint. Required if you enabled a custom endpoint for the domain.
 * @property customEndpointCertificateArn The AWS Certificate Manager ARN for your domain's SSL/TLS certificate. Required if you enabled a custom endpoint for the domain.
 * @property customEndpointEnabled True to enable a custom endpoint for the domain. If enabled, you must also provide values for `CustomEndpoint` and `CustomEndpointCertificateArn` .
 * @property enforceHttps True to require that all traffic to the domain arrive over HTTPS. Required if you enable fine-grained access control in [AdvancedSecurityOptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html) .
 * @property tlsSecurityPolicy The minimum TLS version required for traffic to the domain. The policy can be one of the following values:
 * - *Policy-Min-TLS-1-0-2019-07:* TLS security policy that supports TLS version 1.0 to TLS version 1.2
 * - *Policy-Min-TLS-1-2-2019-07:* TLS security policy that supports only TLS version 1.2
 * - *Policy-Min-TLS-1-2-PFS-2023-10:* TLS security policy that supports TLS version 1.2 to TLS version 1.3 with perfect forward secrecy cipher suites
 */
public data class DomainEndpointOptions(
    public val customEndpoint: String? = null,
    public val customEndpointCertificateArn: String? = null,
    public val customEndpointEnabled: Boolean? = null,
    public val enforceHttps: Boolean? = null,
    public val tlsSecurityPolicy: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.opensearchservice.outputs.DomainEndpointOptions): DomainEndpointOptions = DomainEndpointOptions(
            customEndpoint = javaType.customEndpoint().map({ args0 -> args0 }).orElse(null),
            customEndpointCertificateArn = javaType.customEndpointCertificateArn().map({ args0 ->
                args0
            }).orElse(null),
            customEndpointEnabled = javaType.customEndpointEnabled().map({ args0 -> args0 }).orElse(null),
            enforceHttps = javaType.enforceHttps().map({ args0 -> args0 }).orElse(null),
            tlsSecurityPolicy = javaType.tlsSecurityPolicy().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy