This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getDatabaseAccountSqlContainer.go
58 lines (53 loc) · 3.02 KB
/
getDatabaseAccountSqlContainer.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
47
48
49
50
51
52
53
54
55
56
57
58
// *** 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 v20150408
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupDatabaseAccountSqlContainer(ctx *pulumi.Context, args *LookupDatabaseAccountSqlContainerArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseAccountSqlContainerResult, error) {
var rv LookupDatabaseAccountSqlContainerResult
err := ctx.Invoke("azure-nextgen:documentdb/v20150408:getDatabaseAccountSqlContainer", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDatabaseAccountSqlContainerArgs struct {
// Cosmos DB database account name.
AccountName string `pulumi:"accountName"`
// Cosmos DB container name.
ContainerName string `pulumi:"containerName"`
// Cosmos DB database name.
DatabaseName string `pulumi:"databaseName"`
// Name of an Azure resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// An Azure Cosmos DB container.
type LookupDatabaseAccountSqlContainerResult struct {
// The conflict resolution policy for the container.
ConflictResolutionPolicy *ConflictResolutionPolicyResponse `pulumi:"conflictResolutionPolicy"`
// Default time to live
DefaultTtl *int `pulumi:"defaultTtl"`
// A system generated property representing the resource etag required for optimistic concurrency control.
Etag *string `pulumi:"etag"`
// The unique resource identifier of the database account.
Id string `pulumi:"id"`
// The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
IndexingPolicy *IndexingPolicyResponse `pulumi:"indexingPolicy"`
// 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"`
// The configuration of the partition key to be used for partitioning data into multiple partitions
PartitionKey *ContainerPartitionKeyResponse `pulumi:"partitionKey"`
// A system generated property. A unique identifier.
Rid *string `pulumi:"rid"`
// 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"`
// A system generated property that denotes the last updated timestamp of the resource.
Ts interface{} `pulumi:"ts"`
// The type of Azure resource.
Type string `pulumi:"type"`
// The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
UniqueKeyPolicy *UniqueKeyPolicyResponse `pulumi:"uniqueKeyPolicy"`
}