This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getMongoDBResourceMongoDBCollection.go
43 lines (38 loc) · 2.07 KB
/
getMongoDBResourceMongoDBCollection.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
// *** 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 v20191212
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupMongoDBResourceMongoDBCollection(ctx *pulumi.Context, args *LookupMongoDBResourceMongoDBCollectionArgs, opts ...pulumi.InvokeOption) (*LookupMongoDBResourceMongoDBCollectionResult, error) {
var rv LookupMongoDBResourceMongoDBCollectionResult
err := ctx.Invoke("azure-nextgen:documentdb/v20191212:getMongoDBResourceMongoDBCollection", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupMongoDBResourceMongoDBCollectionArgs 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 LookupMongoDBResourceMongoDBCollectionResult struct {
// The unique resource identifier of the ARM resource.
Id string `pulumi:"id"`
// The location of the resource group to which the resource belongs.
Location *string `pulumi:"location"`
// The name of the ARM resource.
Name string `pulumi:"name"`
Resource *MongoDBCollectionGetPropertiesResponseResource `pulumi:"resource"`
// 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"`
}