"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.Endpoint = exports.KafkaSettings = exports.S3Settings = exports.ElasticsearchSettings = exports.RedshiftSettings = exports.KinesisSettings = exports.MongodbSettings = void 0;
const core = __importStar(require("@terrascript/core"));
class MongodbSettings extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "authMechanism", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "authSource", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "authType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "docsToInvestigate", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "extractDocId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbSettings.prototype, "nestingLevel", void 0);
exports.MongodbSettings = MongodbSettings;
class KinesisSettings extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "includeControlDetails", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "includeNullAndEmpty", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "includePartitionValue", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "includeTableAlterOperations", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "includeTransactionDetails", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "messageFormat", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "partitionIncludeSchemaTable", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "serviceAccessRoleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KinesisSettings.prototype, "streamArn", void 0);
exports.KinesisSettings = KinesisSettings;
class RedshiftSettings extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RedshiftSettings.prototype, "bucketFolder", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RedshiftSettings.prototype, "bucketName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RedshiftSettings.prototype, "encryptionMode", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RedshiftSettings.prototype, "serverSideEncryptionKmsKeyId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RedshiftSettings.prototype, "serviceAccessRoleArn", void 0);
exports.RedshiftSettings = RedshiftSettings;
class ElasticsearchSettings extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ElasticsearchSettings.prototype, "endpointUri", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ElasticsearchSettings.prototype, "errorRetryDuration", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ElasticsearchSettings.prototype, "fullLoadErrorPercentage", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ElasticsearchSettings.prototype, "serviceAccessRoleArn", void 0);
exports.ElasticsearchSettings = ElasticsearchSettings;
class S3Settings extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "addColumnName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "bucketFolder", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "bucketName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "cannedAclForObjects", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "cdcInsertsAndUpdates", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "cdcInsertsOnly", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "cdcMaxBatchInterval", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "cdcMinFileSize", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "cdcPath", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "compressionType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "csvDelimiter", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "csvNoSupValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "csvNullValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "csvRowDelimiter", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "dataFormat", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "dataPageSize", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "datePartitionDelimiter", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "datePartitionEnabled", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "datePartitionSequence", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "dictPageSizeLimit", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "enableStatistics", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "encodingType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "encryptionMode", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "externalTableDefinition", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "ignoreHeadersRow", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "includeOpForFullLoad", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "maxFileSize", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "parquetTimestampInMillisecond", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "parquetVersion", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "preserveTransactions", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "rfc4180", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Settings.prototype, "rowGroupLength", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "serverSideEncryptionKmsKeyId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "serviceAccessRoleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Settings.prototype, "timestampColumnName", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], S3Settings.prototype, "useCsvNoSupValue", void 0);
exports.S3Settings = S3Settings;
class KafkaSettings extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "broker", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "includeControlDetails", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "includeNullAndEmpty", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "includePartitionValue", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "includeTableAlterOperations", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "includeTransactionDetails", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "messageFormat", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "messageMaxBytes", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "noHexPrefix", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "partitionIncludeSchemaTable", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "saslPassword", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "saslUsername", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "securityProtocol", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "sslCaCertificateArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "sslClientCertificateArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "sslClientKeyArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "sslClientKeyPassword", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], KafkaSettings.prototype, "topic", void 0);
exports.KafkaSettings = KafkaSettings;
class Endpoint extends core.Resource {
    constructor(name, args) {
        super(name, "aws_dms_endpoint", args);
    }
    getNamespace() {
        return "aws_dms";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "certificateArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "databaseName", void 0);
__decorate([
    core.attr(ElasticsearchSettings),
    __metadata("design:type", ElasticsearchSettings)
], Endpoint.prototype, "elasticsearchSettings", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "endpointArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "endpointId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "endpointType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "engineName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "extraConnectionAttributes", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "id", void 0);
__decorate([
    core.attr(KafkaSettings),
    __metadata("design:type", KafkaSettings)
], Endpoint.prototype, "kafkaSettings", void 0);
__decorate([
    core.attr(KinesisSettings),
    __metadata("design:type", KinesisSettings)
], Endpoint.prototype, "kinesisSettings", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "kmsKeyArn", void 0);
__decorate([
    core.attr(MongodbSettings),
    __metadata("design:type", MongodbSettings)
], Endpoint.prototype, "mongodbSettings", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "password", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Endpoint.prototype, "port", void 0);
__decorate([
    core.attr(RedshiftSettings, { computed: true }),
    __metadata("design:type", RedshiftSettings)
], Endpoint.prototype, "redshiftSettings", void 0);
__decorate([
    core.attr(S3Settings),
    __metadata("design:type", S3Settings)
], Endpoint.prototype, "s3Settings", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "secretsManagerAccessRoleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "secretsManagerArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "serverName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "serviceAccessRole", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Endpoint.prototype, "sslMode", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Endpoint.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Endpoint.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Endpoint.prototype, "username", void 0);
exports.Endpoint = Endpoint;
//# sourceMappingURL=endpoint.js.map