@itentialopensource/adapter-aws_cloudformation 0.1.3 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/AUTH.md +53 -0
- package/BROKER.md +199 -0
- package/CALLS.md +620 -0
- package/CHANGELOG.md +3 -18
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +3 -148
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +240 -423
- package/SUMMARY.md +9 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +4788 -1315
- package/adapterBase.js +979 -278
- package/changelogs/CHANGELOG.md +48 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +1 -1
- package/entities/Account/action.json +42 -0
- package/entities/Account/mockdatafiles/describePublisher-default.xml +6 -0
- package/entities/Account/mockdatafiles/registerPublisher-default.xml +6 -0
- package/entities/Account/schema.json +3 -1
- package/entities/ChangeSet/action.json +21 -0
- package/entities/ChangeSet/mockdatafiles/describeChangeSetHooks-default.xml +6 -0
- package/entities/ChangeSet/schema.json +2 -1
- package/entities/Organization/action.json +67 -0
- package/entities/Organization/mockdatafiles/activateOrganizationsAccess-default.xml +6 -0
- package/entities/Organization/mockdatafiles/deactivateOrganizationsAccess-default.xml +6 -0
- package/entities/Organization/mockdatafiles/describeOrganizationsAccess-default.xml +8 -0
- package/entities/Organization/schema.json +21 -0
- package/entities/Resource/action.json +21 -0
- package/entities/Resource/mockdatafiles/recordHandlerProgress-default.xml +6 -0
- package/entities/Resource/schema.json +2 -1
- package/entities/Stack/action.json +42 -0
- package/entities/Stack/mockdatafiles/importStacksToStackSet-default.xml +6 -0
- package/entities/Stack/mockdatafiles/rollbackStack-default.xml +6 -0
- package/entities/Stack/schema.json +3 -1
- package/entities/Type/action.json +126 -0
- package/entities/Type/mockdatafiles/activateType-default.xml +6 -0
- package/entities/Type/mockdatafiles/batchDescribeTypeConfigurations-default.xml +6 -0
- package/entities/Type/mockdatafiles/deactivateType-default.xml +6 -0
- package/entities/Type/mockdatafiles/publishType-default.xml +6 -0
- package/entities/Type/mockdatafiles/setTypeConfiguration-default.xml +6 -0
- package/entities/Type/mockdatafiles/testType-default.xml +6 -0
- package/entities/Type/schema.json +7 -1
- package/error.json +12 -0
- package/metadata.json +44 -0
- package/package.json +41 -20
- package/pronghorn.json +8996 -1335
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +877 -9
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +25034 -0
- package/report/adapter-openapi.yaml +22498 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1614638977739.json +95 -0
- package/report/updateReport1691507502657.json +120 -0
- package/report/updateReport1692202523445.json +120 -0
- package/report/updateReport1694461395239.json +120 -0
- package/report/updateReport1698420779793.json +120 -0
- package/sampleProperties.json +166 -9
- package/storage/metrics.json +1141 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +142 -0
- package/test/integration/adapterTestIntegration.js +541 -103
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +1273 -218
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +1 -1
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +2 -2
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +5 -0
- package/utils/removeHooks.js +20 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +17 -17
- package/utils/troubleshootingAdapter.js +193 -0
- package/img/adapter.jpg +0 -0
- package/workflows/README.md +0 -3
package/sampleProperties.json
CHANGED
|
@@ -2,32 +2,59 @@
|
|
|
2
2
|
"id": "Adapter-aws_cloudformation",
|
|
3
3
|
"type": "AwsCloudFormation",
|
|
4
4
|
"properties": {
|
|
5
|
-
"host": "
|
|
5
|
+
"host": "cloudformation.us-east-1.amazonaws.com",
|
|
6
6
|
"region": "us-east-1",
|
|
7
7
|
"port": 443,
|
|
8
8
|
"base_path": "/",
|
|
9
9
|
"version": "",
|
|
10
10
|
"cache_location": "none",
|
|
11
11
|
"encode_pathvars": true,
|
|
12
|
+
"encode_queryvars": true,
|
|
12
13
|
"save_metric": true,
|
|
13
14
|
"stub": true,
|
|
14
15
|
"protocol": "https",
|
|
16
|
+
"service": "cloudformation",
|
|
15
17
|
"authentication": {
|
|
16
|
-
"auth_method": "
|
|
18
|
+
"auth_method": "aws_authentication",
|
|
17
19
|
"username": "username",
|
|
18
20
|
"password": "password",
|
|
19
|
-
"aws_access_key": "access",
|
|
20
|
-
"aws_secret_key": "secret",
|
|
21
21
|
"token": "",
|
|
22
22
|
"token_timeout": 180000,
|
|
23
23
|
"token_cache": "local",
|
|
24
24
|
"invalid_token_error": 401,
|
|
25
25
|
"auth_field": "header.headers.Cookie",
|
|
26
|
-
"auth_field_format": "Token {token}"
|
|
26
|
+
"auth_field_format": "Token {token}",
|
|
27
|
+
"auth_logging": false,
|
|
28
|
+
"client_id": "",
|
|
29
|
+
"client_secret": "",
|
|
30
|
+
"grant_type": "",
|
|
31
|
+
"sensitive": [],
|
|
32
|
+
"sso": {
|
|
33
|
+
"protocol": "",
|
|
34
|
+
"host": "",
|
|
35
|
+
"port": 0
|
|
36
|
+
},
|
|
37
|
+
"multiStepAuthCalls": [
|
|
38
|
+
{
|
|
39
|
+
"name": "",
|
|
40
|
+
"requestFields": {},
|
|
41
|
+
"responseFields": {},
|
|
42
|
+
"successfullResponseCode": 200
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"aws_access_key": "aws_access_key",
|
|
46
|
+
"aws_secret_key": "aws_secret_key",
|
|
47
|
+
"aws_session_token": "aws_session_token",
|
|
48
|
+
"aws_iam_role": ""
|
|
27
49
|
},
|
|
28
50
|
"healthcheck": {
|
|
29
|
-
"type": "
|
|
30
|
-
"frequency": 60000
|
|
51
|
+
"type": "startup",
|
|
52
|
+
"frequency": 60000,
|
|
53
|
+
"query_object": {
|
|
54
|
+
"Action": "ListExports",
|
|
55
|
+
"Version": "2010-05-15"
|
|
56
|
+
},
|
|
57
|
+
"addlHeaders": {}
|
|
31
58
|
},
|
|
32
59
|
"throttle": {
|
|
33
60
|
"throttle_enabled": false,
|
|
@@ -58,13 +85,16 @@
|
|
|
58
85
|
},
|
|
59
86
|
"healthcheck_on_timeout": true,
|
|
60
87
|
"return_raw": false,
|
|
61
|
-
"archiving": false
|
|
88
|
+
"archiving": false,
|
|
89
|
+
"return_request": false
|
|
62
90
|
},
|
|
63
91
|
"proxy": {
|
|
64
92
|
"enabled": false,
|
|
65
93
|
"host": "",
|
|
66
94
|
"port": 1,
|
|
67
|
-
"protocol": "http"
|
|
95
|
+
"protocol": "http",
|
|
96
|
+
"username": "",
|
|
97
|
+
"password": ""
|
|
68
98
|
},
|
|
69
99
|
"ssl": {
|
|
70
100
|
"ecdhCurve": "",
|
|
@@ -90,6 +120,133 @@
|
|
|
90
120
|
"key_file": "",
|
|
91
121
|
"cert_file": ""
|
|
92
122
|
}
|
|
123
|
+
},
|
|
124
|
+
"devicebroker": {
|
|
125
|
+
"getDevice": [
|
|
126
|
+
{
|
|
127
|
+
"path": "/get/devices/{name}",
|
|
128
|
+
"method": "GET",
|
|
129
|
+
"query": {},
|
|
130
|
+
"body": {},
|
|
131
|
+
"headers": {},
|
|
132
|
+
"handleFailure": "ignore",
|
|
133
|
+
"requestFields": {},
|
|
134
|
+
"responseDatakey": "",
|
|
135
|
+
"responseFields": {
|
|
136
|
+
"name": "{host}",
|
|
137
|
+
"ostype": "{os}",
|
|
138
|
+
"ostypePrefix": "system-",
|
|
139
|
+
"ipaddress": "{attributes.ipaddr}",
|
|
140
|
+
"port": "443"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"getDevicesFiltered": [
|
|
145
|
+
{
|
|
146
|
+
"path": "/get/devices",
|
|
147
|
+
"method": "GET",
|
|
148
|
+
"pagination": {
|
|
149
|
+
"offsetVar": "",
|
|
150
|
+
"limitVar": "",
|
|
151
|
+
"incrementBy": "limit",
|
|
152
|
+
"requestLocation": "query"
|
|
153
|
+
},
|
|
154
|
+
"query": {},
|
|
155
|
+
"body": {},
|
|
156
|
+
"headers": {},
|
|
157
|
+
"handleFailure": "ignore",
|
|
158
|
+
"requestFields": {},
|
|
159
|
+
"responseDatakey": "",
|
|
160
|
+
"responseFields": {
|
|
161
|
+
"name": "{host}",
|
|
162
|
+
"ostype": "{os}",
|
|
163
|
+
"ostypePrefix": "system-",
|
|
164
|
+
"ipaddress": "{attributes.ipaddr}",
|
|
165
|
+
"port": "443"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"isAlive": [
|
|
170
|
+
{
|
|
171
|
+
"path": "/get/devices/{name}/status",
|
|
172
|
+
"method": "GET",
|
|
173
|
+
"query": {},
|
|
174
|
+
"body": {},
|
|
175
|
+
"headers": {},
|
|
176
|
+
"handleFailure": "ignore",
|
|
177
|
+
"requestFields": {},
|
|
178
|
+
"responseDatakey": "",
|
|
179
|
+
"responseFields": {
|
|
180
|
+
"status": "status",
|
|
181
|
+
"statusValue": "online"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"getConfig": [
|
|
186
|
+
{
|
|
187
|
+
"path": "/get/devices/{name}/configPart1",
|
|
188
|
+
"method": "GET",
|
|
189
|
+
"query": {},
|
|
190
|
+
"body": {},
|
|
191
|
+
"headers": {},
|
|
192
|
+
"handleFailure": "ignore",
|
|
193
|
+
"requestFields": {},
|
|
194
|
+
"responseDatakey": "",
|
|
195
|
+
"responseFields": {}
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"getCount": [
|
|
199
|
+
{
|
|
200
|
+
"path": "/get/devices",
|
|
201
|
+
"method": "GET",
|
|
202
|
+
"query": {},
|
|
203
|
+
"body": {},
|
|
204
|
+
"headers": {},
|
|
205
|
+
"handleFailure": "ignore",
|
|
206
|
+
"requestFields": {},
|
|
207
|
+
"responseDatakey": "",
|
|
208
|
+
"responseFields": {}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"cache": {
|
|
213
|
+
"enabled": false,
|
|
214
|
+
"entities": [
|
|
215
|
+
{
|
|
216
|
+
"entityType": "",
|
|
217
|
+
"frequency": 1440,
|
|
218
|
+
"flushOnFail": false,
|
|
219
|
+
"limit": 1000,
|
|
220
|
+
"retryAttempts": 5,
|
|
221
|
+
"sort": true,
|
|
222
|
+
"populate": [
|
|
223
|
+
{
|
|
224
|
+
"path": "",
|
|
225
|
+
"method": "GET",
|
|
226
|
+
"pagination": {
|
|
227
|
+
"offsetVar": "",
|
|
228
|
+
"limitVar": "",
|
|
229
|
+
"incrementBy": "limit",
|
|
230
|
+
"requestLocation": "query"
|
|
231
|
+
},
|
|
232
|
+
"query": {},
|
|
233
|
+
"body": {},
|
|
234
|
+
"headers": {},
|
|
235
|
+
"handleFailure": "ignore",
|
|
236
|
+
"requestFields": {},
|
|
237
|
+
"responseDatakey": "",
|
|
238
|
+
"responseFields": {}
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"cachedTasks": [
|
|
242
|
+
{
|
|
243
|
+
"name": "",
|
|
244
|
+
"filterField": "",
|
|
245
|
+
"filterLoc": ""
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
]
|
|
93
250
|
}
|
|
94
251
|
},
|
|
95
252
|
"groups": [],
|