import { S3SignatureV4 } from "@aws-sdk/middleware-sdk-s3" ; import { Logger as __Logger } from "@aws-sdk/types" ; import { parseUrl } from "@aws-sdk/url-parser" ; import { defaultRegionInfoProvider } from "./endpoints" ; import { S3ClientConfig } from "./S3Client" ; internal export const getRuntimeConfig = ( config ) => ( { apiVersion : "2006-03-01" , disableHostPrefix : config ?. disableHostPrefix ?? false , logger : config ?. logger ?? ( { } as __Logger ) , regionInfoProvider : config ?. regionInfoProvider ?? defaultRegionInfoProvider , serviceId : config ?. serviceId ?? "S3" , signerConstructor : config ?. signerConstructor ?? S3SignatureV4 , signingEscapePath : config ?. signingEscapePath ?? false , urlParser : config ?. urlParser ?? parseUrl , useArnRegion : config ?. useArnRegion ?? false , } ) ;