import { getSerdePlugin } from "@aws-sdk/middleware-serde" ; import { HttpRequest as __HttpRequest , HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http" ; import { Command as $Command } from "@aws-sdk/smithy-client" ; import { FinalizeHandlerArguments , Handler , HandlerExecutionContext , HttpHandlerOptions as __HttpHandlerOptions , MetadataBearer as __MetadataBearer , MiddlewareStack , SerdeContext as __SerdeContext , } from "@aws-sdk/types" ; import { GlacierClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../GlacierClient" ; import { UploadMultipartPartInput , UploadMultipartPartOutput } from "../models/models_0" ; import { deserializeAws_restJson1UploadMultipartPartCommand , serializeAws_restJson1UploadMultipartPartCommand , } from "../protocols/Aws_restJson1" ; type UploadMultipartPartCommandInputType = Omit < UploadMultipartPartInput , "body" > & { /**
     * For *`UploadMultipartPartInput["body"]`*, see  UploadMultipartPartInput . body .
      body ? : UploadMultipartPartInput [ "body" ] | string | Uint8Array | Buffer ; } ; /**
 * This interface extends from `UploadMultipartPartInput` interface. There are more parameters than `body` defined in  UploadMultipartPartInput export interface UploadMultipartPartCommandInput extends UploadMultipartPartCommandInputType { } export interface UploadMultipartPartCommandOutput extends UploadMultipartPartOutput , __MetadataBearer { } example see UploadMultipartPartCommandInput for command's `input` shape.
 *  see UploadMultipartPartCommandOutput for command's `response` shape.
 *  see GlacierClientResolvedConfig for GlacierClient's `config` shape.
 *
  export class UploadMultipartPartCommand extends $Command < UploadMultipartPartCommandInput , UploadMultipartPartCommandOutput , GlacierClientResolvedConfig > { constructor ( readonly input ) { super ( ) ; } internal resolveMiddleware ( clientStack , configuration , options ? ) { this . middlewareStack . use ( getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ; const stack = clientStack . concat ( this . middlewareStack ) ; const { logger } = configuration ; const clientName = "GlacierClient" ; const commandName = "UploadMultipartPartCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : UploadMultipartPartInput . filterSensitiveLog , outputFilterSensitiveLog : UploadMultipartPartOutput . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restJson1UploadMultipartPartCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restJson1UploadMultipartPartCommand ( output , context ) ; } }