"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.Crawler = exports.RecrawlPolicy = exports.DynamodbTarget = exports.LineageConfiguration = exports.JdbcTarget = exports.MongodbTarget = exports.SchemaChangePolicy = exports.DeltaTarget = exports.CatalogTarget = exports.S3Target = void 0;
const core = __importStar(require("@terrascript/core"));
class S3Target extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Target.prototype, "connectionName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Target.prototype, "dlqEventQueueArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Target.prototype, "eventQueueArn", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], S3Target.prototype, "exclusions", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Target.prototype, "path", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], S3Target.prototype, "sampleSize", void 0);
exports.S3Target = S3Target;
class CatalogTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CatalogTarget.prototype, "databaseName", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], CatalogTarget.prototype, "tables", void 0);
exports.CatalogTarget = CatalogTarget;
class DeltaTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeltaTarget.prototype, "connectionName", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], DeltaTarget.prototype, "deltaTables", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DeltaTarget.prototype, "writeManifest", void 0);
exports.DeltaTarget = DeltaTarget;
class SchemaChangePolicy extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SchemaChangePolicy.prototype, "deleteBehavior", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SchemaChangePolicy.prototype, "updateBehavior", void 0);
exports.SchemaChangePolicy = SchemaChangePolicy;
class MongodbTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbTarget.prototype, "connectionName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], MongodbTarget.prototype, "path", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], MongodbTarget.prototype, "scanAll", void 0);
exports.MongodbTarget = MongodbTarget;
class JdbcTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], JdbcTarget.prototype, "connectionName", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], JdbcTarget.prototype, "exclusions", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], JdbcTarget.prototype, "path", void 0);
exports.JdbcTarget = JdbcTarget;
class LineageConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LineageConfiguration.prototype, "crawlerLineageSettings", void 0);
exports.LineageConfiguration = LineageConfiguration;
class DynamodbTarget extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DynamodbTarget.prototype, "path", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], DynamodbTarget.prototype, "scanAll", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DynamodbTarget.prototype, "scanRate", void 0);
exports.DynamodbTarget = DynamodbTarget;
class RecrawlPolicy extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], RecrawlPolicy.prototype, "recrawlBehavior", void 0);
exports.RecrawlPolicy = RecrawlPolicy;
class Crawler extends core.Resource {
    constructor(name, args) {
        super(name, "aws_glue_crawler", args);
    }
    getNamespace() {
        return "aws_glue";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Crawler.prototype, "arn", void 0);
__decorate([
    core.attr(CatalogTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "catalogTarget", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "classifiers", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "configuration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "databaseName", void 0);
__decorate([
    core.attr(DeltaTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "deltaTarget", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "description", void 0);
__decorate([
    core.attr(DynamodbTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "dynamodbTarget", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Crawler.prototype, "id", void 0);
__decorate([
    core.attr(JdbcTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "jdbcTarget", void 0);
__decorate([
    core.attr(LineageConfiguration),
    __metadata("design:type", LineageConfiguration)
], Crawler.prototype, "lineageConfiguration", void 0);
__decorate([
    core.attr(MongodbTarget, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "mongodbTarget", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "name", void 0);
__decorate([
    core.attr(RecrawlPolicy),
    __metadata("design:type", RecrawlPolicy)
], Crawler.prototype, "recrawlPolicy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "role", void 0);
__decorate([
    core.attr(S3Target, { kind: "array" }),
    __metadata("design:type", Object)
], Crawler.prototype, "s3Target", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "schedule", void 0);
__decorate([
    core.attr(SchemaChangePolicy),
    __metadata("design:type", SchemaChangePolicy)
], Crawler.prototype, "schemaChangePolicy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "securityConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Crawler.prototype, "tablePrefix", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Crawler.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Crawler.prototype, "tagsAll", void 0);
exports.Crawler = Crawler;
//# sourceMappingURL=crawler.js.map