com.pulumi.awsnative.rds.kotlin.outputs.DbInstanceEndpoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.rds.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* This data type represents the information you need to connect to an Amazon RDS DB instance. This data type is used as a response element in the following actions:
* + ``CreateDBInstance``
* + ``DescribeDBInstances``
* + ``DeleteDBInstance``
* For the data structure that represents Amazon Aurora DB cluster endpoints, see ``DBClusterEndpoint``.
* @property address Specifies the DNS address of the DB instance.
* @property hostedZoneId Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
* @property port Specifies the port that the database engine is listening on.
*/
public data class DbInstanceEndpoint(
public val address: String? = null,
public val hostedZoneId: String? = null,
public val port: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.rds.outputs.DbInstanceEndpoint): DbInstanceEndpoint = DbInstanceEndpoint(
address = javaType.address().map({ args0 -> args0 }).orElse(null),
hostedZoneId = javaType.hostedZoneId().map({ args0 -> args0 }).orElse(null),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
)
}
}