This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
116 lines (104 loc) · 3.95 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// --------------------------------------------------------------------------------------------------------------------
//
// emr-config.js - config for AWS Elastic Map Reduce
//
// Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/
// Written by Andrew Chilton <[email protected]>
//
// License: http://opensource.org/licenses/MIT
//
// --------------------------------------------------------------------------------------------------------------------
var required = { required : true, type : 'param' };
var optional = { required : false, type : 'param' };
var requiredArray = { required : true, type : 'param-array', prefix : 'member' };
var optionalArray = { required : false, type : 'param-array', prefix : 'member' };
var requiredData = { required : true, type : 'param-data', prefix : 'member' };
var optionalData = { required : false, type : 'param-data', prefix : 'member' };
// --------------------------------------------------------------------------------------------------------------------
module.exports = {
AddInstanceGroups : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_AddInstanceGroups.html',
defaults : {
Action : 'AddInstanceGroups',
},
args : {
Action : required,
InstanceGroups : requiredData,
JobFlowId : required,
},
},
AddJobFlowSteps : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_AddJobFlowSteps.html',
defaults : {
Action : 'AddJobFlowSteps',
},
args : {
Action : required,
JobFlowId : required,
Steps : requiredData,
},
},
DescribeJobFlows : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_DescribeJobFlows.html',
defaults : {
Action : 'DescribeJobFlows',
},
args : {
Action : required,
CreatedAfter : optional,
CreatedBefore : optional,
JobFlowIds : optionalArray,
JobFlowStates : optionalArray,
},
},
ModifyInstanceGroups : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_ModifyInstanceGroups.html',
defaults : {
Action : 'ModifyInstanceGroups',
},
args : {
Action : required,
InstanceGroups : optionalData,
},
},
RunJobFlow : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_RunJobFlow.html',
defaults : {
Action : 'RunJobFlow',
},
args : {
Action : required,
AdditionalInfo : optional,
AmiVersion : optional,
BootstrapActions : optionalData,
Instances : requiredData,
LogUri : optional,
Name : required,
Steps : optionalData,
SupportedProducts : optionalArray,
VisibleToAllUsers : optional,
},
},
SetTerminationProtection : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_SetTerminationProtection.html',
defaults : {
Action : 'SetTerminationProtection',
},
args : {
Action : required,
JobFlowIds : requiredArray,
TerminationProtected : required,
},
},
TerminateJobFlows : {
url : 'http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_TerminateJobFlows.html',
defaults : {
Action : 'TerminateJobFlows',
},
args : {
Action : required,
JobFlowIds : requiredArray,
},
},
};
// --------------------------------------------------------------------------------------------------------------------