CassandraResourceCassandraTable
Provides a CassandraResourceCassandraTable from the DocumentDB group
Examples
CosmosDBCassandraTableCreateUpdate
exports.createResources = () => [
{
type: "CassandraResourceCassandraTable",
group: "DocumentDB",
name: "myCassandraResourceCassandraTable",
properties: () => ({
location: "West US",
tags: {},
properties: {
resource: {
id: "tableName",
defaultTtl: 100,
schema: {
columns: [{ name: "columnA", type: "Ascii" }],
partitionKeys: [{ name: "columnA" }],
clusterKeys: [{ name: "columnA", orderBy: "Asc" }],
},
},
options: {},
},
}),
dependencies: ({}) => ({
resourceGroup: "myResourceGroup",
account: "myDatabaseAccount",
keyspace: "myCassandraResourceCassandraKeyspace",
}),
},
];
Dependencies
Swagger Schema
{
description: 'Parameters to create and update Cosmos DB Cassandra table.',
type: 'object',
properties: {
properties: {
'x-ms-client-flatten': true,
description: 'Properties to create and update Azure Cosmos DB Cassandra table.',
type: 'object',
properties: {
resource: {
description: 'The standard JSON format of a Cassandra table',
type: 'object',
properties: {
id: {
type: 'string',
description: 'Name of the Cosmos DB Cassandra table'
},
defaultTtl: {
type: 'integer',
description: 'Time to live of the Cosmos DB Cassandra table'
},
schema: {
description: 'Schema of the Cosmos DB Cassandra table',
type: 'object',
properties: {
columns: {
type: 'array',
items: {
type: 'object',
description: 'Cosmos DB Cassandra table column',
properties: {
name: {
type: 'string',
description: 'Name of the Cosmos DB Cassandra table column'
},
type: {
type: 'string',
description: 'Type of the Cosmos DB Cassandra table column'
}
}
},
description: 'List of Cassandra table columns.'
},
partitionKeys: {
type: 'array',
items: {
type: 'object',
description: 'Cosmos DB Cassandra table partition key',
properties: {
name: {
type: 'string',
description: 'Name of the Cosmos DB Cassandra table partition key'
}
}
},
description: 'List of partition key.'
},
clusterKeys: {
type: 'array',
items: {
type: 'object',
description: 'Cosmos DB Cassandra table cluster key',
properties: {
name: {
type: 'string',
description: 'Name of the Cosmos DB Cassandra table cluster key'
},
orderBy: {
type: 'string',
description: 'Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"'
}
}
},
description: 'List of cluster key.'
}
}
},
analyticalStorageTtl: { type: 'integer', description: 'Analytical TTL.' }
},
required: [ 'id' ]
},
options: {
description: 'A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.',
type: 'object',
properties: {
throughput: {
type: 'integer',
description: 'Request Units per second. For example, "throughput": 10000.'
},
autoscaleSettings: {
description: 'Specifies the Autoscale settings.',
type: 'object',
properties: {
maxThroughput: {
type: 'integer',
description: 'Represents maximum throughput, the resource can scale up to.'
}
}
}
}
}
},
required: [ 'resource' ]
}
},
allOf: [
{
type: 'object',
description: 'The core properties of ARM resources.',
properties: {
id: {
readOnly: true,
type: 'string',
description: 'The unique resource identifier of the ARM resource.'
},
name: {
readOnly: true,
type: 'string',
description: 'The name of the ARM resource.'
},
type: {
readOnly: true,
type: 'string',
description: 'The type of Azure resource.'
},
location: {
type: 'string',
description: 'The location of the resource group to which the resource belongs.'
},
tags: {
type: 'object',
additionalProperties: { type: 'string' },
description: '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".'
}
},
'x-ms-azure-resource': true
}
],
required: [ 'properties' ]
}
Misc
The resource version is 2022-05-15
.
The Swagger schema used to generate this documentation can be found here.