-
-
Save chiefGui/03fb322f5e79a7d353006350d82a82bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('AWSRequest') | |
var creds = { | |
key: 'AKIAI6DMD4QIN463KJQA', | |
secret: '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' | |
}; | |
var target = 'GameLift.ListAliases'; | |
var requestBody = '{}'; | |
var Request = new AWSRequest( | |
'gamelift.sa-east-1.amazonaws.com', | |
'/', | |
'', | |
[ | |
{ | |
name : 'x-amz-target', | |
value : target | |
}, | |
{ | |
name: 'content-type', | |
value: 'application/x-amz-json-1.1' | |
} | |
], | |
requestBody, | |
"sa-east-1", | |
"gamelift", | |
creds | |
); | |
Request.makeRequest(function(respnose, error) { | |
Spark.setScriptData("result", error); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment