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

com.pulumi.azure.cosmosdb.kotlin.outputs.AccountRestore.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.cosmosdb.kotlin.outputs

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

/**
 *
 * @property databases A `database` block as defined below. Changing this forces a new resource to be created.
 * @property gremlinDatabases One or more `gremlin_database` blocks as defined below. Changing this forces a new resource to be created.
 * @property restoreTimestampInUtc The creation time of the database or the collection (Datetime Format `RFC 3339`). Changing this forces a new resource to be created.
 * @property sourceCosmosdbAccountId The resource ID of the restorable database account from which the restore has to be initiated. The example is `/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}`. Changing this forces a new resource to be created.
 * > **Note:** Any database account with `Continuous` type (live account or accounts deleted in last 30 days) is a restorable database account and there cannot be Create/Update/Delete operations on the restorable database accounts. They can only be read and retrieved by `azure.cosmosdb.getRestorableDatabaseAccounts`.
 * @property tablesToRestores A list of specific tables available for restore. Changing this forces a new resource to be created.
 */
public data class AccountRestore(
    public val databases: List? = null,
    public val gremlinDatabases: List? = null,
    public val restoreTimestampInUtc: String,
    public val sourceCosmosdbAccountId: String,
    public val tablesToRestores: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.AccountRestore): AccountRestore = AccountRestore(
            databases = javaType.databases().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.AccountRestoreDatabase.Companion.toKotlin(args0)
                })
            }),
            gremlinDatabases = javaType.gremlinDatabases().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.AccountRestoreGremlinDatabase.Companion.toKotlin(args0)
                })
            }),
            restoreTimestampInUtc = javaType.restoreTimestampInUtc(),
            sourceCosmosdbAccountId = javaType.sourceCosmosdbAccountId(),
            tablesToRestores = javaType.tablesToRestores().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy