async function createEventDrivenGcsTransfer() {
    const [transferJob] = await client.createTransferJob({
      transferJob: {
        projectId,
        status: 'ENABLED',
        transferSpec: {
          gcsDataSource: {
            bucketName: gcsSourceBucket,
          },
          gcsDataSink: {
            bucketName: gcsSinkBucket,
          },
        },
        eventStream: {
          name: pubsubId,
        },
      },
    });

    console.log(
      `Created an event driven transfer from '${gcsSourceBucket}' to '${gcsSinkBucket}' with name ${transferJob.name}`
    );
  }
Creates an event driven transfer that tracks a Pubsub subscription.