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 { EC2ClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../EC2Client" ; import { DeleteLaunchTemplateRequest , DeleteLaunchTemplateResult } from "../models/models_2" ; import { deserializeAws_ec2DeleteLaunchTemplateCommand , serializeAws_ec2DeleteLaunchTemplateCommand , } from "../protocols/Aws_ec2" ; export interface DeleteLaunchTemplateCommandInput extends DeleteLaunchTemplateRequest { } export interface DeleteLaunchTemplateCommandOutput extends DeleteLaunchTemplateResult , __MetadataBearer { } example see DeleteLaunchTemplateCommandInput for command's `input` shape.
 *  see DeleteLaunchTemplateCommandOutput for command's `response` shape.
 *  see EC2ClientResolvedConfig for EC2Client's `config` shape.
 *
  export class DeleteLaunchTemplateCommand extends $Command < DeleteLaunchTemplateCommandInput , DeleteLaunchTemplateCommandOutput , EC2ClientResolvedConfig > { 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 = "EC2Client" ; const commandName = "DeleteLaunchTemplateCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : DeleteLaunchTemplateRequest . filterSensitiveLog , outputFilterSensitiveLog : DeleteLaunchTemplateResult . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_ec2DeleteLaunchTemplateCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_ec2DeleteLaunchTemplateCommand ( output , context ) ; } }