awssum-amazon-cloudfront
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -12,3 +12,3 @@ // -------------------------------------------------------------------------------------------------------------------- | ||
var data2xml = require('data2xml'); | ||
var data2xml = require('data2xml')({ attrProp : '@', valProp : '#', }); | ||
@@ -64,3 +64,3 @@ // -------------------------------------------------------------------------------------------------------------------- | ||
var data = { | ||
_attr : { 'xmlns' : 'http://cloudfront.amazonaws.com/doc/2010-11-01/' }, | ||
'@' : { 'xmlns' : 'http://cloudfront.amazonaws.com/doc/2010-11-01/' }, | ||
}; | ||
@@ -141,3 +141,3 @@ | ||
var data = { | ||
_attr : { 'xmlns' : 'http://cloudfront.amazonaws.com/doc/2010-11-01/' }, | ||
'@' : { 'xmlns' : 'http://cloudfront.amazonaws.com/doc/2010-11-01/' }, | ||
}; | ||
@@ -195,3 +195,3 @@ | ||
var data = { | ||
_attr : { xmlns : 'http://cloudfront.amazonaws.com/doc/2010-11-01/', }, | ||
'@' : { xmlns : 'http://cloudfront.amazonaws.com/doc/2010-11-01/', }, | ||
CallerReference : args.CallerReference, | ||
@@ -198,0 +198,0 @@ }; |
{ | ||
"name" : "awssum-amazon-cloudfront", | ||
"description" : "NodeJS module to talk to Amazon CloudFront.", | ||
"version" : "1.0.0", | ||
"description" : "AwsSum plugin for Amazon CloudFront.", | ||
"version" : "1.0.1", | ||
@@ -6,0 +6,0 @@ "main" : "awssum-amazon-cloudfront.js", |
@@ -5,2 +5,36 @@ # awssum-amazon-cloudfront # | ||
You'll need to add [awssum-amazon-cloudfront](https://github.com/awssum/awssum-amazon-cloudfront/) to your package.json | ||
dependencies. Both [awssum](https://github.com/awssum/awssum/) and | ||
[awssum-amazon](https://github.com/awssum/awssum-amazon/) are pulled in as peer dependencies. | ||
## Example ## | ||
To list all your distributions: | ||
``` | ||
var fmt = require('fmt'); | ||
var amazonCloudFront = require('awssum-amazon-cloudfront'); | ||
var cf = new amazonCloudFront.CloudFront({ | ||
'accessKeyId' : process.env.ACCESS_KEY_ID, | ||
'secretAccessKey' : process.env.SECRET_ACCESS_KEY, | ||
'region' : amazonS3.US_EAST_1 | ||
}); | ||
cf.ListDistributions(function(err, data) { | ||
fmt.dump(err, 'err'); | ||
fmt.dump(data, 'data'); | ||
}); | ||
``` | ||
# Author # | ||
Written by [Andrew Chilton](http://chilts.org/) - [Blog](http://chilts.org/blog/) - | ||
[Twitter](https://twitter.com/andychilton). | ||
# License # | ||
* [Copyright 2011-2013 Apps Attic Ltd. All rights reserved.](http://appsattic.mit-license.org/2011/) | ||
* [Copyright 2013 Andrew Chilton. All rights reserved.](http://chilts.mit-license.org/2013/) | ||
(Ends) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31148
40