"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.Bucket = exports.CorsRule = exports.ServerSideEncryptionConfiguration = exports.ServerSideEncryptionConfigurationRule = exports.ApplyServerSideEncryptionByDefault = exports.ObjectLockConfiguration = exports.ObjectLockConfigurationRule = exports.DefaultRetention = exports.Grant = exports.Logging = exports.LifecycleRule = exports.Transition = exports.NoncurrentVersionExpiration = exports.NoncurrentVersionTransition = exports.Expiration = exports.ReplicationConfiguration = exports.Rules = exports.SourceSelectionCriteria = exports.SseKmsEncryptedObjects = exports.Destination = exports.Metrics = exports.ReplicationTime = exports.AccessControlTranslation = exports.Filter = exports.Versioning = exports.Website = void 0;
const core = __importStar(require("@terrascript/core"));
class Website extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Website.prototype, "errorDocument", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Website.prototype, "indexDocument", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Website.prototype, "redirectAllRequestsTo", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Website.prototype, "routingRules", void 0);
exports.Website = Website;
class Versioning extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Versioning.prototype, "enabled", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Versioning.prototype, "mfaDelete", void 0);
exports.Versioning = Versioning;
class Filter extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Filter.prototype, "prefix", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Filter.prototype, "tags", void 0);
exports.Filter = Filter;
class AccessControlTranslation extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AccessControlTranslation.prototype, "owner", void 0);
exports.AccessControlTranslation = AccessControlTranslation;
class ReplicationTime extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ReplicationTime.prototype, "minutes", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ReplicationTime.prototype, "status", void 0);
exports.ReplicationTime = ReplicationTime;
class Metrics extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Metrics.prototype, "minutes", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Metrics.prototype, "status", void 0);
exports.Metrics = Metrics;
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, "accountId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Destination.prototype, "bucket", void 0);
__decorate([
    core.attr(Metrics),
    __metadata("design:type", Metrics)
], Destination.prototype, "metrics", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Destination.prototype, "replicaKmsKeyId", 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 SseKmsEncryptedObjects extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], SseKmsEncryptedObjects.prototype, "enabled", void 0);
exports.SseKmsEncryptedObjects = SseKmsEncryptedObjects;
class SourceSelectionCriteria extends core.Schema {
}
__decorate([
    core.attr(SseKmsEncryptedObjects),
    __metadata("design:type", SseKmsEncryptedObjects)
], SourceSelectionCriteria.prototype, "sseKmsEncryptedObjects", void 0);
exports.SourceSelectionCriteria = SourceSelectionCriteria;
class Rules extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "deleteMarkerReplicationStatus", void 0);
__decorate([
    core.attr(Destination),
    __metadata("design:type", Destination)
], Rules.prototype, "destination", void 0);
__decorate([
    core.attr(Filter),
    __metadata("design:type", Filter)
], Rules.prototype, "filter", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "prefix", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Rules.prototype, "priority", void 0);
__decorate([
    core.attr(SourceSelectionCriteria),
    __metadata("design:type", SourceSelectionCriteria)
], Rules.prototype, "sourceSelectionCriteria", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Rules.prototype, "status", void 0);
exports.Rules = Rules;
class ReplicationConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ReplicationConfiguration.prototype, "role", void 0);
__decorate([
    core.attr(Rules, { kind: "array" }),
    __metadata("design:type", Object)
], ReplicationConfiguration.prototype, "rules", void 0);
exports.ReplicationConfiguration = ReplicationConfiguration;
class Expiration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Expiration.prototype, "date", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Expiration.prototype, "days", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Expiration.prototype, "expiredObjectDeleteMarker", void 0);
exports.Expiration = Expiration;
class NoncurrentVersionTransition extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], NoncurrentVersionTransition.prototype, "days", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], NoncurrentVersionTransition.prototype, "storageClass", void 0);
exports.NoncurrentVersionTransition = NoncurrentVersionTransition;
class NoncurrentVersionExpiration extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], NoncurrentVersionExpiration.prototype, "days", void 0);
exports.NoncurrentVersionExpiration = NoncurrentVersionExpiration;
class Transition extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Transition.prototype, "date", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], Transition.prototype, "days", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Transition.prototype, "storageClass", void 0);
exports.Transition = Transition;
class LifecycleRule extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "abortIncompleteMultipartUploadDays", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "enabled", void 0);
__decorate([
    core.attr(Expiration),
    __metadata("design:type", Expiration)
], LifecycleRule.prototype, "expiration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "id", void 0);
__decorate([
    core.attr(NoncurrentVersionExpiration),
    __metadata("design:type", NoncurrentVersionExpiration)
], LifecycleRule.prototype, "noncurrentVersionExpiration", void 0);
__decorate([
    core.attr(NoncurrentVersionTransition, { kind: "array" }),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "noncurrentVersionTransition", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "prefix", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "tags", void 0);
__decorate([
    core.attr(Transition, { kind: "array" }),
    __metadata("design:type", Object)
], LifecycleRule.prototype, "transition", void 0);
exports.LifecycleRule = LifecycleRule;
class Logging extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Logging.prototype, "targetBucket", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Logging.prototype, "targetPrefix", void 0);
exports.Logging = Logging;
class Grant extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Grant.prototype, "id", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], Grant.prototype, "permissions", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Grant.prototype, "type", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Grant.prototype, "uri", void 0);
exports.Grant = Grant;
class DefaultRetention extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DefaultRetention.prototype, "days", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], DefaultRetention.prototype, "mode", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], DefaultRetention.prototype, "years", void 0);
exports.DefaultRetention = DefaultRetention;
class ObjectLockConfigurationRule extends core.Schema {
}
__decorate([
    core.attr(DefaultRetention),
    __metadata("design:type", DefaultRetention)
], ObjectLockConfigurationRule.prototype, "defaultRetention", void 0);
exports.ObjectLockConfigurationRule = ObjectLockConfigurationRule;
class ObjectLockConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ObjectLockConfiguration.prototype, "objectLockEnabled", void 0);
__decorate([
    core.attr(ObjectLockConfigurationRule),
    __metadata("design:type", ObjectLockConfigurationRule)
], ObjectLockConfiguration.prototype, "rule", void 0);
exports.ObjectLockConfiguration = ObjectLockConfiguration;
class ApplyServerSideEncryptionByDefault extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ApplyServerSideEncryptionByDefault.prototype, "kmsMasterKeyId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ApplyServerSideEncryptionByDefault.prototype, "sseAlgorithm", void 0);
exports.ApplyServerSideEncryptionByDefault = ApplyServerSideEncryptionByDefault;
class ServerSideEncryptionConfigurationRule extends core.Schema {
}
__decorate([
    core.attr(ApplyServerSideEncryptionByDefault),
    __metadata("design:type", ApplyServerSideEncryptionByDefault)
], ServerSideEncryptionConfigurationRule.prototype, "applyServerSideEncryptionByDefault", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ServerSideEncryptionConfigurationRule.prototype, "bucketKeyEnabled", void 0);
exports.ServerSideEncryptionConfigurationRule = ServerSideEncryptionConfigurationRule;
class ServerSideEncryptionConfiguration extends core.Schema {
}
__decorate([
    core.attr(ServerSideEncryptionConfigurationRule),
    __metadata("design:type", ServerSideEncryptionConfigurationRule)
], ServerSideEncryptionConfiguration.prototype, "rule", void 0);
exports.ServerSideEncryptionConfiguration = ServerSideEncryptionConfiguration;
class CorsRule extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], CorsRule.prototype, "allowedHeaders", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], CorsRule.prototype, "allowedMethods", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], CorsRule.prototype, "allowedOrigins", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], CorsRule.prototype, "exposeHeaders", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CorsRule.prototype, "maxAgeSeconds", void 0);
exports.CorsRule = CorsRule;
class Bucket extends core.Resource {
    constructor(name, args) {
        super(name, "aws_s3_bucket", args);
    }
    getNamespace() {
        return "aws_s3";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "accelerationStatus", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "acl", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "bucket", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "bucketDomainName", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Bucket.prototype, "bucketPrefix", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "bucketRegionalDomainName", void 0);
__decorate([
    core.attr(CorsRule, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Bucket.prototype, "corsRule", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Bucket.prototype, "forceDestroy", void 0);
__decorate([
    core.attr(Grant, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Bucket.prototype, "grant", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "hostedZoneId", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "id", void 0);
__decorate([
    core.attr(LifecycleRule, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], Bucket.prototype, "lifecycleRule", void 0);
__decorate([
    core.attr(Logging, { computed: true }),
    __metadata("design:type", Logging)
], Bucket.prototype, "logging", void 0);
__decorate([
    core.attr(ObjectLockConfiguration, { computed: true }),
    __metadata("design:type", ObjectLockConfiguration)
], Bucket.prototype, "objectLockConfiguration", void 0);
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "objectLockEnabled", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "policy", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "region", void 0);
__decorate([
    core.attr(ReplicationConfiguration, { computed: true }),
    __metadata("design:type", ReplicationConfiguration)
], Bucket.prototype, "replicationConfiguration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "requestPayer", void 0);
__decorate([
    core.attr(ServerSideEncryptionConfiguration, { computed: true }),
    __metadata("design:type", ServerSideEncryptionConfiguration)
], Bucket.prototype, "serverSideEncryptionConfiguration", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Bucket.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Bucket.prototype, "tagsAll", void 0);
__decorate([
    core.attr(Versioning, { computed: true }),
    __metadata("design:type", Versioning)
], Bucket.prototype, "versioning", void 0);
__decorate([
    core.attr(Website, { computed: true }),
    __metadata("design:type", Website)
], Bucket.prototype, "website", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "websiteDomain", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Bucket.prototype, "websiteEndpoint", void 0);
exports.Bucket = Bucket;
//# sourceMappingURL=bucket.js.map