hxnodejs-aws-sdk

Externs for the aws-sdk NPM module
https://github.com/proletariatgames/hxnodejs-aws-sdk

To install, run:

haxelib install hxnodejs-aws-sdk 2.989.1 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe/hxnodejs externs for the aws-sdk npm library

Tested using aws-sdk version 2.493.0

Due to the huge size of the API, this only implements a small subset of the whole API, and from that, only a small part is correctly typed in regards to its possible arguments and return type

ModuleStatus
AWS corecomplete
EC2mixed
SQSmixed
DynamoDBuntyped
MetadataServiceuntyped
GameLiftmixed

Example:

import js.npm.AWS;
import js.npm.aws_sdk.EC2;

AWS.config.region = 'us-east-1';

var ec2 = new EC2();

ec2.runInstances({ 
  ImageId: 'ami-1624987f', // Amazon Linux AMI x86_64 EBS
  InstanceType: 't1.micro',
  MinCount: 1, MaxCount: 1
}, function(err, data) {
  if (err != null) {
    trace('Could not create instance');
  }

  var intanceId = data.Instances[0].InstanceId;
  trace('Created instance $instanceId');

  // Add tags to the instance
  ec2.createTags({
    Resources: [instanceId],
    Tags: [{ Key: 'Name', Value: 'instanceName' }]
  }, function(err, _) {
    trace('Tagging instance', err != null ? 'failure' : 'success');
  });
});
Contributors
Proletariat
ProletariatDev1
Version
2.989.1
Published
5 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