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 { AccessAnalyzerClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../AccessAnalyzerClient" ; import { CancelPolicyGenerationRequest , CancelPolicyGenerationResponse } from "../models/models_0" ; import { deserializeAws_restJson1CancelPolicyGenerationCommand , serializeAws_restJson1CancelPolicyGenerationCommand , } from "../protocols/Aws_restJson1" ; export interface CancelPolicyGenerationCommandInput extends CancelPolicyGenerationRequest { } export interface CancelPolicyGenerationCommandOutput extends CancelPolicyGenerationResponse , __MetadataBearer { } example see CancelPolicyGenerationCommandInput for command's `input` shape.
 *  see CancelPolicyGenerationCommandOutput for command's `response` shape.
 *  see AccessAnalyzerClientResolvedConfig for AccessAnalyzerClient's `config` shape.
 *
  export class CancelPolicyGenerationCommand extends $Command < CancelPolicyGenerationCommandInput , CancelPolicyGenerationCommandOutput , AccessAnalyzerClientResolvedConfig > { 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 = "AccessAnalyzerClient" ; const commandName = "CancelPolicyGenerationCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : CancelPolicyGenerationRequest . filterSensitiveLog , outputFilterSensitiveLog : CancelPolicyGenerationResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restJson1CancelPolicyGenerationCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restJson1CancelPolicyGenerationCommand ( output , context ) ; } }