@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.
Files changed (28) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +19 -13
  3. package/dist-es/Cloud9.js +54 -61
  4. package/dist-es/Cloud9Client.js +22 -28
  5. package/dist-es/commands/CreateEnvironmentEC2Command.js +21 -28
  6. package/dist-es/commands/CreateEnvironmentMembershipCommand.js +21 -28
  7. package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
  8. package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +21 -28
  9. package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +21 -28
  10. package/dist-es/commands/DescribeEnvironmentStatusCommand.js +21 -28
  11. package/dist-es/commands/DescribeEnvironmentsCommand.js +21 -28
  12. package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
  13. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  14. package/dist-es/commands/TagResourceCommand.js +21 -28
  15. package/dist-es/commands/UntagResourceCommand.js +21 -28
  16. package/dist-es/commands/UpdateEnvironmentCommand.js +21 -28
  17. package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +21 -28
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/Cloud9ServiceException.js +5 -10
  20. package/dist-es/models/models_0.js +204 -135
  21. package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +25 -68
  22. package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
  23. package/dist-es/protocols/Aws_json1_1.js +992 -1277
  24. package/dist-es/runtimeConfig.browser.js +26 -12
  25. package/dist-es/runtimeConfig.js +30 -12
  26. package/dist-es/runtimeConfig.native.js +8 -5
  27. package/dist-es/runtimeConfig.shared.js +8 -11
  28. package/package.json +33 -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 { UpdateEnvironmentMembershipRequestFilterSensitiveLog, UpdateEnvironmentMembershipResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateEnvironmentMembershipCommand, serializeAws_json1_1UpdateEnvironmentMembershipCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateEnvironmentMembershipCommand = (function (_super) {
7
- __extends(UpdateEnvironmentMembershipCommand, _super);
8
- function UpdateEnvironmentMembershipCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateEnvironmentMembershipCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateEnvironmentMembershipCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "Cloud9Client";
18
- var commandName = "UpdateEnvironmentMembershipCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "Cloud9Client";
15
+ const commandName = "UpdateEnvironmentMembershipCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateEnvironmentMembershipRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateEnvironmentMembershipResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateEnvironmentMembershipCommand.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_1UpdateEnvironmentMembershipCommand(input, context);
33
- };
34
- UpdateEnvironmentMembershipCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateEnvironmentMembershipCommand(output, context);
36
- };
37
- return UpdateEnvironmentMembershipCommand;
38
- }($Command));
39
- export { UpdateEnvironmentMembershipCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "cloud9", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "cloud9",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var Cloud9ServiceException = (function (_super) {
4
- __extends(Cloud9ServiceException, _super);
5
- function Cloud9ServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, Cloud9ServiceException.prototype);
8
- return _this;
2
+ export class Cloud9ServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, Cloud9ServiceException.prototype);
9
6
  }
10
- return Cloud9ServiceException;
11
- }(__ServiceException));
12
- export { Cloud9ServiceException };
7
+ }
@@ -1,109 +1,108 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { Cloud9ServiceException as __BaseException } from "./Cloud9ServiceException";
4
- var BadRequestException = (function (_super) {
5
- __extends(BadRequestException, _super);
6
- function BadRequestException(opts) {
7
- var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
8
- _this.name = "BadRequestException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, BadRequestException.prototype);
11
- _this.className = opts.className;
12
- _this.code = opts.code;
13
- return _this;
3
+ export class BadRequestException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "BadRequestException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "BadRequestException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, BadRequestException.prototype);
13
+ this.className = opts.className;
14
+ this.code = opts.code;
14
15
  }
15
- return BadRequestException;
16
- }(__BaseException));
17
- export { BadRequestException };
18
- var ConflictException = (function (_super) {
19
- __extends(ConflictException, _super);
20
- function ConflictException(opts) {
21
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
22
- _this.name = "ConflictException";
23
- _this.$fault = "client";
24
- Object.setPrototypeOf(_this, ConflictException.prototype);
25
- _this.className = opts.className;
26
- _this.code = opts.code;
27
- return _this;
16
+ }
17
+ export class ConflictException extends __BaseException {
18
+ constructor(opts) {
19
+ super({
20
+ name: "ConflictException",
21
+ $fault: "client",
22
+ ...opts,
23
+ });
24
+ this.name = "ConflictException";
25
+ this.$fault = "client";
26
+ Object.setPrototypeOf(this, ConflictException.prototype);
27
+ this.className = opts.className;
28
+ this.code = opts.code;
28
29
  }
29
- return ConflictException;
30
- }(__BaseException));
31
- export { ConflictException };
30
+ }
32
31
  export var ConnectionType;
