
com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cosmosdb.kotlin.outputs
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getAccount.
* @property automaticFailoverEnabled If automatic failover is enabled for this CosmosDB Account.
* @property capabilities Capabilities enabled on this Cosmos DB account.
* @property connectionStrings
* @property consistencyPolicies
* @property enableAutomaticFailover
* @property enableFreeTier
* @property enableMultipleWriteLocations
* @property endpoint The endpoint used to connect to the CosmosDB account.
* @property freeTierEnabled If Free Tier pricing option is enabled for this CosmosDB Account. You can have up to one free tier Azure Cosmos DB account per Azure subscription.
* @property geoLocations
* @property id The provider-assigned unique ID for this managed resource.
* @property ipRangeFilter The current IP Filter for this CosmosDB account
* @property isVirtualNetworkFilterEnabled If virtual network filtering is enabled for this Cosmos DB account.
* @property keyVaultKeyId The Key Vault key URI for CMK encryption.
* @property kind The Kind of the CosmosDB account.
* @property location The name of the Azure region hosting replicated data.
* @property multipleWriteLocationsEnabled If multiple write locations are enabled for this Cosmos DB account.
* @property name
* @property offerType The Offer Type to used by this CosmosDB Account.
* @property primaryKey The primary key for the CosmosDB account.
* @property primaryMongodbConnectionString The primary Mongodb connection string for the CosmosDB account.
* @property primaryReadonlyKey The primary read-only Key for the CosmosDB account.
* @property primaryReadonlyMongodbConnectionString The primary readonly Mongodb connection string for the CosmosDB account.
* @property primaryReadonlySqlConnectionString The primary read-only SQL connection string for the CosmosDB account.
* @property primarySqlConnectionString The primary SQL connection string for the CosmosDB Account.
* @property readEndpoints A list of read endpoints available for this CosmosDB account.
* @property resourceGroupName
* @property secondaryKey The secondary key for the CosmosDB account.
* @property secondaryMongodbConnectionString The secondary Mongodb connection string for the CosmosDB account.
* @property secondaryReadonlyKey The secondary read-only key for the CosmosDB account.
* @property secondaryReadonlyMongodbConnectionString The secondary readonly Mongodb connection string for the CosmosDB account.
* @property secondaryReadonlySqlConnectionString The secondary read-only SQL connection string for the CosmosDB account.
* @property secondarySqlConnectionString The secondary SQL connection string for the CosmosDB Account.
* @property tags A mapping of tags assigned to the resource.
* @property virtualNetworkRules Subnets that are allowed to access this CosmosDB account.
* @property writeEndpoints A list of write endpoints available for this CosmosDB account.
*/
public data class GetAccountResult(
public val automaticFailoverEnabled: Boolean,
public val capabilities: List,
@Deprecated(
message = """
This property has been superseded by the primary and secondary connection strings for sql, mongodb
and readonly and will be removed in v4.0 of the AzureRM provider
""",
)
public val connectionStrings: List,
public val consistencyPolicies: List,
@Deprecated(
message = """
This property has been renamed to `automatic_failover_enabled` and will be removed in v4.0 of the
AzureRM provider
""",
)
public val enableAutomaticFailover: Boolean,
@Deprecated(
message = """
This property has been renamed to `free_tier_enabled` and will be removed in v4.0 of the AzureRM
provider
""",
)
public val enableFreeTier: Boolean,
@Deprecated(
message = """
This property has been renamed to `multiple_write_locations_enabled` and will be removed in v4.0
of the AzureRM provider
""",
)
public val enableMultipleWriteLocations: Boolean,
public val endpoint: String,
public val freeTierEnabled: Boolean,
public val geoLocations: List,
public val id: String,
public val ipRangeFilter: String,
public val isVirtualNetworkFilterEnabled: Boolean,
public val keyVaultKeyId: String,
public val kind: String,
public val location: String,
public val multipleWriteLocationsEnabled: Boolean,
public val name: String,
public val offerType: String,
public val primaryKey: String,
public val primaryMongodbConnectionString: String,
public val primaryReadonlyKey: String,
public val primaryReadonlyMongodbConnectionString: String,
public val primaryReadonlySqlConnectionString: String,
public val primarySqlConnectionString: String,
public val readEndpoints: List,
public val resourceGroupName: String,
public val secondaryKey: String,
public val secondaryMongodbConnectionString: String,
public val secondaryReadonlyKey: String,
public val secondaryReadonlyMongodbConnectionString: String,
public val secondaryReadonlySqlConnectionString: String,
public val secondarySqlConnectionString: String,
public val tags: Map,
public val virtualNetworkRules: List,
public val writeEndpoints: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.GetAccountResult):
GetAccountResult = GetAccountResult(
automaticFailoverEnabled = javaType.automaticFailoverEnabled(),
capabilities = javaType.capabilities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountCapability.Companion.toKotlin(args0)
})
}),
connectionStrings = javaType.connectionStrings().map({ args0 -> args0 }),
consistencyPolicies = javaType.consistencyPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountConsistencyPolicy.Companion.toKotlin(args0)
})
}),
enableAutomaticFailover = javaType.enableAutomaticFailover(),
enableFreeTier = javaType.enableFreeTier(),
enableMultipleWriteLocations = javaType.enableMultipleWriteLocations(),
endpoint = javaType.endpoint(),
freeTierEnabled = javaType.freeTierEnabled(),
geoLocations = javaType.geoLocations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountGeoLocation.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
ipRangeFilter = javaType.ipRangeFilter(),
isVirtualNetworkFilterEnabled = javaType.isVirtualNetworkFilterEnabled(),
keyVaultKeyId = javaType.keyVaultKeyId(),
kind = javaType.kind(),
location = javaType.location(),
multipleWriteLocationsEnabled = javaType.multipleWriteLocationsEnabled(),
name = javaType.name(),
offerType = javaType.offerType(),
primaryKey = javaType.primaryKey(),
primaryMongodbConnectionString = javaType.primaryMongodbConnectionString(),
primaryReadonlyKey = javaType.primaryReadonlyKey(),
primaryReadonlyMongodbConnectionString = javaType.primaryReadonlyMongodbConnectionString(),
primaryReadonlySqlConnectionString = javaType.primaryReadonlySqlConnectionString(),
primarySqlConnectionString = javaType.primarySqlConnectionString(),
readEndpoints = javaType.readEndpoints().map({ args0 -> args0 }),
resourceGroupName = javaType.resourceGroupName(),
secondaryKey = javaType.secondaryKey(),
secondaryMongodbConnectionString = javaType.secondaryMongodbConnectionString(),
secondaryReadonlyKey = javaType.secondaryReadonlyKey(),
secondaryReadonlyMongodbConnectionString = javaType.secondaryReadonlyMongodbConnectionString(),
secondaryReadonlySqlConnectionString = javaType.secondaryReadonlySqlConnectionString(),
secondarySqlConnectionString = javaType.secondarySqlConnectionString(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
virtualNetworkRules = javaType.virtualNetworkRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountVirtualNetworkRule.Companion.toKotlin(args0)
})
}),
writeEndpoints = javaType.writeEndpoints().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy