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 { CloudHSMV2ClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../CloudHSMV2Client" ; import { InitializeClusterRequest , InitializeClusterResponse } from "../models/models_0" ; import { deserializeAws_json1_1InitializeClusterCommand , serializeAws_json1_1InitializeClusterCommand , } from "../protocols/Aws_json1_1" ; export interface InitializeClusterCommandInput extends InitializeClusterRequest { } export interface InitializeClusterCommandOutput extends InitializeClusterResponse , __MetadataBearer { } example see InitializeClusterCommandInput for command's `input` shape.
 *  see InitializeClusterCommandOutput for command's `response` shape.
 *  see CloudHSMV2ClientResolvedConfig for CloudHSMV2Client's `config` shape.
 *
  export class InitializeClusterCommand extends $Command < InitializeClusterCommandInput , InitializeClusterCommandOutput , CloudHSMV2ClientResolvedConfig > { 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 = "CloudHSMV2Client" ; const commandName = "InitializeClusterCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : InitializeClusterRequest . filterSensitiveLog , outputFilterSensitiveLog : InitializeClusterResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_json1_1InitializeClusterCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_json1_1InitializeClusterCommand ( output , context ) ; } }