@aws-sdk/client-ssm-contacts 3.33.0 → 3.34.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/package.json +38 -38
- package/dist/es/SSMContacts.js +1 -11
- package/dist/es/SSMContacts.js.map +1 -1
- package/dist/es/SSMContactsClient.js +1 -16
- package/dist/es/SSMContactsClient.js.map +1 -1
- package/dist/es/commands/AcceptPageCommand.js +2 -27
- package/dist/es/commands/AcceptPageCommand.js.map +1 -1
- package/dist/es/commands/ActivateContactChannelCommand.js +2 -28
- package/dist/es/commands/ActivateContactChannelCommand.js.map +1 -1
- package/dist/es/commands/CreateContactChannelCommand.js +2 -27
- package/dist/es/commands/CreateContactChannelCommand.js.map +1 -1
- package/dist/es/commands/CreateContactCommand.js +2 -29
- package/dist/es/commands/CreateContactCommand.js.map +1 -1
- package/dist/es/commands/DeactivateContactChannelCommand.js +2 -28
- package/dist/es/commands/DeactivateContactChannelCommand.js.map +1 -1
- package/dist/es/commands/DeleteContactChannelCommand.js +2 -30
- package/dist/es/commands/DeleteContactChannelCommand.js.map +1 -1
- package/dist/es/commands/DeleteContactCommand.js +2 -30
- package/dist/es/commands/DeleteContactCommand.js.map +1 -1
- package/dist/es/commands/DescribeEngagementCommand.js +2 -28
- package/dist/es/commands/DescribeEngagementCommand.js.map +1 -1
- package/dist/es/commands/DescribePageCommand.js +2 -27
- package/dist/es/commands/DescribePageCommand.js.map +1 -1
- package/dist/es/commands/GetContactChannelCommand.js +2 -27
- package/dist/es/commands/GetContactChannelCommand.js.map +1 -1
- package/dist/es/commands/GetContactCommand.js +2 -27
- package/dist/es/commands/GetContactCommand.js.map +1 -1
- package/dist/es/commands/GetContactPolicyCommand.js +2 -28
- package/dist/es/commands/GetContactPolicyCommand.js.map +1 -1
- package/dist/es/commands/ListContactChannelsCommand.js +2 -27
- package/dist/es/commands/ListContactChannelsCommand.js.map +1 -1
- package/dist/es/commands/ListContactsCommand.js +2 -27
- package/dist/es/commands/ListContactsCommand.js.map +1 -1
- package/dist/es/commands/ListEngagementsCommand.js +2 -27
- package/dist/es/commands/ListEngagementsCommand.js.map +1 -1
- package/dist/es/commands/ListPageReceiptsCommand.js +2 -27
- package/dist/es/commands/ListPageReceiptsCommand.js.map +1 -1
- package/dist/es/commands/ListPagesByContactCommand.js +2 -27
- package/dist/es/commands/ListPagesByContactCommand.js.map +1 -1
- package/dist/es/commands/ListPagesByEngagementCommand.js +2 -27
- package/dist/es/commands/ListPagesByEngagementCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/PutContactPolicyCommand.js +2 -27
- package/dist/es/commands/PutContactPolicyCommand.js.map +1 -1
- package/dist/es/commands/SendActivationCodeCommand.js +2 -29
- package/dist/es/commands/SendActivationCodeCommand.js.map +1 -1
- package/dist/es/commands/StartEngagementCommand.js +2 -28
- package/dist/es/commands/StartEngagementCommand.js.map +1 -1
- package/dist/es/commands/StopEngagementCommand.js +2 -28
- package/dist/es/commands/StopEngagementCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -28
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateContactChannelCommand.js +2 -27
- package/dist/es/commands/UpdateContactChannelCommand.js.map +1 -1
- package/dist/es/commands/UpdateContactCommand.js +2 -27
- package/dist/es/commands/UpdateContactCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -228
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/ListContactChannelsPaginator.js +16 -28
- package/dist/es/pagination/ListContactChannelsPaginator.js.map +1 -1
- package/dist/es/pagination/ListContactsPaginator.js +16 -28
- package/dist/es/pagination/ListContactsPaginator.js.map +1 -1
- package/dist/es/pagination/ListEngagementsPaginator.js +16 -28
- package/dist/es/pagination/ListEngagementsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPageReceiptsPaginator.js +16 -28
- package/dist/es/pagination/ListPageReceiptsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPagesByContactPaginator.js +16 -28
- package/dist/es/pagination/ListPagesByContactPaginator.js.map +1 -1
- package/dist/es/pagination/ListPagesByEngagementPaginator.js +16 -28
- package/dist/es/pagination/ListPagesByEngagementPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +799 -804
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -10,7 +10,7 @@ export var serializeAws_json1_1AcceptPageCommand = function (input, context) { r
|
|
|
10
10
|
"x-amz-target": "SSMContacts.AcceptPage",
|
|
11
11
|
};
|
|
12
12
|
body = JSON.stringify(serializeAws_json1_1AcceptPageRequest(input, context));
|
|
13
|
-
return [2
|
|
13
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
14
14
|
});
|
|
15
15
|
}); };
|
|
16
16
|
export var serializeAws_json1_1ActivateContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -21,7 +21,7 @@ export var serializeAws_json1_1ActivateContactChannelCommand = function (input,
|
|
|
21
21
|
"x-amz-target": "SSMContacts.ActivateContactChannel",
|
|
22
22
|
};
|
|
23
23
|
body = JSON.stringify(serializeAws_json1_1ActivateContactChannelRequest(input, context));
|
|
24
|
-
return [2
|
|
24
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
25
25
|
});
|
|
26
26
|
}); };
|
|
27
27
|
export var serializeAws_json1_1CreateContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -32,7 +32,7 @@ export var serializeAws_json1_1CreateContactCommand = function (input, context)
|
|
|
32
32
|
"x-amz-target": "SSMContacts.CreateContact",
|
|
33
33
|
};
|
|
34
34
|
body = JSON.stringify(serializeAws_json1_1CreateContactRequest(input, context));
|
|
35
|
-
return [2
|
|
35
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
36
36
|
});
|
|
37
37
|
}); };
|
|
38
38
|
export var serializeAws_json1_1CreateContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -43,7 +43,7 @@ export var serializeAws_json1_1CreateContactChannelCommand = function (input, co
|
|
|
43
43
|
"x-amz-target": "SSMContacts.CreateContactChannel",
|
|
44
44
|
};
|
|
45
45
|
body = JSON.stringify(serializeAws_json1_1CreateContactChannelRequest(input, context));
|
|
46
|
-
return [2
|
|
46
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
47
47
|
});
|
|
48
48
|
}); };
|
|
49
49
|
export var serializeAws_json1_1DeactivateContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -54,7 +54,7 @@ export var serializeAws_json1_1DeactivateContactChannelCommand = function (input
|
|
|
54
54
|
"x-amz-target": "SSMContacts.DeactivateContactChannel",
|
|
55
55
|
};
|
|
56
56
|
body = JSON.stringify(serializeAws_json1_1DeactivateContactChannelRequest(input, context));
|
|
57
|
-
return [2
|
|
57
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
58
58
|
});
|
|
59
59
|
}); };
|
|
60
60
|
export var serializeAws_json1_1DeleteContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -65,7 +65,7 @@ export var serializeAws_json1_1DeleteContactCommand = function (input, context)
|
|
|
65
65
|
"x-amz-target": "SSMContacts.DeleteContact",
|
|
66
66
|
};
|
|
67
67
|
body = JSON.stringify(serializeAws_json1_1DeleteContactRequest(input, context));
|
|
68
|
-
return [2
|
|
68
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
69
69
|
});
|
|
70
70
|
}); };
|
|
71
71
|
export var serializeAws_json1_1DeleteContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -76,7 +76,7 @@ export var serializeAws_json1_1DeleteContactChannelCommand = function (input, co
|
|
|
76
76
|
"x-amz-target": "SSMContacts.DeleteContactChannel",
|
|
77
77
|
};
|
|
78
78
|
body = JSON.stringify(serializeAws_json1_1DeleteContactChannelRequest(input, context));
|
|
79
|
-
return [2
|
|
79
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
80
80
|
});
|
|
81
81
|
}); };
|
|
82
82
|
export var serializeAws_json1_1DescribeEngagementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -87,7 +87,7 @@ export var serializeAws_json1_1DescribeEngagementCommand = function (input, cont
|
|
|
87
87
|
"x-amz-target": "SSMContacts.DescribeEngagement",
|
|
88
88
|
};
|
|
89
89
|
body = JSON.stringify(serializeAws_json1_1DescribeEngagementRequest(input, context));
|
|
90
|
-
return [2
|
|
90
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
91
91
|
});
|
|
92
92
|
}); };
|
|
93
93
|
export var serializeAws_json1_1DescribePageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -98,7 +98,7 @@ export var serializeAws_json1_1DescribePageCommand = function (input, context) {
|
|
|
98
98
|
"x-amz-target": "SSMContacts.DescribePage",
|
|
99
99
|
};
|
|
100
100
|
body = JSON.stringify(serializeAws_json1_1DescribePageRequest(input, context));
|
|
101
|
-
return [2
|
|
101
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
102
102
|
});
|
|
103
103
|
}); };
|
|
104
104
|
export var serializeAws_json1_1GetContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -109,7 +109,7 @@ export var serializeAws_json1_1GetContactCommand = function (input, context) { r
|
|
|
109
109
|
"x-amz-target": "SSMContacts.GetContact",
|
|
110
110
|
};
|
|
111
111
|
body = JSON.stringify(serializeAws_json1_1GetContactRequest(input, context));
|
|
112
|
-
return [2
|
|
112
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
113
113
|
});
|
|
114
114
|
}); };
|
|
115
115
|
export var serializeAws_json1_1GetContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -120,7 +120,7 @@ export var serializeAws_json1_1GetContactChannelCommand = function (input, conte
|
|
|
120
120
|
"x-amz-target": "SSMContacts.GetContactChannel",
|
|
121
121
|
};
|
|
122
122
|
body = JSON.stringify(serializeAws_json1_1GetContactChannelRequest(input, context));
|
|
123
|
-
return [2
|
|
123
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
124
124
|
});
|
|
125
125
|
}); };
|
|
126
126
|
export var serializeAws_json1_1GetContactPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -131,7 +131,7 @@ export var serializeAws_json1_1GetContactPolicyCommand = function (input, contex
|
|
|
131
131
|
"x-amz-target": "SSMContacts.GetContactPolicy",
|
|
132
132
|
};
|
|
133
133
|
body = JSON.stringify(serializeAws_json1_1GetContactPolicyRequest(input, context));
|
|
134
|
-
return [2
|
|
134
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
135
135
|
});
|
|
136
136
|
}); };
|
|
137
137
|
export var serializeAws_json1_1ListContactChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -142,7 +142,7 @@ export var serializeAws_json1_1ListContactChannelsCommand = function (input, con
|
|
|
142
142
|
"x-amz-target": "SSMContacts.ListContactChannels",
|
|
143
143
|
};
|
|
144
144
|
body = JSON.stringify(serializeAws_json1_1ListContactChannelsRequest(input, context));
|
|
145
|
-
return [2
|
|
145
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
146
146
|
});
|
|
147
147
|
}); };
|
|
148
148
|
export var serializeAws_json1_1ListContactsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -153,7 +153,7 @@ export var serializeAws_json1_1ListContactsCommand = function (input, context) {
|
|
|
153
153
|
"x-amz-target": "SSMContacts.ListContacts",
|
|
154
154
|
};
|
|
155
155
|
body = JSON.stringify(serializeAws_json1_1ListContactsRequest(input, context));
|
|
156
|
-
return [2
|
|
156
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
157
157
|
});
|
|
158
158
|
}); };
|
|
159
159
|
export var serializeAws_json1_1ListEngagementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -164,7 +164,7 @@ export var serializeAws_json1_1ListEngagementsCommand = function (input, context
|
|
|
164
164
|
"x-amz-target": "SSMContacts.ListEngagements",
|
|
165
165
|
};
|
|
166
166
|
body = JSON.stringify(serializeAws_json1_1ListEngagementsRequest(input, context));
|
|
167
|
-
return [2
|
|
167
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
168
168
|
});
|
|
169
169
|
}); };
|
|
170
170
|
export var serializeAws_json1_1ListPageReceiptsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -175,7 +175,7 @@ export var serializeAws_json1_1ListPageReceiptsCommand = function (input, contex
|
|
|
175
175
|
"x-amz-target": "SSMContacts.ListPageReceipts",
|
|
176
176
|
};
|
|
177
177
|
body = JSON.stringify(serializeAws_json1_1ListPageReceiptsRequest(input, context));
|
|
178
|
-
return [2
|
|
178
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
179
179
|
});
|
|
180
180
|
}); };
|
|
181
181
|
export var serializeAws_json1_1ListPagesByContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -186,7 +186,7 @@ export var serializeAws_json1_1ListPagesByContactCommand = function (input, cont
|
|
|
186
186
|
"x-amz-target": "SSMContacts.ListPagesByContact",
|
|
187
187
|
};
|
|
188
188
|
body = JSON.stringify(serializeAws_json1_1ListPagesByContactRequest(input, context));
|
|
189
|
-
return [2
|
|
189
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
190
190
|
});
|
|
191
191
|
}); };
|
|
192
192
|
export var serializeAws_json1_1ListPagesByEngagementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -197,7 +197,7 @@ export var serializeAws_json1_1ListPagesByEngagementCommand = function (input, c
|
|
|
197
197
|
"x-amz-target": "SSMContacts.ListPagesByEngagement",
|
|
198
198
|
};
|
|
199
199
|
body = JSON.stringify(serializeAws_json1_1ListPagesByEngagementRequest(input, context));
|
|
200
|
-
return [2
|
|
200
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
201
201
|
});
|
|
202
202
|
}); };
|
|
203
203
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -208,7 +208,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
208
208
|
"x-amz-target": "SSMContacts.ListTagsForResource",
|
|
209
209
|
};
|
|
210
210
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
211
|
-
return [2
|
|
211
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
212
212
|
});
|
|
213
213
|
}); };
|
|
214
214
|
export var serializeAws_json1_1PutContactPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -219,7 +219,7 @@ export var serializeAws_json1_1PutContactPolicyCommand = function (input, contex
|
|
|
219
219
|
"x-amz-target": "SSMContacts.PutContactPolicy",
|
|
220
220
|
};
|
|
221
221
|
body = JSON.stringify(serializeAws_json1_1PutContactPolicyRequest(input, context));
|
|
222
|
-
return [2
|
|
222
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
223
223
|
});
|
|
224
224
|
}); };
|
|
225
225
|
export var serializeAws_json1_1SendActivationCodeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -230,7 +230,7 @@ export var serializeAws_json1_1SendActivationCodeCommand = function (input, cont
|
|
|
230
230
|
"x-amz-target": "SSMContacts.SendActivationCode",
|
|
231
231
|
};
|
|
232
232
|
body = JSON.stringify(serializeAws_json1_1SendActivationCodeRequest(input, context));
|
|
233
|
-
return [2
|
|
233
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
234
|
});
|
|
235
235
|
}); };
|
|
236
236
|
export var serializeAws_json1_1StartEngagementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -241,7 +241,7 @@ export var serializeAws_json1_1StartEngagementCommand = function (input, context
|
|
|
241
241
|
"x-amz-target": "SSMContacts.StartEngagement",
|
|
242
242
|
};
|
|
243
243
|
body = JSON.stringify(serializeAws_json1_1StartEngagementRequest(input, context));
|
|
244
|
-
return [2
|
|
244
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
245
245
|
});
|
|
246
246
|
}); };
|
|
247
247
|
export var serializeAws_json1_1StopEngagementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -252,7 +252,7 @@ export var serializeAws_json1_1StopEngagementCommand = function (input, context)
|
|
|
252
252
|
"x-amz-target": "SSMContacts.StopEngagement",
|
|
253
253
|
};
|
|
254
254
|
body = JSON.stringify(serializeAws_json1_1StopEngagementRequest(input, context));
|
|
255
|
-
return [2
|
|
255
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
256
|
});
|
|
257
257
|
}); };
|
|
258
258
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -263,7 +263,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
263
263
|
"x-amz-target": "SSMContacts.TagResource",
|
|
264
264
|
};
|
|
265
265
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
266
|
-
return [2
|
|
266
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
267
267
|
});
|
|
268
268
|
}); };
|
|
269
269
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -274,7 +274,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
274
274
|
"x-amz-target": "SSMContacts.UntagResource",
|
|
275
275
|
};
|
|
276
276
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
277
|
-
return [2
|
|
277
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
278
278
|
});
|
|
279
279
|
}); };
|
|
280
280
|
export var serializeAws_json1_1UpdateContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -285,7 +285,7 @@ export var serializeAws_json1_1UpdateContactCommand = function (input, context)
|
|
|
285
285
|
"x-amz-target": "SSMContacts.UpdateContact",
|
|
286
286
|
};
|
|
287
287
|
body = JSON.stringify(serializeAws_json1_1UpdateContactRequest(input, context));
|
|
288
|
-
return [2
|
|
288
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
289
289
|
});
|
|
290
290
|
}); };
|
|
291
291
|
export var serializeAws_json1_1UpdateContactChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -296,7 +296,7 @@ export var serializeAws_json1_1UpdateContactChannelCommand = function (input, co
|
|
|
296
296
|
"x-amz-target": "SSMContacts.UpdateContactChannel",
|
|
297
297
|
};
|
|
298
298
|
body = JSON.stringify(serializeAws_json1_1UpdateContactChannelRequest(input, context));
|
|
299
|
-
return [2
|
|
299
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
300
300
|
});
|
|
301
301
|
}); };
|
|
302
302
|
export var deserializeAws_json1_1AcceptPageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -305,15 +305,15 @@ export var deserializeAws_json1_1AcceptPageCommand = function (output, context)
|
|
|
305
305
|
switch (_a.label) {
|
|
306
306
|
case 0:
|
|
307
307
|
if (output.statusCode >= 300) {
|
|
308
|
-
return [2
|
|
308
|
+
return [2, deserializeAws_json1_1AcceptPageCommandError(output, context)];
|
|
309
309
|
}
|
|
310
|
-
return [4
|
|
310
|
+
return [4, parseBody(output.body, context)];
|
|
311
311
|
case 1:
|
|
312
312
|
data = _a.sent();
|
|
313
313
|
contents = {};
|
|
314
314
|
contents = deserializeAws_json1_1AcceptPageResult(data, context);
|
|
315
315
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
316
|
-
return [2
|
|
316
|
+
return [2, Promise.resolve(response)];
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}); };
|
|
@@ -325,55 +325,55 @@ var deserializeAws_json1_1AcceptPageCommandError = function (output, context) {
|
|
|
325
325
|
case 0:
|
|
326
326
|
_a = [__assign({}, output)];
|
|
327
327
|
_h = {};
|
|
328
|
-
return [4
|
|
328
|
+
return [4, parseBody(output.body, context)];
|
|
329
329
|
case 1:
|
|
330
330
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
331
331
|
errorCode = "UnknownError";
|
|
332
332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
333
|
_b = errorCode;
|
|
334
334
|
switch (_b) {
|
|
335
|
-
case "AccessDeniedException": return [3
|
|
336
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
337
|
-
case "InternalServerException": return [3
|
|
338
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
339
|
-
case "ResourceNotFoundException": return [3
|
|
340
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
341
|
-
case "ThrottlingException": return [3
|
|
342
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
343
|
-
case "ValidationException": return [3
|
|
344
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
335
|
+
case "AccessDeniedException": return [3, 2];
|
|
336
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
337
|
+
case "InternalServerException": return [3, 4];
|
|
338
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
339
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
340
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
341
|
+
case "ThrottlingException": return [3, 8];
|
|
342
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
343
|
+
case "ValidationException": return [3, 10];
|
|
344
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
345
345
|
}
|
|
346
|
-
return [3
|
|
346
|
+
return [3, 12];
|
|
347
347
|
case 2:
|
|
348
348
|
_c = [{}];
|
|
349
|
-
return [4
|
|
349
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
350
350
|
case 3:
|
|
351
351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
352
|
-
return [3
|
|
352
|
+
return [3, 13];
|
|
353
353
|
case 4:
|
|
354
354
|
_d = [{}];
|
|
355
|
-
return [4
|
|
355
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
356
356
|
case 5:
|
|
357
357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
358
|
-
return [3
|
|
358
|
+
return [3, 13];
|
|
359
359
|
case 6:
|
|
360
360
|
_e = [{}];
|
|
361
|
-
return [4
|
|
361
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
362
362
|
case 7:
|
|
363
363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
364
|
-
return [3
|
|
364
|
+
return [3, 13];
|
|
365
365
|
case 8:
|
|
366
366
|
_f = [{}];
|
|
367
|
-
return [4
|
|
367
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
368
368
|
case 9:
|
|
369
369
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
370
|
-
return [3
|
|
370
|
+
return [3, 13];
|
|
371
371
|
case 10:
|
|
372
372
|
_g = [{}];
|
|
373
|
-
return [4
|
|
373
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
374
374
|
case 11:
|
|
375
375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
376
|
-
return [3
|
|
376
|
+
return [3, 13];
|
|
377
377
|
case 12:
|
|
378
378
|
parsedBody = parsedOutput.body;
|
|
379
379
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -383,7 +383,7 @@ var deserializeAws_json1_1AcceptPageCommandError = function (output, context) {
|
|
|
383
383
|
message = response.message || response.Message || errorCode;
|
|
384
384
|
response.message = message;
|
|
385
385
|
delete response.Message;
|
|
386
|
-
return [2
|
|
386
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
}); };
|
|
@@ -393,15 +393,15 @@ export var deserializeAws_json1_1ActivateContactChannelCommand = function (outpu
|
|
|
393
393
|
switch (_a.label) {
|
|
394
394
|
case 0:
|
|
395
395
|
if (output.statusCode >= 300) {
|
|
396
|
-
return [2
|
|
396
|
+
return [2, deserializeAws_json1_1ActivateContactChannelCommandError(output, context)];
|
|
397
397
|
}
|
|
398
|
-
return [4
|
|
398
|
+
return [4, parseBody(output.body, context)];
|
|
399
399
|
case 1:
|
|
400
400
|
data = _a.sent();
|
|
401
401
|
contents = {};
|
|
402
402
|
contents = deserializeAws_json1_1ActivateContactChannelResult(data, context);
|
|
403
403
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
404
|
-
return [2
|
|
404
|
+
return [2, Promise.resolve(response)];
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
}); };
|
|
@@ -413,55 +413,55 @@ var deserializeAws_json1_1ActivateContactChannelCommandError = function (output,
|
|
|
413
413
|
case 0:
|
|
414
414
|
_a = [__assign({}, output)];
|
|
415
415
|
_h = {};
|
|
416
|
-
return [4
|
|
416
|
+
return [4, parseBody(output.body, context)];
|
|
417
417
|
case 1:
|
|
418
418
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
419
419
|
errorCode = "UnknownError";
|
|
420
420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
421
|
_b = errorCode;
|
|
422
422
|
switch (_b) {
|
|
423
|
-
case "AccessDeniedException": return [3
|
|
424
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
425
|
-
case "InternalServerException": return [3
|
|
426
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
427
|
-
case "ResourceNotFoundException": return [3
|
|
428
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
429
|
-
case "ThrottlingException": return [3
|
|
430
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
431
|
-
case "ValidationException": return [3
|
|
432
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
423
|
+
case "AccessDeniedException": return [3, 2];
|
|
424
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
425
|
+
case "InternalServerException": return [3, 4];
|
|
426
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
427
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
428
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
429
|
+
case "ThrottlingException": return [3, 8];
|
|
430
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
431
|
+
case "ValidationException": return [3, 10];
|
|
432
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
433
433
|
}
|
|
434
|
-
return [3
|
|
434
|
+
return [3, 12];
|
|
435
435
|
case 2:
|
|
436
436
|
_c = [{}];
|
|
437
|
-
return [4
|
|
437
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
438
438
|
case 3:
|
|
439
439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
440
|
-
return [3
|
|
440
|
+
return [3, 13];
|
|
441
441
|
case 4:
|
|
442
442
|
_d = [{}];
|
|
443
|
-
return [4
|
|
443
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
444
444
|
case 5:
|
|
445
445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
446
|
-
return [3
|
|
446
|
+
return [3, 13];
|
|
447
447
|
case 6:
|
|
448
448
|
_e = [{}];
|
|
449
|
-
return [4
|
|
449
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
450
450
|
case 7:
|
|
451
451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
452
|
-
return [3
|
|
452
|
+
return [3, 13];
|
|
453
453
|
case 8:
|
|
454
454
|
_f = [{}];
|
|
455
|
-
return [4
|
|
455
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
456
456
|
case 9:
|
|
457
457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
458
|
-
return [3
|
|
458
|
+
return [3, 13];
|
|
459
459
|
case 10:
|
|
460
460
|
_g = [{}];
|
|
461
|
-
return [4
|
|
461
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
462
462
|
case 11:
|
|
463
463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
464
|
-
return [3
|
|
464
|
+
return [3, 13];
|
|
465
465
|
case 12:
|
|
466
466
|
parsedBody = parsedOutput.body;
|
|
467
467
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -471,7 +471,7 @@ var deserializeAws_json1_1ActivateContactChannelCommandError = function (output,
|
|
|
471
471
|
message = response.message || response.Message || errorCode;
|
|
472
472
|
response.message = message;
|
|
473
473
|
delete response.Message;
|
|
474
|
-
return [2
|
|
474
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
}); };
|
|
@@ -481,15 +481,15 @@ export var deserializeAws_json1_1CreateContactCommand = function (output, contex
|
|
|
481
481
|
switch (_a.label) {
|
|
482
482
|
case 0:
|
|
483
483
|
if (output.statusCode >= 300) {
|
|
484
|
-
return [2
|
|
484
|
+
return [2, deserializeAws_json1_1CreateContactCommandError(output, context)];
|
|
485
485
|
}
|
|
486
|
-
return [4
|
|
486
|
+
return [4, parseBody(output.body, context)];
|
|
487
487
|
case 1:
|
|
488
488
|
data = _a.sent();
|
|
489
489
|
contents = {};
|
|
490
490
|
contents = deserializeAws_json1_1CreateContactResult(data, context);
|
|
491
491
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
492
|
-
return [2
|
|
492
|
+
return [2, Promise.resolve(response)];
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
495
|
}); };
|
|
@@ -501,71 +501,71 @@ var deserializeAws_json1_1CreateContactCommandError = function (output, context)
|
|
|
501
501
|
case 0:
|
|
502
502
|
_a = [__assign({}, output)];
|
|
503
503
|
_k = {};
|
|
504
|
-
return [4
|
|
504
|
+
return [4, parseBody(output.body, context)];
|
|
505
505
|
case 1:
|
|
506
506
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
507
507
|
errorCode = "UnknownError";
|
|
508
508
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
509
|
_b = errorCode;
|
|
510
510
|
switch (_b) {
|
|
511
|
-
case "AccessDeniedException": return [3
|
|
512
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
513
|
-
case "ConflictException": return [3
|
|
514
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3
|
|
515
|
-
case "DataEncryptionException": return [3
|
|
516
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
517
|
-
case "InternalServerException": return [3
|
|
518
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
519
|
-
case "ServiceQuotaExceededException": return [3
|
|
520
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3
|
|
521
|
-
case "ThrottlingException": return [3
|
|
522
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
523
|
-
case "ValidationException": return [3
|
|
524
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
511
|
+
case "AccessDeniedException": return [3, 2];
|
|
512
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
513
|
+
case "ConflictException": return [3, 4];
|
|
514
|
+
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
515
|
+
case "DataEncryptionException": return [3, 6];
|
|
516
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 6];
|
|
517
|
+
case "InternalServerException": return [3, 8];
|
|
518
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 8];
|
|
519
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
520
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 10];
|
|
521
|
+
case "ThrottlingException": return [3, 12];
|
|
522
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
523
|
+
case "ValidationException": return [3, 14];
|
|
524
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
525
525
|
}
|
|
526
|
-
return [3
|
|
526
|
+
return [3, 16];
|
|
527
527
|
case 2:
|
|
528
528
|
_c = [{}];
|
|
529
|
-
return [4
|
|
529
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
530
530
|
case 3:
|
|
531
531
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
532
|
-
return [3
|
|
532
|
+
return [3, 17];
|
|
533
533
|
case 4:
|
|
534
534
|
_d = [{}];
|
|
535
|
-
return [4
|
|
535
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
536
536
|
case 5:
|
|
537
537
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
538
|
-
return [3
|
|
538
|
+
return [3, 17];
|
|
539
539
|
case 6:
|
|
540
540
|
_e = [{}];
|
|
541
|
-
return [4
|
|
541
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
542
542
|
case 7:
|
|
543
543
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
544
|
-
return [3
|
|
544
|
+
return [3, 17];
|
|
545
545
|
case 8:
|
|
546
546
|
_f = [{}];
|
|
547
|
-
return [4
|
|
547
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
548
548
|
case 9:
|
|
549
549
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
550
|
-
return [3
|
|
550
|
+
return [3, 17];
|
|
551
551
|
case 10:
|
|
552
552
|
_g = [{}];
|
|
553
|
-
return [4
|
|
553
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
554
554
|
case 11:
|
|
555
555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
556
|
-
return [3
|
|
556
|
+
return [3, 17];
|
|
557
557
|
case 12:
|
|
558
558
|
_h = [{}];
|
|
559
|
-
return [4
|
|
559
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
560
560
|
case 13:
|
|
561
561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
562
|
-
return [3
|
|
562
|
+
return [3, 17];
|
|
563
563
|
case 14:
|
|
564
564
|
_j = [{}];
|
|
565
|
-
return [4
|
|
565
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
566
566
|
case 15:
|
|
567
567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
568
|
+
return [3, 17];
|
|
569
569
|
case 16:
|
|
570
570
|
parsedBody = parsedOutput.body;
|
|
571
571
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -575,7 +575,7 @@ var deserializeAws_json1_1CreateContactCommandError = function (output, context)
|
|
|
575
575
|
message = response.message || response.Message || errorCode;
|
|
576
576
|
response.message = message;
|
|
577
577
|
delete response.Message;
|
|
578
|
-
return [2
|
|
578
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
579
579
|
}
|
|
580
580
|
});
|
|
581
581
|
}); };
|
|
@@ -585,15 +585,15 @@ export var deserializeAws_json1_1CreateContactChannelCommand = function (output,
|
|
|
585
585
|
switch (_a.label) {
|
|
586
586
|
case 0:
|
|
587
587
|
if (output.statusCode >= 300) {
|
|
588
|
-
return [2
|
|
588
|
+
return [2, deserializeAws_json1_1CreateContactChannelCommandError(output, context)];
|
|
589
589
|
}
|
|
590
|
-
return [4
|
|
590
|
+
return [4, parseBody(output.body, context)];
|
|
591
591
|
case 1:
|
|
592
592
|
data = _a.sent();
|
|
593
593
|
contents = {};
|
|
594
594
|
contents = deserializeAws_json1_1CreateContactChannelResult(data, context);
|
|
595
595
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
596
|
-
return [2
|
|
596
|
+
return [2, Promise.resolve(response)];
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}); };
|
|
@@ -605,63 +605,63 @@ var deserializeAws_json1_1CreateContactChannelCommandError = function (output, c
|
|
|
605
605
|
case 0:
|
|
606
606
|
_a = [__assign({}, output)];
|
|
607
607
|
_j = {};
|
|
608
|
-
return [4
|
|
608
|
+
return [4, parseBody(output.body, context)];
|
|
609
609
|
case 1:
|
|
610
610
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
611
611
|
errorCode = "UnknownError";
|
|
612
612
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
613
|
_b = errorCode;
|
|
614
614
|
switch (_b) {
|
|
615
|
-
case "AccessDeniedException": return [3
|
|
616
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
617
|
-
case "ConflictException": return [3
|
|
618
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3
|
|
619
|
-
case "DataEncryptionException": return [3
|
|
620
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
621
|
-
case "InternalServerException": return [3
|
|
622
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
623
|
-
case "ThrottlingException": return [3
|
|
624
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
625
|
-
case "ValidationException": return [3
|
|
626
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
615
|
+
case "AccessDeniedException": return [3, 2];
|
|
616
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
617
|
+
case "ConflictException": return [3, 4];
|
|
618
|
+
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
619
|
+
case "DataEncryptionException": return [3, 6];
|
|
620
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 6];
|
|
621
|
+
case "InternalServerException": return [3, 8];
|
|
622
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 8];
|
|
623
|
+
case "ThrottlingException": return [3, 10];
|
|
624
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
625
|
+
case "ValidationException": return [3, 12];
|
|
626
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
627
627
|
}
|
|
628
|
-
return [3
|
|
628
|
+
return [3, 14];
|
|
629
629
|
case 2:
|
|
630
630
|
_c = [{}];
|
|
631
|
-
return [4
|
|
631
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
632
632
|
case 3:
|
|
633
633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
634
|
-
return [3
|
|
634
|
+
return [3, 15];
|
|
635
635
|
case 4:
|
|
636
636
|
_d = [{}];
|
|
637
|
-
return [4
|
|
637
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
638
638
|
case 5:
|
|
639
639
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
640
|
-
return [3
|
|
640
|
+
return [3, 15];
|
|
641
641
|
case 6:
|
|
642
642
|
_e = [{}];
|
|
643
|
-
return [4
|
|
643
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
644
644
|
case 7:
|
|
645
645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
646
|
-
return [3
|
|
646
|
+
return [3, 15];
|
|
647
647
|
case 8:
|
|
648
648
|
_f = [{}];
|
|
649
|
-
return [4
|
|
649
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
650
650
|
case 9:
|
|
651
651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
652
|
-
return [3
|
|
652
|
+
return [3, 15];
|
|
653
653
|
case 10:
|
|
654
654
|
_g = [{}];
|
|
655
|
-
return [4
|
|
655
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
656
656
|
case 11:
|
|
657
657
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
658
|
-
return [3
|
|
658
|
+
return [3, 15];
|
|
659
659
|
case 12:
|
|
660
660
|
_h = [{}];
|
|
661
|
-
return [4
|
|
661
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
662
662
|
case 13:
|
|
663
663
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
664
|
-
return [3
|
|
664
|
+
return [3, 15];
|
|
665
665
|
case 14:
|
|
666
666
|
parsedBody = parsedOutput.body;
|
|
667
667
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -671,7 +671,7 @@ var deserializeAws_json1_1CreateContactChannelCommandError = function (output, c
|
|
|
671
671
|
message = response.message || response.Message || errorCode;
|
|
672
672
|
response.message = message;
|
|
673
673
|
delete response.Message;
|
|
674
|
-
return [2
|
|
674
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
}); };
|
|
@@ -681,15 +681,15 @@ export var deserializeAws_json1_1DeactivateContactChannelCommand = function (out
|
|
|
681
681
|
switch (_a.label) {
|
|
682
682
|
case 0:
|
|
683
683
|
if (output.statusCode >= 300) {
|
|
684
|
-
return [2
|
|
684
|
+
return [2, deserializeAws_json1_1DeactivateContactChannelCommandError(output, context)];
|
|
685
685
|
}
|
|
686
|
-
return [4
|
|
686
|
+
return [4, parseBody(output.body, context)];
|
|
687
687
|
case 1:
|
|
688
688
|
data = _a.sent();
|
|
689
689
|
contents = {};
|
|
690
690
|
contents = deserializeAws_json1_1DeactivateContactChannelResult(data, context);
|
|
691
691
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
692
|
-
return [2
|
|
692
|
+
return [2, Promise.resolve(response)];
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
695
|
}); };
|
|
@@ -701,55 +701,55 @@ var deserializeAws_json1_1DeactivateContactChannelCommandError = function (outpu
|
|
|
701
701
|
case 0:
|
|
702
702
|
_a = [__assign({}, output)];
|
|
703
703
|
_h = {};
|
|
704
|
-
return [4
|
|
704
|
+
return [4, parseBody(output.body, context)];
|
|
705
705
|
case 1:
|
|
706
706
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
707
707
|
errorCode = "UnknownError";
|
|
708
708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
709
|
_b = errorCode;
|
|
710
710
|
switch (_b) {
|
|
711
|
-
case "AccessDeniedException": return [3
|
|
712
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
713
|
-
case "InternalServerException": return [3
|
|
714
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
715
|
-
case "ResourceNotFoundException": return [3
|
|
716
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
717
|
-
case "ThrottlingException": return [3
|
|
718
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
719
|
-
case "ValidationException": return [3
|
|
720
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
711
|
+
case "AccessDeniedException": return [3, 2];
|
|
712
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
713
|
+
case "InternalServerException": return [3, 4];
|
|
714
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
715
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
716
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
717
|
+
case "ThrottlingException": return [3, 8];
|
|
718
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
719
|
+
case "ValidationException": return [3, 10];
|
|
720
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
721
721
|
}
|
|
722
|
-
return [3
|
|
722
|
+
return [3, 12];
|
|
723
723
|
case 2:
|
|
724
724
|
_c = [{}];
|
|
725
|
-
return [4
|
|
725
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
726
726
|
case 3:
|
|
727
727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
728
|
-
return [3
|
|
728
|
+
return [3, 13];
|
|
729
729
|
case 4:
|
|
730
730
|
_d = [{}];
|
|
731
|
-
return [4
|
|
731
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
732
732
|
case 5:
|
|
733
733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
734
|
-
return [3
|
|
734
|
+
return [3, 13];
|
|
735
735
|
case 6:
|
|
736
736
|
_e = [{}];
|
|
737
|
-
return [4
|
|
737
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
738
738
|
case 7:
|
|
739
739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
740
|
-
return [3
|
|
740
|
+
return [3, 13];
|
|
741
741
|
case 8:
|
|
742
742
|
_f = [{}];
|
|
743
|
-
return [4
|
|
743
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
744
744
|
case 9:
|
|
745
745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
746
|
-
return [3
|
|
746
|
+
return [3, 13];
|
|
747
747
|
case 10:
|
|
748
748
|
_g = [{}];
|
|
749
|
-
return [4
|
|
749
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
750
750
|
case 11:
|
|
751
751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
752
|
-
return [3
|
|
752
|
+
return [3, 13];
|
|
753
753
|
case 12:
|
|
754
754
|
parsedBody = parsedOutput.body;
|
|
755
755
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -759,7 +759,7 @@ var deserializeAws_json1_1DeactivateContactChannelCommandError = function (outpu
|
|
|
759
759
|
message = response.message || response.Message || errorCode;
|
|
760
760
|
response.message = message;
|
|
761
761
|
delete response.Message;
|
|
762
|
-
return [2
|
|
762
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
763
763
|
}
|
|
764
764
|
});
|
|
765
765
|
}); };
|
|
@@ -769,15 +769,15 @@ export var deserializeAws_json1_1DeleteContactCommand = function (output, contex
|
|
|
769
769
|
switch (_a.label) {
|
|
770
770
|
case 0:
|
|
771
771
|
if (output.statusCode >= 300) {
|
|
772
|
-
return [2
|
|
772
|
+
return [2, deserializeAws_json1_1DeleteContactCommandError(output, context)];
|
|
773
773
|
}
|
|
774
|
-
return [4
|
|
774
|
+
return [4, parseBody(output.body, context)];
|
|
775
775
|
case 1:
|
|
776
776
|
data = _a.sent();
|
|
777
777
|
contents = {};
|
|
778
778
|
contents = deserializeAws_json1_1DeleteContactResult(data, context);
|
|
779
779
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
780
|
-
return [2
|
|
780
|
+
return [2, Promise.resolve(response)];
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
783
|
}); };
|
|
@@ -789,55 +789,55 @@ var deserializeAws_json1_1DeleteContactCommandError = function (output, context)
|
|
|
789
789
|
case 0:
|
|
790
790
|
_a = [__assign({}, output)];
|
|
791
791
|
_h = {};
|
|
792
|
-
return [4
|
|
792
|
+
return [4, parseBody(output.body, context)];
|
|
793
793
|
case 1:
|
|
794
794
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
795
795
|
errorCode = "UnknownError";
|
|
796
796
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
797
|
_b = errorCode;
|
|
798
798
|
switch (_b) {
|
|
799
|
-
case "AccessDeniedException": return [3
|
|
800
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
801
|
-
case "InternalServerException": return [3
|
|
802
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
803
|
-
case "ResourceNotFoundException": return [3
|
|
804
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
805
|
-
case "ThrottlingException": return [3
|
|
806
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
807
|
-
case "ValidationException": return [3
|
|
808
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
799
|
+
case "AccessDeniedException": return [3, 2];
|
|
800
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
801
|
+
case "InternalServerException": return [3, 4];
|
|
802
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
803
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
804
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
805
|
+
case "ThrottlingException": return [3, 8];
|
|
806
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
807
|
+
case "ValidationException": return [3, 10];
|
|
808
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
809
809
|
}
|
|
810
|
-
return [3
|
|
810
|
+
return [3, 12];
|
|
811
811
|
case 2:
|
|
812
812
|
_c = [{}];
|
|
813
|
-
return [4
|
|
813
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
814
814
|
case 3:
|
|
815
815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3
|
|
816
|
+
return [3, 13];
|
|
817
817
|
case 4:
|
|
818
818
|
_d = [{}];
|
|
819
|
-
return [4
|
|
819
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
820
820
|
case 5:
|
|
821
821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
822
|
-
return [3
|
|
822
|
+
return [3, 13];
|
|
823
823
|
case 6:
|
|
824
824
|
_e = [{}];
|
|
825
|
-
return [4
|
|
825
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
826
826
|
case 7:
|
|
827
827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
828
|
-
return [3
|
|
828
|
+
return [3, 13];
|
|
829
829
|
case 8:
|
|
830
830
|
_f = [{}];
|
|
831
|
-
return [4
|
|
831
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
832
832
|
case 9:
|
|
833
833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
834
|
-
return [3
|
|
834
|
+
return [3, 13];
|
|
835
835
|
case 10:
|
|
836
836
|
_g = [{}];
|
|
837
|
-
return [4
|
|
837
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
838
838
|
case 11:
|
|
839
839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 13];
|
|
841
841
|
case 12:
|
|
842
842
|
parsedBody = parsedOutput.body;
|
|
843
843
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -847,7 +847,7 @@ var deserializeAws_json1_1DeleteContactCommandError = function (output, context)
|
|
|
847
847
|
message = response.message || response.Message || errorCode;
|
|
848
848
|
response.message = message;
|
|
849
849
|
delete response.Message;
|
|
850
|
-
return [2
|
|
850
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
851
851
|
}
|
|
852
852
|
});
|
|
853
853
|
}); };
|
|
@@ -857,15 +857,15 @@ export var deserializeAws_json1_1DeleteContactChannelCommand = function (output,
|
|
|
857
857
|
switch (_a.label) {
|
|
858
858
|
case 0:
|
|
859
859
|
if (output.statusCode >= 300) {
|
|
860
|
-
return [2
|
|
860
|
+
return [2, deserializeAws_json1_1DeleteContactChannelCommandError(output, context)];
|
|
861
861
|
}
|
|
862
|
-
return [4
|
|
862
|
+
return [4, parseBody(output.body, context)];
|
|
863
863
|
case 1:
|
|
864
864
|
data = _a.sent();
|
|
865
865
|
contents = {};
|
|
866
866
|
contents = deserializeAws_json1_1DeleteContactChannelResult(data, context);
|
|
867
867
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
868
|
-
return [2
|
|
868
|
+
return [2, Promise.resolve(response)];
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
871
|
}); };
|
|
@@ -877,55 +877,55 @@ var deserializeAws_json1_1DeleteContactChannelCommandError = function (output, c
|
|
|
877
877
|
case 0:
|
|
878
878
|
_a = [__assign({}, output)];
|
|
879
879
|
_h = {};
|
|
880
|
-
return [4
|
|
880
|
+
return [4, parseBody(output.body, context)];
|
|
881
881
|
case 1:
|
|
882
882
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
883
883
|
errorCode = "UnknownError";
|
|
884
884
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
885
|
_b = errorCode;
|
|
886
886
|
switch (_b) {
|
|
887
|
-
case "AccessDeniedException": return [3
|
|
888
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
889
|
-
case "InternalServerException": return [3
|
|
890
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
891
|
-
case "ResourceNotFoundException": return [3
|
|
892
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
893
|
-
case "ThrottlingException": return [3
|
|
894
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
895
|
-
case "ValidationException": return [3
|
|
896
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
887
|
+
case "AccessDeniedException": return [3, 2];
|
|
888
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
889
|
+
case "InternalServerException": return [3, 4];
|
|
890
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
891
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
892
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
893
|
+
case "ThrottlingException": return [3, 8];
|
|
894
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
895
|
+
case "ValidationException": return [3, 10];
|
|
896
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
897
897
|
}
|
|
898
|
-
return [3
|
|
898
|
+
return [3, 12];
|
|
899
899
|
case 2:
|
|
900
900
|
_c = [{}];
|
|
901
|
-
return [4
|
|
901
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
902
902
|
case 3:
|
|
903
903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
904
|
-
return [3
|
|
904
|
+
return [3, 13];
|
|
905
905
|
case 4:
|
|
906
906
|
_d = [{}];
|
|
907
|
-
return [4
|
|
907
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
908
908
|
case 5:
|
|
909
909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3
|
|
910
|
+
return [3, 13];
|
|
911
911
|
case 6:
|
|
912
912
|
_e = [{}];
|
|
913
|
-
return [4
|
|
913
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
914
914
|
case 7:
|
|
915
915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
916
|
-
return [3
|
|
916
|
+
return [3, 13];
|
|
917
917
|
case 8:
|
|
918
918
|
_f = [{}];
|
|
919
|
-
return [4
|
|
919
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
920
920
|
case 9:
|
|
921
921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
922
|
-
return [3
|
|
922
|
+
return [3, 13];
|
|
923
923
|
case 10:
|
|
924
924
|
_g = [{}];
|
|
925
|
-
return [4
|
|
925
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
926
926
|
case 11:
|
|
927
927
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
928
|
-
return [3
|
|
928
|
+
return [3, 13];
|
|
929
929
|
case 12:
|
|
930
930
|
parsedBody = parsedOutput.body;
|
|
931
931
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -935,7 +935,7 @@ var deserializeAws_json1_1DeleteContactChannelCommandError = function (output, c
|
|
|
935
935
|
message = response.message || response.Message || errorCode;
|
|
936
936
|
response.message = message;
|
|
937
937
|
delete response.Message;
|
|
938
|
-
return [2
|
|
938
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
939
939
|
}
|
|
940
940
|
});
|
|
941
941
|
}); };
|
|
@@ -945,15 +945,15 @@ export var deserializeAws_json1_1DescribeEngagementCommand = function (output, c
|
|
|
945
945
|
switch (_a.label) {
|
|
946
946
|
case 0:
|
|
947
947
|
if (output.statusCode >= 300) {
|
|
948
|
-
return [2
|
|
948
|
+
return [2, deserializeAws_json1_1DescribeEngagementCommandError(output, context)];
|
|
949
949
|
}
|
|
950
|
-
return [4
|
|
950
|
+
return [4, parseBody(output.body, context)];
|
|
951
951
|
case 1:
|
|
952
952
|
data = _a.sent();
|
|
953
953
|
contents = {};
|
|
954
954
|
contents = deserializeAws_json1_1DescribeEngagementResult(data, context);
|
|
955
955
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
956
|
-
return [2
|
|
956
|
+
return [2, Promise.resolve(response)];
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
959
|
}); };
|
|
@@ -965,63 +965,63 @@ var deserializeAws_json1_1DescribeEngagementCommandError = function (output, con
|
|
|
965
965
|
case 0:
|
|
966
966
|
_a = [__assign({}, output)];
|
|
967
967
|
_j = {};
|
|
968
|
-
return [4
|
|
968
|
+
return [4, parseBody(output.body, context)];
|
|
969
969
|
case 1:
|
|
970
970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
971
971
|
errorCode = "UnknownError";
|
|
972
972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
973
|
_b = errorCode;
|
|
974
974
|
switch (_b) {
|
|
975
|
-
case "AccessDeniedException": return [3
|
|
976
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
977
|
-
case "DataEncryptionException": return [3
|
|
978
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
979
|
-
case "InternalServerException": return [3
|
|
980
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
981
|
-
case "ResourceNotFoundException": return [3
|
|
982
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
983
|
-
case "ThrottlingException": return [3
|
|
984
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
985
|
-
case "ValidationException": return [3
|
|
986
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
975
|
+
case "AccessDeniedException": return [3, 2];
|
|
976
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
977
|
+
case "DataEncryptionException": return [3, 4];
|
|
978
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
979
|
+
case "InternalServerException": return [3, 6];
|
|
980
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
981
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
982
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
983
|
+
case "ThrottlingException": return [3, 10];
|
|
984
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
985
|
+
case "ValidationException": return [3, 12];
|
|
986
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
987
987
|
}
|
|
988
|
-
return [3
|
|
988
|
+
return [3, 14];
|
|
989
989
|
case 2:
|
|
990
990
|
_c = [{}];
|
|
991
|
-
return [4
|
|
991
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
992
992
|
case 3:
|
|
993
993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
994
|
-
return [3
|
|
994
|
+
return [3, 15];
|
|
995
995
|
case 4:
|
|
996
996
|
_d = [{}];
|
|
997
|
-
return [4
|
|
997
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
998
998
|
case 5:
|
|
999
999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1000
|
-
return [3
|
|
1000
|
+
return [3, 15];
|
|
1001
1001
|
case 6:
|
|
1002
1002
|
_e = [{}];
|
|
1003
|
-
return [4
|
|
1003
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1004
1004
|
case 7:
|
|
1005
1005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1006
|
-
return [3
|
|
1006
|
+
return [3, 15];
|
|
1007
1007
|
case 8:
|
|
1008
1008
|
_f = [{}];
|
|
1009
|
-
return [4
|
|
1009
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1010
1010
|
case 9:
|
|
1011
1011
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1012
|
-
return [3
|
|
1012
|
+
return [3, 15];
|
|
1013
1013
|
case 10:
|
|
1014
1014
|
_g = [{}];
|
|
1015
|
-
return [4
|
|
1015
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1016
1016
|
case 11:
|
|
1017
1017
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1018
|
-
return [3
|
|
1018
|
+
return [3, 15];
|
|
1019
1019
|
case 12:
|
|
1020
1020
|
_h = [{}];
|
|
1021
|
-
return [4
|
|
1021
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1022
1022
|
case 13:
|
|
1023
1023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1024
|
-
return [3
|
|
1024
|
+
return [3, 15];
|
|
1025
1025
|
case 14:
|
|
1026
1026
|
parsedBody = parsedOutput.body;
|
|
1027
1027
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1031,7 +1031,7 @@ var deserializeAws_json1_1DescribeEngagementCommandError = function (output, con
|
|
|
1031
1031
|
message = response.message || response.Message || errorCode;
|
|
1032
1032
|
response.message = message;
|
|
1033
1033
|
delete response.Message;
|
|
1034
|
-
return [2
|
|
1034
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
1037
|
}); };
|
|
@@ -1041,15 +1041,15 @@ export var deserializeAws_json1_1DescribePageCommand = function (output, context
|
|
|
1041
1041
|
switch (_a.label) {
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
if (output.statusCode >= 300) {
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, deserializeAws_json1_1DescribePageCommandError(output, context)];
|
|
1045
1045
|
}
|
|
1046
|
-
return [4
|
|
1046
|
+
return [4, parseBody(output.body, context)];
|
|
1047
1047
|
case 1:
|
|
1048
1048
|
data = _a.sent();
|
|
1049
1049
|
contents = {};
|
|
1050
1050
|
contents = deserializeAws_json1_1DescribePageResult(data, context);
|
|
1051
1051
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1052
|
-
return [2
|
|
1052
|
+
return [2, Promise.resolve(response)];
|
|
1053
1053
|
}
|
|
1054
1054
|
});
|
|
1055
1055
|
}); };
|
|
@@ -1061,63 +1061,63 @@ var deserializeAws_json1_1DescribePageCommandError = function (output, context)
|
|
|
1061
1061
|
case 0:
|
|
1062
1062
|
_a = [__assign({}, output)];
|
|
1063
1063
|
_j = {};
|
|
1064
|
-
return [4
|
|
1064
|
+
return [4, parseBody(output.body, context)];
|
|
1065
1065
|
case 1:
|
|
1066
1066
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1067
1067
|
errorCode = "UnknownError";
|
|
1068
1068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1069
|
_b = errorCode;
|
|
1070
1070
|
switch (_b) {
|
|
1071
|
-
case "AccessDeniedException": return [3
|
|
1072
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1073
|
-
case "DataEncryptionException": return [3
|
|
1074
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
1075
|
-
case "InternalServerException": return [3
|
|
1076
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1077
|
-
case "ResourceNotFoundException": return [3
|
|
1078
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1079
|
-
case "ThrottlingException": return [3
|
|
1080
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1081
|
-
case "ValidationException": return [3
|
|
1082
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1071
|
+
case "AccessDeniedException": return [3, 2];
|
|
1072
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1073
|
+
case "DataEncryptionException": return [3, 4];
|
|
1074
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1075
|
+
case "InternalServerException": return [3, 6];
|
|
1076
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1077
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1078
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1079
|
+
case "ThrottlingException": return [3, 10];
|
|
1080
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1081
|
+
case "ValidationException": return [3, 12];
|
|
1082
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1083
1083
|
}
|
|
1084
|
-
return [3
|
|
1084
|
+
return [3, 14];
|
|
1085
1085
|
case 2:
|
|
1086
1086
|
_c = [{}];
|
|
1087
|
-
return [4
|
|
1087
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1088
1088
|
case 3:
|
|
1089
1089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1090
|
-
return [3
|
|
1090
|
+
return [3, 15];
|
|
1091
1091
|
case 4:
|
|
1092
1092
|
_d = [{}];
|
|
1093
|
-
return [4
|
|
1093
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1094
1094
|
case 5:
|
|
1095
1095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1096
|
-
return [3
|
|
1096
|
+
return [3, 15];
|
|
1097
1097
|
case 6:
|
|
1098
1098
|
_e = [{}];
|
|
1099
|
-
return [4
|
|
1099
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1100
1100
|
case 7:
|
|
1101
1101
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1102
|
-
return [3
|
|
1102
|
+
return [3, 15];
|
|
1103
1103
|
case 8:
|
|
1104
1104
|
_f = [{}];
|
|
1105
|
-
return [4
|
|
1105
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1106
1106
|
case 9:
|
|
1107
1107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1108
|
-
return [3
|
|
1108
|
+
return [3, 15];
|
|
1109
1109
|
case 10:
|
|
1110
1110
|
_g = [{}];
|
|
1111
|
-
return [4
|
|
1111
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1112
1112
|
case 11:
|
|
1113
1113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1114
|
-
return [3
|
|
1114
|
+
return [3, 15];
|
|
1115
1115
|
case 12:
|
|
1116
1116
|
_h = [{}];
|
|
1117
|
-
return [4
|
|
1117
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1118
1118
|
case 13:
|
|
1119
1119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1120
|
-
return [3
|
|
1120
|
+
return [3, 15];
|
|
1121
1121
|
case 14:
|
|
1122
1122
|
parsedBody = parsedOutput.body;
|
|
1123
1123
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1127,7 +1127,7 @@ var deserializeAws_json1_1DescribePageCommandError = function (output, context)
|
|
|
1127
1127
|
message = response.message || response.Message || errorCode;
|
|
1128
1128
|
response.message = message;
|
|
1129
1129
|
delete response.Message;
|
|
1130
|
-
return [2
|
|
1130
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
1133
|
}); };
|
|
@@ -1137,15 +1137,15 @@ export var deserializeAws_json1_1GetContactCommand = function (output, context)
|
|
|
1137
1137
|
switch (_a.label) {
|
|
1138
1138
|
case 0:
|
|
1139
1139
|
if (output.statusCode >= 300) {
|
|
1140
|
-
return [2
|
|
1140
|
+
return [2, deserializeAws_json1_1GetContactCommandError(output, context)];
|
|
1141
1141
|
}
|
|
1142
|
-
return [4
|
|
1142
|
+
return [4, parseBody(output.body, context)];
|
|
1143
1143
|
case 1:
|
|
1144
1144
|
data = _a.sent();
|
|
1145
1145
|
contents = {};
|
|
1146
1146
|
contents = deserializeAws_json1_1GetContactResult(data, context);
|
|
1147
1147
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1148
|
-
return [2
|
|
1148
|
+
return [2, Promise.resolve(response)];
|
|
1149
1149
|
}
|
|
1150
1150
|
});
|
|
1151
1151
|
}); };
|
|
@@ -1157,63 +1157,63 @@ var deserializeAws_json1_1GetContactCommandError = function (output, context) {
|
|
|
1157
1157
|
case 0:
|
|
1158
1158
|
_a = [__assign({}, output)];
|
|
1159
1159
|
_j = {};
|
|
1160
|
-
return [4
|
|
1160
|
+
return [4, parseBody(output.body, context)];
|
|
1161
1161
|
case 1:
|
|
1162
1162
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1163
1163
|
errorCode = "UnknownError";
|
|
1164
1164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
1165
|
_b = errorCode;
|
|
1166
1166
|
switch (_b) {
|
|
1167
|
-
case "AccessDeniedException": return [3
|
|
1168
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1169
|
-
case "DataEncryptionException": return [3
|
|
1170
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
1171
|
-
case "InternalServerException": return [3
|
|
1172
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1173
|
-
case "ResourceNotFoundException": return [3
|
|
1174
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1175
|
-
case "ThrottlingException": return [3
|
|
1176
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1177
|
-
case "ValidationException": return [3
|
|
1178
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1167
|
+
case "AccessDeniedException": return [3, 2];
|
|
1168
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1169
|
+
case "DataEncryptionException": return [3, 4];
|
|
1170
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1171
|
+
case "InternalServerException": return [3, 6];
|
|
1172
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1173
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1174
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1175
|
+
case "ThrottlingException": return [3, 10];
|
|
1176
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1177
|
+
case "ValidationException": return [3, 12];
|
|
1178
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1179
1179
|
}
|
|
1180
|
-
return [3
|
|
1180
|
+
return [3, 14];
|
|
1181
1181
|
case 2:
|
|
1182
1182
|
_c = [{}];
|
|
1183
|
-
return [4
|
|
1183
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1184
1184
|
case 3:
|
|
1185
1185
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
-
return [3
|
|
1186
|
+
return [3, 15];
|
|
1187
1187
|
case 4:
|
|
1188
1188
|
_d = [{}];
|
|
1189
|
-
return [4
|
|
1189
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1190
1190
|
case 5:
|
|
1191
1191
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1192
|
-
return [3
|
|
1192
|
+
return [3, 15];
|
|
1193
1193
|
case 6:
|
|
1194
1194
|
_e = [{}];
|
|
1195
|
-
return [4
|
|
1195
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1196
1196
|
case 7:
|
|
1197
1197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1198
|
-
return [3
|
|
1198
|
+
return [3, 15];
|
|
1199
1199
|
case 8:
|
|
1200
1200
|
_f = [{}];
|
|
1201
|
-
return [4
|
|
1201
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1202
1202
|
case 9:
|
|
1203
1203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1204
|
-
return [3
|
|
1204
|
+
return [3, 15];
|
|
1205
1205
|
case 10:
|
|
1206
1206
|
_g = [{}];
|
|
1207
|
-
return [4
|
|
1207
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1208
1208
|
case 11:
|
|
1209
1209
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1210
|
-
return [3
|
|
1210
|
+
return [3, 15];
|
|
1211
1211
|
case 12:
|
|
1212
1212
|
_h = [{}];
|
|
1213
|
-
return [4
|
|
1213
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1214
1214
|
case 13:
|
|
1215
1215
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1216
|
-
return [3
|
|
1216
|
+
return [3, 15];
|
|
1217
1217
|
case 14:
|
|
1218
1218
|
parsedBody = parsedOutput.body;
|
|
1219
1219
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1223,7 +1223,7 @@ var deserializeAws_json1_1GetContactCommandError = function (output, context) {
|
|
|
1223
1223
|
message = response.message || response.Message || errorCode;
|
|
1224
1224
|
response.message = message;
|
|
1225
1225
|
delete response.Message;
|
|
1226
|
-
return [2
|
|
1226
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1227
1227
|
}
|
|
1228
1228
|
});
|
|
1229
1229
|
}); };
|
|
@@ -1233,15 +1233,15 @@ export var deserializeAws_json1_1GetContactChannelCommand = function (output, co
|
|
|
1233
1233
|
switch (_a.label) {
|
|
1234
1234
|
case 0:
|
|
1235
1235
|
if (output.statusCode >= 300) {
|
|
1236
|
-
return [2
|
|
1236
|
+
return [2, deserializeAws_json1_1GetContactChannelCommandError(output, context)];
|
|
1237
1237
|
}
|
|
1238
|
-
return [4
|
|
1238
|
+
return [4, parseBody(output.body, context)];
|
|
1239
1239
|
case 1:
|
|
1240
1240
|
data = _a.sent();
|
|
1241
1241
|
contents = {};
|
|
1242
1242
|
contents = deserializeAws_json1_1GetContactChannelResult(data, context);
|
|
1243
1243
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1244
|
-
return [2
|
|
1244
|
+
return [2, Promise.resolve(response)];
|
|
1245
1245
|
}
|
|
1246
1246
|
});
|
|
1247
1247
|
}); };
|
|
@@ -1253,63 +1253,63 @@ var deserializeAws_json1_1GetContactChannelCommandError = function (output, cont
|
|
|
1253
1253
|
case 0:
|
|
1254
1254
|
_a = [__assign({}, output)];
|
|
1255
1255
|
_j = {};
|
|
1256
|
-
return [4
|
|
1256
|
+
return [4, parseBody(output.body, context)];
|
|
1257
1257
|
case 1:
|
|
1258
1258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1259
1259
|
errorCode = "UnknownError";
|
|
1260
1260
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
1261
|
_b = errorCode;
|
|
1262
1262
|
switch (_b) {
|
|
1263
|
-
case "AccessDeniedException": return [3
|
|
1264
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1265
|
-
case "DataEncryptionException": return [3
|
|
1266
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
1267
|
-
case "InternalServerException": return [3
|
|
1268
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1269
|
-
case "ResourceNotFoundException": return [3
|
|
1270
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1271
|
-
case "ThrottlingException": return [3
|
|
1272
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1273
|
-
case "ValidationException": return [3
|
|
1274
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1263
|
+
case "AccessDeniedException": return [3, 2];
|
|
1264
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1265
|
+
case "DataEncryptionException": return [3, 4];
|
|
1266
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1267
|
+
case "InternalServerException": return [3, 6];
|
|
1268
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1269
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1270
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1271
|
+
case "ThrottlingException": return [3, 10];
|
|
1272
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1273
|
+
case "ValidationException": return [3, 12];
|
|
1274
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1275
1275
|
}
|
|
1276
|
-
return [3
|
|
1276
|
+
return [3, 14];
|
|
1277
1277
|
case 2:
|
|
1278
1278
|
_c = [{}];
|
|
1279
|
-
return [4
|
|
1279
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1280
1280
|
case 3:
|
|
1281
1281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
-
return [3
|
|
1282
|
+
return [3, 15];
|
|
1283
1283
|
case 4:
|
|
1284
1284
|
_d = [{}];
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1286
1286
|
case 5:
|
|
1287
1287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1288
|
-
return [3
|
|
1288
|
+
return [3, 15];
|
|
1289
1289
|
case 6:
|
|
1290
1290
|
_e = [{}];
|
|
1291
|
-
return [4
|
|
1291
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1292
1292
|
case 7:
|
|
1293
1293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1294
|
-
return [3
|
|
1294
|
+
return [3, 15];
|
|
1295
1295
|
case 8:
|
|
1296
1296
|
_f = [{}];
|
|
1297
|
-
return [4
|
|
1297
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1298
1298
|
case 9:
|
|
1299
1299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1300
|
-
return [3
|
|
1300
|
+
return [3, 15];
|
|
1301
1301
|
case 10:
|
|
1302
1302
|
_g = [{}];
|
|
1303
|
-
return [4
|
|
1303
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1304
1304
|
case 11:
|
|
1305
1305
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1306
|
-
return [3
|
|
1306
|
+
return [3, 15];
|
|
1307
1307
|
case 12:
|
|
1308
1308
|
_h = [{}];
|
|
1309
|
-
return [4
|
|
1309
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1310
1310
|
case 13:
|
|
1311
1311
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1312
|
-
return [3
|
|
1312
|
+
return [3, 15];
|
|
1313
1313
|
case 14:
|
|
1314
1314
|
parsedBody = parsedOutput.body;
|
|
1315
1315
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1319,7 +1319,7 @@ var deserializeAws_json1_1GetContactChannelCommandError = function (output, cont
|
|
|
1319
1319
|
message = response.message || response.Message || errorCode;
|
|
1320
1320
|
response.message = message;
|
|
1321
1321
|
delete response.Message;
|
|
1322
|
-
return [2
|
|
1322
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1323
1323
|
}
|
|
1324
1324
|
});
|
|
1325
1325
|
}); };
|
|
@@ -1329,15 +1329,15 @@ export var deserializeAws_json1_1GetContactPolicyCommand = function (output, con
|
|
|
1329
1329
|
switch (_a.label) {
|
|
1330
1330
|
case 0:
|
|
1331
1331
|
if (output.statusCode >= 300) {
|
|
1332
|
-
return [2
|
|
1332
|
+
return [2, deserializeAws_json1_1GetContactPolicyCommandError(output, context)];
|
|
1333
1333
|
}
|
|
1334
|
-
return [4
|
|
1334
|
+
return [4, parseBody(output.body, context)];
|
|
1335
1335
|
case 1:
|
|
1336
1336
|
data = _a.sent();
|
|
1337
1337
|
contents = {};
|
|
1338
1338
|
contents = deserializeAws_json1_1GetContactPolicyResult(data, context);
|
|
1339
1339
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1340
|
-
return [2
|
|
1340
|
+
return [2, Promise.resolve(response)];
|
|
1341
1341
|
}
|
|
1342
1342
|
});
|
|
1343
1343
|
}); };
|
|
@@ -1349,55 +1349,55 @@ var deserializeAws_json1_1GetContactPolicyCommandError = function (output, conte
|
|
|
1349
1349
|
case 0:
|
|
1350
1350
|
_a = [__assign({}, output)];
|
|
1351
1351
|
_h = {};
|
|
1352
|
-
return [4
|
|
1352
|
+
return [4, parseBody(output.body, context)];
|
|
1353
1353
|
case 1:
|
|
1354
1354
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1355
1355
|
errorCode = "UnknownError";
|
|
1356
1356
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1357
|
_b = errorCode;
|
|
1358
1358
|
switch (_b) {
|
|
1359
|
-
case "AccessDeniedException": return [3
|
|
1360
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1361
|
-
case "InternalServerException": return [3
|
|
1362
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1363
|
-
case "ResourceNotFoundException": return [3
|
|
1364
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1365
|
-
case "ThrottlingException": return [3
|
|
1366
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1367
|
-
case "ValidationException": return [3
|
|
1368
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1359
|
+
case "AccessDeniedException": return [3, 2];
|
|
1360
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1361
|
+
case "InternalServerException": return [3, 4];
|
|
1362
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1363
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1364
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1365
|
+
case "ThrottlingException": return [3, 8];
|
|
1366
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1367
|
+
case "ValidationException": return [3, 10];
|
|
1368
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1369
1369
|
}
|
|
1370
|
-
return [3
|
|
1370
|
+
return [3, 12];
|
|
1371
1371
|
case 2:
|
|
1372
1372
|
_c = [{}];
|
|
1373
|
-
return [4
|
|
1373
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1374
1374
|
case 3:
|
|
1375
1375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1376
|
-
return [3
|
|
1376
|
+
return [3, 13];
|
|
1377
1377
|
case 4:
|
|
1378
1378
|
_d = [{}];
|
|
1379
|
-
return [4
|
|
1379
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1380
1380
|
case 5:
|
|
1381
1381
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1382
|
-
return [3
|
|
1382
|
+
return [3, 13];
|
|
1383
1383
|
case 6:
|
|
1384
1384
|
_e = [{}];
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1386
1386
|
case 7:
|
|
1387
1387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1388
|
-
return [3
|
|
1388
|
+
return [3, 13];
|
|
1389
1389
|
case 8:
|
|
1390
1390
|
_f = [{}];
|
|
1391
|
-
return [4
|
|
1391
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1392
1392
|
case 9:
|
|
1393
1393
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1394
|
-
return [3
|
|
1394
|
+
return [3, 13];
|
|
1395
1395
|
case 10:
|
|
1396
1396
|
_g = [{}];
|
|
1397
|
-
return [4
|
|
1397
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1398
1398
|
case 11:
|
|
1399
1399
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1400
|
-
return [3
|
|
1400
|
+
return [3, 13];
|
|
1401
1401
|
case 12:
|
|
1402
1402
|
parsedBody = parsedOutput.body;
|
|
1403
1403
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1407,7 +1407,7 @@ var deserializeAws_json1_1GetContactPolicyCommandError = function (output, conte
|
|
|
1407
1407
|
message = response.message || response.Message || errorCode;
|
|
1408
1408
|
response.message = message;
|
|
1409
1409
|
delete response.Message;
|
|
1410
|
-
return [2
|
|
1410
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1411
1411
|
}
|
|
1412
1412
|
});
|
|
1413
1413
|
}); };
|
|
@@ -1417,15 +1417,15 @@ export var deserializeAws_json1_1ListContactChannelsCommand = function (output,
|
|
|
1417
1417
|
switch (_a.label) {
|
|
1418
1418
|
case 0:
|
|
1419
1419
|
if (output.statusCode >= 300) {
|
|
1420
|
-
return [2
|
|
1420
|
+
return [2, deserializeAws_json1_1ListContactChannelsCommandError(output, context)];
|
|
1421
1421
|
}
|
|
1422
|
-
return [4
|
|
1422
|
+
return [4, parseBody(output.body, context)];
|
|
1423
1423
|
case 1:
|
|
1424
1424
|
data = _a.sent();
|
|
1425
1425
|
contents = {};
|
|
1426
1426
|
contents = deserializeAws_json1_1ListContactChannelsResult(data, context);
|
|
1427
1427
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1428
|
-
return [2
|
|
1428
|
+
return [2, Promise.resolve(response)];
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
1431
1431
|
}); };
|
|
@@ -1437,63 +1437,63 @@ var deserializeAws_json1_1ListContactChannelsCommandError = function (output, co
|
|
|
1437
1437
|
case 0:
|
|
1438
1438
|
_a = [__assign({}, output)];
|
|
1439
1439
|
_j = {};
|
|
1440
|
-
return [4
|
|
1440
|
+
return [4, parseBody(output.body, context)];
|
|
1441
1441
|
case 1:
|
|
1442
1442
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1443
1443
|
errorCode = "UnknownError";
|
|
1444
1444
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1445
|
_b = errorCode;
|
|
1446
1446
|
switch (_b) {
|
|
1447
|
-
case "AccessDeniedException": return [3
|
|
1448
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1449
|
-
case "DataEncryptionException": return [3
|
|
1450
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
1451
|
-
case "InternalServerException": return [3
|
|
1452
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1453
|
-
case "ResourceNotFoundException": return [3
|
|
1454
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1455
|
-
case "ThrottlingException": return [3
|
|
1456
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1457
|
-
case "ValidationException": return [3
|
|
1458
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1447
|
+
case "AccessDeniedException": return [3, 2];
|
|
1448
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1449
|
+
case "DataEncryptionException": return [3, 4];
|
|
1450
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1451
|
+
case "InternalServerException": return [3, 6];
|
|
1452
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1453
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1454
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1455
|
+
case "ThrottlingException": return [3, 10];
|
|
1456
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1457
|
+
case "ValidationException": return [3, 12];
|
|
1458
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1459
1459
|
}
|
|
1460
|
-
return [3
|
|
1460
|
+
return [3, 14];
|
|
1461
1461
|
case 2:
|
|
1462
1462
|
_c = [{}];
|
|
1463
|
-
return [4
|
|
1463
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1464
1464
|
case 3:
|
|
1465
1465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1466
|
-
return [3
|
|
1466
|
+
return [3, 15];
|
|
1467
1467
|
case 4:
|
|
1468
1468
|
_d = [{}];
|
|
1469
|
-
return [4
|
|
1469
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1470
1470
|
case 5:
|
|
1471
1471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1472
|
-
return [3
|
|
1472
|
+
return [3, 15];
|
|
1473
1473
|
case 6:
|
|
1474
1474
|
_e = [{}];
|
|
1475
|
-
return [4
|
|
1475
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1476
1476
|
case 7:
|
|
1477
1477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1478
|
-
return [3
|
|
1478
|
+
return [3, 15];
|
|
1479
1479
|
case 8:
|
|
1480
1480
|
_f = [{}];
|
|
1481
|
-
return [4
|
|
1481
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1482
1482
|
case 9:
|
|
1483
1483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1484
|
-
return [3
|
|
1484
|
+
return [3, 15];
|
|
1485
1485
|
case 10:
|
|
1486
1486
|
_g = [{}];
|
|
1487
|
-
return [4
|
|
1487
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1488
1488
|
case 11:
|
|
1489
1489
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1490
|
-
return [3
|
|
1490
|
+
return [3, 15];
|
|
1491
1491
|
case 12:
|
|
1492
1492
|
_h = [{}];
|
|
1493
|
-
return [4
|
|
1493
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1494
1494
|
case 13:
|
|
1495
1495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1496
|
-
return [3
|
|
1496
|
+
return [3, 15];
|
|
1497
1497
|
case 14:
|
|
1498
1498
|
parsedBody = parsedOutput.body;
|
|
1499
1499
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1503,7 +1503,7 @@ var deserializeAws_json1_1ListContactChannelsCommandError = function (output, co
|
|
|
1503
1503
|
message = response.message || response.Message || errorCode;
|
|
1504
1504
|
response.message = message;
|
|
1505
1505
|
delete response.Message;
|
|
1506
|
-
return [2
|
|
1506
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
1509
|
}); };
|
|
@@ -1513,15 +1513,15 @@ export var deserializeAws_json1_1ListContactsCommand = function (output, context
|
|
|
1513
1513
|
switch (_a.label) {
|
|
1514
1514
|
case 0:
|
|
1515
1515
|
if (output.statusCode >= 300) {
|
|
1516
|
-
return [2
|
|
1516
|
+
return [2, deserializeAws_json1_1ListContactsCommandError(output, context)];
|
|
1517
1517
|
}
|
|
1518
|
-
return [4
|
|
1518
|
+
return [4, parseBody(output.body, context)];
|
|
1519
1519
|
case 1:
|
|
1520
1520
|
data = _a.sent();
|
|
1521
1521
|
contents = {};
|
|
1522
1522
|
contents = deserializeAws_json1_1ListContactsResult(data, context);
|
|
1523
1523
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1524
|
-
return [2
|
|
1524
|
+
return [2, Promise.resolve(response)];
|
|
1525
1525
|
}
|
|
1526
1526
|
});
|
|
1527
1527
|
}); };
|
|
@@ -1533,47 +1533,47 @@ var deserializeAws_json1_1ListContactsCommandError = function (output, context)
|
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
_a = [__assign({}, output)];
|
|
1535
1535
|
_g = {};
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, parseBody(output.body, context)];
|
|
1537
1537
|
case 1:
|
|
1538
1538
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1539
1539
|
errorCode = "UnknownError";
|
|
1540
1540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1541
|
_b = errorCode;
|
|
1542
1542
|
switch (_b) {
|
|
1543
|
-
case "AccessDeniedException": return [3
|
|
1544
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1545
|
-
case "InternalServerException": return [3
|
|
1546
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1547
|
-
case "ThrottlingException": return [3
|
|
1548
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1549
|
-
case "ValidationException": return [3
|
|
1550
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1543
|
+
case "AccessDeniedException": return [3, 2];
|
|
1544
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1545
|
+
case "InternalServerException": return [3, 4];
|
|
1546
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1547
|
+
case "ThrottlingException": return [3, 6];
|
|
1548
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 6];
|
|
1549
|
+
case "ValidationException": return [3, 8];
|
|
1550
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 8];
|
|
1551
1551
|
}
|
|
1552
|
-
return [3
|
|
1552
|
+
return [3, 10];
|
|
1553
1553
|
case 2:
|
|
1554
1554
|
_c = [{}];
|
|
1555
|
-
return [4
|
|
1555
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1556
1556
|
case 3:
|
|
1557
1557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1558
|
-
return [3
|
|
1558
|
+
return [3, 11];
|
|
1559
1559
|
case 4:
|
|
1560
1560
|
_d = [{}];
|
|
1561
|
-
return [4
|
|
1561
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1562
1562
|
case 5:
|
|
1563
1563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1564
|
-
return [3
|
|
1564
|
+
return [3, 11];
|
|
1565
1565
|
case 6:
|
|
1566
1566
|
_e = [{}];
|
|
1567
|
-
return [4
|
|
1567
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1568
1568
|
case 7:
|
|
1569
1569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1570
|
-
return [3
|
|
1570
|
+
return [3, 11];
|
|
1571
1571
|
case 8:
|
|
1572
1572
|
_f = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 9:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 11];
|
|
1577
1577
|
case 10:
|
|
1578
1578
|
parsedBody = parsedOutput.body;
|
|
1579
1579
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1583,7 +1583,7 @@ var deserializeAws_json1_1ListContactsCommandError = function (output, context)
|
|
|
1583
1583
|
message = response.message || response.Message || errorCode;
|
|
1584
1584
|
response.message = message;
|
|
1585
1585
|
delete response.Message;
|
|
1586
|
-
return [2
|
|
1586
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1587
1587
|
}
|
|
1588
1588
|
});
|
|
1589
1589
|
}); };
|
|
@@ -1593,15 +1593,15 @@ export var deserializeAws_json1_1ListEngagementsCommand = function (output, cont
|
|
|
1593
1593
|
switch (_a.label) {
|
|
1594
1594
|
case 0:
|
|
1595
1595
|
if (output.statusCode >= 300) {
|
|
1596
|
-
return [2
|
|
1596
|
+
return [2, deserializeAws_json1_1ListEngagementsCommandError(output, context)];
|
|
1597
1597
|
}
|
|
1598
|
-
return [4
|
|
1598
|
+
return [4, parseBody(output.body, context)];
|
|
1599
1599
|
case 1:
|
|
1600
1600
|
data = _a.sent();
|
|
1601
1601
|
contents = {};
|
|
1602
1602
|
contents = deserializeAws_json1_1ListEngagementsResult(data, context);
|
|
1603
1603
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1604
|
-
return [2
|
|
1604
|
+
return [2, Promise.resolve(response)];
|
|
1605
1605
|
}
|
|
1606
1606
|
});
|
|
1607
1607
|
}); };
|
|
@@ -1613,47 +1613,47 @@ var deserializeAws_json1_1ListEngagementsCommandError = function (output, contex
|
|
|
1613
1613
|
case 0:
|
|
1614
1614
|
_a = [__assign({}, output)];
|
|
1615
1615
|
_g = {};
|
|
1616
|
-
return [4
|
|
1616
|
+
return [4, parseBody(output.body, context)];
|
|
1617
1617
|
case 1:
|
|
1618
1618
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1619
1619
|
errorCode = "UnknownError";
|
|
1620
1620
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1621
|
_b = errorCode;
|
|
1622
1622
|
switch (_b) {
|
|
1623
|
-
case "AccessDeniedException": return [3
|
|
1624
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1625
|
-
case "InternalServerException": return [3
|
|
1626
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1627
|
-
case "ThrottlingException": return [3
|
|
1628
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1629
|
-
case "ValidationException": return [3
|
|
1630
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1623
|
+
case "AccessDeniedException": return [3, 2];
|
|
1624
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1625
|
+
case "InternalServerException": return [3, 4];
|
|
1626
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1627
|
+
case "ThrottlingException": return [3, 6];
|
|
1628
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 6];
|
|
1629
|
+
case "ValidationException": return [3, 8];
|
|
1630
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 8];
|
|
1631
1631
|
}
|
|
1632
|
-
return [3
|
|
1632
|
+
return [3, 10];
|
|
1633
1633
|
case 2:
|
|
1634
1634
|
_c = [{}];
|
|
1635
|
-
return [4
|
|
1635
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1636
1636
|
case 3:
|
|
1637
1637
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1638
|
-
return [3
|
|
1638
|
+
return [3, 11];
|
|
1639
1639
|
case 4:
|
|
1640
1640
|
_d = [{}];
|
|
1641
|
-
return [4
|
|
1641
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1642
1642
|
case 5:
|
|
1643
1643
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1644
|
-
return [3
|
|
1644
|
+
return [3, 11];
|
|
1645
1645
|
case 6:
|
|
1646
1646
|
_e = [{}];
|
|
1647
|
-
return [4
|
|
1647
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1648
1648
|
case 7:
|
|
1649
1649
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1650
|
-
return [3
|
|
1650
|
+
return [3, 11];
|
|
1651
1651
|
case 8:
|
|
1652
1652
|
_f = [{}];
|
|
1653
|
-
return [4
|
|
1653
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1654
1654
|
case 9:
|
|
1655
1655
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1656
|
-
return [3
|
|
1656
|
+
return [3, 11];
|
|
1657
1657
|
case 10:
|
|
1658
1658
|
parsedBody = parsedOutput.body;
|
|
1659
1659
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1663,7 +1663,7 @@ var deserializeAws_json1_1ListEngagementsCommandError = function (output, contex
|
|
|
1663
1663
|
message = response.message || response.Message || errorCode;
|
|
1664
1664
|
response.message = message;
|
|
1665
1665
|
delete response.Message;
|
|
1666
|
-
return [2
|
|
1666
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1667
1667
|
}
|
|
1668
1668
|
});
|
|
1669
1669
|
}); };
|
|
@@ -1673,15 +1673,15 @@ export var deserializeAws_json1_1ListPageReceiptsCommand = function (output, con
|
|
|
1673
1673
|
switch (_a.label) {
|
|
1674
1674
|
case 0:
|
|
1675
1675
|
if (output.statusCode >= 300) {
|
|
1676
|
-
return [2
|
|
1676
|
+
return [2, deserializeAws_json1_1ListPageReceiptsCommandError(output, context)];
|
|
1677
1677
|
}
|
|
1678
|
-
return [4
|
|
1678
|
+
return [4, parseBody(output.body, context)];
|
|
1679
1679
|
case 1:
|
|
1680
1680
|
data = _a.sent();
|
|
1681
1681
|
contents = {};
|
|
1682
1682
|
contents = deserializeAws_json1_1ListPageReceiptsResult(data, context);
|
|
1683
1683
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1684
|
-
return [2
|
|
1684
|
+
return [2, Promise.resolve(response)];
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
}); };
|
|
@@ -1693,55 +1693,55 @@ var deserializeAws_json1_1ListPageReceiptsCommandError = function (output, conte
|
|
|
1693
1693
|
case 0:
|
|
1694
1694
|
_a = [__assign({}, output)];
|
|
1695
1695
|
_h = {};
|
|
1696
|
-
return [4
|
|
1696
|
+
return [4, parseBody(output.body, context)];
|
|
1697
1697
|
case 1:
|
|
1698
1698
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1699
1699
|
errorCode = "UnknownError";
|
|
1700
1700
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1701
|
_b = errorCode;
|
|
1702
1702
|
switch (_b) {
|
|
1703
|
-
case "AccessDeniedException": return [3
|
|
1704
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1705
|
-
case "InternalServerException": return [3
|
|
1706
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1707
|
-
case "ResourceNotFoundException": return [3
|
|
1708
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1709
|
-
case "ThrottlingException": return [3
|
|
1710
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1711
|
-
case "ValidationException": return [3
|
|
1712
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1703
|
+
case "AccessDeniedException": return [3, 2];
|
|
1704
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1705
|
+
case "InternalServerException": return [3, 4];
|
|
1706
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1707
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1708
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1709
|
+
case "ThrottlingException": return [3, 8];
|
|
1710
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1711
|
+
case "ValidationException": return [3, 10];
|
|
1712
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1713
1713
|
}
|
|
1714
|
-
return [3
|
|
1714
|
+
return [3, 12];
|
|
1715
1715
|
case 2:
|
|
1716
1716
|
_c = [{}];
|
|
1717
|
-
return [4
|
|
1717
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1718
1718
|
case 3:
|
|
1719
1719
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1720
|
-
return [3
|
|
1720
|
+
return [3, 13];
|
|
1721
1721
|
case 4:
|
|
1722
1722
|
_d = [{}];
|
|
1723
|
-
return [4
|
|
1723
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1724
1724
|
case 5:
|
|
1725
1725
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1726
|
-
return [3
|
|
1726
|
+
return [3, 13];
|
|
1727
1727
|
case 6:
|
|
1728
1728
|
_e = [{}];
|
|
1729
|
-
return [4
|
|
1729
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1730
1730
|
case 7:
|
|
1731
1731
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1732
|
-
return [3
|
|
1732
|
+
return [3, 13];
|
|
1733
1733
|
case 8:
|
|
1734
1734
|
_f = [{}];
|
|
1735
|
-
return [4
|
|
1735
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1736
1736
|
case 9:
|
|
1737
1737
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1738
|
-
return [3
|
|
1738
|
+
return [3, 13];
|
|
1739
1739
|
case 10:
|
|
1740
1740
|
_g = [{}];
|
|
1741
|
-
return [4
|
|
1741
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1742
1742
|
case 11:
|
|
1743
1743
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1744
|
-
return [3
|
|
1744
|
+
return [3, 13];
|
|
1745
1745
|
case 12:
|
|
1746
1746
|
parsedBody = parsedOutput.body;
|
|
1747
1747
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1751,7 +1751,7 @@ var deserializeAws_json1_1ListPageReceiptsCommandError = function (output, conte
|
|
|
1751
1751
|
message = response.message || response.Message || errorCode;
|
|
1752
1752
|
response.message = message;
|
|
1753
1753
|
delete response.Message;
|
|
1754
|
-
return [2
|
|
1754
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
1757
|
}); };
|
|
@@ -1761,15 +1761,15 @@ export var deserializeAws_json1_1ListPagesByContactCommand = function (output, c
|
|
|
1761
1761
|
switch (_a.label) {
|
|
1762
1762
|
case 0:
|
|
1763
1763
|
if (output.statusCode >= 300) {
|
|
1764
|
-
return [2
|
|
1764
|
+
return [2, deserializeAws_json1_1ListPagesByContactCommandError(output, context)];
|
|
1765
1765
|
}
|
|
1766
|
-
return [4
|
|
1766
|
+
return [4, parseBody(output.body, context)];
|
|
1767
1767
|
case 1:
|
|
1768
1768
|
data = _a.sent();
|
|
1769
1769
|
contents = {};
|
|
1770
1770
|
contents = deserializeAws_json1_1ListPagesByContactResult(data, context);
|
|
1771
1771
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1772
|
-
return [2
|
|
1772
|
+
return [2, Promise.resolve(response)];
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
1775
|
}); };
|
|
@@ -1781,55 +1781,55 @@ var deserializeAws_json1_1ListPagesByContactCommandError = function (output, con
|
|
|
1781
1781
|
case 0:
|
|
1782
1782
|
_a = [__assign({}, output)];
|
|
1783
1783
|
_h = {};
|
|
1784
|
-
return [4
|
|
1784
|
+
return [4, parseBody(output.body, context)];
|
|
1785
1785
|
case 1:
|
|
1786
1786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1787
1787
|
errorCode = "UnknownError";
|
|
1788
1788
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
1789
|
_b = errorCode;
|
|
1790
1790
|
switch (_b) {
|
|
1791
|
-
case "AccessDeniedException": return [3
|
|
1792
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1793
|
-
case "InternalServerException": return [3
|
|
1794
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1795
|
-
case "ResourceNotFoundException": return [3
|
|
1796
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1797
|
-
case "ThrottlingException": return [3
|
|
1798
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1799
|
-
case "ValidationException": return [3
|
|
1800
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1791
|
+
case "AccessDeniedException": return [3, 2];
|
|
1792
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1793
|
+
case "InternalServerException": return [3, 4];
|
|
1794
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1795
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1796
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1797
|
+
case "ThrottlingException": return [3, 8];
|
|
1798
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1799
|
+
case "ValidationException": return [3, 10];
|
|
1800
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1801
1801
|
}
|
|
1802
|
-
return [3
|
|
1802
|
+
return [3, 12];
|
|
1803
1803
|
case 2:
|
|
1804
1804
|
_c = [{}];
|
|
1805
|
-
return [4
|
|
1805
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1806
1806
|
case 3:
|
|
1807
1807
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1808
|
-
return [3
|
|
1808
|
+
return [3, 13];
|
|
1809
1809
|
case 4:
|
|
1810
1810
|
_d = [{}];
|
|
1811
|
-
return [4
|
|
1811
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1812
1812
|
case 5:
|
|
1813
1813
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1814
|
-
return [3
|
|
1814
|
+
return [3, 13];
|
|
1815
1815
|
case 6:
|
|
1816
1816
|
_e = [{}];
|
|
1817
|
-
return [4
|
|
1817
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1818
1818
|
case 7:
|
|
1819
1819
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1820
|
-
return [3
|
|
1820
|
+
return [3, 13];
|
|
1821
1821
|
case 8:
|
|
1822
1822
|
_f = [{}];
|
|
1823
|
-
return [4
|
|
1823
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1824
1824
|
case 9:
|
|
1825
1825
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1826
|
-
return [3
|
|
1826
|
+
return [3, 13];
|
|
1827
1827
|
case 10:
|
|
1828
1828
|
_g = [{}];
|
|
1829
|
-
return [4
|
|
1829
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1830
1830
|
case 11:
|
|
1831
1831
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1832
|
-
return [3
|
|
1832
|
+
return [3, 13];
|
|
1833
1833
|
case 12:
|
|
1834
1834
|
parsedBody = parsedOutput.body;
|
|
1835
1835
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1839,7 +1839,7 @@ var deserializeAws_json1_1ListPagesByContactCommandError = function (output, con
|
|
|
1839
1839
|
message = response.message || response.Message || errorCode;
|
|
1840
1840
|
response.message = message;
|
|
1841
1841
|
delete response.Message;
|
|
1842
|
-
return [2
|
|
1842
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1843
1843
|
}
|
|
1844
1844
|
});
|
|
1845
1845
|
}); };
|
|
@@ -1849,15 +1849,15 @@ export var deserializeAws_json1_1ListPagesByEngagementCommand = function (output
|
|
|
1849
1849
|
switch (_a.label) {
|
|
1850
1850
|
case 0:
|
|
1851
1851
|
if (output.statusCode >= 300) {
|
|
1852
|
-
return [2
|
|
1852
|
+
return [2, deserializeAws_json1_1ListPagesByEngagementCommandError(output, context)];
|
|
1853
1853
|
}
|
|
1854
|
-
return [4
|
|
1854
|
+
return [4, parseBody(output.body, context)];
|
|
1855
1855
|
case 1:
|
|
1856
1856
|
data = _a.sent();
|
|
1857
1857
|
contents = {};
|
|
1858
1858
|
contents = deserializeAws_json1_1ListPagesByEngagementResult(data, context);
|
|
1859
1859
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1860
|
-
return [2
|
|
1860
|
+
return [2, Promise.resolve(response)];
|
|
1861
1861
|
}
|
|
1862
1862
|
});
|
|
1863
1863
|
}); };
|
|
@@ -1869,55 +1869,55 @@ var deserializeAws_json1_1ListPagesByEngagementCommandError = function (output,
|
|
|
1869
1869
|
case 0:
|
|
1870
1870
|
_a = [__assign({}, output)];
|
|
1871
1871
|
_h = {};
|
|
1872
|
-
return [4
|
|
1872
|
+
return [4, parseBody(output.body, context)];
|
|
1873
1873
|
case 1:
|
|
1874
1874
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1875
1875
|
errorCode = "UnknownError";
|
|
1876
1876
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1877
|
_b = errorCode;
|
|
1878
1878
|
switch (_b) {
|
|
1879
|
-
case "AccessDeniedException": return [3
|
|
1880
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1881
|
-
case "InternalServerException": return [3
|
|
1882
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1883
|
-
case "ResourceNotFoundException": return [3
|
|
1884
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1885
|
-
case "ThrottlingException": return [3
|
|
1886
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1887
|
-
case "ValidationException": return [3
|
|
1888
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1879
|
+
case "AccessDeniedException": return [3, 2];
|
|
1880
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1881
|
+
case "InternalServerException": return [3, 4];
|
|
1882
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1883
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1884
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1885
|
+
case "ThrottlingException": return [3, 8];
|
|
1886
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1887
|
+
case "ValidationException": return [3, 10];
|
|
1888
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1889
1889
|
}
|
|
1890
|
-
return [3
|
|
1890
|
+
return [3, 12];
|
|
1891
1891
|
case 2:
|
|
1892
1892
|
_c = [{}];
|
|
1893
|
-
return [4
|
|
1893
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1894
1894
|
case 3:
|
|
1895
1895
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1896
|
-
return [3
|
|
1896
|
+
return [3, 13];
|
|
1897
1897
|
case 4:
|
|
1898
1898
|
_d = [{}];
|
|
1899
|
-
return [4
|
|
1899
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1900
1900
|
case 5:
|
|
1901
1901
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1902
|
-
return [3
|
|
1902
|
+
return [3, 13];
|
|
1903
1903
|
case 6:
|
|
1904
1904
|
_e = [{}];
|
|
1905
|
-
return [4
|
|
1905
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1906
1906
|
case 7:
|
|
1907
1907
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1908
|
-
return [3
|
|
1908
|
+
return [3, 13];
|
|
1909
1909
|
case 8:
|
|
1910
1910
|
_f = [{}];
|
|
1911
|
-
return [4
|
|
1911
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1912
1912
|
case 9:
|
|
1913
1913
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1914
|
-
return [3
|
|
1914
|
+
return [3, 13];
|
|
1915
1915
|
case 10:
|
|
1916
1916
|
_g = [{}];
|
|
1917
|
-
return [4
|
|
1917
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1918
1918
|
case 11:
|
|
1919
1919
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1920
|
-
return [3
|
|
1920
|
+
return [3, 13];
|
|
1921
1921
|
case 12:
|
|
1922
1922
|
parsedBody = parsedOutput.body;
|
|
1923
1923
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1927,7 +1927,7 @@ var deserializeAws_json1_1ListPagesByEngagementCommandError = function (output,
|
|
|
1927
1927
|
message = response.message || response.Message || errorCode;
|
|
1928
1928
|
response.message = message;
|
|
1929
1929
|
delete response.Message;
|
|
1930
|
-
return [2
|
|
1930
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1931
1931
|
}
|
|
1932
1932
|
});
|
|
1933
1933
|
}); };
|
|
@@ -1937,15 +1937,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1937
1937
|
switch (_a.label) {
|
|
1938
1938
|
case 0:
|
|
1939
1939
|
if (output.statusCode >= 300) {
|
|
1940
|
-
return [2
|
|
1940
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1941
1941
|
}
|
|
1942
|
-
return [4
|
|
1942
|
+
return [4, parseBody(output.body, context)];
|
|
1943
1943
|
case 1:
|
|
1944
1944
|
data = _a.sent();
|
|
1945
1945
|
contents = {};
|
|
1946
1946
|
contents = deserializeAws_json1_1ListTagsForResourceResult(data, context);
|
|
1947
1947
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1948
|
-
return [2
|
|
1948
|
+
return [2, Promise.resolve(response)];
|
|
1949
1949
|
}
|
|
1950
1950
|
});
|
|
1951
1951
|
}); };
|
|
@@ -1957,55 +1957,55 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1957
1957
|
case 0:
|
|
1958
1958
|
_a = [__assign({}, output)];
|
|
1959
1959
|
_h = {};
|
|
1960
|
-
return [4
|
|
1960
|
+
return [4, parseBody(output.body, context)];
|
|
1961
1961
|
case 1:
|
|
1962
1962
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1963
1963
|
errorCode = "UnknownError";
|
|
1964
1964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
1965
|
_b = errorCode;
|
|
1966
1966
|
switch (_b) {
|
|
1967
|
-
case "AccessDeniedException": return [3
|
|
1968
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
1969
|
-
case "InternalServerException": return [3
|
|
1970
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
1971
|
-
case "ResourceNotFoundException": return [3
|
|
1972
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
1973
|
-
case "ThrottlingException": return [3
|
|
1974
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
1975
|
-
case "ValidationException": return [3
|
|
1976
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
1967
|
+
case "AccessDeniedException": return [3, 2];
|
|
1968
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1969
|
+
case "InternalServerException": return [3, 4];
|
|
1970
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1971
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1972
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1973
|
+
case "ThrottlingException": return [3, 8];
|
|
1974
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1975
|
+
case "ValidationException": return [3, 10];
|
|
1976
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1977
1977
|
}
|
|
1978
|
-
return [3
|
|
1978
|
+
return [3, 12];
|
|
1979
1979
|
case 2:
|
|
1980
1980
|
_c = [{}];
|
|
1981
|
-
return [4
|
|
1981
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1982
1982
|
case 3:
|
|
1983
1983
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1984
|
-
return [3
|
|
1984
|
+
return [3, 13];
|
|
1985
1985
|
case 4:
|
|
1986
1986
|
_d = [{}];
|
|
1987
|
-
return [4
|
|
1987
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1988
1988
|
case 5:
|
|
1989
1989
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1990
|
-
return [3
|
|
1990
|
+
return [3, 13];
|
|
1991
1991
|
case 6:
|
|
1992
1992
|
_e = [{}];
|
|
1993
|
-
return [4
|
|
1993
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1994
1994
|
case 7:
|
|
1995
1995
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1996
|
-
return [3
|
|
1996
|
+
return [3, 13];
|
|
1997
1997
|
case 8:
|
|
1998
1998
|
_f = [{}];
|
|
1999
|
-
return [4
|
|
1999
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2000
2000
|
case 9:
|
|
2001
2001
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2002
|
-
return [3
|
|
2002
|
+
return [3, 13];
|
|
2003
2003
|
case 10:
|
|
2004
2004
|
_g = [{}];
|
|
2005
|
-
return [4
|
|
2005
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2006
2006
|
case 11:
|
|
2007
2007
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2008
|
-
return [3
|
|
2008
|
+
return [3, 13];
|
|
2009
2009
|
case 12:
|
|
2010
2010
|
parsedBody = parsedOutput.body;
|
|
2011
2011
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2015,7 +2015,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2015
2015
|
message = response.message || response.Message || errorCode;
|
|
2016
2016
|
response.message = message;
|
|
2017
2017
|
delete response.Message;
|
|
2018
|
-
return [2
|
|
2018
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2019
2019
|
}
|
|
2020
2020
|
});
|
|
2021
2021
|
}); };
|
|
@@ -2025,15 +2025,15 @@ export var deserializeAws_json1_1PutContactPolicyCommand = function (output, con
|
|
|
2025
2025
|
switch (_a.label) {
|
|
2026
2026
|
case 0:
|
|
2027
2027
|
if (output.statusCode >= 300) {
|
|
2028
|
-
return [2
|
|
2028
|
+
return [2, deserializeAws_json1_1PutContactPolicyCommandError(output, context)];
|
|
2029
2029
|
}
|
|
2030
|
-
return [4
|
|
2030
|
+
return [4, parseBody(output.body, context)];
|
|
2031
2031
|
case 1:
|
|
2032
2032
|
data = _a.sent();
|
|
2033
2033
|
contents = {};
|
|
2034
2034
|
contents = deserializeAws_json1_1PutContactPolicyResult(data, context);
|
|
2035
2035
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2036
|
-
return [2
|
|
2036
|
+
return [2, Promise.resolve(response)];
|
|
2037
2037
|
}
|
|
2038
2038
|
});
|
|
2039
2039
|
}); };
|
|
@@ -2045,63 +2045,63 @@ var deserializeAws_json1_1PutContactPolicyCommandError = function (output, conte
|
|
|
2045
2045
|
case 0:
|
|
2046
2046
|
_a = [__assign({}, output)];
|
|
2047
2047
|
_j = {};
|
|
2048
|
-
return [4
|
|
2048
|
+
return [4, parseBody(output.body, context)];
|
|
2049
2049
|
case 1:
|
|
2050
2050
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2051
2051
|
errorCode = "UnknownError";
|
|
2052
2052
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
2053
|
_b = errorCode;
|
|
2054
2054
|
switch (_b) {
|
|
2055
|
-
case "AccessDeniedException": return [3
|
|
2056
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2057
|
-
case "ConflictException": return [3
|
|
2058
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3
|
|
2059
|
-
case "InternalServerException": return [3
|
|
2060
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2061
|
-
case "ResourceNotFoundException": return [3
|
|
2062
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2063
|
-
case "ThrottlingException": return [3
|
|
2064
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2065
|
-
case "ValidationException": return [3
|
|
2066
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2055
|
+
case "AccessDeniedException": return [3, 2];
|
|
2056
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2057
|
+
case "ConflictException": return [3, 4];
|
|
2058
|
+
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
2059
|
+
case "InternalServerException": return [3, 6];
|
|
2060
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
2061
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2062
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
2063
|
+
case "ThrottlingException": return [3, 10];
|
|
2064
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
2065
|
+
case "ValidationException": return [3, 12];
|
|
2066
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
2067
2067
|
}
|
|
2068
|
-
return [3
|
|
2068
|
+
return [3, 14];
|
|
2069
2069
|
case 2:
|
|
2070
2070
|
_c = [{}];
|
|
2071
|
-
return [4
|
|
2071
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2072
2072
|
case 3:
|
|
2073
2073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2074
|
-
return [3
|
|
2074
|
+
return [3, 15];
|
|
2075
2075
|
case 4:
|
|
2076
2076
|
_d = [{}];
|
|
2077
|
-
return [4
|
|
2077
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2078
2078
|
case 5:
|
|
2079
2079
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2080
|
-
return [3
|
|
2080
|
+
return [3, 15];
|
|
2081
2081
|
case 6:
|
|
2082
2082
|
_e = [{}];
|
|
2083
|
-
return [4
|
|
2083
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2084
2084
|
case 7:
|
|
2085
2085
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2086
|
-
return [3
|
|
2086
|
+
return [3, 15];
|
|
2087
2087
|
case 8:
|
|
2088
2088
|
_f = [{}];
|
|
2089
|
-
return [4
|
|
2089
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2090
2090
|
case 9:
|
|
2091
2091
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2092
|
-
return [3
|
|
2092
|
+
return [3, 15];
|
|
2093
2093
|
case 10:
|
|
2094
2094
|
_g = [{}];
|
|
2095
|
-
return [4
|
|
2095
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2096
2096
|
case 11:
|
|
2097
2097
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2098
|
-
return [3
|
|
2098
|
+
return [3, 15];
|
|
2099
2099
|
case 12:
|
|
2100
2100
|
_h = [{}];
|
|
2101
|
-
return [4
|
|
2101
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2102
2102
|
case 13:
|
|
2103
2103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2104
|
-
return [3
|
|
2104
|
+
return [3, 15];
|
|
2105
2105
|
case 14:
|
|
2106
2106
|
parsedBody = parsedOutput.body;
|
|
2107
2107
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2111,7 +2111,7 @@ var deserializeAws_json1_1PutContactPolicyCommandError = function (output, conte
|
|
|
2111
2111
|
message = response.message || response.Message || errorCode;
|
|
2112
2112
|
response.message = message;
|
|
2113
2113
|
delete response.Message;
|
|
2114
|
-
return [2
|
|
2114
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2115
2115
|
}
|
|
2116
2116
|
});
|
|
2117
2117
|
}); };
|
|
@@ -2121,15 +2121,15 @@ export var deserializeAws_json1_1SendActivationCodeCommand = function (output, c
|
|
|
2121
2121
|
switch (_a.label) {
|
|
2122
2122
|
case 0:
|
|
2123
2123
|
if (output.statusCode >= 300) {
|
|
2124
|
-
return [2
|
|
2124
|
+
return [2, deserializeAws_json1_1SendActivationCodeCommandError(output, context)];
|
|
2125
2125
|
}
|
|
2126
|
-
return [4
|
|
2126
|
+
return [4, parseBody(output.body, context)];
|
|
2127
2127
|
case 1:
|
|
2128
2128
|
data = _a.sent();
|
|
2129
2129
|
contents = {};
|
|
2130
2130
|
contents = deserializeAws_json1_1SendActivationCodeResult(data, context);
|
|
2131
2131
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2132
|
-
return [2
|
|
2132
|
+
return [2, Promise.resolve(response)];
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
2135
|
}); };
|
|
@@ -2141,71 +2141,71 @@ var deserializeAws_json1_1SendActivationCodeCommandError = function (output, con
|
|
|
2141
2141
|
case 0:
|
|
2142
2142
|
_a = [__assign({}, output)];
|
|
2143
2143
|
_k = {};
|
|
2144
|
-
return [4
|
|
2144
|
+
return [4, parseBody(output.body, context)];
|
|
2145
2145
|
case 1:
|
|
2146
2146
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2147
2147
|
errorCode = "UnknownError";
|
|
2148
2148
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
2149
|
_b = errorCode;
|
|
2150
2150
|
switch (_b) {
|
|
2151
|
-
case "AccessDeniedException": return [3
|
|
2152
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2153
|
-
case "DataEncryptionException": return [3
|
|
2154
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
2155
|
-
case "InternalServerException": return [3
|
|
2156
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2157
|
-
case "ResourceNotFoundException": return [3
|
|
2158
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2159
|
-
case "ServiceQuotaExceededException": return [3
|
|
2160
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3
|
|
2161
|
-
case "ThrottlingException": return [3
|
|
2162
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2163
|
-
case "ValidationException": return [3
|
|
2164
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2151
|
+
case "AccessDeniedException": return [3, 2];
|
|
2152
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2153
|
+
case "DataEncryptionException": return [3, 4];
|
|
2154
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
2155
|
+
case "InternalServerException": return [3, 6];
|
|
2156
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
2157
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2158
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
2159
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
2160
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 10];
|
|
2161
|
+
case "ThrottlingException": return [3, 12];
|
|
2162
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
2163
|
+
case "ValidationException": return [3, 14];
|
|
2164
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
2165
2165
|
}
|
|
2166
|
-
return [3
|
|
2166
|
+
return [3, 16];
|
|
2167
2167
|
case 2:
|
|
2168
2168
|
_c = [{}];
|
|
2169
|
-
return [4
|
|
2169
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2170
2170
|
case 3:
|
|
2171
2171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2172
|
-
return [3
|
|
2172
|
+
return [3, 17];
|
|
2173
2173
|
case 4:
|
|
2174
2174
|
_d = [{}];
|
|
2175
|
-
return [4
|
|
2175
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2176
2176
|
case 5:
|
|
2177
2177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2178
|
-
return [3
|
|
2178
|
+
return [3, 17];
|
|
2179
2179
|
case 6:
|
|
2180
2180
|
_e = [{}];
|
|
2181
|
-
return [4
|
|
2181
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2182
2182
|
case 7:
|
|
2183
2183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2184
|
-
return [3
|
|
2184
|
+
return [3, 17];
|
|
2185
2185
|
case 8:
|
|
2186
2186
|
_f = [{}];
|
|
2187
|
-
return [4
|
|
2187
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2188
2188
|
case 9:
|
|
2189
2189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2190
|
-
return [3
|
|
2190
|
+
return [3, 17];
|
|
2191
2191
|
case 10:
|
|
2192
2192
|
_g = [{}];
|
|
2193
|
-
return [4
|
|
2193
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2194
2194
|
case 11:
|
|
2195
2195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2196
|
-
return [3
|
|
2196
|
+
return [3, 17];
|
|
2197
2197
|
case 12:
|
|
2198
2198
|
_h = [{}];
|
|
2199
|
-
return [4
|
|
2199
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2200
2200
|
case 13:
|
|
2201
2201
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2202
|
-
return [3
|
|
2202
|
+
return [3, 17];
|
|
2203
2203
|
case 14:
|
|
2204
2204
|
_j = [{}];
|
|
2205
|
-
return [4
|
|
2205
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2206
2206
|
case 15:
|
|
2207
2207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2208
|
-
return [3
|
|
2208
|
+
return [3, 17];
|
|
2209
2209
|
case 16:
|
|
2210
2210
|
parsedBody = parsedOutput.body;
|
|
2211
2211
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2215,7 +2215,7 @@ var deserializeAws_json1_1SendActivationCodeCommandError = function (output, con
|
|
|
2215
2215
|
message = response.message || response.Message || errorCode;
|
|
2216
2216
|
response.message = message;
|
|
2217
2217
|
delete response.Message;
|
|
2218
|
-
return [2
|
|
2218
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2219
2219
|
}
|
|
2220
2220
|
});
|
|
2221
2221
|
}); };
|
|
@@ -2225,15 +2225,15 @@ export var deserializeAws_json1_1StartEngagementCommand = function (output, cont
|
|
|
2225
2225
|
switch (_a.label) {
|
|
2226
2226
|
case 0:
|
|
2227
2227
|
if (output.statusCode >= 300) {
|
|
2228
|
-
return [2
|
|
2228
|
+
return [2, deserializeAws_json1_1StartEngagementCommandError(output, context)];
|
|
2229
2229
|
}
|
|
2230
|
-
return [4
|
|
2230
|
+
return [4, parseBody(output.body, context)];
|
|
2231
2231
|
case 1:
|
|
2232
2232
|
data = _a.sent();
|
|
2233
2233
|
contents = {};
|
|
2234
2234
|
contents = deserializeAws_json1_1StartEngagementResult(data, context);
|
|
2235
2235
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2236
|
-
return [2
|
|
2236
|
+
return [2, Promise.resolve(response)];
|
|
2237
2237
|
}
|
|
2238
2238
|
});
|
|
2239
2239
|
}); };
|
|
@@ -2245,63 +2245,63 @@ var deserializeAws_json1_1StartEngagementCommandError = function (output, contex
|
|
|
2245
2245
|
case 0:
|
|
2246
2246
|
_a = [__assign({}, output)];
|
|
2247
2247
|
_j = {};
|
|
2248
|
-
return [4
|
|
2248
|
+
return [4, parseBody(output.body, context)];
|
|
2249
2249
|
case 1:
|
|
2250
2250
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2251
2251
|
errorCode = "UnknownError";
|
|
2252
2252
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
2253
|
_b = errorCode;
|
|
2254
2254
|
switch (_b) {
|
|
2255
|
-
case "AccessDeniedException": return [3
|
|
2256
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2257
|
-
case "DataEncryptionException": return [3
|
|
2258
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
2259
|
-
case "InternalServerException": return [3
|
|
2260
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2261
|
-
case "ResourceNotFoundException": return [3
|
|
2262
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2263
|
-
case "ThrottlingException": return [3
|
|
2264
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2265
|
-
case "ValidationException": return [3
|
|
2266
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2255
|
+
case "AccessDeniedException": return [3, 2];
|
|
2256
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2257
|
+
case "DataEncryptionException": return [3, 4];
|
|
2258
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
2259
|
+
case "InternalServerException": return [3, 6];
|
|
2260
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
2261
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2262
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
2263
|
+
case "ThrottlingException": return [3, 10];
|
|
2264
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
2265
|
+
case "ValidationException": return [3, 12];
|
|
2266
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
2267
2267
|
}
|
|
2268
|
-
return [3
|
|
2268
|
+
return [3, 14];
|
|
2269
2269
|
case 2:
|
|
2270
2270
|
_c = [{}];
|
|
2271
|
-
return [4
|
|
2271
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2272
2272
|
case 3:
|
|
2273
2273
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2274
|
-
return [3
|
|
2274
|
+
return [3, 15];
|
|
2275
2275
|
case 4:
|
|
2276
2276
|
_d = [{}];
|
|
2277
|
-
return [4
|
|
2277
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2278
2278
|
case 5:
|
|
2279
2279
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2280
|
-
return [3
|
|
2280
|
+
return [3, 15];
|
|
2281
2281
|
case 6:
|
|
2282
2282
|
_e = [{}];
|
|
2283
|
-
return [4
|
|
2283
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2284
2284
|
case 7:
|
|
2285
2285
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2286
|
-
return [3
|
|
2286
|
+
return [3, 15];
|
|
2287
2287
|
case 8:
|
|
2288
2288
|
_f = [{}];
|
|
2289
|
-
return [4
|
|
2289
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2290
2290
|
case 9:
|
|
2291
2291
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2292
|
-
return [3
|
|
2292
|
+
return [3, 15];
|
|
2293
2293
|
case 10:
|
|
2294
2294
|
_g = [{}];
|
|
2295
|
-
return [4
|
|
2295
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2296
2296
|
case 11:
|
|
2297
2297
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2298
|
-
return [3
|
|
2298
|
+
return [3, 15];
|
|
2299
2299
|
case 12:
|
|
2300
2300
|
_h = [{}];
|
|
2301
|
-
return [4
|
|
2301
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2302
2302
|
case 13:
|
|
2303
2303
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2304
|
-
return [3
|
|
2304
|
+
return [3, 15];
|
|
2305
2305
|
case 14:
|
|
2306
2306
|
parsedBody = parsedOutput.body;
|
|
2307
2307
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2311,7 +2311,7 @@ var deserializeAws_json1_1StartEngagementCommandError = function (output, contex
|
|
|
2311
2311
|
message = response.message || response.Message || errorCode;
|
|
2312
2312
|
response.message = message;
|
|
2313
2313
|
delete response.Message;
|
|
2314
|
-
return [2
|
|
2314
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2315
2315
|
}
|
|
2316
2316
|
});
|
|
2317
2317
|
}); };
|
|
@@ -2321,15 +2321,15 @@ export var deserializeAws_json1_1StopEngagementCommand = function (output, conte
|
|
|
2321
2321
|
switch (_a.label) {
|
|
2322
2322
|
case 0:
|
|
2323
2323
|
if (output.statusCode >= 300) {
|
|
2324
|
-
return [2
|
|
2324
|
+
return [2, deserializeAws_json1_1StopEngagementCommandError(output, context)];
|
|
2325
2325
|
}
|
|
2326
|
-
return [4
|
|
2326
|
+
return [4, parseBody(output.body, context)];
|
|
2327
2327
|
case 1:
|
|
2328
2328
|
data = _a.sent();
|
|
2329
2329
|
contents = {};
|
|
2330
2330
|
contents = deserializeAws_json1_1StopEngagementResult(data, context);
|
|
2331
2331
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2332
|
-
return [2
|
|
2332
|
+
return [2, Promise.resolve(response)];
|
|
2333
2333
|
}
|
|
2334
2334
|
});
|
|
2335
2335
|
}); };
|
|
@@ -2341,55 +2341,55 @@ var deserializeAws_json1_1StopEngagementCommandError = function (output, context
|
|
|
2341
2341
|
case 0:
|
|
2342
2342
|
_a = [__assign({}, output)];
|
|
2343
2343
|
_h = {};
|
|
2344
|
-
return [4
|
|
2344
|
+
return [4, parseBody(output.body, context)];
|
|
2345
2345
|
case 1:
|
|
2346
2346
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2347
2347
|
errorCode = "UnknownError";
|
|
2348
2348
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2349
2349
|
_b = errorCode;
|
|
2350
2350
|
switch (_b) {
|
|
2351
|
-
case "AccessDeniedException": return [3
|
|
2352
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2353
|
-
case "InternalServerException": return [3
|
|
2354
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2355
|
-
case "ResourceNotFoundException": return [3
|
|
2356
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2357
|
-
case "ThrottlingException": return [3
|
|
2358
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2359
|
-
case "ValidationException": return [3
|
|
2360
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2351
|
+
case "AccessDeniedException": return [3, 2];
|
|
2352
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2353
|
+
case "InternalServerException": return [3, 4];
|
|
2354
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
2355
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2356
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
2357
|
+
case "ThrottlingException": return [3, 8];
|
|
2358
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
2359
|
+
case "ValidationException": return [3, 10];
|
|
2360
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
2361
2361
|
}
|
|
2362
|
-
return [3
|
|
2362
|
+
return [3, 12];
|
|
2363
2363
|
case 2:
|
|
2364
2364
|
_c = [{}];
|
|
2365
|
-
return [4
|
|
2365
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2366
2366
|
case 3:
|
|
2367
2367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2368
|
-
return [3
|
|
2368
|
+
return [3, 13];
|
|
2369
2369
|
case 4:
|
|
2370
2370
|
_d = [{}];
|
|
2371
|
-
return [4
|
|
2371
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2372
2372
|
case 5:
|
|
2373
2373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2374
|
-
return [3
|
|
2374
|
+
return [3, 13];
|
|
2375
2375
|
case 6:
|
|
2376
2376
|
_e = [{}];
|
|
2377
|
-
return [4
|
|
2377
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2378
2378
|
case 7:
|
|
2379
2379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2380
|
-
return [3
|
|
2380
|
+
return [3, 13];
|
|
2381
2381
|
case 8:
|
|
2382
2382
|
_f = [{}];
|
|
2383
|
-
return [4
|
|
2383
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2384
2384
|
case 9:
|
|
2385
2385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2386
|
-
return [3
|
|
2386
|
+
return [3, 13];
|
|
2387
2387
|
case 10:
|
|
2388
2388
|
_g = [{}];
|
|
2389
|
-
return [4
|
|
2389
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2390
2390
|
case 11:
|
|
2391
2391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2392
|
-
return [3
|
|
2392
|
+
return [3, 13];
|
|
2393
2393
|
case 12:
|
|
2394
2394
|
parsedBody = parsedOutput.body;
|
|
2395
2395
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2399,7 +2399,7 @@ var deserializeAws_json1_1StopEngagementCommandError = function (output, context
|
|
|
2399
2399
|
message = response.message || response.Message || errorCode;
|
|
2400
2400
|
response.message = message;
|
|
2401
2401
|
delete response.Message;
|
|
2402
|
-
return [2
|
|
2402
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2403
2403
|
}
|
|
2404
2404
|
});
|
|
2405
2405
|
}); };
|
|
@@ -2409,15 +2409,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2409
2409
|
switch (_a.label) {
|
|
2410
2410
|
case 0:
|
|
2411
2411
|
if (output.statusCode >= 300) {
|
|
2412
|
-
return [2
|
|
2412
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2413
2413
|
}
|
|
2414
|
-
return [4
|
|
2414
|
+
return [4, parseBody(output.body, context)];
|
|
2415
2415
|
case 1:
|
|
2416
2416
|
data = _a.sent();
|
|
2417
2417
|
contents = {};
|
|
2418
2418
|
contents = deserializeAws_json1_1TagResourceResult(data, context);
|
|
2419
2419
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2420
|
-
return [2
|
|
2420
|
+
return [2, Promise.resolve(response)];
|
|
2421
2421
|
}
|
|
2422
2422
|
});
|
|
2423
2423
|
}); };
|
|
@@ -2429,63 +2429,63 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2429
2429
|
case 0:
|
|
2430
2430
|
_a = [__assign({}, output)];
|
|
2431
2431
|
_j = {};
|
|
2432
|
-
return [4
|
|
2432
|
+
return [4, parseBody(output.body, context)];
|
|
2433
2433
|
case 1:
|
|
2434
2434
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2435
2435
|
errorCode = "UnknownError";
|
|
2436
2436
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
2437
|
_b = errorCode;
|
|
2438
2438
|
switch (_b) {
|
|
2439
|
-
case "AccessDeniedException": return [3
|
|
2440
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2441
|
-
case "InternalServerException": return [3
|
|
2442
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2443
|
-
case "ResourceNotFoundException": return [3
|
|
2444
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2445
|
-
case "ServiceQuotaExceededException": return [3
|
|
2446
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3
|
|
2447
|
-
case "ThrottlingException": return [3
|
|
2448
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2449
|
-
case "ValidationException": return [3
|
|
2450
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2439
|
+
case "AccessDeniedException": return [3, 2];
|
|
2440
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2441
|
+
case "InternalServerException": return [3, 4];
|
|
2442
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
2443
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2444
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
2445
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
2446
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 8];
|
|
2447
|
+
case "ThrottlingException": return [3, 10];
|
|
2448
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
2449
|
+
case "ValidationException": return [3, 12];
|
|
2450
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
2451
2451
|
}
|
|
2452
|
-
return [3
|
|
2452
|
+
return [3, 14];
|
|
2453
2453
|
case 2:
|
|
2454
2454
|
_c = [{}];
|
|
2455
|
-
return [4
|
|
2455
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2456
2456
|
case 3:
|
|
2457
2457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2458
|
-
return [3
|
|
2458
|
+
return [3, 15];
|
|
2459
2459
|
case 4:
|
|
2460
2460
|
_d = [{}];
|
|
2461
|
-
return [4
|
|
2461
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2462
2462
|
case 5:
|
|
2463
2463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2464
|
-
return [3
|
|
2464
|
+
return [3, 15];
|
|
2465
2465
|
case 6:
|
|
2466
2466
|
_e = [{}];
|
|
2467
|
-
return [4
|
|
2467
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2468
2468
|
case 7:
|
|
2469
2469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2470
|
-
return [3
|
|
2470
|
+
return [3, 15];
|
|
2471
2471
|
case 8:
|
|
2472
2472
|
_f = [{}];
|
|
2473
|
-
return [4
|
|
2473
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2474
2474
|
case 9:
|
|
2475
2475
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2476
|
-
return [3
|
|
2476
|
+
return [3, 15];
|
|
2477
2477
|
case 10:
|
|
2478
2478
|
_g = [{}];
|
|
2479
|
-
return [4
|
|
2479
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2480
2480
|
case 11:
|
|
2481
2481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2482
|
-
return [3
|
|
2482
|
+
return [3, 15];
|
|
2483
2483
|
case 12:
|
|
2484
2484
|
_h = [{}];
|
|
2485
|
-
return [4
|
|
2485
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2486
2486
|
case 13:
|
|
2487
2487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2488
|
-
return [3
|
|
2488
|
+
return [3, 15];
|
|
2489
2489
|
case 14:
|
|
2490
2490
|
parsedBody = parsedOutput.body;
|
|
2491
2491
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2495,7 +2495,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2495
2495
|
message = response.message || response.Message || errorCode;
|
|
2496
2496
|
response.message = message;
|
|
2497
2497
|
delete response.Message;
|
|
2498
|
-
return [2
|
|
2498
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2499
2499
|
}
|
|
2500
2500
|
});
|
|
2501
2501
|
}); };
|
|
@@ -2505,15 +2505,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2505
2505
|
switch (_a.label) {
|
|
2506
2506
|
case 0:
|
|
2507
2507
|
if (output.statusCode >= 300) {
|
|
2508
|
-
return [2
|
|
2508
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2509
2509
|
}
|
|
2510
|
-
return [4
|
|
2510
|
+
return [4, parseBody(output.body, context)];
|
|
2511
2511
|
case 1:
|
|
2512
2512
|
data = _a.sent();
|
|
2513
2513
|
contents = {};
|
|
2514
2514
|
contents = deserializeAws_json1_1UntagResourceResult(data, context);
|
|
2515
2515
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2516
|
-
return [2
|
|
2516
|
+
return [2, Promise.resolve(response)];
|
|
2517
2517
|
}
|
|
2518
2518
|
});
|
|
2519
2519
|
}); };
|
|
@@ -2525,55 +2525,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2525
2525
|
case 0:
|
|
2526
2526
|
_a = [__assign({}, output)];
|
|
2527
2527
|
_h = {};
|
|
2528
|
-
return [4
|
|
2528
|
+
return [4, parseBody(output.body, context)];
|
|
2529
2529
|
case 1:
|
|
2530
2530
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2531
2531
|
errorCode = "UnknownError";
|
|
2532
2532
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2533
2533
|
_b = errorCode;
|
|
2534
2534
|
switch (_b) {
|
|
2535
|
-
case "AccessDeniedException": return [3
|
|
2536
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2537
|
-
case "InternalServerException": return [3
|
|
2538
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2539
|
-
case "ResourceNotFoundException": return [3
|
|
2540
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2541
|
-
case "ThrottlingException": return [3
|
|
2542
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2543
|
-
case "ValidationException": return [3
|
|
2544
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2535
|
+
case "AccessDeniedException": return [3, 2];
|
|
2536
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2537
|
+
case "InternalServerException": return [3, 4];
|
|
2538
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
2539
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2540
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
2541
|
+
case "ThrottlingException": return [3, 8];
|
|
2542
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
2543
|
+
case "ValidationException": return [3, 10];
|
|
2544
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
2545
2545
|
}
|
|
2546
|
-
return [3
|
|
2546
|
+
return [3, 12];
|
|
2547
2547
|
case 2:
|
|
2548
2548
|
_c = [{}];
|
|
2549
|
-
return [4
|
|
2549
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2550
2550
|
case 3:
|
|
2551
2551
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2552
|
-
return [3
|
|
2552
|
+
return [3, 13];
|
|
2553
2553
|
case 4:
|
|
2554
2554
|
_d = [{}];
|
|
2555
|
-
return [4
|
|
2555
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2556
2556
|
case 5:
|
|
2557
2557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2558
|
-
return [3
|
|
2558
|
+
return [3, 13];
|
|
2559
2559
|
case 6:
|
|
2560
2560
|
_e = [{}];
|
|
2561
|
-
return [4
|
|
2561
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2562
2562
|
case 7:
|
|
2563
2563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2564
|
-
return [3
|
|
2564
|
+
return [3, 13];
|
|
2565
2565
|
case 8:
|
|
2566
2566
|
_f = [{}];
|
|
2567
|
-
return [4
|
|
2567
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2568
2568
|
case 9:
|
|
2569
2569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2570
|
-
return [3
|
|
2570
|
+
return [3, 13];
|
|
2571
2571
|
case 10:
|
|
2572
2572
|
_g = [{}];
|
|
2573
|
-
return [4
|
|
2573
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2574
2574
|
case 11:
|
|
2575
2575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2576
|
-
return [3
|
|
2576
|
+
return [3, 13];
|
|
2577
2577
|
case 12:
|
|
2578
2578
|
parsedBody = parsedOutput.body;
|
|
2579
2579
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2583,7 +2583,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2583
2583
|
message = response.message || response.Message || errorCode;
|
|
2584
2584
|
response.message = message;
|
|
2585
2585
|
delete response.Message;
|
|
2586
|
-
return [2
|
|
2586
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
2589
2589
|
}); };
|
|
@@ -2593,15 +2593,15 @@ export var deserializeAws_json1_1UpdateContactCommand = function (output, contex
|
|
|
2593
2593
|
switch (_a.label) {
|
|
2594
2594
|
case 0:
|
|
2595
2595
|
if (output.statusCode >= 300) {
|
|
2596
|
-
return [2
|
|
2596
|
+
return [2, deserializeAws_json1_1UpdateContactCommandError(output, context)];
|
|
2597
2597
|
}
|
|
2598
|
-
return [4
|
|
2598
|
+
return [4, parseBody(output.body, context)];
|
|
2599
2599
|
case 1:
|
|
2600
2600
|
data = _a.sent();
|
|
2601
2601
|
contents = {};
|
|
2602
2602
|
contents = deserializeAws_json1_1UpdateContactResult(data, context);
|
|
2603
2603
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2604
|
-
return [2
|
|
2604
|
+
return [2, Promise.resolve(response)];
|
|
2605
2605
|
}
|
|
2606
2606
|
});
|
|
2607
2607
|
}); };
|
|
@@ -2613,71 +2613,71 @@ var deserializeAws_json1_1UpdateContactCommandError = function (output, context)
|
|
|
2613
2613
|
case 0:
|
|
2614
2614
|
_a = [__assign({}, output)];
|
|
2615
2615
|
_k = {};
|
|
2616
|
-
return [4
|
|
2616
|
+
return [4, parseBody(output.body, context)];
|
|
2617
2617
|
case 1:
|
|
2618
2618
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2619
2619
|
errorCode = "UnknownError";
|
|
2620
2620
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2621
|
_b = errorCode;
|
|
2622
2622
|
switch (_b) {
|
|
2623
|
-
case "AccessDeniedException": return [3
|
|
2624
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2625
|
-
case "DataEncryptionException": return [3
|
|
2626
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
2627
|
-
case "InternalServerException": return [3
|
|
2628
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2629
|
-
case "ResourceNotFoundException": return [3
|
|
2630
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2631
|
-
case "ServiceQuotaExceededException": return [3
|
|
2632
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3
|
|
2633
|
-
case "ThrottlingException": return [3
|
|
2634
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2635
|
-
case "ValidationException": return [3
|
|
2636
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2623
|
+
case "AccessDeniedException": return [3, 2];
|
|
2624
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2625
|
+
case "DataEncryptionException": return [3, 4];
|
|
2626
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
2627
|
+
case "InternalServerException": return [3, 6];
|
|
2628
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
2629
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2630
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
2631
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
2632
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 10];
|
|
2633
|
+
case "ThrottlingException": return [3, 12];
|
|
2634
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
2635
|
+
case "ValidationException": return [3, 14];
|
|
2636
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
2637
2637
|
}
|
|
2638
|
-
return [3
|
|
2638
|
+
return [3, 16];
|
|
2639
2639
|
case 2:
|
|
2640
2640
|
_c = [{}];
|
|
2641
|
-
return [4
|
|
2641
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2642
2642
|
case 3:
|
|
2643
2643
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2644
|
-
return [3
|
|
2644
|
+
return [3, 17];
|
|
2645
2645
|
case 4:
|
|
2646
2646
|
_d = [{}];
|
|
2647
|
-
return [4
|
|
2647
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2648
2648
|
case 5:
|
|
2649
2649
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2650
|
-
return [3
|
|
2650
|
+
return [3, 17];
|
|
2651
2651
|
case 6:
|
|
2652
2652
|
_e = [{}];
|
|
2653
|
-
return [4
|
|
2653
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2654
2654
|
case 7:
|
|
2655
2655
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2656
|
-
return [3
|
|
2656
|
+
return [3, 17];
|
|
2657
2657
|
case 8:
|
|
2658
2658
|
_f = [{}];
|
|
2659
|
-
return [4
|
|
2659
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2660
2660
|
case 9:
|
|
2661
2661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2662
|
-
return [3
|
|
2662
|
+
return [3, 17];
|
|
2663
2663
|
case 10:
|
|
2664
2664
|
_g = [{}];
|
|
2665
|
-
return [4
|
|
2665
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2666
2666
|
case 11:
|
|
2667
2667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2668
|
-
return [3
|
|
2668
|
+
return [3, 17];
|
|
2669
2669
|
case 12:
|
|
2670
2670
|
_h = [{}];
|
|
2671
|
-
return [4
|
|
2671
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2672
2672
|
case 13:
|
|
2673
2673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2674
|
-
return [3
|
|
2674
|
+
return [3, 17];
|
|
2675
2675
|
case 14:
|
|
2676
2676
|
_j = [{}];
|
|
2677
|
-
return [4
|
|
2677
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2678
2678
|
case 15:
|
|
2679
2679
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2680
|
-
return [3
|
|
2680
|
+
return [3, 17];
|
|
2681
2681
|
case 16:
|
|
2682
2682
|
parsedBody = parsedOutput.body;
|
|
2683
2683
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2687,7 +2687,7 @@ var deserializeAws_json1_1UpdateContactCommandError = function (output, context)
|
|
|
2687
2687
|
message = response.message || response.Message || errorCode;
|
|
2688
2688
|
response.message = message;
|
|
2689
2689
|
delete response.Message;
|
|
2690
|
-
return [2
|
|
2690
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2691
2691
|
}
|
|
2692
2692
|
});
|
|
2693
2693
|
}); };
|
|
@@ -2697,15 +2697,15 @@ export var deserializeAws_json1_1UpdateContactChannelCommand = function (output,
|
|
|
2697
2697
|
switch (_a.label) {
|
|
2698
2698
|
case 0:
|
|
2699
2699
|
if (output.statusCode >= 300) {
|
|
2700
|
-
return [2
|
|
2700
|
+
return [2, deserializeAws_json1_1UpdateContactChannelCommandError(output, context)];
|
|
2701
2701
|
}
|
|
2702
|
-
return [4
|
|
2702
|
+
return [4, parseBody(output.body, context)];
|
|
2703
2703
|
case 1:
|
|
2704
2704
|
data = _a.sent();
|
|
2705
2705
|
contents = {};
|
|
2706
2706
|
contents = deserializeAws_json1_1UpdateContactChannelResult(data, context);
|
|
2707
2707
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2708
|
-
return [2
|
|
2708
|
+
return [2, Promise.resolve(response)];
|
|
2709
2709
|
}
|
|
2710
2710
|
});
|
|
2711
2711
|
}); };
|
|
@@ -2717,71 +2717,71 @@ var deserializeAws_json1_1UpdateContactChannelCommandError = function (output, c
|
|
|
2717
2717
|
case 0:
|
|
2718
2718
|
_a = [__assign({}, output)];
|
|
2719
2719
|
_k = {};
|
|
2720
|
-
return [4
|
|
2720
|
+
return [4, parseBody(output.body, context)];
|
|
2721
2721
|
case 1:
|
|
2722
2722
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2723
2723
|
errorCode = "UnknownError";
|
|
2724
2724
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2725
|
_b = errorCode;
|
|
2726
2726
|
switch (_b) {
|
|
2727
|
-
case "AccessDeniedException": return [3
|
|
2728
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3
|
|
2729
|
-
case "ConflictException": return [3
|
|
2730
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3
|
|
2731
|
-
case "DataEncryptionException": return [3
|
|
2732
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3
|
|
2733
|
-
case "InternalServerException": return [3
|
|
2734
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3
|
|
2735
|
-
case "ResourceNotFoundException": return [3
|
|
2736
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3
|
|
2737
|
-
case "ThrottlingException": return [3
|
|
2738
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3
|
|
2739
|
-
case "ValidationException": return [3
|
|
2740
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3
|
|
2727
|
+
case "AccessDeniedException": return [3, 2];
|
|
2728
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2729
|
+
case "ConflictException": return [3, 4];
|
|
2730
|
+
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
2731
|
+
case "DataEncryptionException": return [3, 6];
|
|
2732
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 6];
|
|
2733
|
+
case "InternalServerException": return [3, 8];
|
|
2734
|
+
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 8];
|
|
2735
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2736
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 10];
|
|
2737
|
+
case "ThrottlingException": return [3, 12];
|
|
2738
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
2739
|
+
case "ValidationException": return [3, 14];
|
|
2740
|
+
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
2741
2741
|
}
|
|
2742
|
-
return [3
|
|
2742
|
+
return [3, 16];
|
|
2743
2743
|
case 2:
|
|
2744
2744
|
_c = [{}];
|
|
2745
|
-
return [4
|
|
2745
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2746
2746
|
case 3:
|
|
2747
2747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2748
|
-
return [3
|
|
2748
|
+
return [3, 17];
|
|
2749
2749
|
case 4:
|
|
2750
2750
|
_d = [{}];
|
|
2751
|
-
return [4
|
|
2751
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2752
2752
|
case 5:
|
|
2753
2753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2754
|
-
return [3
|
|
2754
|
+
return [3, 17];
|
|
2755
2755
|
case 6:
|
|
2756
2756
|
_e = [{}];
|
|
2757
|
-
return [4
|
|
2757
|
+
return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2758
2758
|
case 7:
|
|
2759
2759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2760
|
-
return [3
|
|
2760
|
+
return [3, 17];
|
|
2761
2761
|
case 8:
|
|
2762
2762
|
_f = [{}];
|
|
2763
|
-
return [4
|
|
2763
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2764
2764
|
case 9:
|
|
2765
2765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2766
|
-
return [3
|
|
2766
|
+
return [3, 17];
|
|
2767
2767
|
case 10:
|
|
2768
2768
|
_g = [{}];
|
|
2769
|
-
return [4
|
|
2769
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2770
2770
|
case 11:
|
|
2771
2771
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2772
|
-
return [3
|
|
2772
|
+
return [3, 17];
|
|
2773
2773
|
case 12:
|
|
2774
2774
|
_h = [{}];
|
|
2775
|
-
return [4
|
|
2775
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2776
2776
|
case 13:
|
|
2777
2777
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2778
|
-
return [3
|
|
2778
|
+
return [3, 17];
|
|
2779
2779
|
case 14:
|
|
2780
2780
|
_j = [{}];
|
|
2781
|
-
return [4
|
|
2781
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2782
2782
|
case 15:
|
|
2783
2783
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2784
|
-
return [3
|
|
2784
|
+
return [3, 17];
|
|
2785
2785
|
case 16:
|
|
2786
2786
|
parsedBody = parsedOutput.body;
|
|
2787
2787
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2791,7 +2791,7 @@ var deserializeAws_json1_1UpdateContactChannelCommandError = function (output, c
|
|
|
2791
2791
|
message = response.message || response.Message || errorCode;
|
|
2792
2792
|
response.message = message;
|
|
2793
2793
|
delete response.Message;
|
|
2794
|
-
return [2
|
|
2794
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2795
2795
|
}
|
|
2796
2796
|
});
|
|
2797
2797
|
}); };
|
|
@@ -2801,7 +2801,7 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
2801
2801
|
body = parsedOutput.body;
|
|
2802
2802
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2803
2803
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2804
|
-
return [2
|
|
2804
|
+
return [2, contents];
|
|
2805
2805
|
});
|
|
2806
2806
|
}); };
|
|
2807
2807
|
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2810,7 +2810,7 @@ var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, co
|
|
|
2810
2810
|
body = parsedOutput.body;
|
|
2811
2811
|
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
2812
2812
|
contents = __assign({ name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2813
|
-
return [2
|
|
2813
|
+
return [2, contents];
|
|
2814
2814
|
});
|
|
2815
2815
|
}); };
|
|
2816
2816
|
var deserializeAws_json1_1DataEncryptionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2819,7 +2819,7 @@ var deserializeAws_json1_1DataEncryptionExceptionResponse = function (parsedOutp
|
|
|
2819
2819
|
body = parsedOutput.body;
|
|
2820
2820
|
deserialized = deserializeAws_json1_1DataEncryptionException(body, context);
|
|
2821
2821
|
contents = __assign({ name: "DataEncryptionException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2822
|
-
return [2
|
|
2822
|
+
return [2, contents];
|
|
2823
2823
|
});
|
|
2824
2824
|
}); };
|
|
2825
2825
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2828,7 +2828,7 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
2828
2828
|
body = parsedOutput.body;
|
|
2829
2829
|
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2830
2830
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2831
|
-
return [2
|
|
2831
|
+
return [2, contents];
|
|
2832
2832
|
});
|
|
2833
2833
|
}); };
|
|
2834
2834
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2837,7 +2837,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2837
2837
|
body = parsedOutput.body;
|
|
2838
2838
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2839
2839
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2840
|
-
return [2
|
|
2840
|
+
return [2, contents];
|
|
2841
2841
|
});
|
|
2842
2842
|
}); };
|
|
2843
2843
|
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2846,7 +2846,7 @@ var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (pars
|
|
|
2846
2846
|
body = parsedOutput.body;
|
|
2847
2847
|
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2848
2848
|
contents = __assign({ name: "ServiceQuotaExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2849
|
-
return [2
|
|
2849
|
+
return [2, contents];
|
|
2850
2850
|
});
|
|
2851
2851
|
}); };
|
|
2852
2852
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2855,7 +2855,7 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
2855
2855
|
body = parsedOutput.body;
|
|
2856
2856
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2857
2857
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2858
|
-
return [2
|
|
2858
|
+
return [2, contents];
|
|
2859
2859
|
});
|
|
2860
2860
|
}); };
|
|
2861
2861
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2864,7 +2864,7 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
2864
2864
|
body = parsedOutput.body;
|
|
2865
2865
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2866
2866
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2867
|
-
return [2
|
|
2867
|
+
return [2, contents];
|
|
2868
2868
|
});
|
|
2869
2869
|
}); };
|
|
2870
2870
|
var serializeAws_json1_1AcceptPageRequest = function (input, context) {
|
|
@@ -3492,7 +3492,6 @@ var deserializeMetadata = function (output) {
|
|
|
3492
3492
|
cfId: output.headers["x-amz-cf-id"],
|
|
3493
3493
|
});
|
|
3494
3494
|
};
|
|
3495
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3496
3495
|
var collectBody = function (streamBody, context) {
|
|
3497
3496
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3498
3497
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3500,7 +3499,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3500
3499
|
}
|
|
3501
3500
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3502
3501
|
};
|
|
3503
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3504
3502
|
var collectBodyString = function (streamBody, context) {
|
|
3505
3503
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3506
3504
|
};
|
|
@@ -3508,7 +3506,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3508
3506
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3509
3507
|
return __generator(this, function (_c) {
|
|
3510
3508
|
switch (_c.label) {
|
|
3511
|
-
case 0: return [4
|
|
3509
|
+
case 0: return [4, context.endpoint()];
|
|
3512
3510
|
case 1:
|
|
3513
3511
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3514
3512
|
contents = {
|
|
@@ -3525,7 +3523,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3525
3523
|
if (body !== undefined) {
|
|
3526
3524
|
contents.body = body;
|
|
3527
3525
|
}
|
|
3528
|
-
return [2
|
|
3526
|
+
return [2, new __HttpRequest(contents)];
|
|
3529
3527
|
}
|
|
3530
3528
|
});
|
|
3531
3529
|
}); };
|
|
@@ -3537,9 +3535,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3537
3535
|
return {};
|
|
3538
3536
|
});
|
|
3539
3537
|
};
|
|
3540
|
-
/**
|
|
3541
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3542
|
-
*/
|
|
3543
3538
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3544
3539
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3545
3540
|
var sanitizeErrorCode = function (rawValue) {
|