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 { LookoutVisionClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../LookoutVisionClient" ; import { DetectAnomaliesRequest , DetectAnomaliesResponse } from "../models/models_0" ; import { deserializeAws_restJson1DetectAnomaliesCommand , serializeAws_restJson1DetectAnomaliesCommand , } from "../protocols/Aws_restJson1" ; type DetectAnomaliesCommandInputType = Omit < DetectAnomaliesRequest , "Body" > & { /**
     * For *`DetectAnomaliesRequest["Body"]`*, see  DetectAnomaliesRequest . Body .
      Body : DetectAnomaliesRequest [ "Body" ] | string | Uint8Array | Buffer ; } ; /**
 * This interface extends from `DetectAnomaliesRequest` interface. There are more parameters than `Body` defined in  DetectAnomaliesRequest export interface DetectAnomaliesCommandInput extends DetectAnomaliesCommandInputType { } export interface DetectAnomaliesCommandOutput extends DetectAnomaliesResponse , __MetadataBearer { } example see DetectAnomaliesCommandInput for command's `input` shape.
 *  see DetectAnomaliesCommandOutput for command's `response` shape.
 *  see LookoutVisionClientResolvedConfig for LookoutVisionClient's `config` shape.
 *
  export class DetectAnomaliesCommand extends $Command < DetectAnomaliesCommandInput , DetectAnomaliesCommandOutput , LookoutVisionClientResolvedConfig > { 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 = "LookoutVisionClient" ; const commandName = "DetectAnomaliesCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : DetectAnomaliesRequest . filterSensitiveLog , outputFilterSensitiveLog : DetectAnomaliesResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restJson1DetectAnomaliesCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restJson1DetectAnomaliesCommand ( output , context ) ; } }