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 { ECSClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../ECSClient" ; import { ListTaskDefinitionsRequest , ListTaskDefinitionsResponse } from "../models/models_0" ; import { deserializeAws_json1_1ListTaskDefinitionsCommand , serializeAws_json1_1ListTaskDefinitionsCommand , } from "../protocols/Aws_json1_1" ; export interface ListTaskDefinitionsCommandInput extends ListTaskDefinitionsRequest { } export interface ListTaskDefinitionsCommandOutput extends ListTaskDefinitionsResponse , __MetadataBearer { } example see ListTaskDefinitionsCommandInput for command's `input` shape.
 *  see ListTaskDefinitionsCommandOutput for command's `response` shape.
 *  see ECSClientResolvedConfig for ECSClient's `config` shape.
 *
  export class ListTaskDefinitionsCommand extends $Command < ListTaskDefinitionsCommandInput , ListTaskDefinitionsCommandOutput , ECSClientResolvedConfig > { 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 = "ECSClient" ; const commandName = "ListTaskDefinitionsCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : ListTaskDefinitionsRequest . filterSensitiveLog , outputFilterSensitiveLog : ListTaskDefinitionsResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_json1_1ListTaskDefinitionsCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_json1_1ListTaskDefinitionsCommand ( output , context ) ; } }