"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.DbInstance = exports.RestoreToPointInTime = exports.S3Import = void 0;
const core = __importStar(require("@terrascript/core"));
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 RestoreToPointInTime extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "restoreTime", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "sourceDbInstanceAutomatedBackupsArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "sourceDbInstanceIdentifier", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "sourceDbiResourceId", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], RestoreToPointInTime.prototype, "useLatestRestorableTime", void 0);
exports.RestoreToPointInTime = RestoreToPointInTime;
class DbInstance extends core.Resource {
    constructor(name, args) {
        super(name, "aws_db_instance", args);
    }
    getNamespace() {
        return "aws_rds";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "address", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "allocatedStorage", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "allowMajorVersionUpgrade", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "applyImmediately", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "arn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "autoMinorVersionUpgrade", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "availabilityZone", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "backupRetentionPeriod", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "backupWindow", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "caCertIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "characterSetName", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "copyTagsToSnapshot", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "customerOwnedIpEnabled", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "dbName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "dbSubnetGroupName", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "deleteAutomatedBackups", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "deletionProtection", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "domain", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "domainIamRoleName", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "enabledCloudwatchLogsExports", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "endpoint", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "engine", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "engineVersion", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "engineVersionActual", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "finalSnapshotIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "hostedZoneId", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "iamDatabaseAuthenticationEnabled", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "id", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "identifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "identifierPrefix", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "instanceClass", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DbInstance.prototype, "iops", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "kmsKeyId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "latestRestorableTime", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "licenseModel", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "maintenanceWindow", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DbInstance.prototype, "maxAllocatedStorage", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DbInstance.prototype, "monitoringInterval", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "monitoringRoleArn", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "multiAz", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "name", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "ncharCharacterSetName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "networkType", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "optionGroupName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "parameterGroupName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "password", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "performanceInsightsEnabled", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "performanceInsightsKmsKeyId", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "performanceInsightsRetentionPeriod", void 0);
__decorate([
    core.attr(Number, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "port", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "publiclyAccessible", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "replicaMode", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "replicas", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DbInstance.prototype, "replicateSourceDb", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "resourceId", void 0);
__decorate([
    core.attr(RestoreToPointInTime),
    __metadata("design:type", RestoreToPointInTime)
], DbInstance.prototype, "restoreToPointInTime", void 0);
__decorate([
    core.attr(S3Import),
    __metadata("design:type", S3Import)
], DbInstance.prototype, "s3Import", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "securityGroupNames", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "skipFinalSnapshot", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "snapshotIdentifier", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "status", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DbInstance.prototype, "storageEncrypted", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "storageType", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "timezone", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DbInstance.prototype, "username", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], DbInstance.prototype, "vpcSecurityGroupIds", void 0);
exports.DbInstance = DbInstance;
//# sourceMappingURL=db_instance.js.map