33
32
  (function (ConnectionType) {
34
33
  ConnectionType["CONNECT_SSH"] = "CONNECT_SSH";
35
34
  ConnectionType["CONNECT_SSM"] = "CONNECT_SSM";
36
35
  })(ConnectionType || (ConnectionType = {}));
37
- var ForbiddenException = (function (_super) {
38
- __extends(ForbiddenException, _super);
39
- function ForbiddenException(opts) {
40
- var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
41
- _this.name = "ForbiddenException";
42
- _this.$fault = "client";
43
- Object.setPrototypeOf(_this, ForbiddenException.prototype);
44
- _this.className = opts.className;
45
- _this.code = opts.code;
46
- return _this;
36
+ export class ForbiddenException extends __BaseException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "ForbiddenException",
40
+ $fault: "client",
41
+ ...opts,
42
+ });
43
+ this.name = "ForbiddenException";
44
+ this.$fault = "client";
45
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
46
+ this.className = opts.className;
47
+ this.code = opts.code;
47
48
  }
48
- return ForbiddenException;
49
- }(__BaseException));
50
- export { ForbiddenException };
51
- var InternalServerErrorException = (function (_super) {
52
- __extends(InternalServerErrorException, _super);
53
- function InternalServerErrorException(opts) {
54
- var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
55
- _this.name = "InternalServerErrorException";
56
- _this.$fault = "server";
57
- Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
58
- _this.className = opts.className;
59
- _this.code = opts.code;
60
- return _this;
49
+ }
50
+ export class InternalServerErrorException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "InternalServerErrorException",
54
+ $fault: "server",
55
+ ...opts,
56
+ });
57
+ this.name = "InternalServerErrorException";
58
+ this.$fault = "server";
59
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
60
+ this.className = opts.className;
61
+ this.code = opts.code;
61
62
  }
