Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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