TableArgs

data class TableArgs(val accountName: Output<String>? = null, val autoscaleSettings: Output<TableAutoscaleSettingsArgs>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val throughput: Output<Int>? = null) : ConvertibleToJava<TableArgs>

Manages a Table within a Cosmos DB Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cosmosdb.CosmosdbFunctions;
import com.pulumi.azure.cosmosdb.inputs.GetAccountArgs;
import com.pulumi.azure.cosmosdb.Table;
import com.pulumi.azure.cosmosdb.TableArgs;
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) {
final var exampleAccount = CosmosdbFunctions.getAccount(GetAccountArgs.builder()
.name("tfex-cosmosdb-account")
.resourceGroupName("tfex-cosmosdb-account-rg")
.build());
var exampleTable = new Table("exampleTable", TableArgs.builder()
.resourceGroupName(exampleAccount.applyValue(getAccountResult -> getAccountResult.resourceGroupName()))
.accountName(exampleAccount.applyValue(getAccountResult -> getAccountResult.name()))
.throughput(400)
.build());
}
}

Import

CosmosDB Tables can be imported using the resource id, e.g.

$ pulumi import azure:cosmosdb/table:Table table1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/tables/table1

Constructors

Link copied to clipboard
fun TableArgs(accountName: Output<String>? = null, autoscaleSettings: Output<TableAutoscaleSettingsArgs>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, throughput: Output<Int>? = null)

Functions

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

Properties

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

The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.

Link copied to clipboard

An autoscale_settings block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.

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

Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.

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

The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.

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

The throughput of Table (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.