import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint" ; 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 { ListObjectsV2Output , ListObjectsV2Request } from "../models/models_0" ; import { deserializeAws_restXmlListObjectsV2Command , serializeAws_restXmlListObjectsV2Command , } from "../protocols/Aws_restXml" ; import { S3ClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../S3Client" ; export interface ListObjectsV2CommandInput extends ListObjectsV2Request { } export interface ListObjectsV2CommandOutput extends ListObjectsV2Output , __MetadataBearer { } example see ListObjectsV2CommandInput for command's `input` shape.
 *  see ListObjectsV2CommandOutput for command's `response` shape.
 *  see S3ClientResolvedConfig for S3Client's `config` shape.
 *
  export class ListObjectsV2Command extends $Command < ListObjectsV2CommandInput , ListObjectsV2CommandOutput , S3ClientResolvedConfig > { constructor ( readonly input ) { super ( ) ; } internal resolveMiddleware ( clientStack , configuration , options ? ) { this . middlewareStack . use ( getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ; this . middlewareStack . use ( getBucketEndpointPlugin ( configuration ) ) ; const stack = clientStack . concat ( this . middlewareStack ) ; const { logger } = configuration ; const clientName = "S3Client" ; const commandName = "ListObjectsV2Command" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : ListObjectsV2Request . filterSensitiveLog , outputFilterSensitiveLog : ListObjectsV2Output . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restXmlListObjectsV2Command ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restXmlListObjectsV2Command ( output , context ) ; } }