MCPcopy Index your code
hub / github.com/simstudioai/sim / isS3ServiceException

Function isS3ServiceException

apps/sim/lib/data-drains/destinations/s3.ts:119–126  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

117}
118
119function isS3ServiceException(error: unknown): error is S3ServiceException {
120 return (
121 typeof error === 'object' &&
122 error !== null &&
123 '$metadata' in error &&
124 typeof (error as { name?: unknown }).name === 'string'
125 )
126}
127
128/** DNS-aware SSRF check: catches hostnames that resolve to internal IPs (the schema check only catches IP literals). */
129async function assertEndpointIsPublic(endpoint: string | undefined): Promise<void> {

Callers 1

withS3ErrorContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected