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

com.pulumi.azure.cosmosdb.kotlin.PostgresqlClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cosmosdb.kotlin

import com.pulumi.azure.cosmosdb.PostgresqlClusterArgs.builder
import com.pulumi.azure.cosmosdb.kotlin.inputs.PostgresqlClusterMaintenanceWindowArgs
import com.pulumi.azure.cosmosdb.kotlin.inputs.PostgresqlClusterMaintenanceWindowArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure Cosmos DB for PostgreSQL Cluster.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const examplePostgresqlCluster = new azure.cosmosdb.PostgresqlCluster("example", {
 *     name: "example-cluster",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     administratorLoginPassword: "H@Sh1CoR3!",
 *     coordinatorStorageQuotaInMb: 131072,
 *     coordinatorVcoreCount: 2,
 *     nodeCount: 0,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_postgresql_cluster = azure.cosmosdb.PostgresqlCluster("example",
 *     name="example-cluster",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     administrator_login_password="H@Sh1CoR3!",
 *     coordinator_storage_quota_in_mb=131072,
 *     coordinator_vcore_count=2,
 *     node_count=0)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var examplePostgresqlCluster = new Azure.CosmosDB.PostgresqlCluster("example", new()
 *     {
 *         Name = "example-cluster",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AdministratorLoginPassword = "H@Sh1CoR3!",
 *         CoordinatorStorageQuotaInMb = 131072,
 *         CoordinatorVcoreCount = 2,
 *         NodeCount = 0,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = cosmosdb.NewPostgresqlCluster(ctx, "example", &cosmosdb.PostgresqlClusterArgs{
 * 			Name:                        pulumi.String("example-cluster"),
 * 			ResourceGroupName:           example.Name,
 * 			Location:                    example.Location,
 * 			AdministratorLoginPassword:  pulumi.String("H@Sh1CoR3!"),
 * 			CoordinatorStorageQuotaInMb: pulumi.Int(131072),
 * 			CoordinatorVcoreCount:       pulumi.Int(2),
 * 			NodeCount:                   pulumi.Int(0),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.cosmosdb.PostgresqlCluster;
 * import com.pulumi.azure.cosmosdb.PostgresqlClusterArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var examplePostgresqlCluster = new PostgresqlCluster("examplePostgresqlCluster", PostgresqlClusterArgs.builder()
 *             .name("example-cluster")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .administratorLoginPassword("H@Sh1CoR3!")
 *             .coordinatorStorageQuotaInMb(131072)
 *             .coordinatorVcoreCount(2)
 *             .nodeCount(0)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   examplePostgresqlCluster:
 *     type: azure:cosmosdb:PostgresqlCluster
 *     name: example
 *     properties:
 *       name: example-cluster
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       administratorLoginPassword: H@Sh1CoR3!
 *       coordinatorStorageQuotaInMb: 131072
 *       coordinatorVcoreCount: 2
 *       nodeCount: 0
 * ```
 * 
 * ## Import
 * Azure Cosmos DB for PostgreSQL Clusters can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:cosmosdb/postgresqlCluster:PostgresqlCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/cluster1
 * ```
 * @property administratorLoginPassword The password of the administrator login. This is required when `source_resource_id` is not set.
 * @property citusVersion The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `8.3`, `9.0`, `9.1`, `9.2`, `9.3`, `9.4`, `9.5`, `10.0`, `10.1`, `10.2`, `11.0`, `11.1`, `11.2`, `11.3` and `12.1`.
 * @property coordinatorPublicIpAccessEnabled Is public access enabled on coordinator? Defaults to `true`.
 * @property coordinatorServerEdition The edition of the coordinator server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `GeneralPurpose`.
 * @property coordinatorStorageQuotaInMb The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608`, `16777216`, and `33554432`.
 * > **NOTE:** More information on [the types of compute resources available for CosmosDB can be found in the product documentation](https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute)
 * @property coordinatorVcoreCount The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64` and `96`.
 * @property haEnabled Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to `false`.
 * @property location The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
 * @property maintenanceWindow A `maintenance_window` block as defined below.
 * @property name The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
 * @property nodeCount The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between `0` and `20` except `1`.
 * @property nodePublicIpAccessEnabled Is public access enabled on worker nodes. Defaults to `false`.
 * @property nodeServerEdition The edition of the node server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `MemoryOptimized`.
 * @property nodeStorageQuotaInMb The storage quota in MB on each worker node. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608` and `16777216`.
 * @property nodeVcores The vCores count on each worker node. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `96` and `104`.
 * @property pointInTimeInUtc The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
 * @property preferredPrimaryZone The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
 * @property resourceGroupName The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
 * @property shardsOnCoordinatorEnabled Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
 * @property sourceLocation The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
 * @property sourceResourceId The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
 * @property sqlVersion The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are `11`, `12`, `13`, `14`, `15` and `16`.
 * @property tags A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
 */
public data class PostgresqlClusterArgs(
    public val administratorLoginPassword: Output? = null,
    public val citusVersion: Output? = null,
    public val coordinatorPublicIpAccessEnabled: Output? = null,
    public val coordinatorServerEdition: Output? = null,
    public val coordinatorStorageQuotaInMb: Output? = null,
    public val coordinatorVcoreCount: Output? = null,
    public val haEnabled: Output? = null,
    public val location: Output? = null,
    public val maintenanceWindow: Output? = null,
    public val name: Output? = null,
    public val nodeCount: Output? = null,
    public val nodePublicIpAccessEnabled: Output? = null,
    public val nodeServerEdition: Output? = null,
    public val nodeStorageQuotaInMb: Output? = null,
    public val nodeVcores: Output? = null,
    public val pointInTimeInUtc: Output? = null,
    public val preferredPrimaryZone: Output? = null,
    public val resourceGroupName: Output? = null,
    public val shardsOnCoordinatorEnabled: Output? = null,
    public val sourceLocation: Output? = null,
    public val sourceResourceId: Output? = null,
    public val sqlVersion: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cosmosdb.PostgresqlClusterArgs =
        com.pulumi.azure.cosmosdb.PostgresqlClusterArgs.builder()
            .administratorLoginPassword(administratorLoginPassword?.applyValue({ args0 -> args0 }))
            .citusVersion(citusVersion?.applyValue({ args0 -> args0 }))
            .coordinatorPublicIpAccessEnabled(coordinatorPublicIpAccessEnabled?.applyValue({ args0 -> args0 }))
            .coordinatorServerEdition(coordinatorServerEdition?.applyValue({ args0 -> args0 }))
            .coordinatorStorageQuotaInMb(coordinatorStorageQuotaInMb?.applyValue({ args0 -> args0 }))
            .coordinatorVcoreCount(coordinatorVcoreCount?.applyValue({ args0 -> args0 }))
            .haEnabled(haEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .maintenanceWindow(maintenanceWindow?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .nodeCount(nodeCount?.applyValue({ args0 -> args0 }))
            .nodePublicIpAccessEnabled(nodePublicIpAccessEnabled?.applyValue({ args0 -> args0 }))
            .nodeServerEdition(nodeServerEdition?.applyValue({ args0 -> args0 }))
            .nodeStorageQuotaInMb(nodeStorageQuotaInMb?.applyValue({ args0 -> args0 }))
            .nodeVcores(nodeVcores?.applyValue({ args0 -> args0 }))
            .pointInTimeInUtc(pointInTimeInUtc?.applyValue({ args0 -> args0 }))
            .preferredPrimaryZone(preferredPrimaryZone?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .shardsOnCoordinatorEnabled(shardsOnCoordinatorEnabled?.applyValue({ args0 -> args0 }))
            .sourceLocation(sourceLocation?.applyValue({ args0 -> args0 }))
            .sourceResourceId(sourceResourceId?.applyValue({ args0 -> args0 }))
            .sqlVersion(sqlVersion?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [PostgresqlClusterArgs].
 */
@PulumiTagMarker
public class PostgresqlClusterArgsBuilder internal constructor() {
    private var administratorLoginPassword: Output? = null

    private var citusVersion: Output? = null

    private var coordinatorPublicIpAccessEnabled: Output? = null

    private var coordinatorServerEdition: Output? = null

    private var coordinatorStorageQuotaInMb: Output? = null

    private var coordinatorVcoreCount: Output? = null

    private var haEnabled: Output? = null

    private var location: Output? = null

    private var maintenanceWindow: Output? = null

    private var name: Output? = null

    private var nodeCount: Output? = null

    private var nodePublicIpAccessEnabled: Output? = null

    private var nodeServerEdition: Output? = null

    private var nodeStorageQuotaInMb: Output? = null

    private var nodeVcores: Output? = null

    private var pointInTimeInUtc: Output? = null

    private var preferredPrimaryZone: Output? = null

    private var resourceGroupName: Output? = null

    private var shardsOnCoordinatorEnabled: Output? = null

    private var sourceLocation: Output? = null

    private var sourceResourceId: Output? = null

    private var sqlVersion: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The password of the administrator login. This is required when `source_resource_id` is not set.
     */
    @JvmName("toufsgltsmcxeyec")
    public suspend fun administratorLoginPassword(`value`: Output) {
        this.administratorLoginPassword = value
    }

    /**
     * @param value The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `8.3`, `9.0`, `9.1`, `9.2`, `9.3`, `9.4`, `9.5`, `10.0`, `10.1`, `10.2`, `11.0`, `11.1`, `11.2`, `11.3` and `12.1`.
     */
    @JvmName("tnflhekkeslbnkxh")
    public suspend fun citusVersion(`value`: Output) {
        this.citusVersion = value
    }

    /**
     * @param value Is public access enabled on coordinator? Defaults to `true`.
     */
    @JvmName("igoblejihnhtgaec")
    public suspend fun coordinatorPublicIpAccessEnabled(`value`: Output) {
        this.coordinatorPublicIpAccessEnabled = value
    }

    /**
     * @param value The edition of the coordinator server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `GeneralPurpose`.
     */
    @JvmName("oqjwcgsqkitcnygp")
    public suspend fun coordinatorServerEdition(`value`: Output) {
        this.coordinatorServerEdition = value
    }

    /**
     * @param value The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608`, `16777216`, and `33554432`.
     * > **NOTE:** More information on [the types of compute resources available for CosmosDB can be found in the product documentation](https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute)
     */
    @JvmName("gabapgpeslmyotmc")
    public suspend fun coordinatorStorageQuotaInMb(`value`: Output) {
        this.coordinatorStorageQuotaInMb = value
    }

    /**
     * @param value The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64` and `96`.
     */
    @JvmName("ccjqwwtabusfuhas")
    public suspend fun coordinatorVcoreCount(`value`: Output) {
        this.coordinatorVcoreCount = value
    }

    /**
     * @param value Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to `false`.
     */
    @JvmName("lssknnoyowgciefk")
    public suspend fun haEnabled(`value`: Output) {
        this.haEnabled = value
    }

    /**
     * @param value The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("tbysrhqgtcdavkoq")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value A `maintenance_window` block as defined below.
     */
    @JvmName("ymyvclhiavmviqwk")
    public suspend fun maintenanceWindow(`value`: Output) {
        this.maintenanceWindow = value
    }

    /**
     * @param value The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("ldafirariywegevl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between `0` and `20` except `1`.
     */
    @JvmName("iqjnnbfiojiycqea")
    public suspend fun nodeCount(`value`: Output) {
        this.nodeCount = value
    }

    /**
     * @param value Is public access enabled on worker nodes. Defaults to `false`.
     */
    @JvmName("vcgkllrlhukfevtu")
    public suspend fun nodePublicIpAccessEnabled(`value`: Output) {
        this.nodePublicIpAccessEnabled = value
    }

    /**
     * @param value The edition of the node server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `MemoryOptimized`.
     */
    @JvmName("thsfqllqqgouvwtg")
    public suspend fun nodeServerEdition(`value`: Output) {
        this.nodeServerEdition = value
    }

    /**
     * @param value The storage quota in MB on each worker node. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608` and `16777216`.
     */
    @JvmName("pkleqcprlwykcbbn")
    public suspend fun nodeStorageQuotaInMb(`value`: Output) {
        this.nodeStorageQuotaInMb = value
    }

    /**
     * @param value The vCores count on each worker node. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `96` and `104`.
     */
    @JvmName("sdgxlwlnicriftgh")
    public suspend fun nodeVcores(`value`: Output) {
        this.nodeVcores = value
    }

    /**
     * @param value The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
     */
    @JvmName("eaxvfntkcsptksug")
    public suspend fun pointInTimeInUtc(`value`: Output) {
        this.pointInTimeInUtc = value
    }

    /**
     * @param value The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
     */
    @JvmName("ayshrpqmlblrievx")
    public suspend fun preferredPrimaryZone(`value`: Output) {
        this.preferredPrimaryZone = value
    }

    /**
     * @param value The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("ynspaqhdaqonhqik")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
     */
    @JvmName("nedwogiybslyomyj")
    public suspend fun shardsOnCoordinatorEnabled(`value`: Output) {
        this.shardsOnCoordinatorEnabled = value
    }

    /**
     * @param value The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
     */
    @JvmName("dwsujcudckntwhuq")
    public suspend fun sourceLocation(`value`: Output) {
        this.sourceLocation = value
    }

    /**
     * @param value The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
     */
    @JvmName("kjwowjivdehikeba")
    public suspend fun sourceResourceId(`value`: Output) {
        this.sourceResourceId = value
    }

    /**
     * @param value The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are `11`, `12`, `13`, `14`, `15` and `16`.
     */
    @JvmName("eaacmmbcvffqgmln")
    public suspend fun sqlVersion(`value`: Output) {
        this.sqlVersion = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
     */
    @JvmName("ruqfhteuxofesenw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The password of the administrator login. This is required when `source_resource_id` is not set.
     */
    @JvmName("fsacgrwguouicrgi")
    public suspend fun administratorLoginPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.administratorLoginPassword = mapped
    }

    /**
     * @param value The citus extension version on the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `8.3`, `9.0`, `9.1`, `9.2`, `9.3`, `9.4`, `9.5`, `10.0`, `10.1`, `10.2`, `11.0`, `11.1`, `11.2`, `11.3` and `12.1`.
     */
    @JvmName("phtbssedffdcyguh")
    public suspend fun citusVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.citusVersion = mapped
    }

    /**
     * @param value Is public access enabled on coordinator? Defaults to `true`.
     */
    @JvmName("htcyosmqtvrbmreh")
    public suspend fun coordinatorPublicIpAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coordinatorPublicIpAccessEnabled = mapped
    }

    /**
     * @param value The edition of the coordinator server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `GeneralPurpose`.
     */
    @JvmName("dqyemyvhchndibur")
    public suspend fun coordinatorServerEdition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coordinatorServerEdition = mapped
    }

    /**
     * @param value The coordinator storage allowed for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608`, `16777216`, and `33554432`.
     * > **NOTE:** More information on [the types of compute resources available for CosmosDB can be found in the product documentation](https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute)
     */
    @JvmName("mvgwpeysykgyprrl")
    public suspend fun coordinatorStorageQuotaInMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coordinatorStorageQuotaInMb = mapped
    }

    /**
     * @param value The coordinator vCore count for the Azure Cosmos DB for PostgreSQL Cluster. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64` and `96`.
     */
    @JvmName("aalbxcvjtmwsxoqg")
    public suspend fun coordinatorVcoreCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coordinatorVcoreCount = mapped
    }

    /**
     * @param value Is high availability enabled for the Azure Cosmos DB for PostgreSQL cluster? Defaults to `false`.
     */
    @JvmName("wduttmipdfryrxfy")
    public suspend fun haEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.haEnabled = mapped
    }

    /**
     * @param value The Azure Region where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("camlkmgwyfhnfwrj")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value A `maintenance_window` block as defined below.
     */
    @JvmName("aneffsokaqhutesd")
    public suspend fun maintenanceWindow(`value`: PostgresqlClusterMaintenanceWindowArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceWindow = mapped
    }

    /**
     * @param argument A `maintenance_window` block as defined below.
     */
    @JvmName("kxhjrdyeusdsxdpb")
    public suspend fun maintenanceWindow(argument: suspend PostgresqlClusterMaintenanceWindowArgsBuilder.() -> Unit) {
        val toBeMapped = PostgresqlClusterMaintenanceWindowArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.maintenanceWindow = mapped
    }

    /**
     * @param value The name which should be used for this Azure Cosmos DB for PostgreSQL Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("lkqaalmqiroferum")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The worker node count of the Azure Cosmos DB for PostgreSQL Cluster. Possible value is between `0` and `20` except `1`.
     */
    @JvmName("ktyesicyjedncebg")
    public suspend fun nodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeCount = mapped
    }

    /**
     * @param value Is public access enabled on worker nodes. Defaults to `false`.
     */
    @JvmName("dhosajgdjdovjhvg")
    public suspend fun nodePublicIpAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePublicIpAccessEnabled = mapped
    }

    /**
     * @param value The edition of the node server. Possible values are `BurstableGeneralPurpose`, `BurstableMemoryOptimized`, `GeneralPurpose` and `MemoryOptimized`. Defaults to `MemoryOptimized`.
     */
    @JvmName("hpbdjlgbpaangdir")
    public suspend fun nodeServerEdition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeServerEdition = mapped
    }

    /**
     * @param value The storage quota in MB on each worker node. Possible values are `32768`, `65536`, `131072`, `262144`, `524288`, `1048576`, `2097152`, `4194304`, `8388608` and `16777216`.
     */
    @JvmName("dyquvtywiosfgcoc")
    public suspend fun nodeStorageQuotaInMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeStorageQuotaInMb = mapped
    }

    /**
     * @param value The vCores count on each worker node. Possible values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `96` and `104`.
     */
    @JvmName("hwbmxemgqnbwxkkj")
    public suspend fun nodeVcores(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeVcores = mapped
    }

    /**
     * @param value The date and time in UTC (ISO8601 format) for the Azure Cosmos DB for PostgreSQL cluster restore. Changing this forces a new resource to be created.
     */
    @JvmName("uumfkkklkabksagl")
    public suspend fun pointInTimeInUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pointInTimeInUtc = mapped
    }

    /**
     * @param value The preferred primary availability zone for the Azure Cosmos DB for PostgreSQL cluster.
     */
    @JvmName("brplmueqowmmmxpy")
    public suspend fun preferredPrimaryZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredPrimaryZone = mapped
    }

    /**
     * @param value The name of the Resource Group where the Azure Cosmos DB for PostgreSQL Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("ocipntidgostrjua")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Is shards on coordinator enabled for the Azure Cosmos DB for PostgreSQL cluster.
     */
    @JvmName("tqiorgltkoiculhn")
    public suspend fun shardsOnCoordinatorEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.shardsOnCoordinatorEnabled = mapped
    }

    /**
     * @param value The Azure region of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
     */
    @JvmName("tieuqxfcjdmxujgk")
    public suspend fun sourceLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceLocation = mapped
    }

    /**
     * @param value The resource ID of the source Azure Cosmos DB for PostgreSQL cluster for read replica clusters. Changing this forces a new resource to be created.
     */
    @JvmName("fjqpdqesttgcfedb")
    public suspend fun sourceResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceResourceId = mapped
    }

    /**
     * @param value The major PostgreSQL version on the Azure Cosmos DB for PostgreSQL cluster. Possible values are `11`, `12`, `13`, `14`, `15` and `16`.
     */
    @JvmName("wvejimtmhvvurqnd")
    public suspend fun sqlVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlVersion = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
     */
    @JvmName("wvwowiowpvhxbeqj")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Azure Cosmos DB for PostgreSQL Cluster.
     */
    @JvmName("kiloqbcdfjwjxsfa")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PostgresqlClusterArgs = PostgresqlClusterArgs(
        administratorLoginPassword = administratorLoginPassword,
        citusVersion = citusVersion,
        coordinatorPublicIpAccessEnabled = coordinatorPublicIpAccessEnabled,
        coordinatorServerEdition = coordinatorServerEdition,
        coordinatorStorageQuotaInMb = coordinatorStorageQuotaInMb,
        coordinatorVcoreCount = coordinatorVcoreCount,
        haEnabled = haEnabled,
        location = location,
        maintenanceWindow = maintenanceWindow,
        name = name,
        nodeCount = nodeCount,
        nodePublicIpAccessEnabled = nodePublicIpAccessEnabled,
        nodeServerEdition = nodeServerEdition,
        nodeStorageQuotaInMb = nodeStorageQuotaInMb,
        nodeVcores = nodeVcores,
        pointInTimeInUtc = pointInTimeInUtc,
        preferredPrimaryZone = preferredPrimaryZone,
        resourceGroupName = resourceGroupName,
        shardsOnCoordinatorEnabled = shardsOnCoordinatorEnabled,
        sourceLocation = sourceLocation,
        sourceResourceId = sourceResourceId,
        sqlVersion = sqlVersion,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy