@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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/SSMContacts.js +117 -110
- package/dist-es/SSMContactsClient.js +28 -22
- package/dist-es/commands/AcceptPageCommand.js +28 -21
- package/dist-es/commands/ActivateContactChannelCommand.js +28 -21
- package/dist-es/commands/CreateContactChannelCommand.js +28 -21
- package/dist-es/commands/CreateContactCommand.js +28 -21
- package/dist-es/commands/DeactivateContactChannelCommand.js +28 -21
- package/dist-es/commands/DeleteContactChannelCommand.js +28 -21
- package/dist-es/commands/DeleteContactCommand.js +28 -21
- package/dist-es/commands/DescribeEngagementCommand.js +28 -21
- package/dist-es/commands/DescribePageCommand.js +28 -21
- package/dist-es/commands/GetContactChannelCommand.js +28 -21
- package/dist-es/commands/GetContactCommand.js +28 -21
- package/dist-es/commands/GetContactPolicyCommand.js +28 -21
- package/dist-es/commands/ListContactChannelsCommand.js +28 -21
- package/dist-es/commands/ListContactsCommand.js +28 -21
- package/dist-es/commands/ListEngagementsCommand.js +28 -21
- package/dist-es/commands/ListPageReceiptsCommand.js +28 -21
- package/dist-es/commands/ListPagesByContactCommand.js +28 -21
- package/dist-es/commands/ListPagesByEngagementCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutContactPolicyCommand.js +28 -21
- package/dist-es/commands/SendActivationCodeCommand.js +28 -21
- package/dist-es/commands/StartEngagementCommand.js +28 -21
- package/dist-es/commands/StopEngagementCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateContactChannelCommand.js +28 -21
- package/dist-es/commands/UpdateContactCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSMContactsServiceException.js +10 -5
- package/dist-es/models/models_0.js +179 -314
- package/dist-es/pagination/ListContactChannelsPaginator.js +68 -25
- package/dist-es/pagination/ListContactsPaginator.js +68 -25
- package/dist-es/pagination/ListEngagementsPaginator.js +68 -25
- package/dist-es/pagination/ListPageReceiptsPaginator.js +68 -25
- package/dist-es/pagination/ListPagesByContactPaginator.js +68 -25
- package/dist-es/pagination/ListPagesByEngagementPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2482 -1913
- 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
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
|
162
|
-
|
|
163
|
-
});
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
});
|
|
167
|
-
export
|
|
168
|
-
|
|
169
|
-
});
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
});
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
});
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
});
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
});
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
});
|
|
185
|
-
export
|
|
186
|
-
|
|
187
|
-
});
|
|
188
|
-
export
|
|
189
|
-
|
|
190
|
-
});
|
|
191
|
-
export
|
|
192
|
-
|
|
193
|
-
});
|
|
194
|
-
export
|
|
195
|
-
|
|
196
|
-
});
|
|
197
|
-
export
|
|
198
|
-
|
|
199
|
-
});
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
-
});
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
});
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
});
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
});
|
|
215
|
-
export
|
|
216
|
-
|
|
217
|
-
});
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
export
|
|
222
|
-
|
|
223
|
-
});
|
|
224
|
-
export
|
|
225
|
-
|
|
226
|
-
});
|
|
227
|
-
export
|
|
228
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
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
|
}
|