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

com.pulumi.azure.cosmosdb.kotlin.outputs.SqlContainerIndexingPolicy.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.14.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 compositeIndices One or more `composite_index` blocks as defined below.
 * @property excludedPaths One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
 * @property includedPaths One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
 * @property indexingMode Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
 * @property spatialIndices One or more `spatial_index` blocks as defined below.
 * */*/
 */
public data class SqlContainerIndexingPolicy(
    public val compositeIndices: List? = null,
    public val excludedPaths: List? = null,
    public val includedPaths: List? = null,
    public val indexingMode: String? = null,
    public val spatialIndices: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicy):
            SqlContainerIndexingPolicy = SqlContainerIndexingPolicy(
            compositeIndices = javaType.compositeIndices().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.SqlContainerIndexingPolicyCompositeIndex.Companion.toKotlin(args0)
                })
            }),
            excludedPaths = javaType.excludedPaths().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.SqlContainerIndexingPolicyExcludedPath.Companion.toKotlin(args0)
                })
            }),
            includedPaths = javaType.includedPaths().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.SqlContainerIndexingPolicyIncludedPath.Companion.toKotlin(args0)
                })
            }),
            indexingMode = javaType.indexingMode().map({ args0 -> args0 }).orElse(null),
            spatialIndices = javaType.spatialIndices().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.SqlContainerIndexingPolicySpatialIndex.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy