@aws-sdk/client-dynamodb
Version:
AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native
57 lines • 2.73 kB
JavaScript
import { __extends } from "tslib";
import { ExportTableToPointInTimeInput, ExportTableToPointInTimeOutput } from "../models/models_0";
import { deserializeAws_json1_0ExportTableToPointInTimeCommand, serializeAws_json1_0ExportTableToPointInTimeCommand, } from "../protocols/Aws_json1_0";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { Command as $Command } from "@aws-sdk/smithy-client";
/**
* <p>Exports table data to an S3 bucket. The table must have point in time recovery
* enabled, and you can export data from any time within the point in time recovery
* window.</p>
*/
var ExportTableToPointInTimeCommand = /** @class */ (function (_super) {
__extends(ExportTableToPointInTimeCommand, _super);
// Start section: command_properties
// End section: command_properties
function ExportTableToPointInTimeCommand(input) {
var _this =
// Start section: command_constructor
_super.call(this) || this;
_this.input = input;
_this.resolved = false;
return _this;
// End section: command_constructor
}
/**
* @internal
*/
ExportTableToPointInTimeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
if (!this.resolved) {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.resolved = true;
}
var stack = clientStack.concat(this.middlewareStack);
var logger = configuration.logger;
var clientName = "DynamoDBClient";
var commandName = "ExportTableToPointInTimeCommand";
var handlerExecutionContext = {
logger: logger,
clientName: clientName,
commandName: commandName,
inputFilterSensitiveLog: ExportTableToPointInTimeInput.filterSensitiveLog,
outputFilterSensitiveLog: ExportTableToPointInTimeOutput.filterSensitiveLog,
};
var requestHandler = configuration.requestHandler;
return stack.resolve(function (request) {
return requestHandler.handle(request.request, options || {});
}, handlerExecutionContext);
};
ExportTableToPointInTimeCommand.prototype.serialize = function (input, context) {
return serializeAws_json1_0ExportTableToPointInTimeCommand(input, context);
};
ExportTableToPointInTimeCommand.prototype.deserialize = function (output, context) {
return deserializeAws_json1_0ExportTableToPointInTimeCommand(output, context);
};
return ExportTableToPointInTimeCommand;
}($Command));
export { ExportTableToPointInTimeCommand };
//# sourceMappingURL=ExportTableToPointInTimeCommand.js.map