"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.DataSource = exports.Configuration = exports.WebCrawlerConfiguration = exports.ProxyConfiguration = exports.AuthenticationConfiguration = exports.BasicAuthentication = exports.Urls = exports.SiteMapsConfiguration = exports.SeedUrlConfiguration = exports.S3Configuration = exports.DocumentsMetadataConfiguration = exports.AccessControlListConfiguration = exports.CustomDocumentEnrichmentConfiguration = exports.InlineConfigurations = exports.Condition = exports.Target = exports.TargetDocumentAttributeValue = exports.PreExtractionHookConfiguration = exports.PostExtractionHookConfiguration = exports.InvocationCondition = exports.ConditionOnValue = void 0;
const core = __importStar(require("@terrascript/core"));
class ConditionOnValue extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ConditionOnValue.prototype, "dateValue", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ConditionOnValue.prototype, "longValue", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], ConditionOnValue.prototype, "stringListValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ConditionOnValue.prototype, "stringValue", void 0);
exports.ConditionOnValue = ConditionOnValue;
class InvocationCondition extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InvocationCondition.prototype, "conditionDocumentAttributeKey", void 0);
__decorate([
    core.attr(ConditionOnValue),
    __metadata("design:type", ConditionOnValue)
], InvocationCondition.prototype, "conditionOnValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InvocationCondition.prototype, "operator", void 0);
exports.InvocationCondition = InvocationCondition;
class PostExtractionHookConfiguration extends core.Schema {
}
__decorate([
    core.attr(InvocationCondition),
    __metadata("design:type", InvocationCondition)
], PostExtractionHookConfiguration.prototype, "invocationCondition", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PostExtractionHookConfiguration.prototype, "lambdaArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PostExtractionHookConfiguration.prototype, "s3Bucket", void 0);
exports.PostExtractionHookConfiguration = PostExtractionHookConfiguration;
class PreExtractionHookConfiguration extends core.Schema {
}
__decorate([
    core.attr(InvocationCondition),
    __metadata("design:type", InvocationCondition)
], PreExtractionHookConfiguration.prototype, "invocationCondition", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PreExtractionHookConfiguration.prototype, "lambdaArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PreExtractionHookConfiguration.prototype, "s3Bucket", void 0);
exports.PreExtractionHookConfiguration = PreExtractionHookConfiguration;
class TargetDocumentAttributeValue extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetDocumentAttributeValue.prototype, "dateValue", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], TargetDocumentAttributeValue.prototype, "longValue", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], TargetDocumentAttributeValue.prototype, "stringListValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], TargetDocumentAttributeValue.prototype, "stringValue", void 0);
exports.TargetDocumentAttributeValue = TargetDocumentAttributeValue;
class Target extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Target.prototype, "targetDocumentAttributeKey", void 0);
__decorate([
    core.attr(TargetDocumentAttributeValue),
    __metadata("design:type", TargetDocumentAttributeValue)
], Target.prototype, "targetDocumentAttributeValue", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Target.prototype, "targetDocumentAttributeValueDeletion", void 0);
exports.Target = Target;
class Condition extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Condition.prototype, "conditionDocumentAttributeKey", void 0);
__decorate([
    core.attr(ConditionOnValue),
    __metadata("design:type", ConditionOnValue)
], Condition.prototype, "conditionOnValue", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Condition.prototype, "operator", void 0);
exports.Condition = Condition;
class InlineConfigurations extends core.Schema {
}
__decorate([
    core.attr(Condition),
    __metadata("design:type", Condition)
], InlineConfigurations.prototype, "condition", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], InlineConfigurations.prototype, "documentContentDeletion", void 0);
__decorate([
    core.attr(Target),
    __metadata("design:type", Target)
], InlineConfigurations.prototype, "target", void 0);
exports.InlineConfigurations = InlineConfigurations;
class CustomDocumentEnrichmentConfiguration extends core.Schema {
}
__decorate([
    core.attr(InlineConfigurations, { kind: "array" }),
    __metadata("design:type", Object)
], CustomDocumentEnrichmentConfiguration.prototype, "inlineConfigurations", void 0);
__decorate([
    core.attr(PostExtractionHookConfiguration),
    __metadata("design:type", PostExtractionHookConfiguration)
], CustomDocumentEnrichmentConfiguration.prototype, "postExtractionHookConfiguration", void 0);
__decorate([
    core.attr(PreExtractionHookConfiguration),
    __metadata("design:type", PreExtractionHookConfiguration)
], CustomDocumentEnrichmentConfiguration.prototype, "preExtractionHookConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CustomDocumentEnrichmentConfiguration.prototype, "roleArn", void 0);
exports.CustomDocumentEnrichmentConfiguration = CustomDocumentEnrichmentConfiguration;
class AccessControlListConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AccessControlListConfiguration.prototype, "keyPath", void 0);
exports.AccessControlListConfiguration = AccessControlListConfiguration;
class DocumentsMetadataConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DocumentsMetadataConfiguration.prototype, "s3Prefix", void 0);
exports.DocumentsMetadataConfiguration = DocumentsMetadataConfiguration;
class S3Configuration extends core.Schema {
}
__decorate([
    core.attr(AccessControlListConfiguration),
    __metadata("design:type", AccessControlListConfiguration)
], S3Configuration.prototype, "accessControlListConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], S3Configuration.prototype, "bucketName", void 0);
__decorate([
    core.attr(DocumentsMetadataConfiguration),
    __metadata("design:type", DocumentsMetadataConfiguration)
], S3Configuration.prototype, "documentsMetadataConfiguration", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], S3Configuration.prototype, "exclusionPatterns", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], S3Configuration.prototype, "inclusionPatterns", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], S3Configuration.prototype, "inclusionPrefixes", void 0);
exports.S3Configuration = S3Configuration;
class SeedUrlConfiguration extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], SeedUrlConfiguration.prototype, "seedUrls", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SeedUrlConfiguration.prototype, "webCrawlerMode", void 0);
exports.SeedUrlConfiguration = SeedUrlConfiguration;
class SiteMapsConfiguration extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], SiteMapsConfiguration.prototype, "siteMaps", void 0);
exports.SiteMapsConfiguration = SiteMapsConfiguration;
class Urls extends core.Schema {
}
__decorate([
    core.attr(SeedUrlConfiguration),
    __metadata("design:type", SeedUrlConfiguration)
], Urls.prototype, "seedUrlConfiguration", void 0);
__decorate([
    core.attr(SiteMapsConfiguration),
    __metadata("design:type", SiteMapsConfiguration)
], Urls.prototype, "siteMapsConfiguration", void 0);
exports.Urls = Urls;
class BasicAuthentication extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BasicAuthentication.prototype, "credentials", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BasicAuthentication.prototype, "host", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], BasicAuthentication.prototype, "port", void 0);
exports.BasicAuthentication = BasicAuthentication;
class AuthenticationConfiguration extends core.Schema {
}
__decorate([
    core.attr(BasicAuthentication, { kind: "array" }),
    __metadata("design:type", Object)
], AuthenticationConfiguration.prototype, "basicAuthentication", void 0);
exports.AuthenticationConfiguration = AuthenticationConfiguration;
class ProxyConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ProxyConfiguration.prototype, "credentials", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ProxyConfiguration.prototype, "host", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ProxyConfiguration.prototype, "port", void 0);
exports.ProxyConfiguration = ProxyConfiguration;
class WebCrawlerConfiguration extends core.Schema {
}
__decorate([
    core.attr(AuthenticationConfiguration),
    __metadata("design:type", AuthenticationConfiguration)
], WebCrawlerConfiguration.prototype, "authenticationConfiguration", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "crawlDepth", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "maxContentSizePerPageInMegaBytes", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "maxLinksPerPage", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "maxUrlsPerMinuteCrawlRate", void 0);
__decorate([
    core.attr(ProxyConfiguration),
    __metadata("design:type", ProxyConfiguration)
], WebCrawlerConfiguration.prototype, "proxyConfiguration", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "urlExclusionPatterns", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], WebCrawlerConfiguration.prototype, "urlInclusionPatterns", void 0);
__decorate([
    core.attr(Urls),
    __metadata("design:type", Urls)
], WebCrawlerConfiguration.prototype, "urls", void 0);
exports.WebCrawlerConfiguration = WebCrawlerConfiguration;
class Configuration extends core.Schema {
}
__decorate([
    core.attr(S3Configuration),
    __metadata("design:type", S3Configuration)
], Configuration.prototype, "s3Configuration", void 0);
__decorate([
    core.attr(WebCrawlerConfiguration),
    __metadata("design:type", WebCrawlerConfiguration)
], Configuration.prototype, "webCrawlerConfiguration", void 0);
exports.Configuration = Configuration;
class DataSource extends core.Resource {
    constructor(name, args) {
        super(name, "aws_kendra_data_source", args);
    }
    getNamespace() {
        return "aws_kendra";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "arn", void 0);
__decorate([
    core.attr(Configuration),
    __metadata("design:type", Configuration)
], DataSource.prototype, "configuration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "createdAt", void 0);
__decorate([
    core.attr(CustomDocumentEnrichmentConfiguration),
    __metadata("design:type", CustomDocumentEnrichmentConfiguration)
], DataSource.prototype, "customDocumentEnrichmentConfiguration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "dataSourceId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "description", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "errorMessage", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "indexId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "languageCode", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "name", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "roleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "schedule", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "status", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], DataSource.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], DataSource.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DataSource.prototype, "type", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], DataSource.prototype, "updatedAt", void 0);
exports.DataSource = DataSource;
//# sourceMappingURL=data_source.js.map