@aws-sdk/client-greengrassv2 3.183.0 → 3.185.0
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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/GreengrassV2.js +125 -118
- package/dist-es/GreengrassV2Client.js +28 -22
- package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +28 -21
- package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +28 -21
- package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +28 -21
- package/dist-es/commands/CancelDeploymentCommand.js +28 -21
- package/dist-es/commands/CreateComponentVersionCommand.js +28 -21
- package/dist-es/commands/CreateDeploymentCommand.js +28 -21
- package/dist-es/commands/DeleteComponentCommand.js +29 -22
- package/dist-es/commands/DeleteCoreDeviceCommand.js +29 -22
- package/dist-es/commands/DeleteDeploymentCommand.js +29 -22
- package/dist-es/commands/DescribeComponentCommand.js +28 -21
- package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +28 -21
- package/dist-es/commands/GetComponentCommand.js +28 -21
- package/dist-es/commands/GetComponentVersionArtifactCommand.js +28 -21
- package/dist-es/commands/GetConnectivityInfoCommand.js +28 -21
- package/dist-es/commands/GetCoreDeviceCommand.js +28 -21
- package/dist-es/commands/GetDeploymentCommand.js +28 -21
- package/dist-es/commands/GetServiceRoleForAccountCommand.js +28 -21
- package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +28 -21
- package/dist-es/commands/ListComponentVersionsCommand.js +28 -21
- package/dist-es/commands/ListComponentsCommand.js +28 -21
- package/dist-es/commands/ListCoreDevicesCommand.js +28 -21
- package/dist-es/commands/ListDeploymentsCommand.js +28 -21
- package/dist-es/commands/ListEffectiveDeploymentsCommand.js +28 -21
- package/dist-es/commands/ListInstalledComponentsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ResolveComponentCandidatesCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateConnectivityInfoCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GreengrassV2ServiceException.js +10 -5
- package/dist-es/models/models_0.js +198 -387
- package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +68 -25
- package/dist-es/pagination/ListComponentVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListComponentsPaginator.js +68 -25
- package/dist-es/pagination/ListCoreDevicesPaginator.js +68 -25
- package/dist-es/pagination/ListDeploymentsPaginator.js +68 -25
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +68 -25
- package/dist-es/pagination/ListInstalledComponentsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3292 -2480
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-greengrassv2
|
|
@@ -2995,10 +2995,10 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
2995
2995
|
return retVal;
|
|
2996
2996
|
};
|
|
2997
2997
|
const deserializeMetadata = (output) => {
|
|
2998
|
-
var _a;
|
|
2998
|
+
var _a, _b;
|
|
2999
2999
|
return ({
|
|
3000
3000
|
httpStatusCode: output.statusCode,
|
|
3001
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
3001
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
3002
3002
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3003
3003
|
cfId: output.headers["x-amz-cf-id"],
|
|
3004
3004
|
});
|
package/dist-es/GreengrassV2.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { AssociateServiceRoleToAccountCommand, } from "./commands/AssociateServiceRoleToAccountCommand";
|
|
2
3
|
import { BatchAssociateClientDeviceWithCoreDeviceCommand, } from "./commands/BatchAssociateClientDeviceWithCoreDeviceCommand";
|
|
3
4
|
import { BatchDisassociateClientDeviceFromCoreDeviceCommand, } from "./commands/BatchDisassociateClientDeviceFromCoreDeviceCommand";
|
|
@@ -28,411 +29,417 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
28
29
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
29
30
|
import { UpdateConnectivityInfoCommand, } from "./commands/UpdateConnectivityInfoCommand";
|
|
30
31
|
import { GreengrassV2Client } from "./GreengrassV2Client";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
var GreengrassV2 = (function (_super) {
|
|
33
|
+
__extends(GreengrassV2, _super);
|
|
34
|
+
function GreengrassV2() {
|
|
35
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
}
|
|
37
|
+
GreengrassV2.prototype.associateServiceRoleToAccount = function (args, optionsOrCb, cb) {
|
|
38
|
+
var command = new AssociateServiceRoleToAccountCommand(args);
|
|
34
39
|
if (typeof optionsOrCb === "function") {
|
|
35
40
|
this.send(command, optionsOrCb);
|
|
36
41
|
}
|
|
37
42
|
else if (typeof cb === "function") {
|
|
38
43
|
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(
|
|
44
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
40
45
|
this.send(command, optionsOrCb || {}, cb);
|
|
41
46
|
}
|
|
42
47
|
else {
|
|
43
48
|
return this.send(command, optionsOrCb);
|
|
44
49
|
}
|
|
45
|
-
}
|
|
46
|
-
batchAssociateClientDeviceWithCoreDevice(args, optionsOrCb, cb) {
|
|
47
|
-
|
|
50
|
+
};
|
|
51
|
+
GreengrassV2.prototype.batchAssociateClientDeviceWithCoreDevice = function (args, optionsOrCb, cb) {
|
|
52
|
+
var command = new BatchAssociateClientDeviceWithCoreDeviceCommand(args);
|
|
48
53
|
if (typeof optionsOrCb === "function") {
|
|
49
54
|
this.send(command, optionsOrCb);
|
|
50
55
|
}
|
|
51
56
|
else if (typeof cb === "function") {
|
|
52
57
|
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(
|
|
58
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
54
59
|
this.send(command, optionsOrCb || {}, cb);
|
|
55
60
|
}
|
|
56
61
|
else {
|
|
57
62
|
return this.send(command, optionsOrCb);
|
|
58
63
|
}
|
|
59
|
-
}
|
|
60
|
-
batchDisassociateClientDeviceFromCoreDevice(args, optionsOrCb, cb) {
|
|
61
|
-
|
|
64
|
+
};
|
|
65
|
+
GreengrassV2.prototype.batchDisassociateClientDeviceFromCoreDevice = function (args, optionsOrCb, cb) {
|
|
66
|
+
var command = new BatchDisassociateClientDeviceFromCoreDeviceCommand(args);
|
|
62
67
|
if (typeof optionsOrCb === "function") {
|
|
63
68
|
this.send(command, optionsOrCb);
|
|
64
69
|
}
|
|
65
70
|
else if (typeof cb === "function") {
|
|
66
71
|
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(
|
|
72
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
68
73
|
this.send(command, optionsOrCb || {}, cb);
|
|
69
74
|
}
|
|
70
75
|
else {
|
|
71
76
|
return this.send(command, optionsOrCb);
|
|
72
77
|
}
|
|
73
|
-
}
|
|
74
|
-
cancelDeployment(args, optionsOrCb, cb) {
|
|
75
|
-
|
|
78
|
+
};
|
|
79
|
+
GreengrassV2.prototype.cancelDeployment = function (args, optionsOrCb, cb) {
|
|
80
|
+
var command = new CancelDeploymentCommand(args);
|
|
76
81
|
if (typeof optionsOrCb === "function") {
|
|
77
82
|
this.send(command, optionsOrCb);
|
|
78
83
|
}
|
|
79
84
|
else if (typeof cb === "function") {
|
|
80
85
|
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(
|
|
86
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
82
87
|
this.send(command, optionsOrCb || {}, cb);
|
|
83
88
|
}
|
|
84
89
|
else {
|
|
85
90
|
return this.send(command, optionsOrCb);
|
|
86
91
|
}
|
|
87
|
-
}
|
|
88
|
-
createComponentVersion(args, optionsOrCb, cb) {
|
|
89
|
-
|
|
92
|
+
};
|
|
93
|
+
GreengrassV2.prototype.createComponentVersion = function (args, optionsOrCb, cb) {
|
|
94
|
+
var command = new CreateComponentVersionCommand(args);
|
|
90
95
|
if (typeof optionsOrCb === "function") {
|
|
91
96
|
this.send(command, optionsOrCb);
|
|
92
97
|
}
|
|
93
98
|
else if (typeof cb === "function") {
|
|
94
99
|
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(
|
|
100
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
96
101
|
this.send(command, optionsOrCb || {}, cb);
|
|
97
102
|
}
|
|
98
103
|
else {
|
|
99
104
|
return this.send(command, optionsOrCb);
|
|
100
105
|
}
|
|
101
|
-
}
|
|
102
|
-
createDeployment(args, optionsOrCb, cb) {
|
|
103
|
-
|
|
106
|
+
};
|
|
107
|
+
GreengrassV2.prototype.createDeployment = function (args, optionsOrCb, cb) {
|
|
108
|
+
var command = new CreateDeploymentCommand(args);
|
|
104
109
|
if (typeof optionsOrCb === "function") {
|
|
105
110
|
this.send(command, optionsOrCb);
|
|
106
111
|
}
|
|
107
112
|
else if (typeof cb === "function") {
|
|
108
113
|
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(
|
|
114
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
110
115
|
this.send(command, optionsOrCb || {}, cb);
|
|
111
116
|
}
|
|
112
117
|
else {
|
|
113
118
|
return this.send(command, optionsOrCb);
|
|
114
119
|
}
|
|
115
|
-
}
|
|
116
|
-
deleteComponent(args, optionsOrCb, cb) {
|
|
117
|
-
|
|
120
|
+
};
|
|
121
|
+
GreengrassV2.prototype.deleteComponent = function (args, optionsOrCb, cb) {
|
|
122
|
+
var command = new DeleteComponentCommand(args);
|
|
118
123
|
if (typeof optionsOrCb === "function") {
|
|
119
124
|
this.send(command, optionsOrCb);
|
|
120
125
|
}
|
|
121
126
|
else if (typeof cb === "function") {
|
|
122
127
|
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(
|
|
128
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
124
129
|
this.send(command, optionsOrCb || {}, cb);
|
|
125
130
|
}
|
|
126
131
|
else {
|
|
127
132
|
return this.send(command, optionsOrCb);
|
|
128
133
|
}
|
|
129
|
-
}
|
|
130
|
-
deleteCoreDevice(args, optionsOrCb, cb) {
|
|
131
|
-
|
|
134
|
+
};
|
|
135
|
+
GreengrassV2.prototype.deleteCoreDevice = function (args, optionsOrCb, cb) {
|
|
136
|
+
var command = new DeleteCoreDeviceCommand(args);
|
|
132
137
|
if (typeof optionsOrCb === "function") {
|
|
133
138
|
this.send(command, optionsOrCb);
|
|
134
139
|
}
|
|
135
140
|
else if (typeof cb === "function") {
|
|
136
141
|
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(
|
|
142
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
138
143
|
this.send(command, optionsOrCb || {}, cb);
|
|
139
144
|
}
|
|
140
145
|
else {
|
|
141
146
|
return this.send(command, optionsOrCb);
|
|
142
147
|
}
|
|
143
|
-
}
|
|
144
|
-
deleteDeployment(args, optionsOrCb, cb) {
|
|
145
|
-
|
|
148
|
+
};
|
|
149
|
+
GreengrassV2.prototype.deleteDeployment = function (args, optionsOrCb, cb) {
|
|
150
|
+
var command = new DeleteDeploymentCommand(args);
|
|
146
151
|
if (typeof optionsOrCb === "function") {
|
|
147
152
|
this.send(command, optionsOrCb);
|
|
148
153
|
}
|
|
149
154
|
else if (typeof cb === "function") {
|
|
150
155
|
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(
|
|
156
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
152
157
|
this.send(command, optionsOrCb || {}, cb);
|
|
153
158
|
}
|
|
154
159
|
else {
|
|
155
160
|
return this.send(command, optionsOrCb);
|
|
156
161
|
}
|
|
157
|
-
}
|
|
158
|
-
describeComponent(args, optionsOrCb, cb) {
|
|
159
|
-
|
|
162
|
+
};
|
|
163
|
+
GreengrassV2.prototype.describeComponent = function (args, optionsOrCb, cb) {
|
|
164
|
+
var command = new DescribeComponentCommand(args);
|
|
160
165
|
if (typeof optionsOrCb === "function") {
|
|
161
166
|
this.send(command, optionsOrCb);
|
|
162
167
|
}
|
|
163
168
|
else if (typeof cb === "function") {
|
|
164
169
|
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(
|
|
170
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
166
171
|
this.send(command, optionsOrCb || {}, cb);
|
|
167
172
|
}
|
|
168
173
|
else {
|
|
169
174
|
return this.send(command, optionsOrCb);
|
|
170
175
|
}
|
|
171
|
-
}
|
|
172
|
-
disassociateServiceRoleFromAccount(args, optionsOrCb, cb) {
|
|
173
|
-
|
|
176
|
+
};
|
|
177
|
+
GreengrassV2.prototype.disassociateServiceRoleFromAccount = function (args, optionsOrCb, cb) {
|
|
178
|
+
var command = new DisassociateServiceRoleFromAccountCommand(args);
|
|
174
179
|
if (typeof optionsOrCb === "function") {
|
|
175
180
|
this.send(command, optionsOrCb);
|
|
176
181
|
}
|
|
177
182
|
else if (typeof cb === "function") {
|
|
178
183
|
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(
|
|
184
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
180
185
|
this.send(command, optionsOrCb || {}, cb);
|
|
181
186
|
}
|
|
182
187
|
else {
|
|
183
188
|
return this.send(command, optionsOrCb);
|
|
184
189
|
}
|
|
185
|
-
}
|
|
186
|
-
getComponent(args, optionsOrCb, cb) {
|
|
187
|
-
|
|
190
|
+
};
|
|
191
|
+
GreengrassV2.prototype.getComponent = function (args, optionsOrCb, cb) {
|
|
192
|
+
var command = new GetComponentCommand(args);
|
|
188
193
|
if (typeof optionsOrCb === "function") {
|
|
189
194
|
this.send(command, optionsOrCb);
|
|
190
195
|
}
|
|
191
196
|
else if (typeof cb === "function") {
|
|
192
197
|
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(
|
|
198
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
194
199
|
this.send(command, optionsOrCb || {}, cb);
|
|
195
200
|
}
|
|
196
201
|
else {
|
|
197
202
|
return this.send(command, optionsOrCb);
|
|
198
203
|
}
|
|
199
|
-
}
|
|
200
|
-
getComponentVersionArtifact(args, optionsOrCb, cb) {
|
|
201
|
-
|
|
204
|
+
};
|
|
205
|
+
GreengrassV2.prototype.getComponentVersionArtifact = function (args, optionsOrCb, cb) {
|
|
206
|
+
var command = new GetComponentVersionArtifactCommand(args);
|
|
202
207
|
if (typeof optionsOrCb === "function") {
|
|
203
208
|
this.send(command, optionsOrCb);
|
|
204
209
|
}
|
|
205
210
|
else if (typeof cb === "function") {
|
|
206
211
|
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(
|
|
212
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
208
213
|
this.send(command, optionsOrCb || {}, cb);
|
|
209
214
|
}
|
|
210
215
|
else {
|
|
211
216
|
return this.send(command, optionsOrCb);
|
|
212
217
|
}
|
|
213
|
-
}
|
|
214
|
-
getConnectivityInfo(args, optionsOrCb, cb) {
|
|
215
|
-
|
|
218
|
+
};
|
|
219
|
+
GreengrassV2.prototype.getConnectivityInfo = function (args, optionsOrCb, cb) {
|
|
220
|
+
var command = new GetConnectivityInfoCommand(args);
|
|
216
221
|
if (typeof optionsOrCb === "function") {
|
|
217
222
|
this.send(command, optionsOrCb);
|
|
218
223
|
}
|
|
219
224
|
else if (typeof cb === "function") {
|
|
220
225
|
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(
|
|
226
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
222
227
|
this.send(command, optionsOrCb || {}, cb);
|
|
223
228
|
}
|
|
224
229
|
else {
|
|
225
230
|
return this.send(command, optionsOrCb);
|
|
226
231
|
}
|
|
227
|
-
}
|
|
228
|
-
getCoreDevice(args, optionsOrCb, cb) {
|
|
229
|
-
|
|
232
|
+
};
|
|
233
|
+
GreengrassV2.prototype.getCoreDevice = function (args, optionsOrCb, cb) {
|
|
234
|
+
var command = new GetCoreDeviceCommand(args);
|
|
230
235
|
if (typeof optionsOrCb === "function") {
|
|
231
236
|
this.send(command, optionsOrCb);
|
|
232
237
|
}
|
|
233
238
|
else if (typeof cb === "function") {
|
|
234
239
|
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(
|
|
240
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
236
241
|
this.send(command, optionsOrCb || {}, cb);
|
|
237
242
|
}
|
|
238
243
|
else {
|
|
239
244
|
return this.send(command, optionsOrCb);
|
|
240
245
|
}
|
|
241
|
-
}
|
|
242
|
-
getDeployment(args, optionsOrCb, cb) {
|
|
243
|
-
|
|
246
|
+
};
|
|
247
|
+
GreengrassV2.prototype.getDeployment = function (args, optionsOrCb, cb) {
|
|
248
|
+
var command = new GetDeploymentCommand(args);
|
|
244
249
|
if (typeof optionsOrCb === "function") {
|
|
245
250
|
this.send(command, optionsOrCb);
|
|
246
251
|
}
|
|
247
252
|
else if (typeof cb === "function") {
|
|
248
253
|
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(
|
|
254
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
250
255
|
this.send(command, optionsOrCb || {}, cb);
|
|
251
256
|
}
|
|
252
257
|
else {
|
|
253
258
|
return this.send(command, optionsOrCb);
|
|
254
259
|
}
|
|
255
|
-
}
|
|
256
|
-
getServiceRoleForAccount(args, optionsOrCb, cb) {
|
|
257
|
-
|
|
260
|
+
};
|
|
261
|
+
GreengrassV2.prototype.getServiceRoleForAccount = function (args, optionsOrCb, cb) {
|
|
262
|
+
var command = new GetServiceRoleForAccountCommand(args);
|
|
258
263
|
if (typeof optionsOrCb === "function") {
|
|
259
264
|
this.send(command, optionsOrCb);
|
|
260
265
|
}
|
|
261
266
|
else if (typeof cb === "function") {
|
|
262
267
|
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(
|
|
268
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
264
269
|
this.send(command, optionsOrCb || {}, cb);
|
|
265
270
|
}
|
|
266
271
|
else {
|
|
267
272
|
return this.send(command, optionsOrCb);
|
|
268
273
|
}
|
|
269
|
-
}
|
|
270
|
-
listClientDevicesAssociatedWithCoreDevice(args, optionsOrCb, cb) {
|
|
271
|
-
|
|
274
|
+
};
|
|
275
|
+
GreengrassV2.prototype.listClientDevicesAssociatedWithCoreDevice = function (args, optionsOrCb, cb) {
|
|
276
|
+
var command = new ListClientDevicesAssociatedWithCoreDeviceCommand(args);
|
|
272
277
|
if (typeof optionsOrCb === "function") {
|
|
273
278
|
this.send(command, optionsOrCb);
|
|
274
279
|
}
|
|
275
280
|
else if (typeof cb === "function") {
|
|
276
281
|
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(
|
|
282
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
278
283
|
this.send(command, optionsOrCb || {}, cb);
|
|
279
284
|
}
|
|
280
285
|
else {
|
|
281
286
|
return this.send(command, optionsOrCb);
|
|
282
287
|
}
|
|
283
|
-
}
|
|
284
|
-
listComponents(args, optionsOrCb, cb) {
|
|
285
|
-
|
|
288
|
+
};
|
|
289
|
+
GreengrassV2.prototype.listComponents = function (args, optionsOrCb, cb) {
|
|
290
|
+
var command = new ListComponentsCommand(args);
|
|
286
291
|
if (typeof optionsOrCb === "function") {
|
|
287
292
|
this.send(command, optionsOrCb);
|
|
288
293
|
}
|
|
289
294
|
else if (typeof cb === "function") {
|
|
290
295
|
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(
|
|
296
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
292
297
|
this.send(command, optionsOrCb || {}, cb);
|
|
293
298
|
}
|
|
294
299
|
else {
|
|
295
300
|
return this.send(command, optionsOrCb);
|
|
296
301
|
}
|
|
297
|
-
}
|
|
298
|
-
listComponentVersions(args, optionsOrCb, cb) {
|
|
299
|
-
|
|
302
|
+
};
|
|
303
|
+
GreengrassV2.prototype.listComponentVersions = function (args, optionsOrCb, cb) {
|
|
304
|
+
var command = new ListComponentVersionsCommand(args);
|
|
300
305
|
if (typeof optionsOrCb === "function") {
|
|
301
306
|
this.send(command, optionsOrCb);
|
|
302
307
|
}
|
|
303
308
|
else if (typeof cb === "function") {
|
|
304
309
|
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(
|
|
310
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
306
311
|
this.send(command, optionsOrCb || {}, cb);
|
|
307
312
|
}
|
|
308
313
|
else {
|
|
309
314
|
return this.send(command, optionsOrCb);
|
|
310
315
|
}
|
|
311
|
-
}
|
|
312
|
-
listCoreDevices(args, optionsOrCb, cb) {
|
|
313
|
-
|
|
316
|
+
};
|
|
317
|
+
GreengrassV2.prototype.listCoreDevices = function (args, optionsOrCb, cb) {
|
|
318
|
+
var command = new ListCoreDevicesCommand(args);
|
|
314
319
|
if (typeof optionsOrCb === "function") {
|
|
315
320
|
this.send(command, optionsOrCb);
|
|
316
321
|
}
|
|
317
322
|
else if (typeof cb === "function") {
|
|
318
323
|
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(
|
|
324
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
320
325
|
this.send(command, optionsOrCb || {}, cb);
|
|
321
326
|
}
|
|
322
327
|
else {
|
|
323
328
|
return this.send(command, optionsOrCb);
|
|
324
329
|
}
|
|
325
|
-
}
|
|
326
|
-
listDeployments(args, optionsOrCb, cb) {
|
|
327
|
-
|
|
330
|
+
};
|
|
331
|
+
GreengrassV2.prototype.listDeployments = function (args, optionsOrCb, cb) {
|
|
332
|
+
var command = new ListDeploymentsCommand(args);
|
|
328
333
|
if (typeof optionsOrCb === "function") {
|
|
329
334
|
this.send(command, optionsOrCb);
|
|
330
335
|
}
|
|
331
336
|
else if (typeof cb === "function") {
|
|
332
337
|
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(
|
|
338
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
334
339
|
this.send(command, optionsOrCb || {}, cb);
|
|
335
340
|
}
|
|
336
341
|
else {
|
|
337
342
|
return this.send(command, optionsOrCb);
|
|
338
343
|
}
|
|
339
|
-
}
|
|
340
|
-
listEffectiveDeployments(args, optionsOrCb, cb) {
|
|
341
|
-
|
|
344
|
+
};
|
|
345
|
+
GreengrassV2.prototype.listEffectiveDeployments = function (args, optionsOrCb, cb) {
|
|
346
|
+
var command = new ListEffectiveDeploymentsCommand(args);
|
|
342
347
|
if (typeof optionsOrCb === "function") {
|
|
343
348
|
this.send(command, optionsOrCb);
|
|
344
349
|
}
|
|
345
350
|
else if (typeof cb === "function") {
|
|
346
351
|
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(
|
|
352
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
348
353
|
this.send(command, optionsOrCb || {}, cb);
|
|
349
354
|
}
|
|
350
355
|
else {
|
|
351
356
|
return this.send(command, optionsOrCb);
|
|
352
357
|
}
|
|
353
|
-
}
|
|
354
|
-
listInstalledComponents(args, optionsOrCb, cb) {
|
|
355
|
-
|
|
358
|
+
};
|
|
359
|
+
GreengrassV2.prototype.listInstalledComponents = function (args, optionsOrCb, cb) {
|
|
360
|
+
var command = new ListInstalledComponentsCommand(args);
|
|
356
361
|
if (typeof optionsOrCb === "function") {
|
|
357
362
|
this.send(command, optionsOrCb);
|
|
358
363
|
}
|
|
359
364
|
else if (typeof cb === "function") {
|
|
360
365
|
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(
|
|
366
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
362
367
|
this.send(command, optionsOrCb || {}, cb);
|
|
363
368
|
}
|
|
364
369
|
else {
|
|
365
370
|
return this.send(command, optionsOrCb);
|
|
366
371
|
}
|
|
367
|
-
}
|
|
368
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
369
|
-
|
|
372
|
+
};
|
|
373
|
+
GreengrassV2.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
374
|
+
var command = new ListTagsForResourceCommand(args);
|
|
370
375
|
if (typeof optionsOrCb === "function") {
|
|
371
376
|
this.send(command, optionsOrCb);
|
|
372
377
|
}
|
|
373
378
|
else if (typeof cb === "function") {
|
|
374
379
|
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(
|
|
380
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
376
381
|
this.send(command, optionsOrCb || {}, cb);
|
|
377
382
|
}
|
|
378
383
|
else {
|
|
379
384
|
return this.send(command, optionsOrCb);
|
|
380
385
|
}
|
|
381
|
-
}
|
|
382
|
-
resolveComponentCandidates(args, optionsOrCb, cb) {
|
|
383
|
-
|
|
386
|
+
};
|
|
387
|
+
GreengrassV2.prototype.resolveComponentCandidates = function (args, optionsOrCb, cb) {
|
|
388
|
+
var command = new ResolveComponentCandidatesCommand(args);
|
|
384
389
|
if (typeof optionsOrCb === "function") {
|
|
385
390
|
this.send(command, optionsOrCb);
|
|
386
391
|
}
|
|
387
392
|
else if (typeof cb === "function") {
|
|
388
393
|
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(
|
|
394
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
390
395
|
this.send(command, optionsOrCb || {}, cb);
|
|
391
396
|
}
|
|
392
397
|
else {
|
|
393
398
|
return this.send(command, optionsOrCb);
|
|
394
399
|
}
|
|
395
|
-
}
|
|
396
|
-
tagResource(args, optionsOrCb, cb) {
|
|
397
|
-
|
|
400
|
+
};
|
|
401
|
+
GreengrassV2.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
402
|
+
var command = new TagResourceCommand(args);
|
|
398
403
|
if (typeof optionsOrCb === "function") {
|
|
399
404
|
this.send(command, optionsOrCb);
|
|
400
405
|
}
|
|
401
406
|
else if (typeof cb === "function") {
|
|
402
407
|
if (typeof optionsOrCb !== "object")
|
|
403
|
-
throw new Error(
|
|
408
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
404
409
|
this.send(command, optionsOrCb || {}, cb);
|
|
405
410
|
}
|
|
406
411
|
else {
|
|
407
412
|
return this.send(command, optionsOrCb);
|
|
408
413
|
}
|
|
409
|
-
}
|
|
410
|
-
untagResource(args, optionsOrCb, cb) {
|
|
411
|
-
|
|
414
|
+
};
|
|
415
|
+
GreengrassV2.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
416
|
+
var command = new UntagResourceCommand(args);
|
|
412
417
|
if (typeof optionsOrCb === "function") {
|
|
413
418
|
this.send(command, optionsOrCb);
|
|
414
419
|
}
|
|
415
420
|
else if (typeof cb === "function") {
|
|
416
421
|
if (typeof optionsOrCb !== "object")
|
|
417
|
-
throw new Error(
|
|
422
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
418
423
|
this.send(command, optionsOrCb || {}, cb);
|
|
419
424
|
}
|
|
420
425
|
else {
|
|
421
426
|
return this.send(command, optionsOrCb);
|
|
422
427
|
}
|
|
423
|
-
}
|
|
424
|
-
updateConnectivityInfo(args, optionsOrCb, cb) {
|
|
425
|
-
|
|
428
|
+
};
|
|
429
|
+
GreengrassV2.prototype.updateConnectivityInfo = function (args, optionsOrCb, cb) {
|
|
430
|
+
var command = new UpdateConnectivityInfoCommand(args);
|
|
426
431
|
if (typeof optionsOrCb === "function") {
|
|
427
432
|
this.send(command, optionsOrCb);
|
|
428
433
|
}
|
|
429
434
|
else if (typeof cb === "function") {
|
|
430
435
|
if (typeof optionsOrCb !== "object")
|
|
431
|
-
throw new Error(
|
|
436
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
432
437
|
this.send(command, optionsOrCb || {}, cb);
|
|
433
438
|
}
|
|
434
439
|
else {
|
|
435
440
|
return this.send(command, optionsOrCb);
|
|
436
441
|
}
|
|
437
|
-
}
|
|
438
|
-
|
|
442
|
+
};
|
|
443
|
+
return GreengrassV2;
|
|
444
|
+
}(GreengrassV2Client));
|
|
445
|
+
export { GreengrassV2 };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var GreengrassV2Client = (function (_super) {
|
|
13
|
+
__extends(GreengrassV2Client, _super);
|
|
14
|
+
function GreengrassV2Client(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
GreengrassV2Client.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return GreengrassV2Client;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { GreengrassV2Client };
|