
com.pulumi.azure.mssql.kotlin.outputs.GetDatabaseResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mssql.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getDatabase.
* @property collation The collation of the database.
* @property elasticPoolId The id of the elastic pool containing this database.
* @property enclaveType The type of enclave being used by the database.
* @property id The provider-assigned unique ID for this managed resource.
* @property identities A `identity` block as defined below.
* @property licenseType The license type to apply for this database.
* @property maxSizeGb The max size of the database in gigabytes.
* @property name
* @property readReplicaCount The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed.
* @property readScale If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica.
* @property serverId
* @property skuName The name of the SKU of the database.
* @property storageAccountType The storage account type used to store backups for this database.
* @property tags A mapping of tags to assign to the resource.
* @property transparentDataEncryptionEnabled Whether or not Transparent Data Encryption is enabled.
* @property transparentDataEncryptionKeyAutomaticRotationEnabled Whether or not TDE automatically rotates the encryption Key to latest version.
* @property transparentDataEncryptionKeyVaultKeyId The Key Vault key URI to be used as the `Customer Managed Key`(CMK/BYOK) for the `Transparent Data Encryption`(TDE) layer.
* @property zoneRedundant Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
*/
public data class GetDatabaseResult(
public val collation: String,
public val elasticPoolId: String,
public val enclaveType: String,
public val id: String,
public val identities: List,
public val licenseType: String,
public val maxSizeGb: Int,
public val name: String,
public val readReplicaCount: Int,
public val readScale: Boolean,
public val serverId: String,
public val skuName: String,
public val storageAccountType: String,
public val tags: Map,
public val transparentDataEncryptionEnabled: Boolean,
public val transparentDataEncryptionKeyAutomaticRotationEnabled: Boolean,
public val transparentDataEncryptionKeyVaultKeyId: String,
public val zoneRedundant: Boolean,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.GetDatabaseResult):
GetDatabaseResult = GetDatabaseResult(
collation = javaType.collation(),
elasticPoolId = javaType.elasticPoolId(),
enclaveType = javaType.enclaveType(),
id = javaType.id(),
identities = javaType.identities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.mssql.kotlin.outputs.GetDatabaseIdentity.Companion.toKotlin(args0)
})
}),
licenseType = javaType.licenseType(),
maxSizeGb = javaType.maxSizeGb(),
name = javaType.name(),
readReplicaCount = javaType.readReplicaCount(),
readScale = javaType.readScale(),
serverId = javaType.serverId(),
skuName = javaType.skuName(),
storageAccountType = javaType.storageAccountType(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
transparentDataEncryptionEnabled = javaType.transparentDataEncryptionEnabled(),
transparentDataEncryptionKeyAutomaticRotationEnabled = javaType.transparentDataEncryptionKeyAutomaticRotationEnabled(),
transparentDataEncryptionKeyVaultKeyId = javaType.transparentDataEncryptionKeyVaultKeyId(),
zoneRedundant = javaType.zoneRedundant(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy