@aws-sdk/client-ssm-contacts 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 +33 -27
- package/dist-es/SSMContacts.js +110 -117
- package/dist-es/SSMContactsClient.js +22 -28
- package/dist-es/commands/AcceptPageCommand.js +21 -28
- package/dist-es/commands/ActivateContactChannelCommand.js +21 -28
- package/dist-es/commands/CreateContactChannelCommand.js +21 -28
- package/dist-es/commands/CreateContactCommand.js +21 -28
- package/dist-es/commands/DeactivateContactChannelCommand.js +21 -28
- package/dist-es/commands/DeleteContactChannelCommand.js +21 -28
- package/dist-es/commands/DeleteContactCommand.js +21 -28
- package/dist-es/commands/DescribeEngagementCommand.js +21 -28
- package/dist-es/commands/DescribePageCommand.js +21 -28
- package/dist-es/commands/GetContactChannelCommand.js +21 -28
- package/dist-es/commands/GetContactCommand.js +21 -28
- package/dist-es/commands/GetContactPolicyCommand.js +21 -28
- package/dist-es/commands/ListContactChannelsCommand.js +21 -28
- package/dist-es/commands/ListContactsCommand.js +21 -28
- package/dist-es/commands/ListEngagementsCommand.js +21 -28
- package/dist-es/commands/ListPageReceiptsCommand.js +21 -28
- package/dist-es/commands/ListPagesByContactCommand.js +21 -28
- package/dist-es/commands/ListPagesByEngagementCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutContactPolicyCommand.js +21 -28
- package/dist-es/commands/SendActivationCodeCommand.js +21 -28
- package/dist-es/commands/StartEngagementCommand.js +21 -28
- package/dist-es/commands/StopEngagementCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateContactChannelCommand.js +21 -28
- package/dist-es/commands/UpdateContactCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSMContactsServiceException.js +5 -10
- package/dist-es/models/models_0.js +314 -179
- package/dist-es/pagination/ListContactChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListContactsPaginator.js +25 -68
- package/dist-es/pagination/ListEngagementsPaginator.js +25 -68
- package/dist-es/pagination/ListPageReceiptsPaginator.js +25 -68
- package/dist-es/pagination/ListPagesByContactPaginator.js +25 -68
- package/dist-es/pagination/ListPagesByEngagementPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1913 -2469
- 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-ssm-contacts
|
|
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-ssm-contacts
|
|
@@ -294,7 +294,7 @@ exports.deserializeAws_json1_1AcceptPageCommand = deserializeAws_json1_1AcceptPa
|
|
|
294
294
|
const deserializeAws_json1_1AcceptPageCommandError = async (output, context) => {
|
|
295
295
|
const parsedOutput = {
|
|
296
296
|
...output,
|
|
297
|
-
body: await
|
|
297
|
+
body: await parseErrorBody(output.body, context),
|
|
298
298
|
};
|
|
299
299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
300
|
switch (errorCode) {
|
|
@@ -340,7 +340,7 @@ exports.deserializeAws_json1_1ActivateContactChannelCommand = deserializeAws_jso
|
|
|
340
340
|
const deserializeAws_json1_1ActivateContactChannelCommandError = async (output, context) => {
|
|
341
341
|
const parsedOutput = {
|
|
342
342
|
...output,
|
|
343
|
-
body: await
|
|
343
|
+
body: await parseErrorBody(output.body, context),
|
|
344
344
|
};
|
|
345
345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
346
346
|
switch (errorCode) {
|
|
@@ -386,7 +386,7 @@ exports.deserializeAws_json1_1CreateContactCommand = deserializeAws_json1_1Creat
|
|
|
386
386
|
const deserializeAws_json1_1CreateContactCommandError = async (output, context) => {
|
|
387
387
|
const parsedOutput = {
|
|
388
388
|
...output,
|
|
389
|
-
body: await
|
|
389
|
+
body: await parseErrorBody(output.body, context),
|
|
390
390
|
};
|
|
391
391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
392
|
switch (errorCode) {
|
|
@@ -438,7 +438,7 @@ exports.deserializeAws_json1_1CreateContactChannelCommand = deserializeAws_json1
|
|
|
438
438
|
const deserializeAws_json1_1CreateContactChannelCommandError = async (output, context) => {
|
|
439
439
|
const parsedOutput = {
|
|
440
440
|
...output,
|
|
441
|
-
body: await
|
|
441
|
+
body: await parseErrorBody(output.body, context),
|
|
442
442
|
};
|
|
443
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
444
|
switch (errorCode) {
|
|
@@ -487,7 +487,7 @@ exports.deserializeAws_json1_1DeactivateContactChannelCommand = deserializeAws_j
|
|
|
487
487
|
const deserializeAws_json1_1DeactivateContactChannelCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
|
-
body: await
|
|
490
|
+
body: await parseErrorBody(output.body, context),
|
|
491
491
|
};
|
|
492
492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
493
|
switch (errorCode) {
|
|
@@ -533,7 +533,7 @@ exports.deserializeAws_json1_1DeleteContactCommand = deserializeAws_json1_1Delet
|
|
|
533
533
|
const deserializeAws_json1_1DeleteContactCommandError = async (output, context) => {
|
|
534
534
|
const parsedOutput = {
|
|
535
535
|
...output,
|
|
536
|
-
body: await
|
|
536
|
+
body: await parseErrorBody(output.body, context),
|
|
537
537
|
};
|
|
538
538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
539
|
switch (errorCode) {
|
|
@@ -579,7 +579,7 @@ exports.deserializeAws_json1_1DeleteContactChannelCommand = deserializeAws_json1
|
|
|
579
579
|
const deserializeAws_json1_1DeleteContactChannelCommandError = async (output, context) => {
|
|
580
580
|
const parsedOutput = {
|
|
581
581
|
...output,
|
|
582
|
-
body: await
|
|
582
|
+
body: await parseErrorBody(output.body, context),
|
|
583
583
|
};
|
|
584
584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
585
|
switch (errorCode) {
|
|
@@ -625,7 +625,7 @@ exports.deserializeAws_json1_1DescribeEngagementCommand = deserializeAws_json1_1
|
|
|
625
625
|
const deserializeAws_json1_1DescribeEngagementCommandError = async (output, context) => {
|
|
626
626
|
const parsedOutput = {
|
|
627
627
|
...output,
|
|
628
|
-
body: await
|
|
628
|
+
body: await parseErrorBody(output.body, context),
|
|
629
629
|
};
|
|
630
630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
631
|
switch (errorCode) {
|
|
@@ -674,7 +674,7 @@ exports.deserializeAws_json1_1DescribePageCommand = deserializeAws_json1_1Descri
|
|
|
674
674
|
const deserializeAws_json1_1DescribePageCommandError = async (output, context) => {
|
|
675
675
|
const parsedOutput = {
|
|
676
676
|
...output,
|
|
677
|
-
body: await
|
|
677
|
+
body: await parseErrorBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
680
|
switch (errorCode) {
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_json1_1GetContactCommand = deserializeAws_json1_1GetConta
|
|
|
723
723
|
const deserializeAws_json1_1GetContactCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_json1_1GetContactChannelCommand = deserializeAws_json1_1G
|
|
|
772
772
|
const deserializeAws_json1_1GetContactChannelCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -821,7 +821,7 @@ exports.deserializeAws_json1_1GetContactPolicyCommand = deserializeAws_json1_1Ge
|
|
|
821
821
|
const deserializeAws_json1_1GetContactPolicyCommandError = async (output, context) => {
|
|
822
822
|
const parsedOutput = {
|
|
823
823
|
...output,
|
|
824
|
-
body: await
|
|
824
|
+
body: await parseErrorBody(output.body, context),
|
|
825
825
|
};
|
|
826
826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
827
|
switch (errorCode) {
|
|
@@ -867,7 +867,7 @@ exports.deserializeAws_json1_1ListContactChannelsCommand = deserializeAws_json1_
|
|
|
867
867
|
const deserializeAws_json1_1ListContactChannelsCommandError = async (output, context) => {
|
|
868
868
|
const parsedOutput = {
|
|
869
869
|
...output,
|
|
870
|
-
body: await
|
|
870
|
+
body: await parseErrorBody(output.body, context),
|
|
871
871
|
};
|
|
872
872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
873
|
switch (errorCode) {
|
|
@@ -916,7 +916,7 @@ exports.deserializeAws_json1_1ListContactsCommand = deserializeAws_json1_1ListCo
|
|
|
916
916
|
const deserializeAws_json1_1ListContactsCommandError = async (output, context) => {
|
|
917
917
|
const parsedOutput = {
|
|
918
918
|
...output,
|
|
919
|
-
body: await
|
|
919
|
+
body: await parseErrorBody(output.body, context),
|
|
920
920
|
};
|
|
921
921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
922
|
switch (errorCode) {
|
|
@@ -959,7 +959,7 @@ exports.deserializeAws_json1_1ListEngagementsCommand = deserializeAws_json1_1Lis
|
|
|
959
959
|
const deserializeAws_json1_1ListEngagementsCommandError = async (output, context) => {
|
|
960
960
|
const parsedOutput = {
|
|
961
961
|
...output,
|
|
962
|
-
body: await
|
|
962
|
+
body: await parseErrorBody(output.body, context),
|
|
963
963
|
};
|
|
964
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
965
|
switch (errorCode) {
|
|
@@ -1002,7 +1002,7 @@ exports.deserializeAws_json1_1ListPageReceiptsCommand = deserializeAws_json1_1Li
|
|
|
1002
1002
|
const deserializeAws_json1_1ListPageReceiptsCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
|
-
body: await
|
|
1005
|
+
body: await parseErrorBody(output.body, context),
|
|
1006
1006
|
};
|
|
1007
1007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
1008
|
switch (errorCode) {
|
|
@@ -1048,7 +1048,7 @@ exports.deserializeAws_json1_1ListPagesByContactCommand = deserializeAws_json1_1
|
|
|
1048
1048
|
const deserializeAws_json1_1ListPagesByContactCommandError = async (output, context) => {
|
|
1049
1049
|
const parsedOutput = {
|
|
1050
1050
|
...output,
|
|
1051
|
-
body: await
|
|
1051
|
+
body: await parseErrorBody(output.body, context),
|
|
1052
1052
|
};
|
|
1053
1053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
1054
|
switch (errorCode) {
|
|
@@ -1094,7 +1094,7 @@ exports.deserializeAws_json1_1ListPagesByEngagementCommand = deserializeAws_json
|
|
|
1094
1094
|
const deserializeAws_json1_1ListPagesByEngagementCommandError = async (output, context) => {
|
|
1095
1095
|
const parsedOutput = {
|
|
1096
1096
|
...output,
|
|
1097
|
-
body: await
|
|
1097
|
+
body: await parseErrorBody(output.body, context),
|
|
1098
1098
|
};
|
|
1099
1099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
1100
|
switch (errorCode) {
|
|
@@ -1140,7 +1140,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1140
1140
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
|
-
body: await
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
1144
|
};
|
|
1145
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1146
|
switch (errorCode) {
|
|
@@ -1186,7 +1186,7 @@ exports.deserializeAws_json1_1PutContactPolicyCommand = deserializeAws_json1_1Pu
|
|
|
1186
1186
|
const deserializeAws_json1_1PutContactPolicyCommandError = async (output, context) => {
|
|
1187
1187
|
const parsedOutput = {
|
|
1188
1188
|
...output,
|
|
1189
|
-
body: await
|
|
1189
|
+
body: await parseErrorBody(output.body, context),
|
|
1190
1190
|
};
|
|
1191
1191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
1192
|
switch (errorCode) {
|
|
@@ -1235,7 +1235,7 @@ exports.deserializeAws_json1_1SendActivationCodeCommand = deserializeAws_json1_1
|
|
|
1235
1235
|
const deserializeAws_json1_1SendActivationCodeCommandError = async (output, context) => {
|
|
1236
1236
|
const parsedOutput = {
|
|
1237
1237
|
...output,
|
|
1238
|
-
body: await
|
|
1238
|
+
body: await parseErrorBody(output.body, context),
|
|
1239
1239
|
};
|
|
1240
1240
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1241
|
switch (errorCode) {
|
|
@@ -1287,7 +1287,7 @@ exports.deserializeAws_json1_1StartEngagementCommand = deserializeAws_json1_1Sta
|
|
|
1287
1287
|
const deserializeAws_json1_1StartEngagementCommandError = async (output, context) => {
|
|
1288
1288
|
const parsedOutput = {
|
|
1289
1289
|
...output,
|
|
1290
|
-
body: await
|
|
1290
|
+
body: await parseErrorBody(output.body, context),
|
|
1291
1291
|
};
|
|
1292
1292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1293
|
switch (errorCode) {
|
|
@@ -1336,7 +1336,7 @@ exports.deserializeAws_json1_1StopEngagementCommand = deserializeAws_json1_1Stop
|
|
|
1336
1336
|
const deserializeAws_json1_1StopEngagementCommandError = async (output, context) => {
|
|
1337
1337
|
const parsedOutput = {
|
|
1338
1338
|
...output,
|
|
1339
|
-
body: await
|
|
1339
|
+
body: await parseErrorBody(output.body, context),
|
|
1340
1340
|
};
|
|
1341
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
1342
|
switch (errorCode) {
|
|
@@ -1382,7 +1382,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1382
1382
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1383
1383
|
const parsedOutput = {
|
|
1384
1384
|
...output,
|
|
1385
|
-
body: await
|
|
1385
|
+
body: await parseErrorBody(output.body, context),
|
|
1386
1386
|
};
|
|
1387
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1388
|
switch (errorCode) {
|
|
@@ -1431,7 +1431,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1431
1431
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1432
1432
|
const parsedOutput = {
|
|
1433
1433
|
...output,
|
|
1434
|
-
body: await
|
|
1434
|
+
body: await parseErrorBody(output.body, context),
|
|
1435
1435
|
};
|
|
1436
1436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
1437
|
switch (errorCode) {
|
|
@@ -1477,7 +1477,7 @@ exports.deserializeAws_json1_1UpdateContactCommand = deserializeAws_json1_1Updat
|
|
|
1477
1477
|
const deserializeAws_json1_1UpdateContactCommandError = async (output, context) => {
|
|
1478
1478
|
const parsedOutput = {
|
|
1479
1479
|
...output,
|
|
1480
|
-
body: await
|
|
1480
|
+
body: await parseErrorBody(output.body, context),
|
|
1481
1481
|
};
|
|
1482
1482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
1483
|
switch (errorCode) {
|
|
@@ -1529,7 +1529,7 @@ exports.deserializeAws_json1_1UpdateContactChannelCommand = deserializeAws_json1
|
|
|
1529
1529
|
const deserializeAws_json1_1UpdateContactChannelCommandError = async (output, context) => {
|
|
1530
1530
|
const parsedOutput = {
|
|
1531
1531
|
...output,
|
|
1532
|
-
body: await
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
1533
|
};
|
|
1534
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
1535
|
switch (errorCode) {
|
|
@@ -2353,6 +2353,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2353
2353
|
}
|
|
2354
2354
|
return {};
|
|
2355
2355
|
});
|
|
2356
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2357
|
+
var _a;
|
|
2358
|
+
const value = await parseBody(errorBody, context);
|
|
2359
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2360
|
+
return value;
|
|
2361
|
+
};
|
|
2356
2362
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2357
2363
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2358
2364
|
const sanitizeErrorCode = (rawValue) => {
|