ThroughputPoolArgs

data class ThroughputPoolArgs(val location: Output<String>? = null, val maxThroughput: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val throughputPoolName: Output<String>? = null) : ConvertibleToJava<ThroughputPoolArgs>

An Azure Cosmos DB Throughputpool. Uses Azure REST API version 2023-11-15-preview. Other available API versions: 2024-02-15-preview, 2024-05-15-preview, 2024-09-01-preview, 2024-12-01-preview.

Example Usage

CosmosDB ThroughputPool Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var throughputPool = new AzureNative.DocumentDB.ThroughputPool("throughputPool", new()
{
Location = "westus2",
MaxThroughput = 10000,
ResourceGroupName = "rg1",
Tags = null,
ThroughputPoolName = "tp1",
});
});
package main
import (
documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := documentdb.NewThroughputPool(ctx, "throughputPool", &documentdb.ThroughputPoolArgs{
Location: pulumi.String("westus2"),
MaxThroughput: pulumi.Int(10000),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{},
ThroughputPoolName: pulumi.String("tp1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.ThroughputPool;
import com.pulumi.azurenative.documentdb.ThroughputPoolArgs;
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 throughputPool = new ThroughputPool("throughputPool", ThroughputPoolArgs.builder()
.location("westus2")
.maxThroughput(10000)
.resourceGroupName("rg1")
.tags()
.throughputPoolName("tp1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:documentdb:ThroughputPool tp1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, maxThroughput: Output<Int>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, throughputPoolName: Output<String>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val maxThroughput: Output<Int>? = null

Value for throughput to be shared among CosmosDB resources in the pool.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val throughputPoolName: Output<String>? = null

Cosmos DB Throughput Pool name.

Functions

Link copied to clipboard
open override fun toJava(): ThroughputPoolArgs