"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.LifecyclePolicy = exports.PolicyDetails = exports.Schedule = exports.ScheduleDeprecateRule = exports.CrossRegionCopyRule = exports.CrossRegionCopyRuleDeprecateRule = exports.ScheduleRetainRule = exports.ShareRule = exports.FastRestoreRule = exports.CreateRule = exports.PolicyDetailsParameters = exports.EventSource = exports.EventSourceParameters = exports.Action = exports.CrossRegionCopy = exports.CrossRegionCopyRetainRule = exports.EncryptionConfiguration = void 0;
const core = __importStar(require("@terrascript/core"));
class EncryptionConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EncryptionConfiguration.prototype, "cmkArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], EncryptionConfiguration.prototype, "encrypted", void 0);
exports.EncryptionConfiguration = EncryptionConfiguration;
class CrossRegionCopyRetainRule extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CrossRegionCopyRetainRule.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CrossRegionCopyRetainRule.prototype, "intervalUnit", void 0);
exports.CrossRegionCopyRetainRule = CrossRegionCopyRetainRule;
class CrossRegionCopy extends core.Schema {
}
__decorate([
    core.attr(EncryptionConfiguration),
    __metadata("design:type", EncryptionConfiguration)
], CrossRegionCopy.prototype, "encryptionConfiguration", void 0);
__decorate([
    core.attr(CrossRegionCopyRetainRule),
    __metadata("design:type", CrossRegionCopyRetainRule)
], CrossRegionCopy.prototype, "retainRule", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CrossRegionCopy.prototype, "target", void 0);
exports.CrossRegionCopy = CrossRegionCopy;
class Action extends core.Schema {
}
__decorate([
    core.attr(CrossRegionCopy, { kind: "array" }),
    __metadata("design:type", Object)
], Action.prototype, "crossRegionCopy", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Action.prototype, "name", void 0);
exports.Action = Action;
class EventSourceParameters extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EventSourceParameters.prototype, "descriptionRegex", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EventSourceParameters.prototype, "eventType", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], EventSourceParameters.prototype, "snapshotOwner", void 0);
exports.EventSourceParameters = EventSourceParameters;
class EventSource extends core.Schema {
}
__decorate([
    core.attr(EventSourceParameters),
    __metadata("design:type", EventSourceParameters)
], EventSource.prototype, "parameters", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EventSource.prototype, "type", void 0);
exports.EventSource = EventSource;
class PolicyDetailsParameters extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], PolicyDetailsParameters.prototype, "excludeBootVolume", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], PolicyDetailsParameters.prototype, "noReboot", void 0);
exports.PolicyDetailsParameters = PolicyDetailsParameters;
class CreateRule extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CreateRule.prototype, "cronExpression", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CreateRule.prototype, "interval", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CreateRule.prototype, "intervalUnit", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CreateRule.prototype, "location", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], CreateRule.prototype, "times", void 0);
exports.CreateRule = CreateRule;
class FastRestoreRule extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], FastRestoreRule.prototype, "availabilityZones", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], FastRestoreRule.prototype, "count", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], FastRestoreRule.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], FastRestoreRule.prototype, "intervalUnit", void 0);
exports.FastRestoreRule = FastRestoreRule;
class ShareRule extends core.Schema {
}
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], ShareRule.prototype, "targetAccounts", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ShareRule.prototype, "unshareInterval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ShareRule.prototype, "unshareIntervalUnit", void 0);
exports.ShareRule = ShareRule;
class ScheduleRetainRule extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScheduleRetainRule.prototype, "count", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScheduleRetainRule.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ScheduleRetainRule.prototype, "intervalUnit", void 0);
exports.ScheduleRetainRule = ScheduleRetainRule;
class CrossRegionCopyRuleDeprecateRule extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], CrossRegionCopyRuleDeprecateRule.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CrossRegionCopyRuleDeprecateRule.prototype, "intervalUnit", void 0);
exports.CrossRegionCopyRuleDeprecateRule = CrossRegionCopyRuleDeprecateRule;
class CrossRegionCopyRule extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CrossRegionCopyRule.prototype, "cmkArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CrossRegionCopyRule.prototype, "copyTags", void 0);
__decorate([
    core.attr(CrossRegionCopyRuleDeprecateRule),
    __metadata("design:type", CrossRegionCopyRuleDeprecateRule)
], CrossRegionCopyRule.prototype, "deprecateRule", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], CrossRegionCopyRule.prototype, "encrypted", void 0);
__decorate([
    core.attr(CrossRegionCopyRetainRule),
    __metadata("design:type", CrossRegionCopyRetainRule)
], CrossRegionCopyRule.prototype, "retainRule", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CrossRegionCopyRule.prototype, "target", void 0);
exports.CrossRegionCopyRule = CrossRegionCopyRule;
class ScheduleDeprecateRule extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScheduleDeprecateRule.prototype, "count", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], ScheduleDeprecateRule.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ScheduleDeprecateRule.prototype, "intervalUnit", void 0);
exports.ScheduleDeprecateRule = ScheduleDeprecateRule;
class Schedule extends core.Schema {
}
__decorate([
    core.attr(Boolean, { computed: true }),
    __metadata("design:type", Object)
], Schedule.prototype, "copyTags", void 0);
__decorate([
    core.attr(CreateRule),
    __metadata("design:type", CreateRule)
], Schedule.prototype, "createRule", void 0);
__decorate([
    core.attr(CrossRegionCopyRule, { kind: "array" }),
    __metadata("design:type", Object)
], Schedule.prototype, "crossRegionCopyRule", void 0);
__decorate([
    core.attr(ScheduleDeprecateRule),
    __metadata("design:type", ScheduleDeprecateRule)
], Schedule.prototype, "deprecateRule", void 0);
__decorate([
    core.attr(FastRestoreRule),
    __metadata("design:type", FastRestoreRule)
], Schedule.prototype, "fastRestoreRule", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Schedule.prototype, "name", void 0);
__decorate([
    core.attr(ScheduleRetainRule),
    __metadata("design:type", ScheduleRetainRule)
], Schedule.prototype, "retainRule", void 0);
__decorate([
    core.attr(ShareRule),
    __metadata("design:type", ShareRule)
], Schedule.prototype, "shareRule", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Schedule.prototype, "tagsToAdd", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Schedule.prototype, "variableTags", void 0);
exports.Schedule = Schedule;
class PolicyDetails extends core.Schema {
}
__decorate([
    core.attr(Action),
    __metadata("design:type", Action)
], PolicyDetails.prototype, "action", void 0);
__decorate([
    core.attr(EventSource),
    __metadata("design:type", EventSource)
], PolicyDetails.prototype, "eventSource", void 0);
__decorate([
    core.attr(PolicyDetailsParameters),
    __metadata("design:type", PolicyDetailsParameters)
], PolicyDetails.prototype, "parameters", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], PolicyDetails.prototype, "policyType", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "array" }),
    __metadata("design:type", Object)
], PolicyDetails.prototype, "resourceLocations", void 0);
__decorate([
    core.attr(String, { kind: "array" }),
    __metadata("design:type", Object)
], PolicyDetails.prototype, "resourceTypes", void 0);
__decorate([
    core.attr(Schedule, { kind: "array" }),
    __metadata("design:type", Object)
], PolicyDetails.prototype, "schedule", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], PolicyDetails.prototype, "targetTags", void 0);
exports.PolicyDetails = PolicyDetails;
class LifecyclePolicy extends core.Resource {
    constructor(name, args) {
        super(name, "aws_dlm_lifecycle_policy", args);
    }
    getNamespace() {
        return "aws_dlm";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "arn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "description", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "executionRoleArn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "id", void 0);
__decorate([
    core.attr(PolicyDetails),
    __metadata("design:type", PolicyDetails)
], LifecyclePolicy.prototype, "policyDetails", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "state", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], LifecyclePolicy.prototype, "tagsAll", void 0);
exports.LifecyclePolicy = LifecyclePolicy;
//# sourceMappingURL=lifecycle_policy.js.map