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 { EBSClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../EBSClient" ; import { PutSnapshotBlockRequest , PutSnapshotBlockResponse } from "../models/models_0" ; import { deserializeAws_restJson1PutSnapshotBlockCommand , serializeAws_restJson1PutSnapshotBlockCommand , } from "../protocols/Aws_restJson1" ; type PutSnapshotBlockCommandInputType = Omit < PutSnapshotBlockRequest , "BlockData" > & { /**
     * For *`PutSnapshotBlockRequest["BlockData"]`*, see  PutSnapshotBlockRequest . BlockData .
      BlockData : PutSnapshotBlockRequest [ "BlockData" ] | string | Uint8Array | Buffer ; } ; /**
 * This interface extends from `PutSnapshotBlockRequest` interface. There are more parameters than `BlockData` defined in  PutSnapshotBlockRequest export interface PutSnapshotBlockCommandInput extends PutSnapshotBlockCommandInputType { } export interface PutSnapshotBlockCommandOutput extends PutSnapshotBlockResponse , __MetadataBearer { } example see PutSnapshotBlockCommandInput for command's `input` shape.
 *  see PutSnapshotBlockCommandOutput for command's `response` shape.
 *  see EBSClientResolvedConfig for EBSClient's `config` shape.
 *
  export class PutSnapshotBlockCommand extends $Command < PutSnapshotBlockCommandInput , PutSnapshotBlockCommandOutput , EBSClientResolvedConfig > { 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 = "EBSClient" ; const commandName = "PutSnapshotBlockCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : PutSnapshotBlockRequest . filterSensitiveLog , outputFilterSensitiveLog : PutSnapshotBlockResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restJson1PutSnapshotBlockCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restJson1PutSnapshotBlockCommand ( output , context ) ; } }