"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.Cluster = exports.S3Import = exports.Serverlessv2ScalingConfiguration = exports.ScalingConfiguration = exports.RestoreToPointInTime = void 0;
const core = __importStar(require("@terrascript/core"));
class RestoreToPointInTime extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "restoreToTime", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "restoreType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "sourceClusterIdentifier", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "useLatestRestorableTime", void 0);
exports.RestoreToPointInTime = RestoreToPointInTime;
class ScalingConfiguration extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ScalingConfiguration.prototype, "autoPause", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScalingConfiguration.prototype, "maxCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScalingConfiguration.prototype, "minCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScalingConfiguration.prototype, "secondsUntilAutoPause", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ScalingConfiguration.prototype, "timeoutAction", void 0);
exports.ScalingConfiguration = ScalingConfiguration;
class Serverlessv2ScalingConfiguration extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Serverlessv2ScalingConfiguration.prototype, "maxCapacity", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Serverlessv2ScalingConfiguration.prototype, "minCapacity", void 0);
exports.Serverlessv2ScalingConfiguration = Serverlessv2ScalingConfiguration;
class S3Import extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Import.prototype, "bucketName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Import.prototype, "bucketPrefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Import.prototype, "ingestionRole", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Import.prototype, "sourceEngine", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Import.prototype, "sourceEngineVersion", void 0);
exports.S3Import = S3Import;
class Cluster extends core.Resource {
    constructor(name, args) {
        super(name, "aws_rds_cluster", args);
    }
    getNamespace() {
        return "aws_rds";
    }
}
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "allocatedStorage", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "allowMajorVersionUpgrade", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "applyImmediately", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "availabilityZones", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Cluster.prototype, "backtrackWindow", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Cluster.prototype, "backupRetentionPeriod", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "clusterIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "clusterIdentifierPrefix", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "clusterMembers", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "clusterResourceId", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "copyTagsToSnapshot", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "databaseName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "dbClusterInstanceClass", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "dbClusterParameterGroupName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "dbInstanceParameterGroupName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "dbSubnetGroupName", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "deletionProtection", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "enableGlobalWriteForwarding", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "enableHttpEndpoint", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "enabledCloudwatchLogsExports", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "endpoint", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "engine", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "engineMode", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "engineVersion", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "engineVersionActual", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "finalSnapshotIdentifier", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "globalClusterIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "hostedZoneId", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "iamDatabaseAuthenticationEnabled", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "iamRoles", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "id", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Cluster.prototype, "iops", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "kmsKeyId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "masterPassword", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "masterUsername", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "port", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "preferredBackupWindow", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "preferredMaintenanceWindow", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "readerEndpoint", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "replicationSourceIdentifier", void 0);
__decorate([
    core.attr(RestoreToPointInTime),
    __metadata("design:type", RestoreToPointInTime)
], Cluster.prototype, "restoreToPointInTime", void 0);
__decorate([
    core.attr(S3Import),
    __metadata("design:type", S3Import)
], Cluster.prototype, "s3Import", void 0);
__decorate([
    core.attr(ScalingConfiguration),
    __metadata("design:type", ScalingConfiguration)
], Cluster.prototype, "scalingConfiguration", void 0);
__decorate([
    core.attr(Serverlessv2ScalingConfiguration),
    __metadata("design:type", Serverlessv2ScalingConfiguration)
], Cluster.prototype, "serverlessv2ScalingConfiguration", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Cluster.prototype, "skipFinalSnapshot", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "snapshotIdentifier", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "sourceRegion", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Cluster.prototype, "storageEncrypted", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Cluster.prototype, "storageType", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Cluster.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Cluster.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Cluster.prototype, "vpcSecurityGroupIds", void 0);
exports.Cluster = Cluster;
//# sourceMappingURL=cluster.js.map