func (d *DynamoDBLockClient) StopHeartbeat() {
	d.sendHeartbeats = false
	return
}
StopHeartbeat stops sending lock renewal heartbeats, consider using RemoveLock
package lockclient
import (
	"time"
	"github.com/google/uuid"
	"github.com/sirupsen/logrus"
)
func (d *DynamoDBLockClient) GetLock() (bool, error) {
	logrus.Debugf("Attempting to get lock '%s' for %s", d.LockName, d.LeaseDuration)
	if d.Identifier == "" {
		uuid, err := uuid.NewRandom()
		if err != nil {
			logrus.Debugf("An error occured: %s", err)
			return false, err
		}
		d.Identifier = uuid.String()
	}
	err := d.dynamoGetLock()
	if err != nil {
		logrus.Debugf("An error occured: %s", err)
		return false, err
	}
	go d.periodicallyRenewLease()
	return true, nil
}