1. Packages
  2. Azure Classic
  3. API Docs
  4. cosmosdb
  5. SqlContainer

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.cosmosdb.SqlContainer

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Manages a SQL Container within a Cosmos DB Account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.cosmosdb.getAccount({
        name: "tfex-cosmosdb-account",
        resourceGroupName: "tfex-cosmosdb-account-rg",
    });
    const exampleSqlDatabase = new azure.cosmosdb.SqlDatabase("example", {
        name: "example-acsd",
        resourceGroupName: example.then(example => example.resourceGroupName),
        accountName: example.then(example => example.name),
    });
    const exampleSqlContainer = new azure.cosmosdb.SqlContainer("example", {
        name: "example-container",
        resourceGroupName: example.then(example => example.resourceGroupName),
        accountName: example.then(example => example.name),
        databaseName: exampleSqlDatabase.name,
        partitionKeyPath: "/definition/id",
        partitionKeyVersion: 1,
        throughput: 400,
        indexingPolicy: {
            indexingMode: "consistent",
            includedPaths: [
                {
                    path: "/*",
                },
                {
                    path: "/included/?",
                },
            ],
            excludedPaths: [{
                path: "/excluded/?",
            }],
        },
        uniqueKeys: [{
            paths: [
                "/definition/idlong",
                "/definition/idshort",
            ],
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.cosmosdb.get_account(name="tfex-cosmosdb-account",
        resource_group_name="tfex-cosmosdb-account-rg")
    example_sql_database = azure.cosmosdb.SqlDatabase("example",
        name="example-acsd",
        resource_group_name=example.resource_group_name,
        account_name=example.name)
    example_sql_container = azure.cosmosdb.SqlContainer("example",
        name="example-container",
        resource_group_name=example.resource_group_name,
        account_name=example.name,
        database_name=example_sql_database.name,
        partition_key_path="/definition/id",
        partition_key_version=1,
        throughput=400,
        indexing_policy=azure.cosmosdb.SqlContainerIndexingPolicyArgs(
            indexing_mode="consistent",
            included_paths=[
                azure.cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs(
                    path="/*",
                ),
                azure.cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs(
                    path="/included/?",
                ),
            ],
            excluded_paths=[azure.cosmosdb.SqlContainerIndexingPolicyExcludedPathArgs(
                path="/excluded/?",
            )],
        ),
        unique_keys=[azure.cosmosdb.SqlContainerUniqueKeyArgs(
            paths=[
                "/definition/idlong",
                "/definition/idshort",
            ],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
    			Name:              "tfex-cosmosdb-account",
    			ResourceGroupName: "tfex-cosmosdb-account-rg",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "example", &cosmosdb.SqlDatabaseArgs{
    			Name:              pulumi.String("example-acsd"),
    			ResourceGroupName: pulumi.String(example.ResourceGroupName),
    			AccountName:       pulumi.String(example.Name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{
    			Name:                pulumi.String("example-container"),
    			ResourceGroupName:   pulumi.String(example.ResourceGroupName),
    			AccountName:         pulumi.String(example.Name),
    			DatabaseName:        exampleSqlDatabase.Name,
    			PartitionKeyPath:    pulumi.String("/definition/id"),
    			PartitionKeyVersion: pulumi.Int(1),
    			Throughput:          pulumi.Int(400),
    			IndexingPolicy: &cosmosdb.SqlContainerIndexingPolicyArgs{
    				IndexingMode: pulumi.String("consistent"),
    				IncludedPaths: cosmosdb.SqlContainerIndexingPolicyIncludedPathArray{
    					&cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs{
    						Path: pulumi.String("/*"),
    					},
    					&cosmosdb.SqlContainerIndexingPolicyIncludedPathArgs{
    						Path: pulumi.String("/included/?"),
    					},
    				},
    				ExcludedPaths: cosmosdb.SqlContainerIndexingPolicyExcludedPathArray{
    					&cosmosdb.SqlContainerIndexingPolicyExcludedPathArgs{
    						Path: pulumi.String("/excluded/?"),
    					},
    				},
    			},
    			UniqueKeys: cosmosdb.SqlContainerUniqueKeyArray{
    				&cosmosdb.SqlContainerUniqueKeyArgs{
    					Paths: pulumi.StringArray{
    						pulumi.String("/definition/idlong"),
    						pulumi.String("/definition/idshort"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.CosmosDB.GetAccount.Invoke(new()
        {
            Name = "tfex-cosmosdb-account",
            ResourceGroupName = "tfex-cosmosdb-account-rg",
        });
    
        var exampleSqlDatabase = new Azure.CosmosDB.SqlDatabase("example", new()
        {
            Name = "example-acsd",
            ResourceGroupName = example.Apply(getAccountResult => getAccountResult.ResourceGroupName),
            AccountName = example.Apply(getAccountResult => getAccountResult.Name),
        });
    
        var exampleSqlContainer = new Azure.CosmosDB.SqlContainer("example", new()
        {
            Name = "example-container",
            ResourceGroupName = example.Apply(getAccountResult => getAccountResult.ResourceGroupName),
            AccountName = example.Apply(getAccountResult => getAccountResult.Name),
            DatabaseName = exampleSqlDatabase.Name,
            PartitionKeyPath = "/definition/id",
            PartitionKeyVersion = 1,
            Throughput = 400,
            IndexingPolicy = new Azure.CosmosDB.Inputs.SqlContainerIndexingPolicyArgs
            {
                IndexingMode = "consistent",
                IncludedPaths = new[]
                {
                    new Azure.CosmosDB.Inputs.SqlContainerIndexingPolicyIncludedPathArgs
                    {
                        Path = "/*",
                    },
                    new Azure.CosmosDB.Inputs.SqlContainerIndexingPolicyIncludedPathArgs
                    {
                        Path = "/included/?",
                    },
                },
                ExcludedPaths = new[]
                {
                    new Azure.CosmosDB.Inputs.SqlContainerIndexingPolicyExcludedPathArgs
                    {
                        Path = "/excluded/?",
                    },
                },
            },
            UniqueKeys = new[]
            {
                new Azure.CosmosDB.Inputs.SqlContainerUniqueKeyArgs
                {
                    Paths = new[]
                    {
                        "/definition/idlong",
                        "/definition/idshort",
                    },
                },
            },
        });
    
    });
    
    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.SqlDatabase;
    import com.pulumi.azure.cosmosdb.SqlDatabaseArgs;
    import com.pulumi.azure.cosmosdb.SqlContainer;
    import com.pulumi.azure.cosmosdb.SqlContainerArgs;
    import com.pulumi.azure.cosmosdb.inputs.SqlContainerIndexingPolicyArgs;
    import com.pulumi.azure.cosmosdb.inputs.SqlContainerUniqueKeyArgs;
    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 example = CosmosdbFunctions.getAccount(GetAccountArgs.builder()
                .name("tfex-cosmosdb-account")
                .resourceGroupName("tfex-cosmosdb-account-rg")
                .build());
    
            var exampleSqlDatabase = new SqlDatabase("exampleSqlDatabase", SqlDatabaseArgs.builder()        
                .name("example-acsd")
                .resourceGroupName(example.applyValue(getAccountResult -> getAccountResult.resourceGroupName()))
                .accountName(example.applyValue(getAccountResult -> getAccountResult.name()))
                .build());
    
            var exampleSqlContainer = new SqlContainer("exampleSqlContainer", SqlContainerArgs.builder()        
                .name("example-container")
                .resourceGroupName(example.applyValue(getAccountResult -> getAccountResult.resourceGroupName()))
                .accountName(example.applyValue(getAccountResult -> getAccountResult.name()))
                .databaseName(exampleSqlDatabase.name())
                .partitionKeyPath("/definition/id")
                .partitionKeyVersion(1)
                .throughput(400)
                .indexingPolicy(SqlContainerIndexingPolicyArgs.builder()
                    .indexingMode("consistent")
                    .includedPaths(                
                        SqlContainerIndexingPolicyIncludedPathArgs.builder()
                            .path("/*")
                            .build(),
                        SqlContainerIndexingPolicyIncludedPathArgs.builder()
                            .path("/included/?")
                            .build())
                    .excludedPaths(SqlContainerIndexingPolicyExcludedPathArgs.builder()
                        .path("/excluded/?")
                        .build())
                    .build())
                .uniqueKeys(SqlContainerUniqueKeyArgs.builder()
                    .paths(                
                        "/definition/idlong",
                        "/definition/idshort")
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleSqlDatabase:
        type: azure:cosmosdb:SqlDatabase
        name: example
        properties:
          name: example-acsd
          resourceGroupName: ${example.resourceGroupName}
          accountName: ${example.name}
      exampleSqlContainer:
        type: azure:cosmosdb:SqlContainer
        name: example
        properties:
          name: example-container
          resourceGroupName: ${example.resourceGroupName}
          accountName: ${example.name}
          databaseName: ${exampleSqlDatabase.name}
          partitionKeyPath: /definition/id
          partitionKeyVersion: 1
          throughput: 400
          indexingPolicy:
            indexingMode: consistent
            includedPaths:
              - path: /*
              - path: /included/?
            excludedPaths:
              - path: /excluded/?
          uniqueKeys:
            - paths:
                - /definition/idlong
                - /definition/idshort
    variables:
      example:
        fn::invoke:
          Function: azure:cosmosdb:getAccount
          Arguments:
            name: tfex-cosmosdb-account
            resourceGroupName: tfex-cosmosdb-account-rg
    

    Create SqlContainer Resource

    new SqlContainer(name: string, args: SqlContainerArgs, opts?: CustomResourceOptions);
    @overload
    def SqlContainer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_name: Optional[str] = None,
                     analytical_storage_ttl: Optional[int] = None,
                     autoscale_settings: Optional[SqlContainerAutoscaleSettingsArgs] = None,
                     conflict_resolution_policy: Optional[SqlContainerConflictResolutionPolicyArgs] = None,
                     database_name: Optional[str] = None,
                     default_ttl: Optional[int] = None,
                     indexing_policy: Optional[SqlContainerIndexingPolicyArgs] = None,
                     name: Optional[str] = None,
                     partition_key_path: Optional[str] = None,
                     partition_key_version: Optional[int] = None,
                     resource_group_name: Optional[str] = None,
                     throughput: Optional[int] = None,
                     unique_keys: Optional[Sequence[SqlContainerUniqueKeyArgs]] = None)
    @overload
    def SqlContainer(resource_name: str,
                     args: SqlContainerArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewSqlContainer(ctx *Context, name string, args SqlContainerArgs, opts ...ResourceOption) (*SqlContainer, error)
    public SqlContainer(string name, SqlContainerArgs args, CustomResourceOptions? opts = null)
    public SqlContainer(String name, SqlContainerArgs args)
    public SqlContainer(String name, SqlContainerArgs args, CustomResourceOptions options)
    
    type: azure:cosmosdb:SqlContainer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SqlContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SqlContainerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SqlContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlContainerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SqlContainer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SqlContainer resource accepts the following input properties:

    AccountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    DatabaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    PartitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    AnalyticalStorageTtl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    AutoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    ConflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    DefaultTtl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    IndexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    Name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    PartitionKeyVersion int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    Throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    UniqueKeys List<SqlContainerUniqueKey>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    AccountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    DatabaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    PartitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    AnalyticalStorageTtl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    AutoscaleSettings SqlContainerAutoscaleSettingsArgs

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    ConflictResolutionPolicy SqlContainerConflictResolutionPolicyArgs
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    DefaultTtl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    IndexingPolicy SqlContainerIndexingPolicyArgs
    An indexing_policy block as defined below.
    Name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    PartitionKeyVersion int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    Throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    UniqueKeys []SqlContainerUniqueKeyArgs
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName String
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    databaseName String
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    partitionKeyPath String
    Define a partition key. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    analyticalStorageTtl Integer
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    defaultTtl Integer
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    name String
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyVersion Integer
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    throughput Integer
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys List<SqlContainerUniqueKey>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    databaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    partitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    analyticalStorageTtl number
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    defaultTtl number
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyVersion number
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    throughput number
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys SqlContainerUniqueKey[]
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    account_name str
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    database_name str
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    partition_key_path str
    Define a partition key. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    analytical_storage_ttl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscale_settings SqlContainerAutoscaleSettingsArgs

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflict_resolution_policy SqlContainerConflictResolutionPolicyArgs
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    default_ttl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexing_policy SqlContainerIndexingPolicyArgs
    An indexing_policy block as defined below.
    name str
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partition_key_version int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    unique_keys Sequence[SqlContainerUniqueKeyArgs]
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName String
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    databaseName String
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    partitionKeyPath String
    Define a partition key. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    analyticalStorageTtl Number
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings Property Map

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy Property Map
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    defaultTtl Number
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy Property Map
    An indexing_policy block as defined below.
    name String
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyVersion Number
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    throughput Number
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys List<Property Map>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SqlContainer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SqlContainer Resource

    Get an existing SqlContainer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SqlContainerState, opts?: CustomResourceOptions): SqlContainer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            analytical_storage_ttl: Optional[int] = None,
            autoscale_settings: Optional[SqlContainerAutoscaleSettingsArgs] = None,
            conflict_resolution_policy: Optional[SqlContainerConflictResolutionPolicyArgs] = None,
            database_name: Optional[str] = None,
            default_ttl: Optional[int] = None,
            indexing_policy: Optional[SqlContainerIndexingPolicyArgs] = None,
            name: Optional[str] = None,
            partition_key_path: Optional[str] = None,
            partition_key_version: Optional[int] = None,
            resource_group_name: Optional[str] = None,
            throughput: Optional[int] = None,
            unique_keys: Optional[Sequence[SqlContainerUniqueKeyArgs]] = None) -> SqlContainer
    func GetSqlContainer(ctx *Context, name string, id IDInput, state *SqlContainerState, opts ...ResourceOption) (*SqlContainer, error)
    public static SqlContainer Get(string name, Input<string> id, SqlContainerState? state, CustomResourceOptions? opts = null)
    public static SqlContainer get(String name, Output<String> id, SqlContainerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    AnalyticalStorageTtl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    AutoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    ConflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    DatabaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    DefaultTtl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    IndexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    Name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    PartitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    PartitionKeyVersion int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    ResourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    Throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    UniqueKeys List<SqlContainerUniqueKey>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    AccountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    AnalyticalStorageTtl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    AutoscaleSettings SqlContainerAutoscaleSettingsArgs

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    ConflictResolutionPolicy SqlContainerConflictResolutionPolicyArgs
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    DatabaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    DefaultTtl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    IndexingPolicy SqlContainerIndexingPolicyArgs
    An indexing_policy block as defined below.
    Name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    PartitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    PartitionKeyVersion int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    ResourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    Throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    UniqueKeys []SqlContainerUniqueKeyArgs
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName String
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    analyticalStorageTtl Integer
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    databaseName String
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    defaultTtl Integer
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    name String
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyPath String
    Define a partition key. Changing this forces a new resource to be created.
    partitionKeyVersion Integer
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    resourceGroupName String
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    throughput Integer
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys List<SqlContainerUniqueKey>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName string
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    analyticalStorageTtl number
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings SqlContainerAutoscaleSettings

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy SqlContainerConflictResolutionPolicy
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    databaseName string
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    defaultTtl number
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy SqlContainerIndexingPolicy
    An indexing_policy block as defined below.
    name string
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyPath string
    Define a partition key. Changing this forces a new resource to be created.
    partitionKeyVersion number
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    resourceGroupName string
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    throughput number
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys SqlContainerUniqueKey[]
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    account_name str
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    analytical_storage_ttl int
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscale_settings SqlContainerAutoscaleSettingsArgs

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflict_resolution_policy SqlContainerConflictResolutionPolicyArgs
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    database_name str
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    default_ttl int
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexing_policy SqlContainerIndexingPolicyArgs
    An indexing_policy block as defined below.
    name str
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partition_key_path str
    Define a partition key. Changing this forces a new resource to be created.
    partition_key_version int
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    resource_group_name str
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    throughput int
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    unique_keys Sequence[SqlContainerUniqueKeyArgs]
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.
    accountName String
    The name of the Cosmos DB Account to create the container within. Changing this forces a new resource to be created.
    analyticalStorageTtl Number
    The default time to live of Analytical Storage for this SQL container. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    autoscaleSettings Property Map

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

    Note: Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed.

    conflictResolutionPolicy Property Map
    A conflict_resolution_policy blocks as defined below. Changing this forces a new resource to be created.
    databaseName String
    The name of the Cosmos DB SQL Database to create the container within. Changing this forces a new resource to be created.
    defaultTtl Number
    The default time to live of SQL container. If missing, items are not expired automatically. If present and the value is set to -1, it is equal to infinity, and items don’t expire by default. If present and the value is set to some number n – items will expire n seconds after their last modified time.
    indexingPolicy Property Map
    An indexing_policy block as defined below.
    name String
    Specifies the name of the Cosmos DB SQL Container. Changing this forces a new resource to be created.
    partitionKeyPath String
    Define a partition key. Changing this forces a new resource to be created.
    partitionKeyVersion Number
    Define a partition key version. Changing this forces a new resource to be created. Possible values are 1and 2. This should be set to 2 in order to use large partition keys.
    resourceGroupName String
    The name of the resource group in which the Cosmos DB SQL Container is created. Changing this forces a new resource to be created.
    throughput Number
    The throughput of SQL container (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon container creation otherwise it cannot be updated without a manual resource destroy-apply.
    uniqueKeys List<Property Map>
    One or more unique_key blocks as defined below. Changing this forces a new resource to be created.

    Supporting Types

    SqlContainerAutoscaleSettings, SqlContainerAutoscaleSettingsArgs

    MaxThroughput int
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.
    MaxThroughput int
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.
    maxThroughput Integer
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.
    maxThroughput number
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.
    max_throughput int
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.
    maxThroughput Number
    The maximum throughput of the SQL container (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

    SqlContainerConflictResolutionPolicy, SqlContainerConflictResolutionPolicyArgs

    Mode string
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    ConflictResolutionPath string
    The conflict resolution path in the case of LastWriterWins mode.
    ConflictResolutionProcedure string
    The procedure to resolve conflicts in the case of Custom mode.
    Mode string
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    ConflictResolutionPath string
    The conflict resolution path in the case of LastWriterWins mode.
    ConflictResolutionProcedure string
    The procedure to resolve conflicts in the case of Custom mode.
    mode String
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    conflictResolutionPath String
    The conflict resolution path in the case of LastWriterWins mode.
    conflictResolutionProcedure String
    The procedure to resolve conflicts in the case of Custom mode.
    mode string
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    conflictResolutionPath string
    The conflict resolution path in the case of LastWriterWins mode.
    conflictResolutionProcedure string
    The procedure to resolve conflicts in the case of Custom mode.
    mode str
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    conflict_resolution_path str
    The conflict resolution path in the case of LastWriterWins mode.
    conflict_resolution_procedure str
    The procedure to resolve conflicts in the case of Custom mode.
    mode String
    Indicates the conflict resolution mode. Possible values include: LastWriterWins, Custom.
    conflictResolutionPath String
    The conflict resolution path in the case of LastWriterWins mode.
    conflictResolutionProcedure String
    The procedure to resolve conflicts in the case of Custom mode.

    SqlContainerIndexingPolicy, SqlContainerIndexingPolicyArgs

    CompositeIndices List<SqlContainerIndexingPolicyCompositeIndex>
    One or more composite_index blocks as defined below.
    ExcludedPaths List<SqlContainerIndexingPolicyExcludedPath>
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    IncludedPaths List<SqlContainerIndexingPolicyIncludedPath>
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    IndexingMode string
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    SpatialIndices List<SqlContainerIndexingPolicySpatialIndex>
    One or more spatial_index blocks as defined below.
    CompositeIndices []SqlContainerIndexingPolicyCompositeIndex
    One or more composite_index blocks as defined below.
    ExcludedPaths []SqlContainerIndexingPolicyExcludedPath
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    IncludedPaths []SqlContainerIndexingPolicyIncludedPath
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    IndexingMode string
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    SpatialIndices []SqlContainerIndexingPolicySpatialIndex
    One or more spatial_index blocks as defined below.
    compositeIndices List<SqlContainerIndexingPolicyCompositeIndex>
    One or more composite_index blocks as defined below.
    excludedPaths List<SqlContainerIndexingPolicyExcludedPath>
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    includedPaths List<SqlContainerIndexingPolicyIncludedPath>
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    indexingMode String
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    spatialIndices List<SqlContainerIndexingPolicySpatialIndex>
    One or more spatial_index blocks as defined below.
    compositeIndices SqlContainerIndexingPolicyCompositeIndex[]
    One or more composite_index blocks as defined below.
    excludedPaths SqlContainerIndexingPolicyExcludedPath[]
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    includedPaths SqlContainerIndexingPolicyIncludedPath[]
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    indexingMode string
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    spatialIndices SqlContainerIndexingPolicySpatialIndex[]
    One or more spatial_index blocks as defined below.
    composite_indices Sequence[SqlContainerIndexingPolicyCompositeIndex]
    One or more composite_index blocks as defined below.
    excluded_paths Sequence[SqlContainerIndexingPolicyExcludedPath]
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    included_paths Sequence[SqlContainerIndexingPolicyIncludedPath]
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    indexing_mode str
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    spatial_indices Sequence[SqlContainerIndexingPolicySpatialIndex]
    One or more spatial_index blocks as defined below.
    compositeIndices List<Property Map>
    One or more composite_index blocks as defined below.
    excludedPaths List<Property Map>
    One or more excluded_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    includedPaths List<Property Map>
    One or more included_path blocks as defined below. Either included_path or excluded_path must contain the path /*
    indexingMode String
    Indicates the indexing mode. Possible values include: consistent and none. Defaults to consistent.
    spatialIndices List<Property Map>
    One or more spatial_index blocks as defined below.

    SqlContainerIndexingPolicyCompositeIndex, SqlContainerIndexingPolicyCompositeIndexArgs

    Indices List<SqlContainerIndexingPolicyCompositeIndexIndex>
    One or more index blocks as defined below.
    Indices []SqlContainerIndexingPolicyCompositeIndexIndex
    One or more index blocks as defined below.
    indices List<SqlContainerIndexingPolicyCompositeIndexIndex>
    One or more index blocks as defined below.
    indices SqlContainerIndexingPolicyCompositeIndexIndex[]
    One or more index blocks as defined below.
    indices Sequence[SqlContainerIndexingPolicyCompositeIndexIndex]
    One or more index blocks as defined below.
    indices List<Property Map>
    One or more index blocks as defined below.

    SqlContainerIndexingPolicyCompositeIndexIndex, SqlContainerIndexingPolicyCompositeIndexIndexArgs

    Order string
    Order of the index. Possible values are Ascending or Descending.
    Path string
    Path for which the indexing behaviour applies to.
    Order string
    Order of the index. Possible values are Ascending or Descending.
    Path string
    Path for which the indexing behaviour applies to.
    order String
    Order of the index. Possible values are Ascending or Descending.
    path String
    Path for which the indexing behaviour applies to.
    order string
    Order of the index. Possible values are Ascending or Descending.
    path string
    Path for which the indexing behaviour applies to.
    order str
    Order of the index. Possible values are Ascending or Descending.
    path str
    Path for which the indexing behaviour applies to.
    order String
    Order of the index. Possible values are Ascending or Descending.
    path String
    Path for which the indexing behaviour applies to.

    SqlContainerIndexingPolicyExcludedPath, SqlContainerIndexingPolicyExcludedPathArgs

    Path string
    Path that is excluded from indexing.
    Path string
    Path that is excluded from indexing.
    path String
    Path that is excluded from indexing.
    path string
    Path that is excluded from indexing.
    path str
    Path that is excluded from indexing.
    path String
    Path that is excluded from indexing.

    SqlContainerIndexingPolicyIncludedPath, SqlContainerIndexingPolicyIncludedPathArgs

    Path string
    Path for which the indexing behaviour applies to.
    Path string
    Path for which the indexing behaviour applies to.
    path String
    Path for which the indexing behaviour applies to.
    path string
    Path for which the indexing behaviour applies to.
    path str
    Path for which the indexing behaviour applies to.
    path String
    Path for which the indexing behaviour applies to.

    SqlContainerIndexingPolicySpatialIndex, SqlContainerIndexingPolicySpatialIndexArgs

    Path string
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    Types List<string>
    A set of spatial types of the path.
    Path string
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    Types []string
    A set of spatial types of the path.
    path String
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    types List<String>
    A set of spatial types of the path.
    path string
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    types string[]
    A set of spatial types of the path.
    path str
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    types Sequence[str]
    A set of spatial types of the path.
    path String
    Path for which the indexing behaviour applies to. According to the service design, all spatial types including LineString, MultiPolygon, Point, and Polygon will be applied to the path.
    types List<String>
    A set of spatial types of the path.

    SqlContainerUniqueKey, SqlContainerUniqueKeyArgs

    Paths List<string>
    A list of paths to use for this unique key. Changing this forces a new resource to be created.
    Paths []string
    A list of paths to use for this unique key. Changing this forces a new resource to be created.
    paths List<String>
    A list of paths to use for this unique key. Changing this forces a new resource to be created.
    paths string[]
    A list of paths to use for this unique key. Changing this forces a new resource to be created.
    paths Sequence[str]
    A list of paths to use for this unique key. Changing this forces a new resource to be created.
    paths List<String>
    A list of paths to use for this unique key. Changing this forces a new resource to be created.

    Import

    Cosmos SQL Containers can be imported using the resource id, e.g.

    $ pulumi import azure:cosmosdb/sqlContainer:SqlContainer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/database1/containers/container1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi