I have the AWS Javascript for Browsers SDK that's been configured from my AWS API Gateway endpoints.
The readme says that I need to include the files and then reference like this:
<script type="text/javascript" src="apigClient.js"></script>
This file contains:
var apigClientFactory = {};
apigClientFactory.newClient = function (config) {
var apigClient = { };
if(config === undefined) {
config = {
accessKey: '',
secretKey: '',
sessionToken: '',
region: '',
apiKey: undefined,
defaultContentType: 'application/json',
defaultAcceptType: 'application/json'
};
// Etc...
}
However I'm not sure how to do this in Vue.js. I've set up a separate component which I think needs to import this file, but how do I do that?