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

com.pulumi.cloudflare.kotlin.outputs.PagesProjectDeploymentConfigsPreview.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property alwaysUseLatestCompatibilityDate Use latest compatibility date for Pages Functions. Defaults to `false`.
 * @property compatibilityDate Compatibility date used for Pages Functions.
 * @property compatibilityFlags Compatibility flags used for Pages Functions.
 * @property d1Databases D1 Databases used for Pages Functions. Defaults to `map[]`.
 * @property durableObjectNamespaces Durable Object namespaces used for Pages Functions. Defaults to `map[]`.
 * @property environmentVariables Environment variables for Pages Functions. Defaults to `map[]`.
 * @property failOpen Fail open used for Pages Functions. Defaults to `false`.
 * @property kvNamespaces KV namespaces used for Pages Functions. Defaults to `map[]`.
 * @property placement Configuration for placement in the Cloudflare Pages project.
 * @property r2Buckets R2 Buckets used for Pages Functions. Defaults to `map[]`.
 * @property secrets Encrypted environment variables for Pages Functions. Defaults to `map[]`.
 * @property serviceBindings Services used for Pages Functions.
 * @property usageModel Usage model used for Pages Functions. Available values: `unbound`, `bundled`, `standard`. Defaults to `bundled`.
 */
public data class PagesProjectDeploymentConfigsPreview(
    public val alwaysUseLatestCompatibilityDate: Boolean? = null,
    public val compatibilityDate: String? = null,
    public val compatibilityFlags: List? = null,
    public val d1Databases: Map? = null,
    public val durableObjectNamespaces: Map? = null,
    public val environmentVariables: Map? = null,
    public val failOpen: Boolean? = null,
    public val kvNamespaces: Map? = null,
    public val placement: PagesProjectDeploymentConfigsPreviewPlacement? = null,
    public val r2Buckets: Map? = null,
    public val secrets: Map? = null,
    public val serviceBindings: List? = null,
    public val usageModel: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.PagesProjectDeploymentConfigsPreview): PagesProjectDeploymentConfigsPreview = PagesProjectDeploymentConfigsPreview(
            alwaysUseLatestCompatibilityDate = javaType.alwaysUseLatestCompatibilityDate().map({ args0 ->
                args0
            }).orElse(null),
            compatibilityDate = javaType.compatibilityDate().map({ args0 -> args0 }).orElse(null),
            compatibilityFlags = javaType.compatibilityFlags().map({ args0 -> args0 }),
            d1Databases = javaType.d1Databases().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            durableObjectNamespaces = javaType.durableObjectNamespaces().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            environmentVariables = javaType.environmentVariables().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            failOpen = javaType.failOpen().map({ args0 -> args0 }).orElse(null),
            kvNamespaces = javaType.kvNamespaces().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            placement = javaType.placement().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.PagesProjectDeploymentConfigsPreviewPlacement.Companion.toKotlin(args0)
                })
            }).orElse(null),
            r2Buckets = javaType.r2Buckets().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            secrets = javaType.secrets().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            serviceBindings = javaType.serviceBindings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.PagesProjectDeploymentConfigsPreviewServiceBinding.Companion.toKotlin(args0)
                })
            }),
            usageModel = javaType.usageModel().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy