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.CassandraDatacenterArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a Cassandra Datacenter.
* > **NOTE:** In order for the `Azure Managed Instances for Apache Cassandra` to work properly the product requires the `Azure Cosmos DB` Application ID to be present and working in your tenant. If the `Azure Cosmos DB` Application ID is missing in your environment you will need to have an administrator of your tenant run the following command to add the `Azure Cosmos DB` Application ID to your tenant:
* ```powershell
* New-AzADServicePrincipal -ApplicationId a232010e-820c-4083-83bb-3ace5fc29d0b
* ```
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* import * as azuread from "@pulumi/azuread";
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
* name: "accexample-rg",
* location: "West Europe",
* });
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "example-vnet",
* location: exampleResourceGroup.location,
* resourceGroupName: exampleResourceGroup.name,
* addressSpaces: ["10.0.0.0/16"],
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "example-subnet",
* resourceGroupName: exampleResourceGroup.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.1.0/24"],
* });
* const example = azuread.getServicePrincipal({
* displayName: "Azure Cosmos DB",
* });
* const exampleAssignment = new azure.authorization.Assignment("example", {
* scope: exampleVirtualNetwork.id,
* roleDefinitionName: "Network Contributor",
* principalId: example.then(example => example.objectId),
* });
* const exampleCassandraCluster = new azure.cosmosdb.CassandraCluster("example", {
* name: "example-cluster",
* resourceGroupName: exampleResourceGroup.name,
* location: exampleResourceGroup.location,
* delegatedManagementSubnetId: exampleSubnet.id,
* defaultAdminPassword: "Password1234",
* }, {
* dependsOn: [exampleAssignment],
* });
* const exampleCassandraDatacenter = new azure.cosmosdb.CassandraDatacenter("example", {
* name: "example-datacenter",
* location: exampleCassandraCluster.location,
* cassandraClusterId: exampleCassandraCluster.id,
* delegatedManagementSubnetId: exampleSubnet.id,
* nodeCount: 3,
* diskCount: 4,
* skuName: "Standard_DS14_v2",
* availabilityZonesEnabled: false,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* import pulumi_azuread as azuread
* example_resource_group = azure.core.ResourceGroup("example",
* name="accexample-rg",
* location="West Europe")
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="example-vnet",
* location=example_resource_group.location,
* resource_group_name=example_resource_group.name,
* address_spaces=["10.0.0.0/16"])
* example_subnet = azure.network.Subnet("example",
* name="example-subnet",
* resource_group_name=example_resource_group.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.1.0/24"])
* example = azuread.get_service_principal(display_name="Azure Cosmos DB")
* example_assignment = azure.authorization.Assignment("example",
* scope=example_virtual_network.id,
* role_definition_name="Network Contributor",
* principal_id=example.object_id)
* example_cassandra_cluster = azure.cosmosdb.CassandraCluster("example",
* name="example-cluster",
* resource_group_name=example_resource_group.name,
* location=example_resource_group.location,
* delegated_management_subnet_id=example_subnet.id,
* default_admin_password="Password1234",
* opts = pulumi.ResourceOptions(depends_on=[example_assignment]))
* example_cassandra_datacenter = azure.cosmosdb.CassandraDatacenter("example",
* name="example-datacenter",
* location=example_cassandra_cluster.location,
* cassandra_cluster_id=example_cassandra_cluster.id,
* delegated_management_subnet_id=example_subnet.id,
* node_count=3,
* disk_count=4,
* sku_name="Standard_DS14_v2",
* availability_zones_enabled=False)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* using AzureAD = Pulumi.AzureAD;
* return await Deployment.RunAsync(() =>
* {
* var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "accexample-rg",
* Location = "West Europe",
* });
* var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "example-vnet",
* Location = exampleResourceGroup.Location,
* ResourceGroupName = exampleResourceGroup.Name,
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "example-subnet",
* ResourceGroupName = exampleResourceGroup.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.1.0/24",
* },
* });
* var example = AzureAD.GetServicePrincipal.Invoke(new()
* {
* DisplayName = "Azure Cosmos DB",
* });
* var exampleAssignment = new Azure.Authorization.Assignment("example", new()
* {
* Scope = exampleVirtualNetwork.Id,
* RoleDefinitionName = "Network Contributor",
* PrincipalId = example.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
* });
* var exampleCassandraCluster = new Azure.CosmosDB.CassandraCluster("example", new()
* {
* Name = "example-cluster",
* ResourceGroupName = exampleResourceGroup.Name,
* Location = exampleResourceGroup.Location,
* DelegatedManagementSubnetId = exampleSubnet.Id,
* DefaultAdminPassword = "Password1234",
* }, new CustomResourceOptions
* {
* DependsOn =
* {
* exampleAssignment,
* },
* });
* var exampleCassandraDatacenter = new Azure.CosmosDB.CassandraDatacenter("example", new()
* {
* Name = "example-datacenter",
* Location = exampleCassandraCluster.Location,
* CassandraClusterId = exampleCassandraCluster.Id,
* DelegatedManagementSubnetId = exampleSubnet.Id,
* NodeCount = 3,
* DiskCount = 4,
* SkuName = "Standard_DS14_v2",
* AvailabilityZonesEnabled = false,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
* "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("accexample-rg"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("example-vnet"),
* Location: exampleResourceGroup.Location,
* ResourceGroupName: exampleResourceGroup.Name,
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("example-subnet"),
* ResourceGroupName: exampleResourceGroup.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.1.0/24"),
* },
* })
* if err != nil {
* return err
* }
* example, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
* DisplayName: pulumi.StringRef("Azure Cosmos DB"),
* }, nil)
* if err != nil {
* return err
* }
* exampleAssignment, err := authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
* Scope: exampleVirtualNetwork.ID(),
* RoleDefinitionName: pulumi.String("Network Contributor"),
* PrincipalId: pulumi.String(example.ObjectId),
* })
* if err != nil {
* return err
* }
* exampleCassandraCluster, err := cosmosdb.NewCassandraCluster(ctx, "example", &cosmosdb.CassandraClusterArgs{
* Name: pulumi.String("example-cluster"),
* ResourceGroupName: exampleResourceGroup.Name,
* Location: exampleResourceGroup.Location,
* DelegatedManagementSubnetId: exampleSubnet.ID(),
* DefaultAdminPassword: pulumi.String("Password1234"),
* }, pulumi.DependsOn([]pulumi.Resource{
* exampleAssignment,
* }))
* if err != nil {
* return err
* }
* _, err = cosmosdb.NewCassandraDatacenter(ctx, "example", &cosmosdb.CassandraDatacenterArgs{
* Name: pulumi.String("example-datacenter"),
* Location: exampleCassandraCluster.Location,
* CassandraClusterId: exampleCassandraCluster.ID(),
* DelegatedManagementSubnetId: exampleSubnet.ID(),
* NodeCount: pulumi.Int(3),
* DiskCount: pulumi.Int(4),
* SkuName: pulumi.String("Standard_DS14_v2"),
* AvailabilityZonesEnabled: pulumi.Bool(false),
* })
* 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.network.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azuread.AzureadFunctions;
* import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
* import com.pulumi.azure.authorization.Assignment;
* import com.pulumi.azure.authorization.AssignmentArgs;
* import com.pulumi.azure.cosmosdb.CassandraCluster;
* import com.pulumi.azure.cosmosdb.CassandraClusterArgs;
* import com.pulumi.azure.cosmosdb.CassandraDatacenter;
* import com.pulumi.azure.cosmosdb.CassandraDatacenterArgs;
* import com.pulumi.resources.CustomResourceOptions;
* 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("accexample-rg")
* .location("West Europe")
* .build());
* var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("example-vnet")
* .location(exampleResourceGroup.location())
* .resourceGroupName(exampleResourceGroup.name())
* .addressSpaces("10.0.0.0/16")
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("example-subnet")
* .resourceGroupName(exampleResourceGroup.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.1.0/24")
* .build());
* final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
* .displayName("Azure Cosmos DB")
* .build());
* var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
* .scope(exampleVirtualNetwork.id())
* .roleDefinitionName("Network Contributor")
* .principalId(example.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
* .build());
* var exampleCassandraCluster = new CassandraCluster("exampleCassandraCluster", CassandraClusterArgs.builder()
* .name("example-cluster")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .delegatedManagementSubnetId(exampleSubnet.id())
* .defaultAdminPassword("Password1234")
* .build(), CustomResourceOptions.builder()
* .dependsOn(exampleAssignment)
* .build());
* var exampleCassandraDatacenter = new CassandraDatacenter("exampleCassandraDatacenter", CassandraDatacenterArgs.builder()
* .name("example-datacenter")
* .location(exampleCassandraCluster.location())
* .cassandraClusterId(exampleCassandraCluster.id())
* .delegatedManagementSubnetId(exampleSubnet.id())
* .nodeCount(3)
* .diskCount(4)
* .skuName("Standard_DS14_v2")
* .availabilityZonesEnabled(false)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* exampleResourceGroup:
* type: azure:core:ResourceGroup
* name: example
* properties:
* name: accexample-rg
* location: West Europe
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: example-vnet
* location: ${exampleResourceGroup.location}
* resourceGroupName: ${exampleResourceGroup.name}
* addressSpaces:
* - 10.0.0.0/16
* exampleSubnet:
* type: azure:network:Subnet
* name: example
* properties:
* name: example-subnet
* resourceGroupName: ${exampleResourceGroup.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.1.0/24
* exampleAssignment:
* type: azure:authorization:Assignment
* name: example
* properties:
* scope: ${exampleVirtualNetwork.id}
* roleDefinitionName: Network Contributor
* principalId: ${example.objectId}
* exampleCassandraCluster:
* type: azure:cosmosdb:CassandraCluster
* name: example
* properties:
* name: example-cluster
* resourceGroupName: ${exampleResourceGroup.name}
* location: ${exampleResourceGroup.location}
* delegatedManagementSubnetId: ${exampleSubnet.id}
* defaultAdminPassword: Password1234
* options:
* dependson:
* - ${exampleAssignment}
* exampleCassandraDatacenter:
* type: azure:cosmosdb:CassandraDatacenter
* name: example
* properties:
* name: example-datacenter
* location: ${exampleCassandraCluster.location}
* cassandraClusterId: ${exampleCassandraCluster.id}
* delegatedManagementSubnetId: ${exampleSubnet.id}
* nodeCount: 3
* diskCount: 4
* skuName: Standard_DS14_v2
* availabilityZonesEnabled: false
* variables:
* example:
* fn::invoke:
* Function: azuread:getServicePrincipal
* Arguments:
* displayName: Azure Cosmos DB
* ```
*
* ## Import
* Cassandra Datacenters can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:cosmosdb/cassandraDatacenter:CassandraDatacenter example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.DocumentDB/cassandraClusters/cluster1/dataCenters/dc1
* ```
* @property availabilityZonesEnabled Determines whether availability zones are enabled. Defaults to `true`.
* @property backupStorageCustomerKeyUri The key URI of the customer key to use for the encryption of the backup Storage Account.
* @property base64EncodedYamlFragment The fragment of the cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this Cassandra Datacenter. The fragment should be Base64 encoded and only a subset of keys is allowed.
* @property cassandraClusterId The ID of the Cassandra Cluster. Changing this forces a new Cassandra Datacenter to be created.
* @property delegatedManagementSubnetId The ID of the delegated management subnet for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
* @property diskCount Determines the number of p30 disks that are attached to each node.
* @property diskSku The Disk SKU that is used for this Cassandra Datacenter. Defaults to `P30`.
* @property location The Azure Region where the Cassandra Datacenter should exist. Changing this forces a new Cassandra Datacenter to be created.
* @property managedDiskCustomerKeyUri The key URI of the customer key to use for the encryption of the Managed Disk.
* @property name The name which should be used for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
* @property nodeCount The number of nodes the Cassandra Datacenter should have. The number should be equal or greater than `3`. Defaults to `3`.
* @property skuName Determines the selected sku.
* > **NOTE:** In v4.0 of the provider the `sku_name` will have a default value of `Standard_E16s_v5`.
*/
public data class CassandraDatacenterArgs(
public val availabilityZonesEnabled: Output? = null,
public val backupStorageCustomerKeyUri: Output? = null,
public val base64EncodedYamlFragment: Output? = null,
public val cassandraClusterId: Output? = null,
public val delegatedManagementSubnetId: Output? = null,
public val diskCount: Output? = null,
public val diskSku: Output? = null,
public val location: Output? = null,
public val managedDiskCustomerKeyUri: Output? = null,
public val name: Output? = null,
public val nodeCount: Output? = null,
public val skuName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cosmosdb.CassandraDatacenterArgs =
com.pulumi.azure.cosmosdb.CassandraDatacenterArgs.builder()
.availabilityZonesEnabled(availabilityZonesEnabled?.applyValue({ args0 -> args0 }))
.backupStorageCustomerKeyUri(backupStorageCustomerKeyUri?.applyValue({ args0 -> args0 }))
.base64EncodedYamlFragment(base64EncodedYamlFragment?.applyValue({ args0 -> args0 }))
.cassandraClusterId(cassandraClusterId?.applyValue({ args0 -> args0 }))
.delegatedManagementSubnetId(delegatedManagementSubnetId?.applyValue({ args0 -> args0 }))
.diskCount(diskCount?.applyValue({ args0 -> args0 }))
.diskSku(diskSku?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.managedDiskCustomerKeyUri(managedDiskCustomerKeyUri?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.nodeCount(nodeCount?.applyValue({ args0 -> args0 }))
.skuName(skuName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CassandraDatacenterArgs].
*/
@PulumiTagMarker
public class CassandraDatacenterArgsBuilder internal constructor() {
private var availabilityZonesEnabled: Output? = null
private var backupStorageCustomerKeyUri: Output? = null
private var base64EncodedYamlFragment: Output? = null
private var cassandraClusterId: Output? = null
private var delegatedManagementSubnetId: Output? = null
private var diskCount: Output? = null
private var diskSku: Output? = null
private var location: Output? = null
private var managedDiskCustomerKeyUri: Output? = null
private var name: Output? = null
private var nodeCount: Output? = null
private var skuName: Output? = null
/**
* @param value Determines whether availability zones are enabled. Defaults to `true`.
*/
@JvmName("vtdrnufeneaotbur")
public suspend fun availabilityZonesEnabled(`value`: Output) {
this.availabilityZonesEnabled = value
}
/**
* @param value The key URI of the customer key to use for the encryption of the backup Storage Account.
*/
@JvmName("nkbpovbxrgyabexh")
public suspend fun backupStorageCustomerKeyUri(`value`: Output) {
this.backupStorageCustomerKeyUri = value
}
/**
* @param value The fragment of the cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this Cassandra Datacenter. The fragment should be Base64 encoded and only a subset of keys is allowed.
*/
@JvmName("fwxqebjirvciucmv")
public suspend fun base64EncodedYamlFragment(`value`: Output) {
this.base64EncodedYamlFragment = value
}
/**
* @param value The ID of the Cassandra Cluster. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("djhsccolbhksexnw")
public suspend fun cassandraClusterId(`value`: Output) {
this.cassandraClusterId = value
}
/**
* @param value The ID of the delegated management subnet for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("mivusosuodulimum")
public suspend fun delegatedManagementSubnetId(`value`: Output) {
this.delegatedManagementSubnetId = value
}
/**
* @param value Determines the number of p30 disks that are attached to each node.
*/
@JvmName("bpqlfxnrocwdfxvk")
public suspend fun diskCount(`value`: Output) {
this.diskCount = value
}
/**
* @param value The Disk SKU that is used for this Cassandra Datacenter. Defaults to `P30`.
*/
@JvmName("cvixxqjjxqbtqmvl")
public suspend fun diskSku(`value`: Output) {
this.diskSku = value
}
/**
* @param value The Azure Region where the Cassandra Datacenter should exist. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("nlujvgevdqplujrm")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The key URI of the customer key to use for the encryption of the Managed Disk.
*/
@JvmName("qgnqaovbwegfyfeu")
public suspend fun managedDiskCustomerKeyUri(`value`: Output) {
this.managedDiskCustomerKeyUri = value
}
/**
* @param value The name which should be used for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("nsbgprcqrqqbstey")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The number of nodes the Cassandra Datacenter should have. The number should be equal or greater than `3`. Defaults to `3`.
*/
@JvmName("ruwtybsddobnlgru")
public suspend fun nodeCount(`value`: Output) {
this.nodeCount = value
}
/**
* @param value Determines the selected sku.
* > **NOTE:** In v4.0 of the provider the `sku_name` will have a default value of `Standard_E16s_v5`.
*/
@JvmName("ploppojsjotgodjo")
public suspend fun skuName(`value`: Output) {
this.skuName = value
}
/**
* @param value Determines whether availability zones are enabled. Defaults to `true`.
*/
@JvmName("vubrcpgcyxletfkg")
public suspend fun availabilityZonesEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.availabilityZonesEnabled = mapped
}
/**
* @param value The key URI of the customer key to use for the encryption of the backup Storage Account.
*/
@JvmName("nkrrevnqroqsgmno")
public suspend fun backupStorageCustomerKeyUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupStorageCustomerKeyUri = mapped
}
/**
* @param value The fragment of the cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this Cassandra Datacenter. The fragment should be Base64 encoded and only a subset of keys is allowed.
*/
@JvmName("mhoieohphgjfatto")
public suspend fun base64EncodedYamlFragment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.base64EncodedYamlFragment = mapped
}
/**
* @param value The ID of the Cassandra Cluster. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("miqgglgeepptpcsl")
public suspend fun cassandraClusterId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cassandraClusterId = mapped
}
/**
* @param value The ID of the delegated management subnet for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("ciewqeogpnlghlfo")
public suspend fun delegatedManagementSubnetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.delegatedManagementSubnetId = mapped
}
/**
* @param value Determines the number of p30 disks that are attached to each node.
*/
@JvmName("kxhbycchxtlgnsvp")
public suspend fun diskCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskCount = mapped
}
/**
* @param value The Disk SKU that is used for this Cassandra Datacenter. Defaults to `P30`.
*/
@JvmName("msgsjkctotthghgb")
public suspend fun diskSku(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskSku = mapped
}
/**
* @param value The Azure Region where the Cassandra Datacenter should exist. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("akhmmvwcbkrhequl")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The key URI of the customer key to use for the encryption of the Managed Disk.
*/
@JvmName("uodriyfrndfxpgsh")
public suspend fun managedDiskCustomerKeyUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedDiskCustomerKeyUri = mapped
}
/**
* @param value The name which should be used for this Cassandra Datacenter. Changing this forces a new Cassandra Datacenter to be created.
*/
@JvmName("ekykgqsgrigrsyhe")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The number of nodes the Cassandra Datacenter should have. The number should be equal or greater than `3`. Defaults to `3`.
*/
@JvmName("awhqktevktsjtegf")
public suspend fun nodeCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodeCount = mapped
}
/**
* @param value Determines the selected sku.
* > **NOTE:** In v4.0 of the provider the `sku_name` will have a default value of `Standard_E16s_v5`.
*/
@JvmName("ciqxpicchuflgpuq")
public suspend fun skuName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skuName = mapped
}
internal fun build(): CassandraDatacenterArgs = CassandraDatacenterArgs(
availabilityZonesEnabled = availabilityZonesEnabled,
backupStorageCustomerKeyUri = backupStorageCustomerKeyUri,
base64EncodedYamlFragment = base64EncodedYamlFragment,
cassandraClusterId = cassandraClusterId,
delegatedManagementSubnetId = delegatedManagementSubnetId,
diskCount = diskCount,
diskSku = diskSku,
location = location,
managedDiskCustomerKeyUri = managedDiskCustomerKeyUri,
name = name,
nodeCount = nodeCount,
skuName = skuName,
)
}