1. Packages
  2. Azure Native v1
  3. API Docs
  4. documentdb
  5. MongoDBResourceMongoDBCollection
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.documentdb.MongoDBResourceMongoDBCollection

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    An Azure Cosmos DB MongoDB collection. API Version: 2021-03-15.

    Example Usage

    CosmosDBMongoDBCollectionCreateUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var mongoDBResourceMongoDBCollection = new AzureNative.DocumentDB.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollection", new()
        {
            AccountName = "ddb1",
            CollectionName = "collectionName",
            DatabaseName = "databaseName",
            Location = "West US",
            Options = null,
            Resource = new AzureNative.DocumentDB.Inputs.MongoDBCollectionResourceArgs
            {
                Id = "collectionName",
                Indexes = new[]
                {
                    new AzureNative.DocumentDB.Inputs.MongoIndexArgs
                    {
                        Key = new AzureNative.DocumentDB.Inputs.MongoIndexKeysArgs
                        {
                            Keys = new[]
                            {
                                "testKey",
                            },
                        },
                        Options = new AzureNative.DocumentDB.Inputs.MongoIndexOptionsArgs
                        {
                            ExpireAfterSeconds = 100,
                            Unique = true,
                        },
                    },
                },
                ShardKey = 
                {
                    { "testKey", "Hash" },
                },
            },
            ResourceGroupName = "rg1",
            Tags = null,
        });
    
    });
    

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.documentdb.MongoDBResourceMongoDBCollection;
    import com.pulumi.azurenative.documentdb.MongoDBResourceMongoDBCollectionArgs;
    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 mongoDBResourceMongoDBCollection = new MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollection", MongoDBResourceMongoDBCollectionArgs.builder()        
                .accountName("ddb1")
                .collectionName("collectionName")
                .databaseName("databaseName")
                .location("West US")
                .options()
                .resource(Map.ofEntries(
                    Map.entry("id", "collectionName"),
                    Map.entry("indexes", Map.ofEntries(
                        Map.entry("key", Map.of("keys", "testKey")),
                        Map.entry("options", Map.ofEntries(
                            Map.entry("expireAfterSeconds", 100),
                            Map.entry("unique", true)
                        ))
                    )),
                    Map.entry("shardKey", Map.of("testKey", "Hash"))
                ))
                .resourceGroupName("rg1")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    mongo_db_resource_mongo_db_collection = azure_native.documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollection",
        account_name="ddb1",
        collection_name="collectionName",
        database_name="databaseName",
        location="West US",
        options=azure_native.documentdb.CreateUpdateOptionsArgs(),
        resource=azure_native.documentdb.MongoDBCollectionGetPropertiesResponseResourceArgs(
            id="collectionName",
            indexes=[{
                "key": azure_native.documentdb.MongoIndexKeysArgs(
                    keys=["testKey"],
                ),
                "options": azure_native.documentdb.MongoIndexOptionsArgs(
                    expire_after_seconds=100,
                    unique=True,
                ),
            }],
            shard_key={
                "testKey": "Hash",
            },
        ),
        resource_group_name="rg1",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const mongoDBResourceMongoDBCollection = new azure_native.documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollection", {
        accountName: "ddb1",
        collectionName: "collectionName",
        databaseName: "databaseName",
        location: "West US",
        options: {},
        resource: {
            id: "collectionName",
            indexes: [{
                key: {
                    keys: ["testKey"],
                },
                options: {
                    expireAfterSeconds: 100,
                    unique: true,
                },
            }],
            shardKey: {
                testKey: "Hash",
            },
        },
        resourceGroupName: "rg1",
        tags: {},
    });
    
    resources:
      mongoDBResourceMongoDBCollection:
        type: azure-native:documentdb:MongoDBResourceMongoDBCollection
        properties:
          accountName: ddb1
          collectionName: collectionName
          databaseName: databaseName
          location: West US
          options: {}
          resource:
            id: collectionName
            indexes:
              - key:
                  keys:
                    - testKey
                options:
                  expireAfterSeconds: 100
                  unique: true
            shardKey:
              testKey: Hash
          resourceGroupName: rg1
          tags: {}
    

    Create MongoDBResourceMongoDBCollection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MongoDBResourceMongoDBCollection(name: string, args: MongoDBResourceMongoDBCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def MongoDBResourceMongoDBCollection(resource_name: str,
                                         args: MongoDBResourceMongoDBCollectionArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def MongoDBResourceMongoDBCollection(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         account_name: Optional[str] = None,
                                         database_name: Optional[str] = None,
                                         resource: Optional[MongoDBCollectionResourceArgs] = None,
                                         resource_group_name: Optional[str] = None,
                                         collection_name: Optional[str] = None,
                                         location: Optional[str] = None,
                                         options: Optional[CreateUpdateOptionsArgs] = None,
                                         tags: Optional[Mapping[str, str]] = None)
    func NewMongoDBResourceMongoDBCollection(ctx *Context, name string, args MongoDBResourceMongoDBCollectionArgs, opts ...ResourceOption) (*MongoDBResourceMongoDBCollection, error)
    public MongoDBResourceMongoDBCollection(string name, MongoDBResourceMongoDBCollectionArgs args, CustomResourceOptions? opts = null)
    public MongoDBResourceMongoDBCollection(String name, MongoDBResourceMongoDBCollectionArgs args)
    public MongoDBResourceMongoDBCollection(String name, MongoDBResourceMongoDBCollectionArgs args, CustomResourceOptions options)
    
    type: azure-native:documentdb:MongoDBResourceMongoDBCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MongoDBResourceMongoDBCollectionArgs
    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 MongoDBResourceMongoDBCollectionArgs
    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 MongoDBResourceMongoDBCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MongoDBResourceMongoDBCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MongoDBResourceMongoDBCollectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mongoDBResourceMongoDBCollectionResource = new AzureNative.Documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource", new()
    {
        AccountName = "string",
        DatabaseName = "string",
        Resource = 
        {
            { "id", "string" },
            { "analyticalStorageTtl", 0 },
            { "indexes", new[]
            {
                
                {
                    { "key", 
                    {
                        { "keys", new[]
                        {
                            "string",
                        } },
                    } },
                    { "options", 
                    {
                        { "expireAfterSeconds", 0 },
                        { "unique", false },
                    } },
                },
            } },
            { "shardKey", 
            {
                { "string", "string" },
            } },
        },
        ResourceGroupName = "string",
        CollectionName = "string",
        Location = "string",
        Options = 
        {
            { "autoscaleSettings", 
            {
                { "maxThroughput", 0 },
            } },
            { "throughput", 0 },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := documentdb.NewMongoDBResourceMongoDBCollection(ctx, "mongoDBResourceMongoDBCollectionResource", &documentdb.MongoDBResourceMongoDBCollectionArgs{
    	AccountName:  "string",
    	DatabaseName: "string",
    	Resource: map[string]interface{}{
    		"id":                   "string",
    		"analyticalStorageTtl": 0,
    		"indexes": []map[string]interface{}{
    			map[string]interface{}{
    				"key": map[string]interface{}{
    					"keys": []string{
    						"string",
    					},
    				},
    				"options": map[string]interface{}{
    					"expireAfterSeconds": 0,
    					"unique":             false,
    				},
    			},
    		},
    		"shardKey": map[string]interface{}{
    			"string": "string",
    		},
    	},
    	ResourceGroupName: "string",
    	CollectionName:    "string",
    	Location:          "string",
    	Options: map[string]interface{}{
    		"autoscaleSettings": map[string]interface{}{
    			"maxThroughput": 0,
    		},
    		"throughput": 0,
    	},
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var mongoDBResourceMongoDBCollectionResource = new MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource", MongoDBResourceMongoDBCollectionArgs.builder()
        .accountName("string")
        .databaseName("string")
        .resource(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .resourceGroupName("string")
        .collectionName("string")
        .location("string")
        .options(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    mongo_db_resource_mongo_db_collection_resource = azure_native.documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource",
        account_name=string,
        database_name=string,
        resource={
            id: string,
            analyticalStorageTtl: 0,
            indexes: [{
                key: {
                    keys: [string],
                },
                options: {
                    expireAfterSeconds: 0,
                    unique: False,
                },
            }],
            shardKey: {
                string: string,
            },
        },
        resource_group_name=string,
        collection_name=string,
        location=string,
        options={
            autoscaleSettings: {
                maxThroughput: 0,
            },
            throughput: 0,
        },
        tags={
            string: string,
        })
    
    const mongoDBResourceMongoDBCollectionResource = new azure_native.documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource", {
        accountName: "string",
        databaseName: "string",
        resource: {
            id: "string",
            analyticalStorageTtl: 0,
            indexes: [{
                key: {
                    keys: ["string"],
                },
                options: {
                    expireAfterSeconds: 0,
                    unique: false,
                },
            }],
            shardKey: {
                string: "string",
            },
        },
        resourceGroupName: "string",
        collectionName: "string",
        location: "string",
        options: {
            autoscaleSettings: {
                maxThroughput: 0,
            },
            throughput: 0,
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:documentdb:MongoDBResourceMongoDBCollection
    properties:
        accountName: string
        collectionName: string
        databaseName: string
        location: string
        options:
            autoscaleSettings:
                maxThroughput: 0
            throughput: 0
        resource:
            analyticalStorageTtl: 0
            id: string
            indexes:
                - key:
                    keys:
                        - string
                  options:
                    expireAfterSeconds: 0
                    unique: false
            shardKey:
                string: string
        resourceGroupName: string
        tags:
            string: string
    

    MongoDBResourceMongoDBCollection Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MongoDBResourceMongoDBCollection resource accepts the following input properties:

    AccountName string
    Cosmos DB database account name.
    DatabaseName string
    Cosmos DB database name.
    Resource Pulumi.AzureNative.DocumentDB.Inputs.MongoDBCollectionResource
    The standard JSON format of a MongoDB collection
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    CollectionName string
    Cosmos DB collection name.
    Location string
    The location of the resource group to which the resource belongs.
    Options Pulumi.AzureNative.DocumentDB.Inputs.CreateUpdateOptions
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Tags Dictionary<string, string>
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
    AccountName string
    Cosmos DB database account name.
    DatabaseName string
    Cosmos DB database name.
    Resource MongoDBCollectionResourceArgs
    The standard JSON format of a MongoDB collection
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    CollectionName string
    Cosmos DB collection name.
    Location string
    The location of the resource group to which the resource belongs.
    Options CreateUpdateOptionsArgs
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    Tags map[string]string
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
    accountName String
    Cosmos DB database account name.
    databaseName String
    Cosmos DB database name.
    resource MongoDBCollectionResource
    The standard JSON format of a MongoDB collection
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    collectionName String
    Cosmos DB collection name.
    location String
    The location of the resource group to which the resource belongs.
    options CreateUpdateOptions
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    tags Map<String,String>
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
    accountName string
    Cosmos DB database account name.
    databaseName string
    Cosmos DB database name.
    resource MongoDBCollectionResource
    The standard JSON format of a MongoDB collection
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    collectionName string
    Cosmos DB collection name.
    location string
    The location of the resource group to which the resource belongs.
    options CreateUpdateOptions
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    tags {[key: string]: string}
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
    account_name str
    Cosmos DB database account name.
    database_name str
    Cosmos DB database name.
    resource MongoDBCollectionResourceArgs
    The standard JSON format of a MongoDB collection
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    collection_name str
    Cosmos DB collection name.
    location str
    The location of the resource group to which the resource belongs.
    options CreateUpdateOptionsArgs
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    tags Mapping[str, str]
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
    accountName String
    Cosmos DB database account name.
    databaseName String
    Cosmos DB database name.
    resource Property Map
    The standard JSON format of a MongoDB collection
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    collectionName String
    Cosmos DB collection name.
    location String
    The location of the resource group to which the resource belongs.
    options Property Map
    A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
    tags Map<String>
    Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the ARM resource.
    Type string
    The type of Azure resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the ARM resource.
    Type string
    The type of Azure resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the ARM resource.
    type String
    The type of Azure resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the ARM resource.
    type string
    The type of Azure resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the ARM resource.
    type str
    The type of Azure resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the ARM resource.
    type String
    The type of Azure resource.

    Supporting Types

    AutoscaleSettings, AutoscaleSettingsArgs

    MaxThroughput int
    Represents maximum throughput, the resource can scale up to.
    MaxThroughput int
    Represents maximum throughput, the resource can scale up to.
    maxThroughput Integer
    Represents maximum throughput, the resource can scale up to.
    maxThroughput number
    Represents maximum throughput, the resource can scale up to.
    max_throughput int
    Represents maximum throughput, the resource can scale up to.
    maxThroughput Number
    Represents maximum throughput, the resource can scale up to.

    AutoscaleSettingsResponse, AutoscaleSettingsResponseArgs

    MaxThroughput int
    Represents maximum throughput, the resource can scale up to.
    MaxThroughput int
    Represents maximum throughput, the resource can scale up to.
    maxThroughput Integer
    Represents maximum throughput, the resource can scale up to.
    maxThroughput number
    Represents maximum throughput, the resource can scale up to.
    max_throughput int
    Represents maximum throughput, the resource can scale up to.
    maxThroughput Number
    Represents maximum throughput, the resource can scale up to.

    CreateUpdateOptions, CreateUpdateOptionsArgs

    AutoscaleSettings Pulumi.AzureNative.DocumentDB.Inputs.AutoscaleSettings
    Specifies the Autoscale settings.
    Throughput int
    Request Units per second. For example, "throughput": 10000.
    AutoscaleSettings AutoscaleSettings
    Specifies the Autoscale settings.
    Throughput int
    Request Units per second. For example, "throughput": 10000.
    autoscaleSettings AutoscaleSettings
    Specifies the Autoscale settings.
    throughput Integer
    Request Units per second. For example, "throughput": 10000.
    autoscaleSettings AutoscaleSettings
    Specifies the Autoscale settings.
    throughput number
    Request Units per second. For example, "throughput": 10000.
    autoscale_settings AutoscaleSettings
    Specifies the Autoscale settings.
    throughput int
    Request Units per second. For example, "throughput": 10000.
    autoscaleSettings Property Map
    Specifies the Autoscale settings.
    throughput Number
    Request Units per second. For example, "throughput": 10000.

    MongoDBCollectionGetPropertiesResponseOptions, MongoDBCollectionGetPropertiesResponseOptionsArgs

    AutoscaleSettings Pulumi.AzureNative.DocumentDB.Inputs.AutoscaleSettingsResponse
    Specifies the Autoscale settings.
    Throughput int
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    AutoscaleSettings AutoscaleSettingsResponse
    Specifies the Autoscale settings.
    Throughput int
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    autoscaleSettings AutoscaleSettingsResponse
    Specifies the Autoscale settings.
    throughput Integer
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    autoscaleSettings AutoscaleSettingsResponse
    Specifies the Autoscale settings.
    throughput number
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    autoscale_settings AutoscaleSettingsResponse
    Specifies the Autoscale settings.
    throughput int
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
    autoscaleSettings Property Map
    Specifies the Autoscale settings.
    throughput Number
    Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

    MongoDBCollectionGetPropertiesResponseResource, MongoDBCollectionGetPropertiesResponseResourceArgs

    Etag string
    A system generated property representing the resource etag required for optimistic concurrency control.
    Id string
    Name of the Cosmos DB MongoDB collection
    Rid string
    A system generated property. A unique identifier.
    Ts double
    A system generated property that denotes the last updated timestamp of the resource.
    AnalyticalStorageTtl int
    Analytical TTL.
    Indexes List<Pulumi.AzureNative.DocumentDB.Inputs.MongoIndexResponse>
    List of index keys
    ShardKey Dictionary<string, string>
    A key-value pair of shard keys to be applied for the request.
    Etag string
    A system generated property representing the resource etag required for optimistic concurrency control.
    Id string
    Name of the Cosmos DB MongoDB collection
    Rid string
    A system generated property. A unique identifier.
    Ts float64
    A system generated property that denotes the last updated timestamp of the resource.
    AnalyticalStorageTtl int
    Analytical TTL.
    Indexes []MongoIndexResponse
    List of index keys
    ShardKey map[string]string
    A key-value pair of shard keys to be applied for the request.
    etag String
    A system generated property representing the resource etag required for optimistic concurrency control.
    id String
    Name of the Cosmos DB MongoDB collection
    rid String
    A system generated property. A unique identifier.
    ts Double
    A system generated property that denotes the last updated timestamp of the resource.
    analyticalStorageTtl Integer
    Analytical TTL.
    indexes List<MongoIndexResponse>
    List of index keys
    shardKey Map<String,String>
    A key-value pair of shard keys to be applied for the request.
    etag string
    A system generated property representing the resource etag required for optimistic concurrency control.
    id string
    Name of the Cosmos DB MongoDB collection
    rid string
    A system generated property. A unique identifier.
    ts number
    A system generated property that denotes the last updated timestamp of the resource.
    analyticalStorageTtl number
    Analytical TTL.
    indexes MongoIndexResponse[]
    List of index keys
    shardKey {[key: string]: string}
    A key-value pair of shard keys to be applied for the request.
    etag str
    A system generated property representing the resource etag required for optimistic concurrency control.
    id str
    Name of the Cosmos DB MongoDB collection
    rid str
    A system generated property. A unique identifier.
    ts float
    A system generated property that denotes the last updated timestamp of the resource.
    analytical_storage_ttl int
    Analytical TTL.
    indexes Sequence[MongoIndexResponse]
    List of index keys
    shard_key Mapping[str, str]
    A key-value pair of shard keys to be applied for the request.
    etag String
    A system generated property representing the resource etag required for optimistic concurrency control.
    id String
    Name of the Cosmos DB MongoDB collection
    rid String
    A system generated property. A unique identifier.
    ts Number
    A system generated property that denotes the last updated timestamp of the resource.
    analyticalStorageTtl Number
    Analytical TTL.
    indexes List<Property Map>
    List of index keys
    shardKey Map<String>
    A key-value pair of shard keys to be applied for the request.

    MongoDBCollectionResource, MongoDBCollectionResourceArgs

    Id string
    Name of the Cosmos DB MongoDB collection
    AnalyticalStorageTtl int
    Analytical TTL.
    Indexes List<Pulumi.AzureNative.DocumentDB.Inputs.MongoIndex>
    List of index keys
    ShardKey Dictionary<string, string>
    A key-value pair of shard keys to be applied for the request.
    Id string
    Name of the Cosmos DB MongoDB collection
    AnalyticalStorageTtl int
    Analytical TTL.
    Indexes []MongoIndex
    List of index keys
    ShardKey map[string]string
    A key-value pair of shard keys to be applied for the request.
    id String
    Name of the Cosmos DB MongoDB collection
    analyticalStorageTtl Integer
    Analytical TTL.
    indexes List<MongoIndex>
    List of index keys
    shardKey Map<String,String>
    A key-value pair of shard keys to be applied for the request.
    id string
    Name of the Cosmos DB MongoDB collection
    analyticalStorageTtl number
    Analytical TTL.
    indexes MongoIndex[]
    List of index keys
    shardKey {[key: string]: string}
    A key-value pair of shard keys to be applied for the request.
    id str
    Name of the Cosmos DB MongoDB collection
    analytical_storage_ttl int
    Analytical TTL.
    indexes Sequence[MongoIndex]
    List of index keys
    shard_key Mapping[str, str]
    A key-value pair of shard keys to be applied for the request.
    id String
    Name of the Cosmos DB MongoDB collection
    analyticalStorageTtl Number
    Analytical TTL.
    indexes List<Property Map>
    List of index keys
    shardKey Map<String>
    A key-value pair of shard keys to be applied for the request.

    MongoIndex, MongoIndexArgs

    Key Pulumi.AzureNative.DocumentDB.Inputs.MongoIndexKeys
    Cosmos DB MongoDB collection index keys
    Options Pulumi.AzureNative.DocumentDB.Inputs.MongoIndexOptions
    Cosmos DB MongoDB collection index key options
    Key MongoIndexKeys
    Cosmos DB MongoDB collection index keys
    Options MongoIndexOptions
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeys
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptions
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeys
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptions
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeys
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptions
    Cosmos DB MongoDB collection index key options
    key Property Map
    Cosmos DB MongoDB collection index keys
    options Property Map
    Cosmos DB MongoDB collection index key options

    MongoIndexKeys, MongoIndexKeysArgs

    Keys List<string>
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    Keys []string
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys List<String>
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys string[]
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys Sequence[str]
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys List<String>
    List of keys for each MongoDB collection in the Azure Cosmos DB service

    MongoIndexKeysResponse, MongoIndexKeysResponseArgs

    Keys List<string>
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    Keys []string
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys List<String>
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys string[]
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys Sequence[str]
    List of keys for each MongoDB collection in the Azure Cosmos DB service
    keys List<String>
    List of keys for each MongoDB collection in the Azure Cosmos DB service

    MongoIndexOptions, MongoIndexOptionsArgs

    ExpireAfterSeconds int
    Expire after seconds
    Unique bool
    Is unique or not
    ExpireAfterSeconds int
    Expire after seconds
    Unique bool
    Is unique or not
    expireAfterSeconds Integer
    Expire after seconds
    unique Boolean
    Is unique or not
    expireAfterSeconds number
    Expire after seconds
    unique boolean
    Is unique or not
    expire_after_seconds int
    Expire after seconds
    unique bool
    Is unique or not
    expireAfterSeconds Number
    Expire after seconds
    unique Boolean
    Is unique or not

    MongoIndexOptionsResponse, MongoIndexOptionsResponseArgs

    ExpireAfterSeconds int
    Expire after seconds
    Unique bool
    Is unique or not
    ExpireAfterSeconds int
    Expire after seconds
    Unique bool
    Is unique or not
    expireAfterSeconds Integer
    Expire after seconds
    unique Boolean
    Is unique or not
    expireAfterSeconds number
    Expire after seconds
    unique boolean
    Is unique or not
    expire_after_seconds int
    Expire after seconds
    unique bool
    Is unique or not
    expireAfterSeconds Number
    Expire after seconds
    unique Boolean
    Is unique or not

    MongoIndexResponse, MongoIndexResponseArgs

    Key MongoIndexKeysResponse
    Cosmos DB MongoDB collection index keys
    Options MongoIndexOptionsResponse
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeysResponse
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptionsResponse
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeysResponse
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptionsResponse
    Cosmos DB MongoDB collection index key options
    key MongoIndexKeysResponse
    Cosmos DB MongoDB collection index keys
    options MongoIndexOptionsResponse
    Cosmos DB MongoDB collection index key options
    key Property Map
    Cosmos DB MongoDB collection index keys
    options Property Map
    Cosmos DB MongoDB collection index key options

    Import

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

    $ pulumi import azure-native:documentdb:MongoDBResourceMongoDBCollection collectionName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi