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

com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceClone.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property allocatedIpRange The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression a-z?.
 * @property databaseNames (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
 * @property pointInTime The timestamp of the point in time that should be restored.
 * @property preferredZone (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
 * @property sourceInstanceName The name of the instance from which the point in time should be restored.
 */
public data class GetDatabaseInstanceClone(
    public val allocatedIpRange: String,
    public val databaseNames: List,
    public val pointInTime: String,
    public val preferredZone: String,
    public val sourceInstanceName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstanceClone): GetDatabaseInstanceClone = GetDatabaseInstanceClone(
            allocatedIpRange = javaType.allocatedIpRange(),
            databaseNames = javaType.databaseNames().map({ args0 -> args0 }),
            pointInTime = javaType.pointInTime(),
            preferredZone = javaType.preferredZone(),
            sourceInstanceName = javaType.sourceInstanceName(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy