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

com.pulumi.azure.mysql.kotlin.outputs.GetServerResult.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mysql.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 getServer.
 * @property administratorLogin The Administrator login for the MySQL Server.
 * @property autoGrowEnabled The auto grow setting for this MySQL Server.
 * @property backupRetentionDays The backup retention days for this MySQL server.
 * @property fqdn The FQDN of the MySQL Server.
 * @property geoRedundantBackupEnabled The geo redundant backup setting for this MySQL Server.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property identities An `identity` block as defined below.
 * @property infrastructureEncryptionEnabled Whether or not infrastructure is encrypted for this MySQL Server.
 * @property location The Azure location where the resource exists.
 * @property name
 * @property publicNetworkAccessEnabled Whether or not public network access is allowed for this MySQL Server.
 * @property resourceGroupName
 * @property restorePointInTime
 * @property skuName The SKU Name for this MySQL Server.
 * @property sslEnforcementEnabled Specifies if SSL should be enforced on connections for this MySQL Server.
 * @property sslMinimalTlsVersionEnforced The minimum TLS version to support for this MySQL Server.
 * @property storageMb Max storage allowed for this MySQL Server.
 * @property tags A mapping of tags to assign to the resource.
 * @property threatDetectionPolicies Threat detection policy configuration, known in the API as Server Security Alerts Policy. The `threat_detection_policy` block exports fields documented below.
 * @property version The version of this MySQL Server.
 */
public data class GetServerResult(
    public val administratorLogin: String,
    public val autoGrowEnabled: Boolean,
    public val backupRetentionDays: Int,
    public val fqdn: String,
    public val geoRedundantBackupEnabled: Boolean,
    public val id: String,
    public val identities: List,
    public val infrastructureEncryptionEnabled: Boolean,
    public val location: String,
    public val name: String,
    public val publicNetworkAccessEnabled: Boolean,
    public val resourceGroupName: String,
    public val restorePointInTime: String,
    public val skuName: String,
    public val sslEnforcementEnabled: Boolean,
    public val sslMinimalTlsVersionEnforced: String,
    public val storageMb: Int,
    public val tags: Map,
    public val threatDetectionPolicies: List,
    public val version: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.mysql.outputs.GetServerResult): GetServerResult =
            GetServerResult(
                administratorLogin = javaType.administratorLogin(),
                autoGrowEnabled = javaType.autoGrowEnabled(),
                backupRetentionDays = javaType.backupRetentionDays(),
                fqdn = javaType.fqdn(),
                geoRedundantBackupEnabled = javaType.geoRedundantBackupEnabled(),
                id = javaType.id(),
                identities = javaType.identities().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.mysql.kotlin.outputs.GetServerIdentity.Companion.toKotlin(args0)
                    })
                }),
                infrastructureEncryptionEnabled = javaType.infrastructureEncryptionEnabled(),
                location = javaType.location(),
                name = javaType.name(),
                publicNetworkAccessEnabled = javaType.publicNetworkAccessEnabled(),
                resourceGroupName = javaType.resourceGroupName(),
                restorePointInTime = javaType.restorePointInTime(),
                skuName = javaType.skuName(),
                sslEnforcementEnabled = javaType.sslEnforcementEnabled(),
                sslMinimalTlsVersionEnforced = javaType.sslMinimalTlsVersionEnforced(),
                storageMb = javaType.storageMb(),
                tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                threatDetectionPolicies = javaType.threatDetectionPolicies().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.mysql.kotlin.outputs.GetServerThreatDetectionPolicy.Companion.toKotlin(args0)
                    })
                }),
                version = javaType.version(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy