SqlDedicatedGatewayArgs

data class SqlDedicatedGatewayArgs(val cosmosdbAccountId: Output<String>? = null, val instanceCount: Output<Int>? = null, val instanceSize: Output<String>? = null) : ConvertibleToJava<SqlDedicatedGatewayArgs>

Manages a SQL Dedicated Gateway 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.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cosmosdb.Account;
import com.pulumi.azure.cosmosdb.AccountArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountConsistencyPolicyArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountGeoLocationArgs;
import com.pulumi.azure.cosmosdb.SqlDedicatedGateway;
import com.pulumi.azure.cosmosdb.SqlDedicatedGatewayArgs;
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()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.offerType("Standard")
.kind("GlobalDocumentDB")
.consistencyPolicy(AccountConsistencyPolicyArgs.builder()
.consistencyLevel("BoundedStaleness")
.build())
.geoLocations(AccountGeoLocationArgs.builder()
.location(exampleResourceGroup.location())
.failoverPriority(0)
.build())
.build());
var exampleSqlDedicatedGateway = new SqlDedicatedGateway("exampleSqlDedicatedGateway", SqlDedicatedGatewayArgs.builder()
.cosmosdbAccountId(exampleAccount.id())
.instanceCount(1)
.instanceSize("Cosmos.D4s")
.build());
}
}

Import

CosmosDB SQL Dedicated Gateways can be imported using the resource id, e.g.

$ pulumi import azure:cosmosdb/sqlDedicatedGateway:SqlDedicatedGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.DocumentDB/databaseAccounts/account1/services/SqlDedicatedGateway

Constructors

Link copied to clipboard
fun SqlDedicatedGatewayArgs(cosmosdbAccountId: Output<String>? = null, instanceCount: Output<Int>? = null, instanceSize: Output<String>? = null)

Functions

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

Properties

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

The resource ID of the CosmosDB Account. Changing this forces a new resource to be created.

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

The instance count for the CosmosDB SQL Dedicated Gateway. Possible value is between 1 and 5.

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

The instance size for the CosmosDB SQL Dedicated Gateway. Changing this forces a new resource to be created. Possible values are Cosmos.D4s, Cosmos.D8s and Cosmos.D16s.