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

com.pulumi.awsnative.amplify.kotlin.outputs.DomainCertificate.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.amplify.kotlin.outputs

import com.pulumi.awsnative.amplify.kotlin.enums.DomainCertificateCertificateType
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property certificateArn The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
 * This field is required only when the certificate type is `CUSTOM` .
 * @property certificateType The type of SSL/TLS certificate that you want to use.
 * Specify `AMPLIFY_MANAGED` to use the default certificate that Amplify provisions for you.
 * Specify `CUSTOM` to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see [Importing certificates into AWS Certificate Manager](https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) in the *ACM User guide* .
 * @property certificateVerificationDnsRecord The DNS record for certificate verification.
 */
public data class DomainCertificate(
    public val certificateArn: String? = null,
    public val certificateType: DomainCertificateCertificateType? = null,
    public val certificateVerificationDnsRecord: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplify.outputs.DomainCertificate): DomainCertificate = DomainCertificate(
            certificateArn = javaType.certificateArn().map({ args0 -> args0 }).orElse(null),
            certificateType = javaType.certificateType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplify.kotlin.enums.DomainCertificateCertificateType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            certificateVerificationDnsRecord = javaType.certificateVerificationDnsRecord().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy