"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Table = exports.SchemaDefinition = exports.StaticColumn = exports.PartitionKey = exports.Column = exports.ClusteringKey = exports.PointInTimeRecovery = exports.Ttl = exports.EncryptionSpecification = exports.Comment = exports.CapacitySpecification = void 0;
const core = __importStar(require("@terrascript/core"));
class CapacitySpecification extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CapacitySpecification.prototype, "readCapacityUnits", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CapacitySpecification.prototype, "throughputMode", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CapacitySpecification.prototype, "writeCapacityUnits", void 0);
exports.CapacitySpecification = CapacitySpecification;
class Comment extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Comment.prototype, "message", void 0);
exports.Comment = Comment;
class EncryptionSpecification extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EncryptionSpecification.prototype, "kmsKeyIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EncryptionSpecification.prototype, "type", void 0);
exports.EncryptionSpecification = EncryptionSpecification;
class Ttl extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Ttl.prototype, "status", void 0);
exports.Ttl = Ttl;
class PointInTimeRecovery extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], PointInTimeRecovery.prototype, "status", void 0);
exports.PointInTimeRecovery = PointInTimeRecovery;
class ClusteringKey extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClusteringKey.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClusteringKey.prototype, "orderBy", void 0);
exports.ClusteringKey = ClusteringKey;
class Column extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Column.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Column.prototype, "type", void 0);
exports.Column = Column;
class PartitionKey extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PartitionKey.prototype, "name", void 0);
exports.PartitionKey = PartitionKey;
class StaticColumn extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], StaticColumn.prototype, "name", void 0);
exports.StaticColumn = StaticColumn;
class SchemaDefinition extends core.Schema {
}
__decorate([
    core.attr(ClusteringKey, { kind: "array" }),
    __metadata("design:type", Object)
], SchemaDefinition.prototype, "clusteringKey", void 0);
__decorate([
    core.attr(Column, { kind: "array" }),
    __metadata("design:type", Object)
], SchemaDefinition.prototype, "column", void 0);
__decorate([
    core.attr(PartitionKey, { kind: "array" }),
    __metadata("design:type", Object)
], SchemaDefinition.prototype, "partitionKey", void 0);
__decorate([
    core.attr(StaticColumn, { kind: "array" }),
    __metadata("design:type", Object)
], SchemaDefinition.prototype, "staticColumn", void 0);
exports.SchemaDefinition = SchemaDefinition;
class Table extends core.Resource {
    constructor(name, args) {
        super(name, "aws_keyspaces_table", args);
    }
    getNamespace() {
        return "aws_keyspaces";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Table.prototype, "arn", void 0);
__decorate([
    core.attr(CapacitySpecification, { computed: true }),
    __metadata("design:type", CapacitySpecification)
], Table.prototype, "capacitySpecification", void 0);
__decorate([
    core.attr(Comment, { computed: true }),
    __metadata("design:type", Comment)
], Table.prototype, "comment", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Table.prototype, "defaultTimeToLive", void 0);
__decorate([
    core.attr(EncryptionSpecification, { computed: true }),
    __metadata("design:type", EncryptionSpecification)
], Table.prototype, "encryptionSpecification", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Table.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Table.prototype, "keyspaceName", void 0);
__decorate([
    core.attr(PointInTimeRecovery, { computed: true }),
    __metadata("design:type", PointInTimeRecovery)
], Table.prototype, "pointInTimeRecovery", void 0);
__decorate([
    core.attr(SchemaDefinition),
    __metadata("design:type", SchemaDefinition)
], Table.prototype, "schemaDefinition", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Table.prototype, "tableName", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Table.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Table.prototype, "tagsAll", void 0);
__decorate([
    core.attr(Ttl),
    __metadata("design:type", Ttl)
], Table.prototype, "ttl", void 0);
exports.Table = Table;
//# sourceMappingURL=table.js.map