@aws-sdk/client-cloud9 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +19 -13
- package/dist-es/Cloud9.js +54 -61
- package/dist-es/Cloud9Client.js +22 -28
- package/dist-es/commands/CreateEnvironmentEC2Command.js +21 -28
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateEnvironmentCommand.js +21 -28
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Cloud9ServiceException.js +5 -10
- package/dist-es/models/models_0.js +204 -135
- package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +25 -68
- package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +992 -1277
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloud9
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-cloud9
|
|
@@ -152,7 +152,7 @@ exports.deserializeAws_json1_1CreateEnvironmentEC2Command = deserializeAws_json1
|
|
|
152
152
|
const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, context) => {
|
|
153
153
|
const parsedOutput = {
|
|
154
154
|
...output,
|
|
155
|
-
body: await
|
|
155
|
+
body: await parseErrorBody(output.body, context),
|
|
156
156
|
};
|
|
157
157
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
158
158
|
switch (errorCode) {
|
|
@@ -204,7 +204,7 @@ exports.deserializeAws_json1_1CreateEnvironmentMembershipCommand = deserializeAw
|
|
|
204
204
|
const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (output, context) => {
|
|
205
205
|
const parsedOutput = {
|
|
206
206
|
...output,
|
|
207
|
-
body: await
|
|
207
|
+
body: await parseErrorBody(output.body, context),
|
|
208
208
|
};
|
|
209
209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
210
210
|
switch (errorCode) {
|
|
@@ -256,7 +256,7 @@ exports.deserializeAws_json1_1DeleteEnvironmentCommand = deserializeAws_json1_1D
|
|
|
256
256
|
const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, context) => {
|
|
257
257
|
const parsedOutput = {
|
|
258
258
|
...output,
|
|
259
|
-
body: await
|
|
259
|
+
body: await parseErrorBody(output.body, context),
|
|
260
260
|
};
|
|
261
261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
262
262
|
switch (errorCode) {
|
|
@@ -308,7 +308,7 @@ exports.deserializeAws_json1_1DeleteEnvironmentMembershipCommand = deserializeAw
|
|
|
308
308
|
const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (output, context) => {
|
|
309
309
|
const parsedOutput = {
|
|
310
310
|
...output,
|
|
311
|
-
body: await
|
|
311
|
+
body: await parseErrorBody(output.body, context),
|
|
312
312
|
};
|
|
313
313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
314
|
switch (errorCode) {
|
|
@@ -360,7 +360,7 @@ exports.deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = deserializ
|
|
|
360
360
|
const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (output, context) => {
|
|
361
361
|
const parsedOutput = {
|
|
362
362
|
...output,
|
|
363
|
-
body: await
|
|
363
|
+
body: await parseErrorBody(output.body, context),
|
|
364
364
|
};
|
|
365
365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
366
|
switch (errorCode) {
|
|
@@ -412,7 +412,7 @@ exports.deserializeAws_json1_1DescribeEnvironmentsCommand = deserializeAws_json1
|
|
|
412
412
|
const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, context) => {
|
|
413
413
|
const parsedOutput = {
|
|
414
414
|
...output,
|
|
415
|
-
body: await
|
|
415
|
+
body: await parseErrorBody(output.body, context),
|
|
416
416
|
};
|
|
417
417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
418
|
switch (errorCode) {
|
|
@@ -464,7 +464,7 @@ exports.deserializeAws_json1_1DescribeEnvironmentStatusCommand = deserializeAws_
|
|
|
464
464
|
const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (output, context) => {
|
|
465
465
|
const parsedOutput = {
|
|
466
466
|
...output,
|
|
467
|
-
body: await
|
|
467
|
+
body: await parseErrorBody(output.body, context),
|
|
468
468
|
};
|
|
469
469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
470
|
switch (errorCode) {
|
|
@@ -516,7 +516,7 @@ exports.deserializeAws_json1_1ListEnvironmentsCommand = deserializeAws_json1_1Li
|
|
|
516
516
|
const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, context) => {
|
|
517
517
|
const parsedOutput = {
|
|
518
518
|
...output,
|
|
519
|
-
body: await
|
|
519
|
+
body: await parseErrorBody(output.body, context),
|
|
520
520
|
};
|
|
521
521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
522
|
switch (errorCode) {
|
|
@@ -568,7 +568,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
568
568
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
569
569
|
const parsedOutput = {
|
|
570
570
|
...output,
|
|
571
|
-
body: await
|
|
571
|
+
body: await parseErrorBody(output.body, context),
|
|
572
572
|
};
|
|
573
573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
574
|
switch (errorCode) {
|
|
@@ -608,7 +608,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
608
608
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
609
609
|
const parsedOutput = {
|
|
610
610
|
...output,
|
|
611
|
-
body: await
|
|
611
|
+
body: await parseErrorBody(output.body, context),
|
|
612
612
|
};
|
|
613
613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
614
|
switch (errorCode) {
|
|
@@ -651,7 +651,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
651
651
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
652
652
|
const parsedOutput = {
|
|
653
653
|
...output,
|
|
654
|
-
body: await
|
|
654
|
+
body: await parseErrorBody(output.body, context),
|
|
655
655
|
};
|
|
656
656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
657
|
switch (errorCode) {
|
|
@@ -694,7 +694,7 @@ exports.deserializeAws_json1_1UpdateEnvironmentCommand = deserializeAws_json1_1U
|
|
|
694
694
|
const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
|
-
body: await
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
698
|
};
|
|
699
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
switch (errorCode) {
|
|
@@ -746,7 +746,7 @@ exports.deserializeAws_json1_1UpdateEnvironmentMembershipCommand = deserializeAw
|
|
|
746
746
|
const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
|
-
body: await
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
750
|
};
|
|
751
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
752
|
switch (errorCode) {
|
|
@@ -1216,6 +1216,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return {};
|
|
1218
1218
|
});
|
|
1219
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1220
|
+
var _a;
|
|
1221
|
+
const value = await parseBody(errorBody, context);
|
|
1222
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1223
|
+
return value;
|
|
1224
|
+
};
|
|
1219
1225
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1220
1226
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1221
1227
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/Cloud9.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { Cloud9Client } from "./Cloud9Client";
|
|
3
2
|
import { CreateEnvironmentEC2Command, } from "./commands/CreateEnvironmentEC2Command";
|
|
4
3
|
import { CreateEnvironmentMembershipCommand, } from "./commands/CreateEnvironmentMembershipCommand";
|
|
@@ -13,193 +12,187 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
13
12
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
14
13
|
import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
|
|
15
14
|
import { UpdateEnvironmentMembershipCommand, } from "./commands/UpdateEnvironmentMembershipCommand";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
-
}
|
|
21
|
-
Cloud9.prototype.createEnvironmentEC2 = function (args, optionsOrCb, cb) {
|
|
22
|
-
var command = new CreateEnvironmentEC2Command(args);
|
|
15
|
+
export class Cloud9 extends Cloud9Client {
|
|
16
|
+
createEnvironmentEC2(args, optionsOrCb, cb) {
|
|
17
|
+
const command = new CreateEnvironmentEC2Command(args);
|
|
23
18
|
if (typeof optionsOrCb === "function") {
|
|
24
19
|
this.send(command, optionsOrCb);
|
|
25
20
|
}
|
|
26
21
|
else if (typeof cb === "function") {
|
|
27
22
|
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(
|
|
23
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
24
|
this.send(command, optionsOrCb || {}, cb);
|
|
30
25
|
}
|
|
31
26
|
else {
|
|
32
27
|
return this.send(command, optionsOrCb);
|
|
33
28
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
}
|
|
30
|
+
createEnvironmentMembership(args, optionsOrCb, cb) {
|
|
31
|
+
const command = new CreateEnvironmentMembershipCommand(args);
|
|
37
32
|
if (typeof optionsOrCb === "function") {
|
|
38
33
|
this.send(command, optionsOrCb);
|
|
39
34
|
}
|
|
40
35
|
else if (typeof cb === "function") {
|
|
41
36
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(
|
|
37
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
38
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
39
|
}
|
|
45
40
|
else {
|
|
46
41
|
return this.send(command, optionsOrCb);
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
}
|
|
44
|
+
deleteEnvironment(args, optionsOrCb, cb) {
|
|
45
|
+
const command = new DeleteEnvironmentCommand(args);
|
|
51
46
|
if (typeof optionsOrCb === "function") {
|
|
52
47
|
this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
49
|
else if (typeof cb === "function") {
|
|
55
50
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(
|
|
51
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
52
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
53
|
}
|
|
59
54
|
else {
|
|
60
55
|
return this.send(command, optionsOrCb);
|
|
61
56
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
}
|
|
58
|
+
deleteEnvironmentMembership(args, optionsOrCb, cb) {
|
|
59
|
+
const command = new DeleteEnvironmentMembershipCommand(args);
|
|
65
60
|
if (typeof optionsOrCb === "function") {
|
|
66
61
|
this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
63
|
else if (typeof cb === "function") {
|
|
69
64
|
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(
|
|
65
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
66
|
this.send(command, optionsOrCb || {}, cb);
|
|
72
67
|
}
|
|
73
68
|
else {
|
|
74
69
|
return this.send(command, optionsOrCb);
|
|
75
70
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
}
|
|
72
|
+
describeEnvironmentMemberships(args, optionsOrCb, cb) {
|
|
73
|
+
const command = new DescribeEnvironmentMembershipsCommand(args);
|
|
79
74
|
if (typeof optionsOrCb === "function") {
|
|
80
75
|
this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
77
|
else if (typeof cb === "function") {
|
|
83
78
|
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(
|
|
79
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
80
|
this.send(command, optionsOrCb || {}, cb);
|
|
86
81
|
}
|
|
87
82
|
else {
|
|
88
83
|
return this.send(command, optionsOrCb);
|
|
89
84
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
}
|
|
86
|
+
describeEnvironments(args, optionsOrCb, cb) {
|
|
87
|
+
const command = new DescribeEnvironmentsCommand(args);
|
|
93
88
|
if (typeof optionsOrCb === "function") {
|
|
94
89
|
this.send(command, optionsOrCb);
|
|
95
90
|
}
|
|
96
91
|
else if (typeof cb === "function") {
|
|
97
92
|
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(
|
|
93
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
99
94
|
this.send(command, optionsOrCb || {}, cb);
|
|
100
95
|
}
|
|
101
96
|
else {
|
|
102
97
|
return this.send(command, optionsOrCb);
|
|
103
98
|
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
}
|
|
100
|
+
describeEnvironmentStatus(args, optionsOrCb, cb) {
|
|
101
|
+
const command = new DescribeEnvironmentStatusCommand(args);
|
|
107
102
|
if (typeof optionsOrCb === "function") {
|
|
108
103
|
this.send(command, optionsOrCb);
|
|
109
104
|
}
|
|
110
105
|
else if (typeof cb === "function") {
|
|
111
106
|
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(
|
|
107
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
108
|
this.send(command, optionsOrCb || {}, cb);
|
|
114
109
|
}
|
|
115
110
|
else {
|
|
116
111
|
return this.send(command, optionsOrCb);
|
|
117
112
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
}
|
|
114
|
+
listEnvironments(args, optionsOrCb, cb) {
|
|
115
|
+
const command = new ListEnvironmentsCommand(args);
|
|
121
116
|
if (typeof optionsOrCb === "function") {
|
|
122
117
|
this.send(command, optionsOrCb);
|
|
123
118
|
}
|
|
124
119
|
else if (typeof cb === "function") {
|
|
125
120
|
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(
|
|
121
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
122
|
this.send(command, optionsOrCb || {}, cb);
|
|
128
123
|
}
|
|
129
124
|
else {
|
|
130
125
|
return this.send(command, optionsOrCb);
|
|
131
126
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
}
|
|
128
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
129
|
+
const command = new ListTagsForResourceCommand(args);
|
|
135
130
|
if (typeof optionsOrCb === "function") {
|
|
136
131
|
this.send(command, optionsOrCb);
|
|
137
132
|
}
|
|
138
133
|
else if (typeof cb === "function") {
|
|
139
134
|
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(
|
|
135
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
136
|
this.send(command, optionsOrCb || {}, cb);
|
|
142
137
|
}
|
|
143
138
|
else {
|
|
144
139
|
return this.send(command, optionsOrCb);
|
|
145
140
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
}
|
|
142
|
+
tagResource(args, optionsOrCb, cb) {
|
|
143
|
+
const command = new TagResourceCommand(args);
|
|
149
144
|
if (typeof optionsOrCb === "function") {
|
|
150
145
|
this.send(command, optionsOrCb);
|
|
151
146
|
}
|
|
152
147
|
else if (typeof cb === "function") {
|
|
153
148
|
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(
|
|
149
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
150
|
this.send(command, optionsOrCb || {}, cb);
|
|
156
151
|
}
|
|
157
152
|
else {
|
|
158
153
|
return this.send(command, optionsOrCb);
|
|
159
154
|
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
155
|
+
}
|
|
156
|
+
untagResource(args, optionsOrCb, cb) {
|
|
157
|
+
const command = new UntagResourceCommand(args);
|
|
163
158
|
if (typeof optionsOrCb === "function") {
|
|
164
159
|
this.send(command, optionsOrCb);
|
|
165
160
|
}
|
|
166
161
|
else if (typeof cb === "function") {
|
|
167
162
|
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(
|
|
163
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
164
|
this.send(command, optionsOrCb || {}, cb);
|
|
170
165
|
}
|
|
171
166
|
else {
|
|
172
167
|
return this.send(command, optionsOrCb);
|
|
173
168
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
}
|
|
170
|
+
updateEnvironment(args, optionsOrCb, cb) {
|
|
171
|
+
const command = new UpdateEnvironmentCommand(args);
|
|
177
172
|
if (typeof optionsOrCb === "function") {
|
|
178
173
|
this.send(command, optionsOrCb);
|
|
179
174
|
}
|
|
180
175
|
else if (typeof cb === "function") {
|
|
181
176
|
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(
|
|
177
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
178
|
this.send(command, optionsOrCb || {}, cb);
|
|
184
179
|
}
|
|
185
180
|
else {
|
|
186
181
|
return this.send(command, optionsOrCb);
|
|
187
182
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
}
|
|
184
|
+
updateEnvironmentMembership(args, optionsOrCb, cb) {
|
|
185
|
+
const command = new UpdateEnvironmentMembershipCommand(args);
|
|
191
186
|
if (typeof optionsOrCb === "function") {
|
|
192
187
|
this.send(command, optionsOrCb);
|
|
193
188
|
}
|
|
194
189
|
else if (typeof cb === "function") {
|
|
195
190
|
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(
|
|
191
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
192
|
this.send(command, optionsOrCb || {}, cb);
|
|
198
193
|
}
|
|
199
194
|
else {
|
|
200
195
|
return this.send(command, optionsOrCb);
|
|
201
196
|
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
}(Cloud9Client));
|
|
205
|
-
export { Cloud9 };
|
|
197
|
+
}
|
|
198
|
+
}
|
package/dist-es/Cloud9Client.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class Cloud9Client extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { Cloud9Client };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateEnvironmentEC2RequestFilterSensitiveLog, CreateEnvironmentEC2ResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1CreateEnvironmentEC2Command, serializeAws_json1_1CreateEnvironmentEC2Command, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateEnvironmentEC2Command extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "Cloud9Client";
|
|
15
|
+
const commandName = "CreateEnvironmentEC2Command";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateEnvironmentEC2RequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateEnvironmentEC2ResultFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateEnvironmentEC2Command.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1CreateEnvironmentEC2Command(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateEnvironmentEC2Command(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateEnvironmentEC2Command };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateEnvironmentMembershipRequestFilterSensitiveLog, CreateEnvironmentMembershipResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1CreateEnvironmentMembershipCommand, serializeAws_json1_1CreateEnvironmentMembershipCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateEnvironmentMembershipCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "Cloud9Client";
|
|
15
|
+
const commandName = "CreateEnvironmentMembershipCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateEnvironmentMembershipRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateEnvironmentMembershipResultFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateEnvironmentMembershipCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1CreateEnvironmentMembershipCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateEnvironmentMembershipCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateEnvironmentMembershipCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|