UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

46 lines (45 loc) 2.38 kB
import { __extends } from "tslib"; import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint"; import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { getSsecPlugin } from "@aws-sdk/middleware-ssec"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { UploadPartCopyOutput, UploadPartCopyRequest } from "../models/models_1"; import { deserializeAws_restXmlUploadPartCopyCommand, serializeAws_restXmlUploadPartCopyCommand, } from "../protocols/Aws_restXml"; var UploadPartCopyCommand = (function (_super) { __extends(UploadPartCopyCommand, _super); function UploadPartCopyCommand(input) { var _this = _super.call(this) || this; _this.input = input; return _this; } UploadPartCopyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration)); this.middlewareStack.use(getSsecPlugin(configuration)); this.middlewareStack.use(getBucketEndpointPlugin(configuration)); var stack = clientStack.concat(this.middlewareStack); var logger = configuration.logger; var clientName = "S3Client"; var commandName = "UploadPartCopyCommand"; var handlerExecutionContext = { logger: logger, clientName: clientName, commandName: commandName, inputFilterSensitiveLog: UploadPartCopyRequest.filterSensitiveLog, outputFilterSensitiveLog: UploadPartCopyOutput.filterSensitiveLog, }; var requestHandler = configuration.requestHandler; return stack.resolve(function (request) { return requestHandler.handle(request.request, options || {}); }, handlerExecutionContext); }; UploadPartCopyCommand.prototype.serialize = function (input, context) { return serializeAws_restXmlUploadPartCopyCommand(input, context); }; UploadPartCopyCommand.prototype.deserialize = function (output, context) { return deserializeAws_restXmlUploadPartCopyCommand(output, context); }; return UploadPartCopyCommand; }($Command)); export { UploadPartCopyCommand };