DatabaseAccountSqlDatabase

class DatabaseAccountSqlDatabase : KotlinCustomResource

An Azure Cosmos DB SQL database. Uses Azure REST API version 2016-03-31. Other available API versions: 2015-04-01, 2015-04-08, 2015-11-06, 2016-03-19. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cosmosdb [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

CosmosDBSqlDatabaseCreateUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var databaseAccountSqlDatabase = new AzureNative.CosmosDB.DatabaseAccountSqlDatabase("databaseAccountSqlDatabase", new()
{
AccountName = "ddb1",
DatabaseName = "databaseName",
Options = null,
Resource = new AzureNative.CosmosDB.Inputs.SqlDatabaseResourceArgs
{
Id = "databaseName",
},
ResourceGroupName = "rg1",
});
});
package main
import (
cosmosdb "github.com/pulumi/pulumi-azure-native-sdk/cosmosdb/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cosmosdb.NewDatabaseAccountSqlDatabase(ctx, "databaseAccountSqlDatabase", &cosmosdb.DatabaseAccountSqlDatabaseArgs{
AccountName: pulumi.String("ddb1"),
DatabaseName: pulumi.String("databaseName"),
Options: pulumi.StringMap{},
Resource: &cosmosdb.SqlDatabaseResourceArgs{
Id: pulumi.String("databaseName"),
},
ResourceGroupName: pulumi.String("rg1"),
})
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.cosmosdb.DatabaseAccountSqlDatabase;
import com.pulumi.azurenative.cosmosdb.DatabaseAccountSqlDatabaseArgs;
import com.pulumi.azurenative.cosmosdb.inputs.SqlDatabaseResourceArgs;
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 databaseAccountSqlDatabase = new DatabaseAccountSqlDatabase("databaseAccountSqlDatabase", DatabaseAccountSqlDatabaseArgs.builder()
.accountName("ddb1")
.databaseName("databaseName")
.options(Map.ofEntries(
))
.resource(SqlDatabaseResourceArgs.builder()
.id("databaseName")
.build())
.resourceGroupName("rg1")
.build());
}
}

Import

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

$ pulumi import azure-native:cosmosdb:DatabaseAccountSqlDatabase databaseName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val colls: Output<String>?

A system generated property that specified the addressable path of the collections resource.

Link copied to clipboard
val etag: Output<String>?

A system generated property representing the resource etag required for optimistic concurrency control.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

The location of the resource group to which the resource belongs.

Link copied to clipboard
val name: Output<String>

The name of the database account.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rid: Output<String>?

A system generated property. A unique identifier.

Link copied to clipboard
val tags: Output<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".

Link copied to clipboard
val ts: Output<Any>?

A system generated property that denotes the last updated timestamp of the resource.

Link copied to clipboard
val type: Output<String>

The type of Azure resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val users: Output<String>?

A system generated property that specifies the addressable path of the users resource.