async function transferFromS3CompatibleSource() {
    // Runs the request and creates the job
    const [transferJob] = await client.createTransferJob({
      transferJob: {
        projectId,
        transferSpec: {
          sourceAgentPoolName,
          awsS3CompatibleDataSource: {
            region,
            s3Metadata: {
              authMethod,
              protocol,
              requestModel,
            },
            endpoint,
            bucketName: sourceBucketName,
            path: sourcePath,
          },
          gcsDataSink: {
            bucketName: gcsSinkBucket,
            path: gcsPath,
          },
        },
        status: 'ENABLED',
      },
    });

    await client.runTransferJob({
      jobName: transferJob.name,
      projectId,
    });

    console.log(
      `Created and ran a transfer job from '${sourceBucketName}' to '${gcsSinkBucket}' with name ${transferJob.name}`
    );
  }
Creates a transfer from an AWS S3-compatible source to GCS