MCPcopy Index your code
hub / github.com/heygen-com/hyperframes / getEventS3Uris

Function getEventS3Uris

packages/aws-lambda/src/handler.ts:482–493  ·  view source on GitHub ↗

Collect every S3 URI that the handler will touch for a given event.

(event: PlanEvent | RenderChunkEvent | AssembleEvent)

Source from the content-addressed store, hash-verified

480
481/** Collect every S3 URI that the handler will touch for a given event. */
482function getEventS3Uris(event: PlanEvent | RenderChunkEvent | AssembleEvent): string[] {
483 switch (event.Action) {
484 case "plan":
485 return [event.ProjectS3Uri, event.PlanOutputS3Prefix];
486 case "renderChunk":
487 return [event.PlanS3Uri, event.ChunkOutputS3Prefix];
488 case "assemble":
489 return [event.PlanS3Uri, ...event.ChunkS3Uris, event.OutputS3Uri, event.AudioS3Uri].filter(
490 (u): u is string => u != null,
491 );
492 }
493}
494
495/**
496 * Verify every S3 URI in the event resolves to the configured render bucket.

Callers 1

validateEventS3UrisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected