azure-native.documentdb.MongoDBResourceMongoDBCollection
Explore with Pulumi AI
An Azure Cosmos DB MongoDB collection. Azure REST API version: 2023-04-15. Prior API version in Azure Native 1.x: 2021-03-15.
Other available API versions: 2019-08-01, 2023-03-15-preview, 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview.
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[]
{
"_ts",
},
},
Options = new AzureNative.DocumentDB.Inputs.MongoIndexOptionsArgs
{
ExpireAfterSeconds = 100,
Unique = true,
},
},
new AzureNative.DocumentDB.Inputs.MongoIndexArgs
{
Key = new AzureNative.DocumentDB.Inputs.MongoIndexKeysArgs
{
Keys = new[]
{
"_id",
},
},
},
},
ShardKey =
{
{ "testKey", "Hash" },
},
},
ResourceGroupName = "rg1",
Tags = null,
});
});
package main
import (
documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := documentdb.NewMongoDBResourceMongoDBCollection(ctx, "mongoDBResourceMongoDBCollection", &documentdb.MongoDBResourceMongoDBCollectionArgs{
AccountName: pulumi.String("ddb1"),
CollectionName: pulumi.String("collectionName"),
DatabaseName: pulumi.String("databaseName"),
Location: pulumi.String("West US"),
Options: nil,
Resource: &documentdb.MongoDBCollectionResourceArgs{
Id: pulumi.String("collectionName"),
Indexes: documentdb.MongoIndexArray{
&documentdb.MongoIndexArgs{
Key: &documentdb.MongoIndexKeysArgs{
Keys: pulumi.StringArray{
pulumi.String("_ts"),
},
},
Options: &documentdb.MongoIndexOptionsArgs{
ExpireAfterSeconds: pulumi.Int(100),
Unique: pulumi.Bool(true),
},
},
&documentdb.MongoIndexArgs{
Key: &documentdb.MongoIndexKeysArgs{
Keys: pulumi.StringArray{
pulumi.String("_id"),
},
},
},
},
ShardKey: pulumi.StringMap{
"testKey": pulumi.String("Hash"),
},
},
ResourceGroupName: pulumi.String("rg1"),
Tags: nil,
})
if err != nil {
return err
}
return nil
})
}
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 com.pulumi.azurenative.documentdb.inputs.CreateUpdateOptionsArgs;
import com.pulumi.azurenative.documentdb.inputs.MongoDBCollectionResourceArgs;
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(MongoDBCollectionResourceArgs.builder()
.id("collectionName")
.indexes(
MongoIndexArgs.builder()
.key(MongoIndexKeysArgs.builder()
.keys("_ts")
.build())
.options(MongoIndexOptionsArgs.builder()
.expireAfterSeconds(100)
.unique(true)
.build())
.build(),
MongoIndexArgs.builder()
.key(MongoIndexKeysArgs.builder()
.keys("_id")
.build())
.build())
.shardKey(Map.of("testKey", "Hash"))
.build())
.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.MongoDBCollectionResourceArgs(
id="collectionName",
indexes=[
azure_native.documentdb.MongoIndexArgs(
key=azure_native.documentdb.MongoIndexKeysArgs(
keys=["_ts"],
),
options=azure_native.documentdb.MongoIndexOptionsArgs(
expire_after_seconds=100,
unique=True,
),
),
azure_native.documentdb.MongoIndexArgs(
key=azure_native.documentdb.MongoIndexKeysArgs(
keys=["_id"],
),
),
],
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: ["_ts"],
},
options: {
expireAfterSeconds: 100,
unique: true,
},
},
{
key: {
keys: ["_id"],
},
},
],
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:
- _ts
options:
expireAfterSeconds: 100
unique: true
- key:
keys:
- _id
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 = new AzureNative.DocumentDB.Inputs.MongoDBCollectionResourceArgs
{
Id = "string",
AnalyticalStorageTtl = 0,
Indexes = new[]
{
new AzureNative.DocumentDB.Inputs.MongoIndexArgs
{
Key = new AzureNative.DocumentDB.Inputs.MongoIndexKeysArgs
{
Keys = new[]
{
"string",
},
},
Options = new AzureNative.DocumentDB.Inputs.MongoIndexOptionsArgs
{
ExpireAfterSeconds = 0,
Unique = false,
},
},
},
ShardKey =
{
{ "string", "string" },
},
},
ResourceGroupName = "string",
CollectionName = "string",
Location = "string",
Options = new AzureNative.DocumentDB.Inputs.CreateUpdateOptionsArgs
{
AutoscaleSettings = new AzureNative.DocumentDB.Inputs.AutoscaleSettingsArgs
{
MaxThroughput = 0,
},
Throughput = 0,
},
Tags =
{
{ "string", "string" },
},
});
example, err := documentdb.NewMongoDBResourceMongoDBCollection(ctx, "mongoDBResourceMongoDBCollectionResource", &documentdb.MongoDBResourceMongoDBCollectionArgs{
AccountName: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
Resource: &documentdb.MongoDBCollectionResourceArgs{
Id: pulumi.String("string"),
AnalyticalStorageTtl: pulumi.Int(0),
Indexes: documentdb.MongoIndexArray{
&documentdb.MongoIndexArgs{
Key: &documentdb.MongoIndexKeysArgs{
Keys: pulumi.StringArray{
pulumi.String("string"),
},
},
Options: &documentdb.MongoIndexOptionsArgs{
ExpireAfterSeconds: pulumi.Int(0),
Unique: pulumi.Bool(false),
},
},
},
ShardKey: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
ResourceGroupName: pulumi.String("string"),
CollectionName: pulumi.String("string"),
Location: pulumi.String("string"),
Options: &documentdb.CreateUpdateOptionsArgs{
AutoscaleSettings: &documentdb.AutoscaleSettingsArgs{
MaxThroughput: pulumi.Int(0),
},
Throughput: pulumi.Int(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var mongoDBResourceMongoDBCollectionResource = new MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource", MongoDBResourceMongoDBCollectionArgs.builder()
.accountName("string")
.databaseName("string")
.resource(MongoDBCollectionResourceArgs.builder()
.id("string")
.analyticalStorageTtl(0)
.indexes(MongoIndexArgs.builder()
.key(MongoIndexKeysArgs.builder()
.keys("string")
.build())
.options(MongoIndexOptionsArgs.builder()
.expireAfterSeconds(0)
.unique(false)
.build())
.build())
.shardKey(Map.of("string", "string"))
.build())
.resourceGroupName("string")
.collectionName("string")
.location("string")
.options(CreateUpdateOptionsArgs.builder()
.autoscaleSettings(AutoscaleSettingsArgs.builder()
.maxThroughput(0)
.build())
.throughput(0)
.build())
.tags(Map.of("string", "string"))
.build());
mongo_db_resource_mongo_db_collection_resource = azure_native.documentdb.MongoDBResourceMongoDBCollection("mongoDBResourceMongoDBCollectionResource",
account_name="string",
database_name="string",
resource=azure_native.documentdb.MongoDBCollectionResourceArgs(
id="string",
analytical_storage_ttl=0,
indexes=[azure_native.documentdb.MongoIndexArgs(
key=azure_native.documentdb.MongoIndexKeysArgs(
keys=["string"],
),
options=azure_native.documentdb.MongoIndexOptionsArgs(
expire_after_seconds=0,
unique=False,
),
)],
shard_key={
"string": "string",
},
),
resource_group_name="string",
collection_name="string",
location="string",
options=azure_native.documentdb.CreateUpdateOptionsArgs(
autoscale_settings=azure_native.documentdb.AutoscaleSettingsArgs(
max_throughput=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
The MongoDBResourceMongoDBCollection resource accepts the following input properties:
- Account
Name string - Cosmos DB database account name.
- Database
Name string - Cosmos DB database name.
- Resource
Pulumi.
Azure Native. Document DB. Inputs. Mongo DBCollection Resource - The standard JSON format of a MongoDB collection
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Collection
Name string - Cosmos DB collection name.
- Location string
- The location of the resource group to which the resource belongs.
- Options
Pulumi.
Azure Native. Document DB. Inputs. Create Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- 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".
- Account
Name string - Cosmos DB database account name.
- Database
Name string - Cosmos DB database name.
- Resource
Mongo
DBCollection Resource Args - The standard JSON format of a MongoDB collection
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Collection
Name string - Cosmos DB collection name.
- Location string
- The location of the resource group to which the resource belongs.
- Options
Create
Update Options Args - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- 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".
- account
Name String - Cosmos DB database account name.
- database
Name String - Cosmos DB database name.
- resource
Mongo
DBCollection Resource - The standard JSON format of a MongoDB collection
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- collection
Name String - Cosmos DB collection name.
- location String
- The location of the resource group to which the resource belongs.
- options
Create
Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- 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".
- account
Name string - Cosmos DB database account name.
- database
Name string - Cosmos DB database name.
- resource
Mongo
DBCollection Resource - The standard JSON format of a MongoDB collection
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- collection
Name string - Cosmos DB collection name.
- location string
- The location of the resource group to which the resource belongs.
- options
Create
Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- {[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
Mongo
DBCollection Resource Args - The standard JSON format of a MongoDB collection
- resource_
group_ strname - 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
Create
Update Options Args - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- 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".
- account
Name String - Cosmos DB database account name.
- database
Name String - Cosmos DB database name.
- resource Property Map
- The standard JSON format of a MongoDB collection
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- collection
Name 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.
- 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:
Supporting Types
AutoscaleSettings, AutoscaleSettingsArgs
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Integer - Represents maximum throughput, the resource can scale up to.
- max
Throughput number - Represents maximum throughput, the resource can scale up to.
- max_
throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Number - Represents maximum throughput, the resource can scale up to.
AutoscaleSettingsResponse, AutoscaleSettingsResponseArgs
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Integer - Represents maximum throughput, the resource can scale up to.
- max
Throughput number - Represents maximum throughput, the resource can scale up to.
- max_
throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Number - Represents maximum throughput, the resource can scale up to.
CreateUpdateOptions, CreateUpdateOptionsArgs
- Autoscale
Settings Pulumi.Azure Native. Document DB. Inputs. Autoscale Settings - Specifies the Autoscale settings.
- Throughput int
- 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.
- autoscale
Settings AutoscaleSettings - Specifies the Autoscale settings.
- throughput Integer
- Request Units per second. For example, "throughput": 10000.
- autoscale
Settings 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.
- autoscale
Settings Property Map - Specifies the Autoscale settings.
- throughput Number
- Request Units per second. For example, "throughput": 10000.
MongoDBCollectionGetPropertiesResponseOptions, MongoDBCollectionGetPropertiesResponseOptionsArgs
- Autoscale
Settings Pulumi.Azure Native. Document DB. Inputs. Autoscale Settings Response - Specifies the Autoscale settings.
- Throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- Autoscale
Settings AutoscaleSettings Response - Specifies the Autoscale settings.
- Throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings AutoscaleSettings Response - Specifies the Autoscale settings.
- throughput Integer
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings AutoscaleSettings Response - 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 AutoscaleSettings Response - Specifies the Autoscale settings.
- throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings 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.
- Analytical
Storage intTtl - Analytical TTL.
- Indexes
List<Pulumi.
Azure Native. Document DB. Inputs. Mongo Index Response> - List of index keys
- 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.
- Analytical
Storage intTtl - Analytical TTL.
- Indexes
[]Mongo
Index Response - List of index keys
- 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.
- analytical
Storage IntegerTtl - Analytical TTL.
- indexes
List<Mongo
Index Response> - List of index keys
- 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.
- analytical
Storage numberTtl - Analytical TTL.
- indexes
Mongo
Index Response[] - List of index keys
- {[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_ intttl - Analytical TTL.
- indexes
Sequence[Mongo
Index Response] - List of index keys
- 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.
- analytical
Storage NumberTtl - Analytical TTL.
- indexes List<Property Map>
- List of index keys
- 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
- Analytical
Storage intTtl - Analytical TTL.
- Indexes
List<Pulumi.
Azure Native. Document DB. Inputs. Mongo Index> - List of index keys
- 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
- Analytical
Storage intTtl - Analytical TTL.
- Indexes
[]Mongo
Index - List of index keys
- 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
- analytical
Storage IntegerTtl - Analytical TTL.
- indexes
List<Mongo
Index> - List of index keys
- 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
- analytical
Storage numberTtl - Analytical TTL.
- indexes
Mongo
Index[] - List of index keys
- {[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_ intttl - Analytical TTL.
- indexes
Sequence[Mongo
Index] - List of index keys
- 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
- analytical
Storage NumberTtl - Analytical TTL.
- indexes List<Property Map>
- List of index keys
- Map<String>
- A key-value pair of shard keys to be applied for the request.
MongoIndex, MongoIndexArgs
- Key
Pulumi.
Azure Native. Document DB. Inputs. Mongo Index Keys - Cosmos DB MongoDB collection index keys
- Options
Pulumi.
Azure Native. Document DB. Inputs. Mongo Index Options - Cosmos DB MongoDB collection index key options
- Key
Mongo
Index Keys - Cosmos DB MongoDB collection index keys
- Options
Mongo
Index Options - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options - 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
- Expire
After intSeconds - Expire after seconds
- Unique bool
- Is unique or not
- Expire
After intSeconds - Expire after seconds
- Unique bool
- Is unique or not
- expire
After IntegerSeconds - Expire after seconds
- unique Boolean
- Is unique or not
- expire
After numberSeconds - Expire after seconds
- unique boolean
- Is unique or not
- expire_
after_ intseconds - Expire after seconds
- unique bool
- Is unique or not
- expire
After NumberSeconds - Expire after seconds
- unique Boolean
- Is unique or not
MongoIndexOptionsResponse, MongoIndexOptionsResponseArgs
- Expire
After intSeconds - Expire after seconds
- Unique bool
- Is unique or not
- Expire
After intSeconds - Expire after seconds
- Unique bool
- Is unique or not
- expire
After IntegerSeconds - Expire after seconds
- unique Boolean
- Is unique or not
- expire
After numberSeconds - Expire after seconds
- unique boolean
- Is unique or not
- expire_
after_ intseconds - Expire after seconds
- unique bool
- Is unique or not
- expire
After NumberSeconds - Expire after seconds
- unique Boolean
- Is unique or not
MongoIndexResponse, MongoIndexResponseArgs
- Key
Pulumi.
Azure Native. Document DB. Inputs. Mongo Index Keys Response - Cosmos DB MongoDB collection index keys
- Options
Pulumi.
Azure Native. Document DB. Inputs. Mongo Index Options Response - Cosmos DB MongoDB collection index key options
- Key
Mongo
Index Keys Response - Cosmos DB MongoDB collection index keys
- Options
Mongo
Index Options Response - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys Response - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options Response - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys Response - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options Response - Cosmos DB MongoDB collection index key options
- key
Mongo
Index Keys Response - Cosmos DB MongoDB collection index keys
- options
Mongo
Index Options Response - 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0