DynamoDB backend endpoint

Further to the documention stating the you can set a custom DynamoDB endpoint value, i.e. dynamodb_endpoint, can anyone provide an example of it in use. I’m trying to centralise our use of S3 and DynamoDB for use with Terraform across multiple accounts, and though S3 appears to be simple enough, i.e. declare the bucket/key/region and TF reports successfully configured, but having difficulty getting DynamoDB working. TIA.