This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getDatabaseAccountMongoDBCollection.go
46 lines (41 loc) · 2.14 KB
/
getDatabaseAccountMongoDBCollection.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20160331
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupDatabaseAccountMongoDBCollection(ctx *pulumi.Context, args *LookupDatabaseAccountMongoDBCollectionArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseAccountMongoDBCollectionResult, error) {
var rv LookupDatabaseAccountMongoDBCollectionResult
err := ctx.Invoke("azure-nextgen:documentdb/v20160331:getDatabaseAccountMongoDBCollection", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDatabaseAccountMongoDBCollectionArgs struct {
// Cosmos DB database account name.
AccountName string `pulumi:"accountName"`
// Cosmos DB collection name.
CollectionName string `pulumi:"collectionName"`
// Cosmos DB database name.
DatabaseName string `pulumi:"databaseName"`
// Name of an Azure resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// An Azure Cosmos DB MongoDB collection.
type LookupDatabaseAccountMongoDBCollectionResult struct {
// The unique resource identifier of the database account.
Id string `pulumi:"id"`
// List of index keys
Indexes []MongoIndexResponse `pulumi:"indexes"`
// The location of the resource group to which the resource belongs.
Location *string `pulumi:"location"`
// The name of the database account.
Name string `pulumi:"name"`
// A key-value pair of shard keys to be applied for the request.
ShardKey map[string]string `pulumi:"shardKey"`
// 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".
Tags map[string]string `pulumi:"tags"`
// The type of Azure resource.
Type string `pulumi:"type"`
}