AWS Cloudfront purge function for Swint batch task manager(swint-task)
Warning: This is not the final draft yet, so do not use this until its official version is launched
$ npm install --save swint-cloudfront-purge
-
code
:String
, default:''
-
paths
:Array
, default:[]
-
awsInfo
-
key
:String
, default:''
-
secret
:String
, default:''
-
swintCloudfrontPurge({
code: 'AAAAAAAAAAAAAA',
paths: ['/foo/*', '/bar/*'],
awsInfo: {
key: 'myKey',
secret: 'mySecret'
}
}, function(err, results) {
// ...
});