@infrascan/aws-s3-scanner
Version:
Infrascan scanner definition for AWS S3
9 lines (6 loc) • 517 B
TypeScript
import { HandlerExecutionContext, FinalizeHandlerOutput } from '@smithy/types';
import { S3ServiceException, _Error, ServiceOutputTypes, S3Client } from '@aws-sdk/client-s3';
type RichError = S3ServiceException & _Error;
declare function mapNotFoundErrorToEmptyResponse(context: HandlerExecutionContext, err: unknown): FinalizeHandlerOutput<ServiceOutputTypes> | undefined;
declare function registerMiddleware(client: S3Client): void;
export { type RichError, mapNotFoundErrorToEmptyResponse, registerMiddleware };