"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
require('source-map-support').install();
const aws_sdk_1 = tslib_1.__importDefault(require("aws-sdk"));
const DD = tslib_1.__importStar(require("./dynamodb"));
const S3 = tslib_1.__importStar(require("./s3"));
aws_sdk_1.default.config.update({
    credentials: new aws_sdk_1.default.SharedIniFileCredentials({ profile: 'mv' }),
    region: 'us-east-1'
});
const kms = new aws_sdk_1.default.KMS();
const s3 = S3.create(new aws_sdk_1.default.S3());
const dynamodb = DD.create(new aws_sdk_1.default.DynamoDB());
const run = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
    yield dynamodb.restoreTable({
        date: new Date('2018-10-27').toISOString(),
        sourceName: 'tdl-split2-ltd-dev-bucket-0',
        destName: 'tdl-split2-ltd-dev-bucket-r1'
    });
});
run().catch(console.error);
//# sourceMappingURL=play.js.map