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.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.cosmosdb;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.cosmosdb.TableArgs;
import com.pulumi.azure.cosmosdb.inputs.TableState;
import com.pulumi.azure.cosmosdb.outputs.TableAutoscaleSettings;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Table within a Cosmos DB Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* CosmosDB Tables can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:cosmosdb/table:Table table1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/tables/table1
* ```
*
*/
@ResourceType(type="azure:cosmosdb/table:Table")
public class Table extends com.pulumi.resources.CustomResource {
/**
* The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.
*
*/
@Export(name="accountName", refs={String.class}, tree="[0]")
private Output accountName;
/**
* @return The name of the Cosmos DB Table to create the table within. Changing this forces a new resource to be created.
*
*/
public Output accountName() {
return this.accountName;
}
/**
* An `autoscale_settings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
*
* > **Note:** Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.
*
*/
@Export(name="autoscaleSettings", refs={TableAutoscaleSettings.class}, tree="[0]")
private Output* @Nullable */ TableAutoscaleSettings> autoscaleSettings;
/**
* @return An `autoscale_settings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.
*
* > **Note:** Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.
*
*/
public Output> autoscaleSettings() {
return Codegen.optional(this.autoscaleSettings);
}
/**
* Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specifies the name of the Cosmos DB Table. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the resource group in which the Cosmos DB Table is created. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* 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.
*
* > **Note:** throughput has a maximum value of `1000000` unless a higher limit is requested via Azure Support
*
*/
@Export(name="throughput", refs={Integer.class}, tree="[0]")
private Output throughput;
/**
* @return 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.
*
* > **Note:** throughput has a maximum value of `1000000` unless a higher limit is requested via Azure Support
*
*/
public Output throughput() {
return this.throughput;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Table(java.lang.String name) {
this(name, TableArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Table(java.lang.String name, TableArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Table(java.lang.String name, TableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:cosmosdb/table:Table", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Table(java.lang.String name, Output id, @Nullable TableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:cosmosdb/table:Table", name, state, makeResourceOptions(options, id), false);
}
private static TableArgs makeArgs(TableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? TableArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Table get(java.lang.String name, Output id, @Nullable TableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Table(name, id, state, options);
}
}