com.pulumi.digitalocean.kotlin.outputs.DatabaseFirewallRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property createdAt The date and time when the firewall rule was created.
* @property type The type of resource that the firewall rule allows to access the database cluster. The possible values are: `droplet`, `k8s`, `ip_addr`, `tag`, or `app`.
* @property uuid A unique identifier for the firewall rule.
* @property value The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
*/
public data class DatabaseFirewallRule(
public val createdAt: String? = null,
public val type: String,
public val uuid: String? = null,
public val `value`: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.DatabaseFirewallRule): DatabaseFirewallRule = DatabaseFirewallRule(
createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
uuid = javaType.uuid().map({ args0 -> args0 }).orElse(null),
`value` = javaType.`value`(),
)
}
}