Skip to content

Instantly share code, notes, and snippets.

@chiefGui
Created March 29, 2018 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chiefGui/c17bd4132de9f01660b1686347799958 to your computer and use it in GitHub Desktop.
Save chiefGui/c17bd4132de9f01660b1686347799958 to your computer and use it in GitHub Desktop.
require('AWSRequest')
var creds = {
key: '-',
secret: '-'
};
var target = 'GameLift.ListAliases';
var requestBody = { __type: 'ListAliasesInput' };
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