goldies
    Preparing search index...

    Function parseS3

    • Parse an S3 path and return the bucket and key.

      Parameters

      • path: string

        The S3 path to parse.

      Returns { Bucket: string; Key: string }

      An object containing the Bucket and Key properties.

      If the path is not a valid S3 path.

      const s3Path = 's3://bucket-name/key-name';
      // returns { Bucket: 'bucket-name', Key: 'key-name' }
      const parsed = parseS3(s3Path);