62
- return InternalServerErrorException;
63
- }(__BaseException));
64
- export { InternalServerErrorException };
65
- var LimitExceededException = (function (_super) {
66
- __extends(LimitExceededException, _super);
67
- function LimitExceededException(opts) {
68
- var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
69
- _this.name = "LimitExceededException";
70
- _this.$fault = "client";
71
- Object.setPrototypeOf(_this, LimitExceededException.prototype);
72
- _this.className = opts.className;
73
- _this.code = opts.code;
74
- return _this;
63
+ }
64
+ export class LimitExceededException extends __BaseException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "LimitExceededException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ this.name = "LimitExceededException";
72
+ this.$fault = "client";
73
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
74
+ this.className = opts.className;
75
+ this.code = opts.code;
75
76
  }
76
- return LimitExceededException;
77
- }(__BaseException));
78
- export { LimitExceededException };
79
- var NotFoundException = (function (_super) {
80
- __extends(NotFoundException, _super);
81
- function NotFoundException(opts) {
82
- var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
83
- _this.name = "NotFoundException";
84
- _this.$fault = "client";
85
- Object.setPrototypeOf(_this, NotFoundException.prototype);
86
- _this.className = opts.className;
87
- _this.code = opts.code;
88
- return _this;
77
+ }
78
+ export class NotFoundException extends __BaseException {
79
+ constructor(opts) {
80
+ super({
81
+ name: "NotFoundException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ this.name = "NotFoundException";
86
+ this.$fault = "client";
87
+ Object.setPrototypeOf(this, NotFoundException.prototype);
88
+ this.className = opts.className;
89
+ this.code = opts.code;
89
90
  }
90
- return NotFoundException;
91
- }(__BaseException));
92
- export { NotFoundException };
93
- var TooManyRequestsException = (function (_super) {
94
- __extends(TooManyRequestsException, _super);
95
- function TooManyRequestsException(opts) {
96
- var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
97
- _this.name = "TooManyRequestsException";
98
- _this.$fault = "client";
99
- Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
100
- _this.className = opts.className;
101
- _this.code = opts.code;
102
- return _this;
91
+ }
92
+ export class TooManyRequestsException extends __BaseException {
93
+ constructor(opts) {
94
+ super({
95
+ name: "TooManyRequestsException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ this.name = "TooManyRequestsException";
100
+ this.$fault = "client";
101
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
102
+ this.className = opts.className;
103
+ this.code = opts.code;
103
104
  }
104
- return TooManyRequestsException;
105
- }(__BaseException));
106
- export { TooManyRequestsException };
105
+ }
107
106
  export var MemberPermissions;
108
107
  (function (MemberPermissions) {
109
108
  MemberPermissions["READ_ONLY"] = "read-only";
@@ -152,52 +151,122 @@ export var EnvironmentStatus;
152
151
  EnvironmentStatus["STOPPED"] = "stopped";
153
152
  EnvironmentStatus["STOPPING"] = "stopping";
154
153
  })(EnvironmentStatus || (EnvironmentStatus = {}));
155
- var ConcurrentAccessException = (function (_super) {
156
- __extends(ConcurrentAccessException, _super);
157
- function ConcurrentAccessException(opts) {
158
- var _this = _super.call(this, __assign({ name: "ConcurrentAccessException", $fault: "client" }, opts)) || this;
159
- _this.name = "ConcurrentAccessException";
160
- _this.$fault = "client";
161
- Object.setPrototypeOf(_this, ConcurrentAccessException.prototype);
162
- _this.className = opts.className;
163
- _this.code = opts.code;
164
- return _this;
154
+ export class ConcurrentAccessException extends __BaseException {
155
+ constructor(opts) {
156
+ super({
157
+ name: "ConcurrentAccessException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ this.name = "ConcurrentAccessException";
162
+ this.$fault = "client";
163
+ Object.setPrototypeOf(this, ConcurrentAccessException.prototype);
164
+ this.className = opts.className;
165
+ this.code = opts.code;
165
166
  }
166
- return ConcurrentAccessException;
167
- }(__BaseException));
168
- export { ConcurrentAccessException };
167
+ }
169
168
  export var ManagedCredentialsAction;
170
169
  (function (ManagedCredentialsAction) {
171
170
  ManagedCredentialsAction["DISABLE"] = "DISABLE";
172
171
  ManagedCredentialsAction["ENABLE"] = "ENABLE";
173
172
  })(ManagedCredentialsAction || (ManagedCredentialsAction = {}));
174
- export var TagFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Key && { Key: SENSITIVE_STRING })), (obj.Value && { Value: SENSITIVE_STRING }))); };
175
- export var CreateEnvironmentEC2RequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.description && { description: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
176
- export var CreateEnvironmentEC2ResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- export var CreateEnvironmentMembershipRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- export var EnvironmentMemberFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- export var CreateEnvironmentMembershipResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- export var DeleteEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var DeleteEnvironmentResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- export var DeleteEnvironmentMembershipRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var DeleteEnvironmentMembershipResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- export var DescribeEnvironmentMembershipsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
- export var DescribeEnvironmentMembershipsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
- export var DescribeEnvironmentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
- export var EnvironmentLifecycleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
- export var EnvironmentFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.description && { description: SENSITIVE_STRING }))); };
189
- export var DescribeEnvironmentsResultFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.environments && { environments: obj.environments.map(function (item) { return EnvironmentFilterSensitiveLog(item); }) }))); };
190
- export var DescribeEnvironmentStatusRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- export var DescribeEnvironmentStatusResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
- export var ListEnvironmentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- export var ListEnvironmentsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
196
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
197
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TagKeys && { TagKeys: SENSITIVE_STRING }))); };
199
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
- export var UpdateEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.description && { description: SENSITIVE_STRING }))); };
201
- export var UpdateEnvironmentResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
- export var UpdateEnvironmentMembershipRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
- export var UpdateEnvironmentMembershipResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
+ export const TagFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
176
+ ...(obj.Value && { Value: SENSITIVE_STRING }),
177
+ });
178
+ export const CreateEnvironmentEC2RequestFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ ...(obj.description && { description: SENSITIVE_STRING }),
181
+ ...(obj.tags && { tags: SENSITIVE_STRING }),
182
+ });
183
+ export const CreateEnvironmentEC2ResultFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ });
186
+ export const CreateEnvironmentMembershipRequestFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ });
189
+ export const EnvironmentMemberFilterSensitiveLog = (obj) => ({
190
+ ...obj,
191
+ });
192
+ export const CreateEnvironmentMembershipResultFilterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ });
195
+ export const DeleteEnvironmentRequestFilterSensitiveLog = (obj) => ({
196
+ ...obj,
197
+ });
198
+ export const DeleteEnvironmentResultFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
201
+ export const DeleteEnvironmentMembershipRequestFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ });
204
+ export const DeleteEnvironmentMembershipResultFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ });
207
+ export const DescribeEnvironmentMembershipsRequestFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ });
210
+ export const DescribeEnvironmentMembershipsResultFilterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ export const DescribeEnvironmentsRequestFilterSensitiveLog = (obj) => ({
214
+ ...obj,
215
+ });
216
+ export const EnvironmentLifecycleFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ });
219
+ export const EnvironmentFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ ...(obj.description && { description: SENSITIVE_STRING }),
222
+ });
223
+ export const DescribeEnvironmentsResultFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ ...(obj.environments && { environments: obj.environments.map((item) => EnvironmentFilterSensitiveLog(item)) }),
226
+ });
227
+ export const DescribeEnvironmentStatusRequestFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const DescribeEnvironmentStatusResultFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const ListEnvironmentsRequestFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const ListEnvironmentsResultFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
245
+ });
246
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
249
+ });
250
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
251
+ ...obj,
252
+ });
253
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ ...(obj.TagKeys && { TagKeys: SENSITIVE_STRING }),
256
+ });
257
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ });
260
+ export const UpdateEnvironmentRequestFilterSensitiveLog = (obj) => ({
261
+ ...obj,
262
+ ...(obj.description && { description: SENSITIVE_STRING }),
263
+ });
264
+ export const UpdateEnvironmentResultFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ export const UpdateEnvironmentMembershipRequestFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ });
270
+ export const UpdateEnvironmentMembershipResultFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { Cloud9 } from "../Cloud9";
3
2
  import { Cloud9Client } from "../Cloud9Client";
4
3
  import { DescribeEnvironmentMembershipsCommand, } from "../commands/DescribeEnvironmentMembershipsCommand";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new DescribeEnvironmentMembershipsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new DescribeEnvironmentMembershipsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.describeEnvironmentMemberships.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.describeEnvironmentMemberships(input, ...args);
32
9
  };
33
- export function paginateDescribeEnvironmentMemberships(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateDescribeEnvironmentMemberships(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof Cloud9) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof Cloud9Client) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Cloud9 | Cloud9Client");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateDescribeEnvironmentMemberships_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.nextToken = token;
49
- input["maxResults"] = config.pageSize;
50
- if (!(config.client instanceof Cloud9)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof Cloud9Client)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected Cloud9 | Cloud9Client");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.nextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }