@aws-sdk/client-ssm-contacts 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.
Files changed (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/SSMContacts.js +117 -110
  4. package/dist-es/SSMContactsClient.js +28 -22
  5. package/dist-es/commands/AcceptPageCommand.js +28 -21
  6. package/dist-es/commands/ActivateContactChannelCommand.js +28 -21
  7. package/dist-es/commands/CreateContactChannelCommand.js +28 -21
  8. package/dist-es/commands/CreateContactCommand.js +28 -21
  9. package/dist-es/commands/DeactivateContactChannelCommand.js +28 -21
  10. package/dist-es/commands/DeleteContactChannelCommand.js +28 -21
  11. package/dist-es/commands/DeleteContactCommand.js +28 -21
  12. package/dist-es/commands/DescribeEngagementCommand.js +28 -21
  13. package/dist-es/commands/DescribePageCommand.js +28 -21
  14. package/dist-es/commands/GetContactChannelCommand.js +28 -21
  15. package/dist-es/commands/GetContactCommand.js +28 -21
  16. package/dist-es/commands/GetContactPolicyCommand.js +28 -21
  17. package/dist-es/commands/ListContactChannelsCommand.js +28 -21
  18. package/dist-es/commands/ListContactsCommand.js +28 -21
  19. package/dist-es/commands/ListEngagementsCommand.js +28 -21
  20. package/dist-es/commands/ListPageReceiptsCommand.js +28 -21
  21. package/dist-es/commands/ListPagesByContactCommand.js +28 -21
  22. package/dist-es/commands/ListPagesByEngagementCommand.js +28 -21
  23. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  24. package/dist-es/commands/PutContactPolicyCommand.js +28 -21
  25. package/dist-es/commands/SendActivationCodeCommand.js +28 -21
  26. package/dist-es/commands/StartEngagementCommand.js +28 -21
  27. package/dist-es/commands/StopEngagementCommand.js +28 -21
  28. package/dist-es/commands/TagResourceCommand.js +28 -21
  29. package/dist-es/commands/UntagResourceCommand.js +28 -21
  30. package/dist-es/commands/UpdateContactChannelCommand.js +28 -21
  31. package/dist-es/commands/UpdateContactCommand.js +28 -21
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/SSMContactsServiceException.js +10 -5
  34. package/dist-es/models/models_0.js +179 -314
  35. package/dist-es/pagination/ListContactChannelsPaginator.js +68 -25
  36. package/dist-es/pagination/ListContactsPaginator.js +68 -25
  37. package/dist-es/pagination/ListEngagementsPaginator.js +68 -25
  38. package/dist-es/pagination/ListPageReceiptsPaginator.js +68 -25
  39. package/dist-es/pagination/ListPagesByContactPaginator.js +68 -25
  40. package/dist-es/pagination/ListPagesByEngagementPaginator.js +68 -25
  41. package/dist-es/protocols/Aws_json1_1.js +2482 -1913
  42. package/dist-es/runtimeConfig.browser.js +12 -26
  43. package/dist-es/runtimeConfig.js +12 -30
  44. package/dist-es/runtimeConfig.native.js +5 -8
  45. package/dist-es/runtimeConfig.shared.js +11 -8
  46. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SSMContactsServiceException as __BaseException } from "./SSMContactsServiceException";
2
3
  export var AcceptCodeValidation;
3
4
  (function (AcceptCodeValidation) {
@@ -9,64 +10,64 @@ export var AcceptType;
9
10
  AcceptType["DELIVERED"] = "DELIVERED";
10
11
  AcceptType["READ"] = "READ";
11
12
  })(AcceptType || (AcceptType = {}));
12
- export class AccessDeniedException extends __BaseException {
13
- constructor(opts) {
14
- super({
15
- name: "AccessDeniedException",
16
- $fault: "client",
17
- ...opts,
18
- });
19
- this.name = "AccessDeniedException";
20
- this.$fault = "client";
21
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
22
- this.Message = opts.Message;
13
+ var AccessDeniedException = (function (_super) {
14
+ __extends(AccessDeniedException, _super);
15
+ function AccessDeniedException(opts) {
16
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
17
+ _this.name = "AccessDeniedException";
18
+ _this.$fault = "client";
19
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
20
+ _this.Message = opts.Message;
21
+ return _this;
23
22
  }
24
- }
25
- export class InternalServerException extends __BaseException {
26
- constructor(opts) {
27
- super({
28
- name: "InternalServerException",
29
- $fault: "server",
30
- ...opts,
31
- });
32
- this.name = "InternalServerException";
33
- this.$fault = "server";
34
- Object.setPrototypeOf(this, InternalServerException.prototype);
35
- this.Message = opts.Message;
36
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
23
+ return AccessDeniedException;
24
+ }(__BaseException));
25
+ export { AccessDeniedException };
26
+ var InternalServerException = (function (_super) {
27
+ __extends(InternalServerException, _super);
28
+ function InternalServerException(opts) {
29
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
30
+ _this.name = "InternalServerException";
31
+ _this.$fault = "server";
32
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
33
+ _this.Message = opts.Message;
34
+ _this.RetryAfterSeconds = opts.RetryAfterSeconds;
35
+ return _this;
37
36
  }
38
- }
39
- export class ResourceNotFoundException extends __BaseException {
40
- constructor(opts) {
41
- super({
42
- name: "ResourceNotFoundException",
43
- $fault: "client",
44
- ...opts,
45
- });
46
- this.name = "ResourceNotFoundException";
47
- this.$fault = "client";
48
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
49
- this.Message = opts.Message;
50
- this.ResourceId = opts.ResourceId;
51
- this.ResourceType = opts.ResourceType;
37
+ return InternalServerException;
38
+ }(__BaseException));
39
+ export { InternalServerException };
40
+ var ResourceNotFoundException = (function (_super) {
41
+ __extends(ResourceNotFoundException, _super);
42
+ function ResourceNotFoundException(opts) {
43
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
44
+ _this.name = "ResourceNotFoundException";
45
+ _this.$fault = "client";
46
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
47
+ _this.Message = opts.Message;
48
+ _this.ResourceId = opts.ResourceId;
49
+ _this.ResourceType = opts.ResourceType;
50
+ return _this;
52
51
  }
53
- }
54
- export class ThrottlingException extends __BaseException {
55
- constructor(opts) {
56
- super({
57
- name: "ThrottlingException",
58
- $fault: "client",
59
- ...opts,
60
- });
61
- this.name = "ThrottlingException";
62
- this.$fault = "client";
63
- Object.setPrototypeOf(this, ThrottlingException.prototype);
64
- this.Message = opts.Message;
65
- this.QuotaCode = opts.QuotaCode;
66
- this.ServiceCode = opts.ServiceCode;
67
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
52
+ return ResourceNotFoundException;
53
+ }(__BaseException));
54
+ export { ResourceNotFoundException };
55
+ var ThrottlingException = (function (_super) {
56
+ __extends(ThrottlingException, _super);
57
+ function ThrottlingException(opts) {
58
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
59
+ _this.name = "ThrottlingException";
60
+ _this.$fault = "client";
61
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
62
+ _this.Message = opts.Message;
63
+ _this.QuotaCode = opts.QuotaCode;
64
+ _this.ServiceCode = opts.ServiceCode;
65
+ _this.RetryAfterSeconds = opts.RetryAfterSeconds;
66
+ return _this;
68
67
  }
69
- }
68
+ return ThrottlingException;
69
+ }(__BaseException));
70
+ export { ThrottlingException };
70
71
  export var ValidationExceptionReason;
71
72
  (function (ValidationExceptionReason) {
72
73
  ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
@@ -74,21 +75,21 @@ export var ValidationExceptionReason;
74
75
  ValidationExceptionReason["OTHER"] = "OTHER";
75
76
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
76
77
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
77
- export class ValidationException extends __BaseException {
78
- constructor(opts) {
79
- super({
80
- name: "ValidationException",
81
- $fault: "client",
82
- ...opts,
83
- });
84
- this.name = "ValidationException";
85
- this.$fault = "client";
86
- Object.setPrototypeOf(this, ValidationException.prototype);
87
- this.Message = opts.Message;
88
- this.Reason = opts.Reason;
89
- this.Fields = opts.Fields;
78
+ var ValidationException = (function (_super) {
79
+ __extends(ValidationException, _super);
80
+ function ValidationException(opts) {
81
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
82
+ _this.name = "ValidationException";
83
+ _this.$fault = "client";
84
+ Object.setPrototypeOf(_this, ValidationException.prototype);
85
+ _this.Message = opts.Message;
86
+ _this.Reason = opts.Reason;
87
+ _this.Fields = opts.Fields;
88
+ return _this;
90
89
  }
91
- }
90
+ return ValidationException;
91
+ }(__BaseException));
92
+ export { ValidationException };
92
93
  export var ActivationStatus;
93
94
  (function (ActivationStatus) {
94
95
  ActivationStatus["ACTIVATED"] = "ACTIVATED";
@@ -100,56 +101,56 @@ export var ChannelType;
100
101
  ChannelType["SMS"] = "SMS";
101
102
  ChannelType["VOICE"] = "VOICE";
102
103
  })(ChannelType || (ChannelType = {}));
103
- export class ConflictException extends __BaseException {
104
- constructor(opts) {
105
- super({
106
- name: "ConflictException",
107
- $fault: "client",
108
- ...opts,
109
- });
110
- this.name = "ConflictException";
111
- this.$fault = "client";
112
- Object.setPrototypeOf(this, ConflictException.prototype);
113
- this.Message = opts.Message;
114
- this.ResourceId = opts.ResourceId;
115
- this.ResourceType = opts.ResourceType;
104
+ var ConflictException = (function (_super) {
105
+ __extends(ConflictException, _super);
106
+ function ConflictException(opts) {
107
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
108
+ _this.name = "ConflictException";
109
+ _this.$fault = "client";
110
+ Object.setPrototypeOf(_this, ConflictException.prototype);
111
+ _this.Message = opts.Message;
112
+ _this.ResourceId = opts.ResourceId;
113
+ _this.ResourceType = opts.ResourceType;
114
+ return _this;
116
115
  }
117
- }
116
+ return ConflictException;
117
+ }(__BaseException));
118
+ export { ConflictException };
118
119
  export var ContactType;
119
120
  (function (ContactType) {
120
121
  ContactType["ESCALATION"] = "ESCALATION";
121
122
  ContactType["PERSONAL"] = "PERSONAL";
122
123
  })(ContactType || (ContactType = {}));
123
- export class DataEncryptionException extends __BaseException {
124
- constructor(opts) {
125
- super({
126
- name: "DataEncryptionException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- this.name = "DataEncryptionException";
131
- this.$fault = "client";
132
- Object.setPrototypeOf(this, DataEncryptionException.prototype);
133
- this.Message = opts.Message;
124
+ var DataEncryptionException = (function (_super) {
125
+ __extends(DataEncryptionException, _super);
126
+ function DataEncryptionException(opts) {
127
+ var _this = _super.call(this, __assign({ name: "DataEncryptionException", $fault: "client" }, opts)) || this;
128
+ _this.name = "DataEncryptionException";
129
+ _this.$fault = "client";
130
+ Object.setPrototypeOf(_this, DataEncryptionException.prototype);
131
+ _this.Message = opts.Message;
132
+ return _this;
134
133
  }
135
- }
136
- export class ServiceQuotaExceededException extends __BaseException {
137
- constructor(opts) {
138
- super({
139
- name: "ServiceQuotaExceededException",
140
- $fault: "client",
141
- ...opts,
142
- });
143
- this.name = "ServiceQuotaExceededException";
144
- this.$fault = "client";
145
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
146
- this.Message = opts.Message;
147
- this.ResourceId = opts.ResourceId;
148
- this.ResourceType = opts.ResourceType;
149
- this.QuotaCode = opts.QuotaCode;
150
- this.ServiceCode = opts.ServiceCode;
134
+ return DataEncryptionException;
135
+ }(__BaseException));
136
+ export { DataEncryptionException };
137
+ var ServiceQuotaExceededException = (function (_super) {
138
+ __extends(ServiceQuotaExceededException, _super);
139
+ function ServiceQuotaExceededException(opts) {
140
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
141
+ _this.name = "ServiceQuotaExceededException";
142
+ _this.$fault = "client";
143
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
144
+ _this.Message = opts.Message;
145
+ _this.ResourceId = opts.ResourceId;
146
+ _this.ResourceType = opts.ResourceType;
147
+ _this.QuotaCode = opts.QuotaCode;
148
+ _this.ServiceCode = opts.ServiceCode;
149
+ return _this;
151
150
  }
152
- }
151
+ return ServiceQuotaExceededException;
152
+ }(__BaseException));
153
+ export { ServiceQuotaExceededException };
153
154
  export var ReceiptType;
154
155
  (function (ReceiptType) {
155
156
  ReceiptType["DELIVERED"] = "DELIVERED";
@@ -158,207 +159,71 @@ export var ReceiptType;
158
159
  ReceiptType["SENT"] = "SENT";
159
160
  ReceiptType["STOP"] = "STOP";
160
161
  })(ReceiptType || (ReceiptType = {}));
161
- export const AcceptPageRequestFilterSensitiveLog = (obj) => ({
162
- ...obj,
163
- });
164
- export const AcceptPageResultFilterSensitiveLog = (obj) => ({
165
- ...obj,
166
- });
167
- export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
168
- ...obj,
169
- });
170
- export const ActivateContactChannelRequestFilterSensitiveLog = (obj) => ({
171
- ...obj,
172
- });
173
- export const ActivateContactChannelResultFilterSensitiveLog = (obj) => ({
174
- ...obj,
175
- });
176
- export const ChannelTargetInfoFilterSensitiveLog = (obj) => ({
177
- ...obj,
178
- });
179
- export const ContactFilterSensitiveLog = (obj) => ({
180
- ...obj,
181
- });
182
- export const ContactChannelAddressFilterSensitiveLog = (obj) => ({
183
- ...obj,
184
- });
185
- export const ContactChannelFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- });
188
- export const ContactTargetInfoFilterSensitiveLog = (obj) => ({
189
- ...obj,
190
- });
191
- export const TargetFilterSensitiveLog = (obj) => ({
192
- ...obj,
193
- });
194
- export const StageFilterSensitiveLog = (obj) => ({
195
- ...obj,
196
- });
197
- export const PlanFilterSensitiveLog = (obj) => ({
198
- ...obj,
199
- });
200
- export const TagFilterSensitiveLog = (obj) => ({
201
- ...obj,
202
- });
203
- export const CreateContactRequestFilterSensitiveLog = (obj) => ({
204
- ...obj,
205
- });
206
- export const CreateContactResultFilterSensitiveLog = (obj) => ({
207
- ...obj,
208
- });
209
- export const CreateContactChannelRequestFilterSensitiveLog = (obj) => ({
210
- ...obj,
211
- });
212
- export const CreateContactChannelResultFilterSensitiveLog = (obj) => ({
213
- ...obj,
214
- });
215
- export const DeactivateContactChannelRequestFilterSensitiveLog = (obj) => ({
216
- ...obj,
217
- });
218
- export const DeactivateContactChannelResultFilterSensitiveLog = (obj) => ({
219
- ...obj,
220
- });
221
- export const DeleteContactRequestFilterSensitiveLog = (obj) => ({
222
- ...obj,
223
- });
224
- export const DeleteContactResultFilterSensitiveLog = (obj) => ({
225
- ...obj,
226
- });
227
- export const DeleteContactChannelRequestFilterSensitiveLog = (obj) => ({
228
- ...obj,
229
- });
230
- export const DeleteContactChannelResultFilterSensitiveLog = (obj) => ({
231
- ...obj,
232
- });
233
- export const DescribeEngagementRequestFilterSensitiveLog = (obj) => ({
234
- ...obj,
235
- });
236
- export const DescribeEngagementResultFilterSensitiveLog = (obj) => ({
237
- ...obj,
238
- });
239
- export const DescribePageRequestFilterSensitiveLog = (obj) => ({
240
- ...obj,
241
- });
242
- export const DescribePageResultFilterSensitiveLog = (obj) => ({
243
- ...obj,
244
- });
245
- export const EngagementFilterSensitiveLog = (obj) => ({
246
- ...obj,
247
- });
248
- export const GetContactRequestFilterSensitiveLog = (obj) => ({
249
- ...obj,
250
- });
251
- export const GetContactResultFilterSensitiveLog = (obj) => ({
252
- ...obj,
253
- });
254
- export const GetContactChannelRequestFilterSensitiveLog = (obj) => ({
255
- ...obj,
256
- });
257
- export const GetContactChannelResultFilterSensitiveLog = (obj) => ({
258
- ...obj,
259
- });
260
- export const GetContactPolicyRequestFilterSensitiveLog = (obj) => ({
261
- ...obj,
262
- });
263
- export const GetContactPolicyResultFilterSensitiveLog = (obj) => ({
264
- ...obj,
265
- });
266
- export const ListContactChannelsRequestFilterSensitiveLog = (obj) => ({
267
- ...obj,
268
- });
269
- export const ListContactChannelsResultFilterSensitiveLog = (obj) => ({
270
- ...obj,
271
- });
272
- export const ListContactsRequestFilterSensitiveLog = (obj) => ({
273
- ...obj,
274
- });
275
- export const ListContactsResultFilterSensitiveLog = (obj) => ({
276
- ...obj,
277
- });
278
- export const TimeRangeFilterSensitiveLog = (obj) => ({
279
- ...obj,
280
- });
281
- export const ListEngagementsRequestFilterSensitiveLog = (obj) => ({
282
- ...obj,
283
- });
284
- export const ListEngagementsResultFilterSensitiveLog = (obj) => ({
285
- ...obj,
286
- });
287
- export const ListPageReceiptsRequestFilterSensitiveLog = (obj) => ({
288
- ...obj,
289
- });
290
- export const ReceiptFilterSensitiveLog = (obj) => ({
291
- ...obj,
292
- });
293
- export const ListPageReceiptsResultFilterSensitiveLog = (obj) => ({
294
- ...obj,
295
- });
296
- export const ListPagesByContactRequestFilterSensitiveLog = (obj) => ({
297
- ...obj,
298
- });
299
- export const PageFilterSensitiveLog = (obj) => ({
300
- ...obj,
301
- });
302
- export const ListPagesByContactResultFilterSensitiveLog = (obj) => ({
303
- ...obj,
304
- });
305
- export const ListPagesByEngagementRequestFilterSensitiveLog = (obj) => ({
306
- ...obj,
307
- });
308
- export const ListPagesByEngagementResultFilterSensitiveLog = (obj) => ({
309
- ...obj,
310
- });
311
- export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
312
- ...obj,
313
- });
314
- export const ListTagsForResourceResultFilterSensitiveLog = (obj) => ({
315
- ...obj,
316
- });
317
- export const PutContactPolicyRequestFilterSensitiveLog = (obj) => ({
318
- ...obj,
319
- });
320
- export const PutContactPolicyResultFilterSensitiveLog = (obj) => ({
321
- ...obj,
322
- });
323
- export const SendActivationCodeRequestFilterSensitiveLog = (obj) => ({
324
- ...obj,
325
- });
326
- export const SendActivationCodeResultFilterSensitiveLog = (obj) => ({
327
- ...obj,
328
- });
329
- export const StartEngagementRequestFilterSensitiveLog = (obj) => ({
330
- ...obj,
331
- });
332
- export const StartEngagementResultFilterSensitiveLog = (obj) => ({
333
- ...obj,
334
- });
335
- export const StopEngagementRequestFilterSensitiveLog = (obj) => ({
336
- ...obj,
337
- });
338
- export const StopEngagementResultFilterSensitiveLog = (obj) => ({
339
- ...obj,
340
- });
341
- export const TagResourceRequestFilterSensitiveLog = (obj) => ({
342
- ...obj,
343
- });
344
- export const TagResourceResultFilterSensitiveLog = (obj) => ({
345
- ...obj,
346
- });
347
- export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
348
- ...obj,
349
- });
350
- export const UntagResourceResultFilterSensitiveLog = (obj) => ({
351
- ...obj,
352
- });
353
- export const UpdateContactRequestFilterSensitiveLog = (obj) => ({
354
- ...obj,
355
- });
356
- export const UpdateContactResultFilterSensitiveLog = (obj) => ({
357
- ...obj,
358
- });
359
- export const UpdateContactChannelRequestFilterSensitiveLog = (obj) => ({
360
- ...obj,
361
- });
362
- export const UpdateContactChannelResultFilterSensitiveLog = (obj) => ({
363
- ...obj,
364
- });
162
+ export var AcceptPageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
+ export var AcceptPageResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
+ export var ValidationExceptionFieldFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
+ export var ActivateContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
+ export var ActivateContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
+ export var ChannelTargetInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
+ export var ContactFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
+ export var ContactChannelAddressFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
+ export var ContactChannelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
+ export var ContactTargetInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ export var TargetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
+ export var StageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
+ export var PlanFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ export var CreateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
+ export var CreateContactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
+ export var CreateContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
+ export var CreateContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ export var DeactivateContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
+ export var DeactivateContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
+ export var DeleteContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
+ export var DeleteContactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
+ export var DeleteContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
+ export var DeleteContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
+ export var DescribeEngagementRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
+ export var DescribeEngagementResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
+ export var DescribePageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
+ export var DescribePageResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
+ export var EngagementFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
+ export var GetContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
+ export var GetContactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export var GetContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
+ export var GetContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ export var GetContactPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
+ export var GetContactPolicyResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
+ export var ListContactChannelsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
+ export var ListContactChannelsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
+ export var ListContactsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
+ export var ListContactsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ export var TimeRangeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
+ export var ListEngagementsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
+ export var ListEngagementsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
+ export var ListPageReceiptsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
+ export var ReceiptFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
+ export var ListPageReceiptsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
+ export var ListPagesByContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
+ export var PageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
+ export var ListPagesByContactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
+ export var ListPagesByEngagementRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
+ export var ListPagesByEngagementResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
+ export var ListTagsForResourceResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
+ export var PutContactPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
+ export var PutContactPolicyResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
+ export var SendActivationCodeRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
+ export var SendActivationCodeResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
+ export var StartEngagementRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
+ export var StartEngagementResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
+ export var StopEngagementRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
+ export var StopEngagementResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
+ export var TagResourceResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
+ export var UntagResourceResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
+ export var UpdateContactRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
+ export var UpdateContactResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
+ export var UpdateContactChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
+ export var UpdateContactChannelResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListContactChannelsCommand, } from "../commands/ListContactChannelsCommand";
2
3
  import { SSMContacts } from "../SSMContacts";
3
4
  import { SSMContactsClient } from "../SSMContactsClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListContactChannelsCommand(input), ...args);
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 ListContactChannelsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listContactChannels(input, ...args);
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.listContactChannels.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListContactChannels(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 SSMContacts) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof SSMContactsClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected SSMContacts | SSMContactsClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.NextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListContactChannels(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateListContactChannels_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 SSMContacts)) 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 SSMContactsClient)) 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 SSMContacts | SSMContactsClient");
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
+ });
32
75
  }