I am trying to access AWS SimpleDB with JavaScript. My code is as follows:
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.38.js"></script>
<script type="text/javascript">
AWS.config.update({accessKeyId: 'mykey', secretAccessKey: 'mysecret'});
AWS.config.region = 'us-east-1';
</script>
<script>
var simpledb = new AWS.SimpleDB();
</script>
I get this error:
TypeError: AWS.SimpleDB () is not a constructor
I tried to create an AWS.S3 () object and it works fine.
What is the correct way to initialize and use SimpleDB using simple JavaScript?
source
share