"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.BucketReplicationConfiguration = exports.Rule = exports.Filter = exports.Tag = exports.And = exports.Destination = exports.AccessControlTranslation = exports.ReplicationTime = exports.Time = exports.Metrics = exports.EventThreshold = exports.EncryptionConfiguration = exports.DeleteMarkerReplication = exports.SourceSelectionCriteria = exports.SseKmsEncryptedObjects = exports.ReplicaModifications = exports.ExistingObjectReplication = void 0;
const core = __importStar(require("@terrascript/core"));
class ExistingObjectReplication extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ExistingObjectReplication.prototype, "status", void 0);
exports.ExistingObjectReplication = ExistingObjectReplication;
class ReplicaModifications extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ReplicaModifications.prototype, "status", void 0);
exports.ReplicaModifications = ReplicaModifications;
class SseKmsEncryptedObjects extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SseKmsEncryptedObjects.prototype, "status", void 0);
exports.SseKmsEncryptedObjects = SseKmsEncryptedObjects;
class SourceSelectionCriteria extends core.Schema {
}
__decorate([
    core.attr(ReplicaModifications),
    __metadata("design:type", ReplicaModifications)
], SourceSelectionCriteria.prototype, "replicaModifications", void 0);
__decorate([
    core.attr(SseKmsEncryptedObjects),
    __metadata("design:type", SseKmsEncryptedObjects)
], SourceSelectionCriteria.prototype, "sseKmsEncryptedObjects", void 0);
exports.SourceSelectionCriteria = SourceSelectionCriteria;
class DeleteMarkerReplication extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DeleteMarkerReplication.prototype, "status", void 0);
exports.DeleteMarkerReplication = DeleteMarkerReplication;
class EncryptionConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EncryptionConfiguration.prototype, "replicaKmsKeyId", void 0);
exports.EncryptionConfiguration = EncryptionConfiguration;
class EventThreshold extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], EventThreshold.prototype, "minutes", void 0);
exports.EventThreshold = EventThreshold;
class Metrics extends core.Schema {
}
__decorate([
    core.attr(EventThreshold),
    __metadata("design:type", EventThreshold)
], Metrics.prototype, "eventThreshold", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Metrics.prototype, "status", void 0);
exports.Metrics = Metrics;
class Time extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Time.prototype, "minutes", void 0);
exports.Time = Time;
class ReplicationTime extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ReplicationTime.prototype, "status", void 0);
__decorate([
    core.attr(Time),
    __metadata("design:type", Time)
], ReplicationTime.prototype, "time", void 0);
exports.ReplicationTime = ReplicationTime;
class AccessControlTranslation extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AccessControlTranslation.prototype, "owner", void 0);
exports.AccessControlTranslation = AccessControlTranslation;
class Destination extends core.Schema {
}
__decorate([
    core.attr(AccessControlTranslation),
    __metadata("design:type", AccessControlTranslation)
], Destination.prototype, "accessControlTranslation", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Destination.prototype, "account", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Destination.prototype, "bucket", void 0);
__decorate([
    core.attr(EncryptionConfiguration),
    __metadata("design:type", EncryptionConfiguration)
], Destination.prototype, "encryptionConfiguration", void 0);
__decorate([
    core.attr(Metrics),
    __metadata("design:type", Metrics)
], Destination.prototype, "metrics", void 0);
__decorate([
    core.attr(ReplicationTime),
    __metadata("design:type", ReplicationTime)
], Destination.prototype, "replicationTime", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Destination.prototype, "storageClass", void 0);
exports.Destination = Destination;
class And extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], And.prototype, "prefix", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], And.prototype, "tags", void 0);
exports.And = And;
class Tag extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Tag.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Tag.prototype, "value", void 0);
exports.Tag = Tag;
class Filter extends core.Schema {
}
__decorate([
    core.attr(And),
    __metadata("design:type", And)
], Filter.prototype, "and", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Filter.prototype, "prefix", void 0);
__decorate([
    core.attr(Tag),
    __metadata("design:type", Tag)
], Filter.prototype, "tag", void 0);
exports.Filter = Filter;
class Rule extends core.Schema {
}
__decorate([
    core.attr(DeleteMarkerReplication),
    __metadata("design:type", DeleteMarkerReplication)
], Rule.prototype, "deleteMarkerReplication", void 0);
__decorate([
    core.attr(Destination),
    __metadata("design:type", Destination)
], Rule.prototype, "destination", void 0);
__decorate([
    core.attr(ExistingObjectReplication),
    __metadata("design:type", ExistingObjectReplication)
], Rule.prototype, "existingObjectReplication", void 0);
__decorate([
    core.attr(Filter),
    __metadata("design:type", Filter)
], Rule.prototype, "filter", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Rule.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rule.prototype, "prefix", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Rule.prototype, "priority", void 0);
__decorate([
    core.attr(SourceSelectionCriteria),
    __metadata("design:type", SourceSelectionCriteria)
], Rule.prototype, "sourceSelectionCriteria", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rule.prototype, "status", void 0);
exports.Rule = Rule;
class BucketReplicationConfiguration extends core.Resource {
    constructor(name, args) {
        super(name, "aws_s3_bucket_replication_configuration", args);
    }
    getNamespace() {
        return "aws_s3";
    }
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BucketReplicationConfiguration.prototype, "bucket", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], BucketReplicationConfiguration.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BucketReplicationConfiguration.prototype, "role", void 0);
__decorate([
    core.attr(Rule, { kind: "array" }),
    __metadata("design:type", Object)
], BucketReplicationConfiguration.prototype, "rule", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], BucketReplicationConfiguration.prototype, "token", void 0);
exports.BucketReplicationConfiguration = BucketReplicationConfiguration;
//# sourceMappingURL=bucket_replication_configuration.js.map