@aws-sdk/client-budgets 3.30.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 +35 -0
- package/dist/cjs/BudgetsClient.js +13 -13
- package/dist/cjs/BudgetsClient.js.map +1 -1
- package/dist/cjs/commands/CreateBudgetActionCommand.js +3 -3
- package/dist/cjs/commands/CreateBudgetActionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateBudgetCommand.js +3 -3
- package/dist/cjs/commands/CreateBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateNotificationCommand.js +3 -3
- package/dist/cjs/commands/CreateNotificationCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSubscriberCommand.js +3 -3
- package/dist/cjs/commands/CreateSubscriberCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBudgetActionCommand.js +3 -3
- package/dist/cjs/commands/DeleteBudgetActionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBudgetCommand.js +3 -3
- package/dist/cjs/commands/DeleteBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteNotificationCommand.js +3 -3
- package/dist/cjs/commands/DeleteNotificationCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteSubscriberCommand.js +3 -3
- package/dist/cjs/commands/DeleteSubscriberCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetActionCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetActionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetActionHistoriesCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetActionHistoriesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetActionsForAccountCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetActionsForAccountCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetActionsForBudgetCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetActionsForBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetPerformanceHistoryCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetPerformanceHistoryCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBudgetsCommand.js +3 -3
- package/dist/cjs/commands/DescribeBudgetsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeNotificationsForBudgetCommand.js +3 -3
- package/dist/cjs/commands/DescribeNotificationsForBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeSubscribersForNotificationCommand.js +3 -3
- package/dist/cjs/commands/DescribeSubscribersForNotificationCommand.js.map +1 -1
- package/dist/cjs/commands/ExecuteBudgetActionCommand.js +3 -3
- package/dist/cjs/commands/ExecuteBudgetActionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBudgetActionCommand.js +3 -3
- package/dist/cjs/commands/UpdateBudgetActionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBudgetCommand.js +3 -3
- package/dist/cjs/commands/UpdateBudgetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNotificationCommand.js +3 -3
- package/dist/cjs/commands/UpdateNotificationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSubscriberCommand.js +3 -3
- package/dist/cjs/commands/UpdateSubscriberCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +33 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +87 -83
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Budgets.js +1 -46
- package/dist/es/Budgets.js.map +1 -1
- package/dist/es/BudgetsClient.js +1 -51
- package/dist/es/BudgetsClient.js.map +1 -1
- package/dist/es/commands/CreateBudgetActionCommand.js +2 -29
- package/dist/es/commands/CreateBudgetActionCommand.js.map +1 -1
- package/dist/es/commands/CreateBudgetCommand.js +2 -30
- package/dist/es/commands/CreateBudgetCommand.js.map +1 -1
- package/dist/es/commands/CreateNotificationCommand.js +2 -27
- package/dist/es/commands/CreateNotificationCommand.js.map +1 -1
- package/dist/es/commands/CreateSubscriberCommand.js +2 -27
- package/dist/es/commands/CreateSubscriberCommand.js.map +1 -1
- package/dist/es/commands/DeleteBudgetActionCommand.js +2 -29
- package/dist/es/commands/DeleteBudgetActionCommand.js.map +1 -1
- package/dist/es/commands/DeleteBudgetCommand.js +2 -30
- package/dist/es/commands/DeleteBudgetCommand.js.map +1 -1
- package/dist/es/commands/DeleteNotificationCommand.js +2 -30
- package/dist/es/commands/DeleteNotificationCommand.js.map +1 -1
- package/dist/es/commands/DeleteSubscriberCommand.js +2 -30
- package/dist/es/commands/DeleteSubscriberCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetActionCommand.js +2 -29
- package/dist/es/commands/DescribeBudgetActionCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetActionHistoriesCommand.js +2 -29
- package/dist/es/commands/DescribeBudgetActionHistoriesCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetActionsForAccountCommand.js +2 -29
- package/dist/es/commands/DescribeBudgetActionsForAccountCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetActionsForBudgetCommand.js +2 -29
- package/dist/es/commands/DescribeBudgetActionsForBudgetCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetCommand.js +2 -30
- package/dist/es/commands/DescribeBudgetCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetPerformanceHistoryCommand.js +2 -27
- package/dist/es/commands/DescribeBudgetPerformanceHistoryCommand.js.map +1 -1
- package/dist/es/commands/DescribeBudgetsCommand.js +2 -30
- package/dist/es/commands/DescribeBudgetsCommand.js.map +1 -1
- package/dist/es/commands/DescribeNotificationsForBudgetCommand.js +2 -27
- package/dist/es/commands/DescribeNotificationsForBudgetCommand.js.map +1 -1
- package/dist/es/commands/DescribeSubscribersForNotificationCommand.js +2 -27
- package/dist/es/commands/DescribeSubscribersForNotificationCommand.js.map +1 -1
- package/dist/es/commands/ExecuteBudgetActionCommand.js +2 -29
- package/dist/es/commands/ExecuteBudgetActionCommand.js.map +1 -1
- package/dist/es/commands/UpdateBudgetActionCommand.js +2 -29
- package/dist/es/commands/UpdateBudgetActionCommand.js.map +1 -1
- package/dist/es/commands/UpdateBudgetCommand.js +2 -30
- package/dist/es/commands/UpdateBudgetCommand.js.map +1 -1
- package/dist/es/commands/UpdateNotificationCommand.js +2 -27
- package/dist/es/commands/UpdateNotificationCommand.js.map +1 -1
- package/dist/es/commands/UpdateSubscriberCommand.js +2 -27
- package/dist/es/commands/UpdateSubscriberCommand.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 -213
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/DescribeBudgetActionHistoriesPaginator.js +16 -28
- package/dist/es/pagination/DescribeBudgetActionHistoriesPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeBudgetActionsForAccountPaginator.js +16 -28
- package/dist/es/pagination/DescribeBudgetActionsForAccountPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeBudgetActionsForBudgetPaginator.js +16 -28
- package/dist/es/pagination/DescribeBudgetActionsForBudgetPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +16 -28
- package/dist/es/pagination/DescribeBudgetPerformanceHistoryPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeBudgetsPaginator.js +16 -28
- package/dist/es/pagination/DescribeBudgetsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeNotificationsForBudgetPaginator.js +16 -28
- package/dist/es/pagination/DescribeNotificationsForBudgetPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeSubscribersForNotificationPaginator.js +16 -28
- package/dist/es/pagination/DescribeSubscribersForNotificationPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +614 -615
- 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/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +13 -4
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_1CreateBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CreateBudgetCommand = function (input, context) {
|
|
|
9
9
|
"x-amz-target": "AWSBudgetServiceGateway.CreateBudget",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateBudgetRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateBudgetActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateBudgetActionCommand = function (input, cont
|
|
|
20
20
|
"x-amz-target": "AWSBudgetServiceGateway.CreateBudgetAction",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateBudgetActionRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateNotificationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateNotificationCommand = function (input, cont
|
|
|
31
31
|
"x-amz-target": "AWSBudgetServiceGateway.CreateNotification",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateNotificationRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateSubscriberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateSubscriberCommand = function (input, contex
|
|
|
42
42
|
"x-amz-target": "AWSBudgetServiceGateway.CreateSubscriber",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateSubscriberRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteBudgetCommand = function (input, context) {
|
|
|
53
53
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudget",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteBudgetRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteBudgetActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteBudgetActionCommand = function (input, cont
|
|
|
64
64
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudgetAction",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteBudgetActionRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DeleteNotificationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteNotificationCommand = function (input, cont
|
|
|
75
75
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteNotification",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DeleteNotificationRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DeleteSubscriberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeleteSubscriberCommand = function (input, contex
|
|
|
86
86
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteSubscriber",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DeleteSubscriberRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeBudgetCommand = function (input, context)
|
|
|
97
97
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudget",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeBudgetActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeBudgetActionCommand = function (input, co
|
|
|
108
108
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetAction",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetActionRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DescribeBudgetActionHistoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DescribeBudgetActionHistoriesCommand = function (
|
|
|
119
119
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionHistories",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetActionHistoriesRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DescribeBudgetActionsForAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DescribeBudgetActionsForAccountCommand = function
|
|
|
130
130
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForAccount",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetActionsForAccountRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = function
|
|
|
141
141
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForBudget",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetActionsForBudgetRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = functio
|
|
|
152
152
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DescribeBudgetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DescribeBudgetsCommand = function (input, context
|
|
|
163
163
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgets",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DescribeBudgetsRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DescribeNotificationsForBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DescribeNotificationsForBudgetCommand = function
|
|
|
174
174
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeNotificationsForBudget",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DescribeNotificationsForBudgetRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1DescribeSubscribersForNotificationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1DescribeSubscribersForNotificationCommand = funct
|
|
|
185
185
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeSubscribersForNotification",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1DescribeSubscribersForNotificationRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1ExecuteBudgetActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1ExecuteBudgetActionCommand = function (input, con
|
|
|
196
196
|
"x-amz-target": "AWSBudgetServiceGateway.ExecuteBudgetAction",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1ExecuteBudgetActionRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1UpdateBudgetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1UpdateBudgetCommand = function (input, context) {
|
|
|
207
207
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudget",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1UpdateBudgetRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1UpdateBudgetActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1UpdateBudgetActionCommand = function (input, cont
|
|
|
218
218
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudgetAction",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1UpdateBudgetActionRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1UpdateNotificationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1UpdateNotificationCommand = function (input, cont
|
|
|
229
229
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateNotification",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1UpdateNotificationRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1UpdateSubscriberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1UpdateSubscriberCommand = function (input, contex
|
|
|
240
240
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateSubscriber",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1UpdateSubscriberRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var deserializeAws_json1_1CreateBudgetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -249,15 +249,15 @@ export var deserializeAws_json1_1CreateBudgetCommand = function (output, context
|
|
|
249
249
|
switch (_a.label) {
|
|
250
250
|
case 0:
|
|
251
251
|
if (output.statusCode >= 300) {
|
|
252
|
-
return [2
|
|
252
|
+
return [2, deserializeAws_json1_1CreateBudgetCommandError(output, context)];
|
|
253
253
|
}
|
|
254
|
-
return [4
|
|
254
|
+
return [4, parseBody(output.body, context)];
|
|
255
255
|
case 1:
|
|
256
256
|
data = _a.sent();
|
|
257
257
|
contents = {};
|
|
258
258
|
contents = deserializeAws_json1_1CreateBudgetResponse(data, context);
|
|
259
259
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
260
|
-
return [2
|
|
260
|
+
return [2, Promise.resolve(response)];
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
263
|
}); };
|
|
@@ -269,55 +269,55 @@ var deserializeAws_json1_1CreateBudgetCommandError = function (output, context)
|
|
|
269
269
|
case 0:
|
|
270
270
|
_a = [__assign({}, output)];
|
|
271
271
|
_h = {};
|
|
272
|
-
return [4
|
|
272
|
+
return [4, parseBody(output.body, context)];
|
|
273
273
|
case 1:
|
|
274
274
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
275
275
|
errorCode = "UnknownError";
|
|
276
276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
277
|
_b = errorCode;
|
|
278
278
|
switch (_b) {
|
|
279
|
-
case "AccessDeniedException": return [3
|
|
280
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
281
|
-
case "CreationLimitExceededException": return [3
|
|
282
|
-
case "com.amazonaws.budgets#CreationLimitExceededException": return [3
|
|
283
|
-
case "DuplicateRecordException": return [3
|
|
284
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
285
|
-
case "InternalErrorException": return [3
|
|
286
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
287
|
-
case "InvalidParameterException": return [3
|
|
288
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
279
|
+
case "AccessDeniedException": return [3, 2];
|
|
280
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
281
|
+
case "CreationLimitExceededException": return [3, 4];
|
|
282
|
+
case "com.amazonaws.budgets#CreationLimitExceededException": return [3, 4];
|
|
283
|
+
case "DuplicateRecordException": return [3, 6];
|
|
284
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 6];
|
|
285
|
+
case "InternalErrorException": return [3, 8];
|
|
286
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 8];
|
|
287
|
+
case "InvalidParameterException": return [3, 10];
|
|
288
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
289
289
|
}
|
|
290
|
-
return [3
|
|
290
|
+
return [3, 12];
|
|
291
291
|
case 2:
|
|
292
292
|
_c = [{}];
|
|
293
|
-
return [4
|
|
293
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
294
294
|
case 3:
|
|
295
295
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
296
|
-
return [3
|
|
296
|
+
return [3, 13];
|
|
297
297
|
case 4:
|
|
298
298
|
_d = [{}];
|
|
299
|
-
return [4
|
|
299
|
+
return [4, deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)];
|
|
300
300
|
case 5:
|
|
301
301
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
302
|
-
return [3
|
|
302
|
+
return [3, 13];
|
|
303
303
|
case 6:
|
|
304
304
|
_e = [{}];
|
|
305
|
-
return [4
|
|
305
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
306
306
|
case 7:
|
|
307
307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
308
|
-
return [3
|
|
308
|
+
return [3, 13];
|
|
309
309
|
case 8:
|
|
310
310
|
_f = [{}];
|
|
311
|
-
return [4
|
|
311
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
312
312
|
case 9:
|
|
313
313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
314
|
-
return [3
|
|
314
|
+
return [3, 13];
|
|
315
315
|
case 10:
|
|
316
316
|
_g = [{}];
|
|
317
|
-
return [4
|
|
317
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
318
318
|
case 11:
|
|
319
319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
320
|
-
return [3
|
|
320
|
+
return [3, 13];
|
|
321
321
|
case 12:
|
|
322
322
|
parsedBody = parsedOutput.body;
|
|
323
323
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -327,7 +327,7 @@ var deserializeAws_json1_1CreateBudgetCommandError = function (output, context)
|
|
|
327
327
|
message = response.message || response.Message || errorCode;
|
|
328
328
|
response.message = message;
|
|
329
329
|
delete response.Message;
|
|
330
|
-
return [2
|
|
330
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
@@ -337,15 +337,15 @@ export var deserializeAws_json1_1CreateBudgetActionCommand = function (output, c
|
|
|
337
337
|
switch (_a.label) {
|
|
338
338
|
case 0:
|
|
339
339
|
if (output.statusCode >= 300) {
|
|
340
|
-
return [2
|
|
340
|
+
return [2, deserializeAws_json1_1CreateBudgetActionCommandError(output, context)];
|
|
341
341
|
}
|
|
342
|
-
return [4
|
|
342
|
+
return [4, parseBody(output.body, context)];
|
|
343
343
|
case 1:
|
|
344
344
|
data = _a.sent();
|
|
345
345
|
contents = {};
|
|
346
346
|
contents = deserializeAws_json1_1CreateBudgetActionResponse(data, context);
|
|
347
347
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
348
|
-
return [2
|
|
348
|
+
return [2, Promise.resolve(response)];
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
}); };
|
|
@@ -357,63 +357,63 @@ var deserializeAws_json1_1CreateBudgetActionCommandError = function (output, con
|
|
|
357
357
|
case 0:
|
|
358
358
|
_a = [__assign({}, output)];
|
|
359
359
|
_j = {};
|
|
360
|
-
return [4
|
|
360
|
+
return [4, parseBody(output.body, context)];
|
|
361
361
|
case 1:
|
|
362
362
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
363
363
|
errorCode = "UnknownError";
|
|
364
364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
365
|
_b = errorCode;
|
|
366
366
|
switch (_b) {
|
|
367
|
-
case "AccessDeniedException": return [3
|
|
368
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
369
|
-
case "CreationLimitExceededException": return [3
|
|
370
|
-
case "com.amazonaws.budgets#CreationLimitExceededException": return [3
|
|
371
|
-
case "DuplicateRecordException": return [3
|
|
372
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
373
|
-
case "InternalErrorException": return [3
|
|
374
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
375
|
-
case "InvalidParameterException": return [3
|
|
376
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
377
|
-
case "NotFoundException": return [3
|
|
378
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
367
|
+
case "AccessDeniedException": return [3, 2];
|
|
368
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
369
|
+
case "CreationLimitExceededException": return [3, 4];
|
|
370
|
+
case "com.amazonaws.budgets#CreationLimitExceededException": return [3, 4];
|
|
371
|
+
case "DuplicateRecordException": return [3, 6];
|
|
372
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 6];
|
|
373
|
+
case "InternalErrorException": return [3, 8];
|
|
374
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 8];
|
|
375
|
+
case "InvalidParameterException": return [3, 10];
|
|
376
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
377
|
+
case "NotFoundException": return [3, 12];
|
|
378
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
379
379
|
}
|
|
380
|
-
return [3
|
|
380
|
+
return [3, 14];
|
|
381
381
|
case 2:
|
|
382
382
|
_c = [{}];
|
|
383
|
-
return [4
|
|
383
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
384
384
|
case 3:
|
|
385
385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
386
|
-
return [3
|
|
386
|
+
return [3, 15];
|
|
387
387
|
case 4:
|
|
388
388
|
_d = [{}];
|
|
389
|
-
return [4
|
|
389
|
+
return [4, deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)];
|
|
390
390
|
case 5:
|
|
391
391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
392
|
-
return [3
|
|
392
|
+
return [3, 15];
|
|
393
393
|
case 6:
|
|
394
394
|
_e = [{}];
|
|
395
|
-
return [4
|
|
395
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
396
396
|
case 7:
|
|
397
397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
398
|
-
return [3
|
|
398
|
+
return [3, 15];
|
|
399
399
|
case 8:
|
|
400
400
|
_f = [{}];
|
|
401
|
-
return [4
|
|
401
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
402
402
|
case 9:
|
|
403
403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
404
|
-
return [3
|
|
404
|
+
return [3, 15];
|
|
405
405
|
case 10:
|
|
406
406
|
_g = [{}];
|
|
407
|
-
return [4
|
|
407
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
408
408
|
case 11:
|
|
409
409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
410
|
-
return [3
|
|
410
|
+
return [3, 15];
|
|
411
411
|
case 12:
|
|
412
412
|
_h = [{}];
|
|
413
|
-
return [4
|
|
413
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
414
414
|
case 13:
|
|
415
415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
416
|
-
return [3
|
|
416
|
+
return [3, 15];
|
|
417
417
|
case 14:
|
|
418
418
|
parsedBody = parsedOutput.body;
|
|
419
419
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -423,7 +423,7 @@ var deserializeAws_json1_1CreateBudgetActionCommandError = function (output, con
|
|
|
423
423
|
message = response.message || response.Message || errorCode;
|
|
424
424
|
response.message = message;
|
|
425
425
|
delete response.Message;
|
|
426
|
-
return [2
|
|
426
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}); };
|
|
@@ -433,15 +433,15 @@ export var deserializeAws_json1_1CreateNotificationCommand = function (output, c
|
|
|
433
433
|
switch (_a.label) {
|
|
434
434
|
case 0:
|
|
435
435
|
if (output.statusCode >= 300) {
|
|
436
|
-
return [2
|
|
436
|
+
return [2, deserializeAws_json1_1CreateNotificationCommandError(output, context)];
|
|
437
437
|
}
|
|
438
|
-
return [4
|
|
438
|
+
return [4, parseBody(output.body, context)];
|
|
439
439
|
case 1:
|
|
440
440
|
data = _a.sent();
|
|
441
441
|
contents = {};
|
|
442
442
|
contents = deserializeAws_json1_1CreateNotificationResponse(data, context);
|
|
443
443
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
444
|
-
return [2
|
|
444
|
+
return [2, Promise.resolve(response)];
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}); };
|
|
@@ -453,63 +453,63 @@ var deserializeAws_json1_1CreateNotificationCommandError = function (output, con
|
|
|
453
453
|
case 0:
|
|
454
454
|
_a = [__assign({}, output)];
|
|
455
455
|
_j = {};
|
|
456
|
-
return [4
|
|
456
|
+
return [4, parseBody(output.body, context)];
|
|
457
457
|
case 1:
|
|
458
458
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
459
459
|
errorCode = "UnknownError";
|
|
460
460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
461
|
_b = errorCode;
|
|
462
462
|
switch (_b) {
|
|
463
|
-
case "AccessDeniedException": return [3
|
|
464
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
465
|
-
case "CreationLimitExceededException": return [3
|
|
466
|
-
case "com.amazonaws.budgets#CreationLimitExceededException": return [3
|
|
467
|
-
case "DuplicateRecordException": return [3
|
|
468
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
469
|
-
case "InternalErrorException": return [3
|
|
470
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
471
|
-
case "InvalidParameterException": return [3
|
|
472
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
473
|
-
case "NotFoundException": return [3
|
|
474
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
463
|
+
case "AccessDeniedException": return [3, 2];
|
|
464
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
465
|
+
case "CreationLimitExceededException": return [3, 4];
|
|
466
|
+
case "com.amazonaws.budgets#CreationLimitExceededException": return [3, 4];
|
|
467
|
+
case "DuplicateRecordException": return [3, 6];
|
|
468
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 6];
|
|
469
|
+
case "InternalErrorException": return [3, 8];
|
|
470
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 8];
|
|
471
|
+
case "InvalidParameterException": return [3, 10];
|
|
472
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
473
|
+
case "NotFoundException": return [3, 12];
|
|
474
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
475
475
|
}
|
|
476
|
-
return [3
|
|
476
|
+
return [3, 14];
|
|
477
477
|
case 2:
|
|
478
478
|
_c = [{}];
|
|
479
|
-
return [4
|
|
479
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
480
480
|
case 3:
|
|
481
481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
482
|
-
return [3
|
|
482
|
+
return [3, 15];
|
|
483
483
|
case 4:
|
|
484
484
|
_d = [{}];
|
|
485
|
-
return [4
|
|
485
|
+
return [4, deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)];
|
|
486
486
|
case 5:
|
|
487
487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
488
|
-
return [3
|
|
488
|
+
return [3, 15];
|
|
489
489
|
case 6:
|
|
490
490
|
_e = [{}];
|
|
491
|
-
return [4
|
|
491
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
492
492
|
case 7:
|
|
493
493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
494
|
-
return [3
|
|
494
|
+
return [3, 15];
|
|
495
495
|
case 8:
|
|
496
496
|
_f = [{}];
|
|
497
|
-
return [4
|
|
497
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
498
498
|
case 9:
|
|
499
499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
500
|
-
return [3
|
|
500
|
+
return [3, 15];
|
|
501
501
|
case 10:
|
|
502
502
|
_g = [{}];
|
|
503
|
-
return [4
|
|
503
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
504
504
|
case 11:
|
|
505
505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
506
|
-
return [3
|
|
506
|
+
return [3, 15];
|
|
507
507
|
case 12:
|
|
508
508
|
_h = [{}];
|
|
509
|
-
return [4
|
|
509
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
510
510
|
case 13:
|
|
511
511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 15];
|
|
513
513
|
case 14:
|
|
514
514
|
parsedBody = parsedOutput.body;
|
|
515
515
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -519,7 +519,7 @@ var deserializeAws_json1_1CreateNotificationCommandError = function (output, con
|
|
|
519
519
|
message = response.message || response.Message || errorCode;
|
|
520
520
|
response.message = message;
|
|
521
521
|
delete response.Message;
|
|
522
|
-
return [2
|
|
522
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
}); };
|
|
@@ -529,15 +529,15 @@ export var deserializeAws_json1_1CreateSubscriberCommand = function (output, con
|
|
|
529
529
|
switch (_a.label) {
|
|
530
530
|
case 0:
|
|
531
531
|
if (output.statusCode >= 300) {
|
|
532
|
-
return [2
|
|
532
|
+
return [2, deserializeAws_json1_1CreateSubscriberCommandError(output, context)];
|
|
533
533
|
}
|
|
534
|
-
return [4
|
|
534
|
+
return [4, parseBody(output.body, context)];
|
|
535
535
|
case 1:
|
|
536
536
|
data = _a.sent();
|
|
537
537
|
contents = {};
|
|
538
538
|
contents = deserializeAws_json1_1CreateSubscriberResponse(data, context);
|
|
539
539
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
540
|
-
return [2
|
|
540
|
+
return [2, Promise.resolve(response)];
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
543
|
}); };
|
|
@@ -549,63 +549,63 @@ var deserializeAws_json1_1CreateSubscriberCommandError = function (output, conte
|
|
|
549
549
|
case 0:
|
|
550
550
|
_a = [__assign({}, output)];
|
|
551
551
|
_j = {};
|
|
552
|
-
return [4
|
|
552
|
+
return [4, parseBody(output.body, context)];
|
|
553
553
|
case 1:
|
|
554
554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
555
555
|
errorCode = "UnknownError";
|
|
556
556
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
557
|
_b = errorCode;
|
|
558
558
|
switch (_b) {
|
|
559
|
-
case "AccessDeniedException": return [3
|
|
560
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
561
|
-
case "CreationLimitExceededException": return [3
|
|
562
|
-
case "com.amazonaws.budgets#CreationLimitExceededException": return [3
|
|
563
|
-
case "DuplicateRecordException": return [3
|
|
564
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
565
|
-
case "InternalErrorException": return [3
|
|
566
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
567
|
-
case "InvalidParameterException": return [3
|
|
568
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
569
|
-
case "NotFoundException": return [3
|
|
570
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
559
|
+
case "AccessDeniedException": return [3, 2];
|
|
560
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
561
|
+
case "CreationLimitExceededException": return [3, 4];
|
|
562
|
+
case "com.amazonaws.budgets#CreationLimitExceededException": return [3, 4];
|
|
563
|
+
case "DuplicateRecordException": return [3, 6];
|
|
564
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 6];
|
|
565
|
+
case "InternalErrorException": return [3, 8];
|
|
566
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 8];
|
|
567
|
+
case "InvalidParameterException": return [3, 10];
|
|
568
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
569
|
+
case "NotFoundException": return [3, 12];
|
|
570
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
571
571
|
}
|
|
572
|
-
return [3
|
|
572
|
+
return [3, 14];
|
|
573
573
|
case 2:
|
|
574
574
|
_c = [{}];
|
|
575
|
-
return [4
|
|
575
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
576
576
|
case 3:
|
|
577
577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
578
|
-
return [3
|
|
578
|
+
return [3, 15];
|
|
579
579
|
case 4:
|
|
580
580
|
_d = [{}];
|
|
581
|
-
return [4
|
|
581
|
+
return [4, deserializeAws_json1_1CreationLimitExceededExceptionResponse(parsedOutput, context)];
|
|
582
582
|
case 5:
|
|
583
583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
584
|
-
return [3
|
|
584
|
+
return [3, 15];
|
|
585
585
|
case 6:
|
|
586
586
|
_e = [{}];
|
|
587
|
-
return [4
|
|
587
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
588
588
|
case 7:
|
|
589
589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
590
|
-
return [3
|
|
590
|
+
return [3, 15];
|
|
591
591
|
case 8:
|
|
592
592
|
_f = [{}];
|
|
593
|
-
return [4
|
|
593
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
594
594
|
case 9:
|
|
595
595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
596
|
-
return [3
|
|
596
|
+
return [3, 15];
|
|
597
597
|
case 10:
|
|
598
598
|
_g = [{}];
|
|
599
|
-
return [4
|
|
599
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
600
600
|
case 11:
|
|
601
601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
602
|
-
return [3
|
|
602
|
+
return [3, 15];
|
|
603
603
|
case 12:
|
|
604
604
|
_h = [{}];
|
|
605
|
-
return [4
|
|
605
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
606
606
|
case 13:
|
|
607
607
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
608
|
-
return [3
|
|
608
|
+
return [3, 15];
|
|
609
609
|
case 14:
|
|
610
610
|
parsedBody = parsedOutput.body;
|
|
611
611
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -615,7 +615,7 @@ var deserializeAws_json1_1CreateSubscriberCommandError = function (output, conte
|
|
|
615
615
|
message = response.message || response.Message || errorCode;
|
|
616
616
|
response.message = message;
|
|
617
617
|
delete response.Message;
|
|
618
|
-
return [2
|
|
618
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
621
|
}); };
|
|
@@ -625,15 +625,15 @@ export var deserializeAws_json1_1DeleteBudgetCommand = function (output, context
|
|
|
625
625
|
switch (_a.label) {
|
|
626
626
|
case 0:
|
|
627
627
|
if (output.statusCode >= 300) {
|
|
628
|
-
return [2
|
|
628
|
+
return [2, deserializeAws_json1_1DeleteBudgetCommandError(output, context)];
|
|
629
629
|
}
|
|
630
|
-
return [4
|
|
630
|
+
return [4, parseBody(output.body, context)];
|
|
631
631
|
case 1:
|
|
632
632
|
data = _a.sent();
|
|
633
633
|
contents = {};
|
|
634
634
|
contents = deserializeAws_json1_1DeleteBudgetResponse(data, context);
|
|
635
635
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
636
|
-
return [2
|
|
636
|
+
return [2, Promise.resolve(response)];
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}); };
|
|
@@ -645,47 +645,47 @@ var deserializeAws_json1_1DeleteBudgetCommandError = function (output, context)
|
|
|
645
645
|
case 0:
|
|
646
646
|
_a = [__assign({}, output)];
|
|
647
647
|
_g = {};
|
|
648
|
-
return [4
|
|
648
|
+
return [4, parseBody(output.body, context)];
|
|
649
649
|
case 1:
|
|
650
650
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
651
651
|
errorCode = "UnknownError";
|
|
652
652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
653
|
_b = errorCode;
|
|
654
654
|
switch (_b) {
|
|
655
|
-
case "AccessDeniedException": return [3
|
|
656
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
657
|
-
case "InternalErrorException": return [3
|
|
658
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
659
|
-
case "InvalidParameterException": return [3
|
|
660
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
661
|
-
case "NotFoundException": return [3
|
|
662
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
655
|
+
case "AccessDeniedException": return [3, 2];
|
|
656
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
657
|
+
case "InternalErrorException": return [3, 4];
|
|
658
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
659
|
+
case "InvalidParameterException": return [3, 6];
|
|
660
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
661
|
+
case "NotFoundException": return [3, 8];
|
|
662
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
663
663
|
}
|
|
664
|
-
return [3
|
|
664
|
+
return [3, 10];
|
|
665
665
|
case 2:
|
|
666
666
|
_c = [{}];
|
|
667
|
-
return [4
|
|
667
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
668
668
|
case 3:
|
|
669
669
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
670
|
-
return [3
|
|
670
|
+
return [3, 11];
|
|
671
671
|
case 4:
|
|
672
672
|
_d = [{}];
|
|
673
|
-
return [4
|
|
673
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
674
674
|
case 5:
|
|
675
675
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
676
|
-
return [3
|
|
676
|
+
return [3, 11];
|
|
677
677
|
case 6:
|
|
678
678
|
_e = [{}];
|
|
679
|
-
return [4
|
|
679
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
680
680
|
case 7:
|
|
681
681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
682
|
-
return [3
|
|
682
|
+
return [3, 11];
|
|
683
683
|
case 8:
|
|
684
684
|
_f = [{}];
|
|
685
|
-
return [4
|
|
685
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
686
686
|
case 9:
|
|
687
687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
688
|
-
return [3
|
|
688
|
+
return [3, 11];
|
|
689
689
|
case 10:
|
|
690
690
|
parsedBody = parsedOutput.body;
|
|
691
691
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -695,7 +695,7 @@ var deserializeAws_json1_1DeleteBudgetCommandError = function (output, context)
|
|
|
695
695
|
message = response.message || response.Message || errorCode;
|
|
696
696
|
response.message = message;
|
|
697
697
|
delete response.Message;
|
|
698
|
-
return [2
|
|
698
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
699
699
|
}
|
|
700
700
|
});
|
|
701
701
|
}); };
|
|
@@ -705,15 +705,15 @@ export var deserializeAws_json1_1DeleteBudgetActionCommand = function (output, c
|
|
|
705
705
|
switch (_a.label) {
|
|
706
706
|
case 0:
|
|
707
707
|
if (output.statusCode >= 300) {
|
|
708
|
-
return [2
|
|
708
|
+
return [2, deserializeAws_json1_1DeleteBudgetActionCommandError(output, context)];
|
|
709
709
|
}
|
|
710
|
-
return [4
|
|
710
|
+
return [4, parseBody(output.body, context)];
|
|
711
711
|
case 1:
|
|
712
712
|
data = _a.sent();
|
|
713
713
|
contents = {};
|
|
714
714
|
contents = deserializeAws_json1_1DeleteBudgetActionResponse(data, context);
|
|
715
715
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
716
|
-
return [2
|
|
716
|
+
return [2, Promise.resolve(response)];
|
|
717
717
|
}
|
|
718
718
|
});
|
|
719
719
|
}); };
|
|
@@ -725,55 +725,55 @@ var deserializeAws_json1_1DeleteBudgetActionCommandError = function (output, con
|
|
|
725
725
|
case 0:
|
|
726
726
|
_a = [__assign({}, output)];
|
|
727
727
|
_h = {};
|
|
728
|
-
return [4
|
|
728
|
+
return [4, parseBody(output.body, context)];
|
|
729
729
|
case 1:
|
|
730
730
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
731
731
|
errorCode = "UnknownError";
|
|
732
732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
733
|
_b = errorCode;
|
|
734
734
|
switch (_b) {
|
|
735
|
-
case "AccessDeniedException": return [3
|
|
736
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
737
|
-
case "InternalErrorException": return [3
|
|
738
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
739
|
-
case "InvalidParameterException": return [3
|
|
740
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
741
|
-
case "NotFoundException": return [3
|
|
742
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
743
|
-
case "ResourceLockedException": return [3
|
|
744
|
-
case "com.amazonaws.budgets#ResourceLockedException": return [3
|
|
735
|
+
case "AccessDeniedException": return [3, 2];
|
|
736
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
737
|
+
case "InternalErrorException": return [3, 4];
|
|
738
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
739
|
+
case "InvalidParameterException": return [3, 6];
|
|
740
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
741
|
+
case "NotFoundException": return [3, 8];
|
|
742
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
743
|
+
case "ResourceLockedException": return [3, 10];
|
|
744
|
+
case "com.amazonaws.budgets#ResourceLockedException": return [3, 10];
|
|
745
745
|
}
|
|
746
|
-
return [3
|
|
746
|
+
return [3, 12];
|
|
747
747
|
case 2:
|
|
748
748
|
_c = [{}];
|
|
749
|
-
return [4
|
|
749
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
750
750
|
case 3:
|
|
751
751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
752
|
-
return [3
|
|
752
|
+
return [3, 13];
|
|
753
753
|
case 4:
|
|
754
754
|
_d = [{}];
|
|
755
|
-
return [4
|
|
755
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
756
756
|
case 5:
|
|
757
757
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
758
|
-
return [3
|
|
758
|
+
return [3, 13];
|
|
759
759
|
case 6:
|
|
760
760
|
_e = [{}];
|
|
761
|
-
return [4
|
|
761
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
762
762
|
case 7:
|
|
763
763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
764
|
-
return [3
|
|
764
|
+
return [3, 13];
|
|
765
765
|
case 8:
|
|
766
766
|
_f = [{}];
|
|
767
|
-
return [4
|
|
767
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
768
768
|
case 9:
|
|
769
769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
770
|
-
return [3
|
|
770
|
+
return [3, 13];
|
|
771
771
|
case 10:
|
|
772
772
|
_g = [{}];
|
|
773
|
-
return [4
|
|
773
|
+
return [4, deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)];
|
|
774
774
|
case 11:
|
|
775
775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
776
|
-
return [3
|
|
776
|
+
return [3, 13];
|
|
777
777
|
case 12:
|
|
778
778
|
parsedBody = parsedOutput.body;
|
|
779
779
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -783,7 +783,7 @@ var deserializeAws_json1_1DeleteBudgetActionCommandError = function (output, con
|
|
|
783
783
|
message = response.message || response.Message || errorCode;
|
|
784
784
|
response.message = message;
|
|
785
785
|
delete response.Message;
|
|
786
|
-
return [2
|
|
786
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
787
787
|
}
|
|
788
788
|
});
|
|
789
789
|
}); };
|
|
@@ -793,15 +793,15 @@ export var deserializeAws_json1_1DeleteNotificationCommand = function (output, c
|
|
|
793
793
|
switch (_a.label) {
|
|
794
794
|
case 0:
|
|
795
795
|
if (output.statusCode >= 300) {
|
|
796
|
-
return [2
|
|
796
|
+
return [2, deserializeAws_json1_1DeleteNotificationCommandError(output, context)];
|
|
797
797
|
}
|
|
798
|
-
return [4
|
|
798
|
+
return [4, parseBody(output.body, context)];
|
|
799
799
|
case 1:
|
|
800
800
|
data = _a.sent();
|
|
801
801
|
contents = {};
|
|
802
802
|
contents = deserializeAws_json1_1DeleteNotificationResponse(data, context);
|
|
803
803
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
804
|
-
return [2
|
|
804
|
+
return [2, Promise.resolve(response)];
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
}); };
|
|
@@ -813,47 +813,47 @@ var deserializeAws_json1_1DeleteNotificationCommandError = function (output, con
|
|
|
813
813
|
case 0:
|
|
814
814
|
_a = [__assign({}, output)];
|
|
815
815
|
_g = {};
|
|
816
|
-
return [4
|
|
816
|
+
return [4, parseBody(output.body, context)];
|
|
817
817
|
case 1:
|
|
818
818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
819
819
|
errorCode = "UnknownError";
|
|
820
820
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
821
|
_b = errorCode;
|
|
822
822
|
switch (_b) {
|
|
823
|
-
case "AccessDeniedException": return [3
|
|
824
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
825
|
-
case "InternalErrorException": return [3
|
|
826
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
827
|
-
case "InvalidParameterException": return [3
|
|
828
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
829
|
-
case "NotFoundException": return [3
|
|
830
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
823
|
+
case "AccessDeniedException": return [3, 2];
|
|
824
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
825
|
+
case "InternalErrorException": return [3, 4];
|
|
826
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
827
|
+
case "InvalidParameterException": return [3, 6];
|
|
828
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
829
|
+
case "NotFoundException": return [3, 8];
|
|
830
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
831
831
|
}
|
|
832
|
-
return [3
|
|
832
|
+
return [3, 10];
|
|
833
833
|
case 2:
|
|
834
834
|
_c = [{}];
|
|
835
|
-
return [4
|
|
835
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
836
836
|
case 3:
|
|
837
837
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
838
|
-
return [3
|
|
838
|
+
return [3, 11];
|
|
839
839
|
case 4:
|
|
840
840
|
_d = [{}];
|
|
841
|
-
return [4
|
|
841
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
842
842
|
case 5:
|
|
843
843
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
844
|
-
return [3
|
|
844
|
+
return [3, 11];
|
|
845
845
|
case 6:
|
|
846
846
|
_e = [{}];
|
|
847
|
-
return [4
|
|
847
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
848
848
|
case 7:
|
|
849
849
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
850
|
-
return [3
|
|
850
|
+
return [3, 11];
|
|
851
851
|
case 8:
|
|
852
852
|
_f = [{}];
|
|
853
|
-
return [4
|
|
853
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
854
854
|
case 9:
|
|
855
855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
856
|
-
return [3
|
|
856
|
+
return [3, 11];
|
|
857
857
|
case 10:
|
|
858
858
|
parsedBody = parsedOutput.body;
|
|
859
859
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -863,7 +863,7 @@ var deserializeAws_json1_1DeleteNotificationCommandError = function (output, con
|
|
|
863
863
|
message = response.message || response.Message || errorCode;
|
|
864
864
|
response.message = message;
|
|
865
865
|
delete response.Message;
|
|
866
|
-
return [2
|
|
866
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
}); };
|
|
@@ -873,15 +873,15 @@ export var deserializeAws_json1_1DeleteSubscriberCommand = function (output, con
|
|
|
873
873
|
switch (_a.label) {
|
|
874
874
|
case 0:
|
|
875
875
|
if (output.statusCode >= 300) {
|
|
876
|
-
return [2
|
|
876
|
+
return [2, deserializeAws_json1_1DeleteSubscriberCommandError(output, context)];
|
|
877
877
|
}
|
|
878
|
-
return [4
|
|
878
|
+
return [4, parseBody(output.body, context)];
|
|
879
879
|
case 1:
|
|
880
880
|
data = _a.sent();
|
|
881
881
|
contents = {};
|
|
882
882
|
contents = deserializeAws_json1_1DeleteSubscriberResponse(data, context);
|
|
883
883
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
884
|
-
return [2
|
|
884
|
+
return [2, Promise.resolve(response)];
|
|
885
885
|
}
|
|
886
886
|
});
|
|
887
887
|
}); };
|
|
@@ -893,47 +893,47 @@ var deserializeAws_json1_1DeleteSubscriberCommandError = function (output, conte
|
|
|
893
893
|
case 0:
|
|
894
894
|
_a = [__assign({}, output)];
|
|
895
895
|
_g = {};
|
|
896
|
-
return [4
|
|
896
|
+
return [4, parseBody(output.body, context)];
|
|
897
897
|
case 1:
|
|
898
898
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
899
899
|
errorCode = "UnknownError";
|
|
900
900
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
901
|
_b = errorCode;
|
|
902
902
|
switch (_b) {
|
|
903
|
-
case "AccessDeniedException": return [3
|
|
904
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
905
|
-
case "InternalErrorException": return [3
|
|
906
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
907
|
-
case "InvalidParameterException": return [3
|
|
908
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
909
|
-
case "NotFoundException": return [3
|
|
910
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
903
|
+
case "AccessDeniedException": return [3, 2];
|
|
904
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
905
|
+
case "InternalErrorException": return [3, 4];
|
|
906
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
907
|
+
case "InvalidParameterException": return [3, 6];
|
|
908
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
909
|
+
case "NotFoundException": return [3, 8];
|
|
910
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
911
911
|
}
|
|
912
|
-
return [3
|
|
912
|
+
return [3, 10];
|
|
913
913
|
case 2:
|
|
914
914
|
_c = [{}];
|
|
915
|
-
return [4
|
|
915
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
916
916
|
case 3:
|
|
917
917
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
918
|
-
return [3
|
|
918
|
+
return [3, 11];
|
|
919
919
|
case 4:
|
|
920
920
|
_d = [{}];
|
|
921
|
-
return [4
|
|
921
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
922
922
|
case 5:
|
|
923
923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
924
|
-
return [3
|
|
924
|
+
return [3, 11];
|
|
925
925
|
case 6:
|
|
926
926
|
_e = [{}];
|
|
927
|
-
return [4
|
|
927
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
928
928
|
case 7:
|
|
929
929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
930
|
-
return [3
|
|
930
|
+
return [3, 11];
|
|
931
931
|
case 8:
|
|
932
932
|
_f = [{}];
|
|
933
|
-
return [4
|
|
933
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
934
934
|
case 9:
|
|
935
935
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
936
|
-
return [3
|
|
936
|
+
return [3, 11];
|
|
937
937
|
case 10:
|
|
938
938
|
parsedBody = parsedOutput.body;
|
|
939
939
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -943,7 +943,7 @@ var deserializeAws_json1_1DeleteSubscriberCommandError = function (output, conte
|
|
|
943
943
|
message = response.message || response.Message || errorCode;
|
|
944
944
|
response.message = message;
|
|
945
945
|
delete response.Message;
|
|
946
|
-
return [2
|
|
946
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
947
947
|
}
|
|
948
948
|
});
|
|
949
949
|
}); };
|
|
@@ -953,15 +953,15 @@ export var deserializeAws_json1_1DescribeBudgetCommand = function (output, conte
|
|
|
953
953
|
switch (_a.label) {
|
|
954
954
|
case 0:
|
|
955
955
|
if (output.statusCode >= 300) {
|
|
956
|
-
return [2
|
|
956
|
+
return [2, deserializeAws_json1_1DescribeBudgetCommandError(output, context)];
|
|
957
957
|
}
|
|
958
|
-
return [4
|
|
958
|
+
return [4, parseBody(output.body, context)];
|
|
959
959
|
case 1:
|
|
960
960
|
data = _a.sent();
|
|
961
961
|
contents = {};
|
|
962
962
|
contents = deserializeAws_json1_1DescribeBudgetResponse(data, context);
|
|
963
963
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
964
|
-
return [2
|
|
964
|
+
return [2, Promise.resolve(response)];
|
|
965
965
|
}
|
|
966
966
|
});
|
|
967
967
|
}); };
|
|
@@ -973,47 +973,47 @@ var deserializeAws_json1_1DescribeBudgetCommandError = function (output, context
|
|
|
973
973
|
case 0:
|
|
974
974
|
_a = [__assign({}, output)];
|
|
975
975
|
_g = {};
|
|
976
|
-
return [4
|
|
976
|
+
return [4, parseBody(output.body, context)];
|
|
977
977
|
case 1:
|
|
978
978
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
979
979
|
errorCode = "UnknownError";
|
|
980
980
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
981
|
_b = errorCode;
|
|
982
982
|
switch (_b) {
|
|
983
|
-
case "AccessDeniedException": return [3
|
|
984
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
985
|
-
case "InternalErrorException": return [3
|
|
986
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
987
|
-
case "InvalidParameterException": return [3
|
|
988
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
989
|
-
case "NotFoundException": return [3
|
|
990
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
983
|
+
case "AccessDeniedException": return [3, 2];
|
|
984
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
985
|
+
case "InternalErrorException": return [3, 4];
|
|
986
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
987
|
+
case "InvalidParameterException": return [3, 6];
|
|
988
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
989
|
+
case "NotFoundException": return [3, 8];
|
|
990
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
991
991
|
}
|
|
992
|
-
return [3
|
|
992
|
+
return [3, 10];
|
|
993
993
|
case 2:
|
|
994
994
|
_c = [{}];
|
|
995
|
-
return [4
|
|
995
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
996
996
|
case 3:
|
|
997
997
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
998
|
-
return [3
|
|
998
|
+
return [3, 11];
|
|
999
999
|
case 4:
|
|
1000
1000
|
_d = [{}];
|
|
1001
|
-
return [4
|
|
1001
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1002
1002
|
case 5:
|
|
1003
1003
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1004
|
-
return [3
|
|
1004
|
+
return [3, 11];
|
|
1005
1005
|
case 6:
|
|
1006
1006
|
_e = [{}];
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1008
1008
|
case 7:
|
|
1009
1009
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1010
|
-
return [3
|
|
1010
|
+
return [3, 11];
|
|
1011
1011
|
case 8:
|
|
1012
1012
|
_f = [{}];
|
|
1013
|
-
return [4
|
|
1013
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1014
1014
|
case 9:
|
|
1015
1015
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1016
|
-
return [3
|
|
1016
|
+
return [3, 11];
|
|
1017
1017
|
case 10:
|
|
1018
1018
|
parsedBody = parsedOutput.body;
|
|
1019
1019
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1023,7 +1023,7 @@ var deserializeAws_json1_1DescribeBudgetCommandError = function (output, context
|
|
|
1023
1023
|
message = response.message || response.Message || errorCode;
|
|
1024
1024
|
response.message = message;
|
|
1025
1025
|
delete response.Message;
|
|
1026
|
-
return [2
|
|
1026
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1027
1027
|
}
|
|
1028
1028
|
});
|
|
1029
1029
|
}); };
|
|
@@ -1033,15 +1033,15 @@ export var deserializeAws_json1_1DescribeBudgetActionCommand = function (output,
|
|
|
1033
1033
|
switch (_a.label) {
|
|
1034
1034
|
case 0:
|
|
1035
1035
|
if (output.statusCode >= 300) {
|
|
1036
|
-
return [2
|
|
1036
|
+
return [2, deserializeAws_json1_1DescribeBudgetActionCommandError(output, context)];
|
|
1037
1037
|
}
|
|
1038
|
-
return [4
|
|
1038
|
+
return [4, parseBody(output.body, context)];
|
|
1039
1039
|
case 1:
|
|
1040
1040
|
data = _a.sent();
|
|
1041
1041
|
contents = {};
|
|
1042
1042
|
contents = deserializeAws_json1_1DescribeBudgetActionResponse(data, context);
|
|
1043
1043
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, Promise.resolve(response)];
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
}); };
|
|
@@ -1053,47 +1053,47 @@ var deserializeAws_json1_1DescribeBudgetActionCommandError = function (output, c
|
|
|
1053
1053
|
case 0:
|
|
1054
1054
|
_a = [__assign({}, output)];
|
|
1055
1055
|
_g = {};
|
|
1056
|
-
return [4
|
|
1056
|
+
return [4, parseBody(output.body, context)];
|
|
1057
1057
|
case 1:
|
|
1058
1058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1059
1059
|
errorCode = "UnknownError";
|
|
1060
1060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1061
|
_b = errorCode;
|
|
1062
1062
|
switch (_b) {
|
|
1063
|
-
case "AccessDeniedException": return [3
|
|
1064
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1065
|
-
case "InternalErrorException": return [3
|
|
1066
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1067
|
-
case "InvalidParameterException": return [3
|
|
1068
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1069
|
-
case "NotFoundException": return [3
|
|
1070
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1063
|
+
case "AccessDeniedException": return [3, 2];
|
|
1064
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1065
|
+
case "InternalErrorException": return [3, 4];
|
|
1066
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1067
|
+
case "InvalidParameterException": return [3, 6];
|
|
1068
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
1069
|
+
case "NotFoundException": return [3, 8];
|
|
1070
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
1071
1071
|
}
|
|
1072
|
-
return [3
|
|
1072
|
+
return [3, 10];
|
|
1073
1073
|
case 2:
|
|
1074
1074
|
_c = [{}];
|
|
1075
|
-
return [4
|
|
1075
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1076
1076
|
case 3:
|
|
1077
1077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1078
|
-
return [3
|
|
1078
|
+
return [3, 11];
|
|
1079
1079
|
case 4:
|
|
1080
1080
|
_d = [{}];
|
|
1081
|
-
return [4
|
|
1081
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1082
1082
|
case 5:
|
|
1083
1083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1084
|
-
return [3
|
|
1084
|
+
return [3, 11];
|
|
1085
1085
|
case 6:
|
|
1086
1086
|
_e = [{}];
|
|
1087
|
-
return [4
|
|
1087
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1088
1088
|
case 7:
|
|
1089
1089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1090
|
-
return [3
|
|
1090
|
+
return [3, 11];
|
|
1091
1091
|
case 8:
|
|
1092
1092
|
_f = [{}];
|
|
1093
|
-
return [4
|
|
1093
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1094
1094
|
case 9:
|
|
1095
1095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1096
|
-
return [3
|
|
1096
|
+
return [3, 11];
|
|
1097
1097
|
case 10:
|
|
1098
1098
|
parsedBody = parsedOutput.body;
|
|
1099
1099
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1103,7 +1103,7 @@ var deserializeAws_json1_1DescribeBudgetActionCommandError = function (output, c
|
|
|
1103
1103
|
message = response.message || response.Message || errorCode;
|
|
1104
1104
|
response.message = message;
|
|
1105
1105
|
delete response.Message;
|
|
1106
|
-
return [2
|
|
1106
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1107
1107
|
}
|
|
1108
1108
|
});
|
|
1109
1109
|
}); };
|
|
@@ -1113,15 +1113,15 @@ export var deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = function
|
|
|
1113
1113
|
switch (_a.label) {
|
|
1114
1114
|
case 0:
|
|
1115
1115
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return [2
|
|
1116
|
+
return [2, deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError(output, context)];
|
|
1117
1117
|
}
|
|
1118
|
-
return [4
|
|
1118
|
+
return [4, parseBody(output.body, context)];
|
|
1119
1119
|
case 1:
|
|
1120
1120
|
data = _a.sent();
|
|
1121
1121
|
contents = {};
|
|
1122
1122
|
contents = deserializeAws_json1_1DescribeBudgetActionHistoriesResponse(data, context);
|
|
1123
1123
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1124
|
-
return [2
|
|
1124
|
+
return [2, Promise.resolve(response)];
|
|
1125
1125
|
}
|
|
1126
1126
|
});
|
|
1127
1127
|
}); };
|
|
@@ -1133,55 +1133,55 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = function (
|
|
|
1133
1133
|
case 0:
|
|
1134
1134
|
_a = [__assign({}, output)];
|
|
1135
1135
|
_h = {};
|
|
1136
|
-
return [4
|
|
1136
|
+
return [4, parseBody(output.body, context)];
|
|
1137
1137
|
case 1:
|
|
1138
1138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1139
1139
|
errorCode = "UnknownError";
|
|
1140
1140
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
1141
|
_b = errorCode;
|
|
1142
1142
|
switch (_b) {
|
|
1143
|
-
case "AccessDeniedException": return [3
|
|
1144
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1145
|
-
case "InternalErrorException": return [3
|
|
1146
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1147
|
-
case "InvalidNextTokenException": return [3
|
|
1148
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1149
|
-
case "InvalidParameterException": return [3
|
|
1150
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1151
|
-
case "NotFoundException": return [3
|
|
1152
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1143
|
+
case "AccessDeniedException": return [3, 2];
|
|
1144
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1145
|
+
case "InternalErrorException": return [3, 4];
|
|
1146
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1147
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1148
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 6];
|
|
1149
|
+
case "InvalidParameterException": return [3, 8];
|
|
1150
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 8];
|
|
1151
|
+
case "NotFoundException": return [3, 10];
|
|
1152
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 10];
|
|
1153
1153
|
}
|
|
1154
|
-
return [3
|
|
1154
|
+
return [3, 12];
|
|
1155
1155
|
case 2:
|
|
1156
1156
|
_c = [{}];
|
|
1157
|
-
return [4
|
|
1157
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1158
1158
|
case 3:
|
|
1159
1159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1160
|
-
return [3
|
|
1160
|
+
return [3, 13];
|
|
1161
1161
|
case 4:
|
|
1162
1162
|
_d = [{}];
|
|
1163
|
-
return [4
|
|
1163
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1164
1164
|
case 5:
|
|
1165
1165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1166
|
-
return [3
|
|
1166
|
+
return [3, 13];
|
|
1167
1167
|
case 6:
|
|
1168
1168
|
_e = [{}];
|
|
1169
|
-
return [4
|
|
1169
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1170
1170
|
case 7:
|
|
1171
1171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1172
|
-
return [3
|
|
1172
|
+
return [3, 13];
|
|
1173
1173
|
case 8:
|
|
1174
1174
|
_f = [{}];
|
|
1175
|
-
return [4
|
|
1175
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1176
1176
|
case 9:
|
|
1177
1177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
-
return [3
|
|
1178
|
+
return [3, 13];
|
|
1179
1179
|
case 10:
|
|
1180
1180
|
_g = [{}];
|
|
1181
|
-
return [4
|
|
1181
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1182
1182
|
case 11:
|
|
1183
1183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1184
|
-
return [3
|
|
1184
|
+
return [3, 13];
|
|
1185
1185
|
case 12:
|
|
1186
1186
|
parsedBody = parsedOutput.body;
|
|
1187
1187
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1191,7 +1191,7 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = function (
|
|
|
1191
1191
|
message = response.message || response.Message || errorCode;
|
|
1192
1192
|
response.message = message;
|
|
1193
1193
|
delete response.Message;
|
|
1194
|
-
return [2
|
|
1194
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1195
1195
|
}
|
|
1196
1196
|
});
|
|
1197
1197
|
}); };
|
|
@@ -1201,15 +1201,15 @@ export var deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = functi
|
|
|
1201
1201
|
switch (_a.label) {
|
|
1202
1202
|
case 0:
|
|
1203
1203
|
if (output.statusCode >= 300) {
|
|
1204
|
-
return [2
|
|
1204
|
+
return [2, deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError(output, context)];
|
|
1205
1205
|
}
|
|
1206
|
-
return [4
|
|
1206
|
+
return [4, parseBody(output.body, context)];
|
|
1207
1207
|
case 1:
|
|
1208
1208
|
data = _a.sent();
|
|
1209
1209
|
contents = {};
|
|
1210
1210
|
contents = deserializeAws_json1_1DescribeBudgetActionsForAccountResponse(data, context);
|
|
1211
1211
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1212
|
-
return [2
|
|
1212
|
+
return [2, Promise.resolve(response)];
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
1215
|
}); };
|
|
@@ -1221,47 +1221,47 @@ var deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = function
|
|
|
1221
1221
|
case 0:
|
|
1222
1222
|
_a = [__assign({}, output)];
|
|
1223
1223
|
_g = {};
|
|
1224
|
-
return [4
|
|
1224
|
+
return [4, parseBody(output.body, context)];
|
|
1225
1225
|
case 1:
|
|
1226
1226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1227
1227
|
errorCode = "UnknownError";
|
|
1228
1228
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1229
|
_b = errorCode;
|
|
1230
1230
|
switch (_b) {
|
|
1231
|
-
case "AccessDeniedException": return [3
|
|
1232
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1233
|
-
case "InternalErrorException": return [3
|
|
1234
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1235
|
-
case "InvalidNextTokenException": return [3
|
|
1236
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1237
|
-
case "InvalidParameterException": return [3
|
|
1238
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1231
|
+
case "AccessDeniedException": return [3, 2];
|
|
1232
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1233
|
+
case "InternalErrorException": return [3, 4];
|
|
1234
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1235
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1236
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 6];
|
|
1237
|
+
case "InvalidParameterException": return [3, 8];
|
|
1238
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 8];
|
|
1239
1239
|
}
|
|
1240
|
-
return [3
|
|
1240
|
+
return [3, 10];
|
|
1241
1241
|
case 2:
|
|
1242
1242
|
_c = [{}];
|
|
1243
|
-
return [4
|
|
1243
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1244
1244
|
case 3:
|
|
1245
1245
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1246
|
-
return [3
|
|
1246
|
+
return [3, 11];
|
|
1247
1247
|
case 4:
|
|
1248
1248
|
_d = [{}];
|
|
1249
|
-
return [4
|
|
1249
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1250
1250
|
case 5:
|
|
1251
1251
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1252
|
-
return [3
|
|
1252
|
+
return [3, 11];
|
|
1253
1253
|
case 6:
|
|
1254
1254
|
_e = [{}];
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1256
1256
|
case 7:
|
|
1257
1257
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1258
|
-
return [3
|
|
1258
|
+
return [3, 11];
|
|
1259
1259
|
case 8:
|
|
1260
1260
|
_f = [{}];
|
|
1261
|
-
return [4
|
|
1261
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1262
1262
|
case 9:
|
|
1263
1263
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1264
|
-
return [3
|
|
1264
|
+
return [3, 11];
|
|
1265
1265
|
case 10:
|
|
1266
1266
|
parsedBody = parsedOutput.body;
|
|
1267
1267
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1271,7 +1271,7 @@ var deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = function
|
|
|
1271
1271
|
message = response.message || response.Message || errorCode;
|
|
1272
1272
|
response.message = message;
|
|
1273
1273
|
delete response.Message;
|
|
1274
|
-
return [2
|
|
1274
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1275
1275
|
}
|
|
1276
1276
|
});
|
|
1277
1277
|
}); };
|
|
@@ -1281,15 +1281,15 @@ export var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = functio
|
|
|
1281
1281
|
switch (_a.label) {
|
|
1282
1282
|
case 0:
|
|
1283
1283
|
if (output.statusCode >= 300) {
|
|
1284
|
-
return [2
|
|
1284
|
+
return [2, deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError(output, context)];
|
|
1285
1285
|
}
|
|
1286
|
-
return [4
|
|
1286
|
+
return [4, parseBody(output.body, context)];
|
|
1287
1287
|
case 1:
|
|
1288
1288
|
data = _a.sent();
|
|
1289
1289
|
contents = {};
|
|
1290
1290
|
contents = deserializeAws_json1_1DescribeBudgetActionsForBudgetResponse(data, context);
|
|
1291
1291
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1292
|
-
return [2
|
|
1292
|
+
return [2, Promise.resolve(response)];
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
1295
|
}); };
|
|
@@ -1301,55 +1301,55 @@ var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = function
|
|
|
1301
1301
|
case 0:
|
|
1302
1302
|
_a = [__assign({}, output)];
|
|
1303
1303
|
_h = {};
|
|
1304
|
-
return [4
|
|
1304
|
+
return [4, parseBody(output.body, context)];
|
|
1305
1305
|
case 1:
|
|
1306
1306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1307
1307
|
errorCode = "UnknownError";
|
|
1308
1308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1309
|
_b = errorCode;
|
|
1310
1310
|
switch (_b) {
|
|
1311
|
-
case "AccessDeniedException": return [3
|
|
1312
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1313
|
-
case "InternalErrorException": return [3
|
|
1314
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1315
|
-
case "InvalidNextTokenException": return [3
|
|
1316
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1317
|
-
case "InvalidParameterException": return [3
|
|
1318
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1319
|
-
case "NotFoundException": return [3
|
|
1320
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1311
|
+
case "AccessDeniedException": return [3, 2];
|
|
1312
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1313
|
+
case "InternalErrorException": return [3, 4];
|
|
1314
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1315
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1316
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 6];
|
|
1317
|
+
case "InvalidParameterException": return [3, 8];
|
|
1318
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 8];
|
|
1319
|
+
case "NotFoundException": return [3, 10];
|
|
1320
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 10];
|
|
1321
1321
|
}
|
|
1322
|
-
return [3
|
|
1322
|
+
return [3, 12];
|
|
1323
1323
|
case 2:
|
|
1324
1324
|
_c = [{}];
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1326
1326
|
case 3:
|
|
1327
1327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1328
|
+
return [3, 13];
|
|
1329
1329
|
case 4:
|
|
1330
1330
|
_d = [{}];
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1332
1332
|
case 5:
|
|
1333
1333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3
|
|
1334
|
+
return [3, 13];
|
|
1335
1335
|
case 6:
|
|
1336
1336
|
_e = [{}];
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1338
1338
|
case 7:
|
|
1339
1339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1340
|
+
return [3, 13];
|
|
1341
1341
|
case 8:
|
|
1342
1342
|
_f = [{}];
|
|
1343
|
-
return [4
|
|
1343
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1344
1344
|
case 9:
|
|
1345
1345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1346
|
-
return [3
|
|
1346
|
+
return [3, 13];
|
|
1347
1347
|
case 10:
|
|
1348
1348
|
_g = [{}];
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1350
1350
|
case 11:
|
|
1351
1351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1352
|
+
return [3, 13];
|
|
1353
1353
|
case 12:
|
|
1354
1354
|
parsedBody = parsedOutput.body;
|
|
1355
1355
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1359,7 +1359,7 @@ var deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = function
|
|
|
1359
1359
|
message = response.message || response.Message || errorCode;
|
|
1360
1360
|
response.message = message;
|
|
1361
1361
|
delete response.Message;
|
|
1362
|
-
return [2
|
|
1362
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
1365
1365
|
}); };
|
|
@@ -1369,15 +1369,15 @@ export var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = funct
|
|
|
1369
1369
|
switch (_a.label) {
|
|
1370
1370
|
case 0:
|
|
1371
1371
|
if (output.statusCode >= 300) {
|
|
1372
|
-
return [2
|
|
1372
|
+
return [2, deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError(output, context)];
|
|
1373
1373
|
}
|
|
1374
|
-
return [4
|
|
1374
|
+
return [4, parseBody(output.body, context)];
|
|
1375
1375
|
case 1:
|
|
1376
1376
|
data = _a.sent();
|
|
1377
1377
|
contents = {};
|
|
1378
1378
|
contents = deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
1379
1379
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1380
|
-
return [2
|
|
1380
|
+
return [2, Promise.resolve(response)];
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
1383
1383
|
}); };
|
|
@@ -1389,63 +1389,63 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = functio
|
|
|
1389
1389
|
case 0:
|
|
1390
1390
|
_a = [__assign({}, output)];
|
|
1391
1391
|
_j = {};
|
|
1392
|
-
return [4
|
|
1392
|
+
return [4, parseBody(output.body, context)];
|
|
1393
1393
|
case 1:
|
|
1394
1394
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1395
1395
|
errorCode = "UnknownError";
|
|
1396
1396
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
1397
|
_b = errorCode;
|
|
1398
1398
|
switch (_b) {
|
|
1399
|
-
case "AccessDeniedException": return [3
|
|
1400
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1401
|
-
case "ExpiredNextTokenException": return [3
|
|
1402
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3
|
|
1403
|
-
case "InternalErrorException": return [3
|
|
1404
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1405
|
-
case "InvalidNextTokenException": return [3
|
|
1406
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1407
|
-
case "InvalidParameterException": return [3
|
|
1408
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1409
|
-
case "NotFoundException": return [3
|
|
1410
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1399
|
+
case "AccessDeniedException": return [3, 2];
|
|
1400
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1401
|
+
case "ExpiredNextTokenException": return [3, 4];
|
|
1402
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3, 4];
|
|
1403
|
+
case "InternalErrorException": return [3, 6];
|
|
1404
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
1405
|
+
case "InvalidNextTokenException": return [3, 8];
|
|
1406
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 8];
|
|
1407
|
+
case "InvalidParameterException": return [3, 10];
|
|
1408
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
1409
|
+
case "NotFoundException": return [3, 12];
|
|
1410
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
1411
1411
|
}
|
|
1412
|
-
return [3
|
|
1412
|
+
return [3, 14];
|
|
1413
1413
|
case 2:
|
|
1414
1414
|
_c = [{}];
|
|
1415
|
-
return [4
|
|
1415
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1416
1416
|
case 3:
|
|
1417
1417
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1418
|
-
return [3
|
|
1418
|
+
return [3, 15];
|
|
1419
1419
|
case 4:
|
|
1420
1420
|
_d = [{}];
|
|
1421
|
-
return [4
|
|
1421
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1422
1422
|
case 5:
|
|
1423
1423
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1424
|
-
return [3
|
|
1424
|
+
return [3, 15];
|
|
1425
1425
|
case 6:
|
|
1426
1426
|
_e = [{}];
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1428
1428
|
case 7:
|
|
1429
1429
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
-
return [3
|
|
1430
|
+
return [3, 15];
|
|
1431
1431
|
case 8:
|
|
1432
1432
|
_f = [{}];
|
|
1433
|
-
return [4
|
|
1433
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1434
1434
|
case 9:
|
|
1435
1435
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1436
|
-
return [3
|
|
1436
|
+
return [3, 15];
|
|
1437
1437
|
case 10:
|
|
1438
1438
|
_g = [{}];
|
|
1439
|
-
return [4
|
|
1439
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1440
1440
|
case 11:
|
|
1441
1441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1442
|
-
return [3
|
|
1442
|
+
return [3, 15];
|
|
1443
1443
|
case 12:
|
|
1444
1444
|
_h = [{}];
|
|
1445
|
-
return [4
|
|
1445
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1446
1446
|
case 13:
|
|
1447
1447
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1448
|
-
return [3
|
|
1448
|
+
return [3, 15];
|
|
1449
1449
|
case 14:
|
|
1450
1450
|
parsedBody = parsedOutput.body;
|
|
1451
1451
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1455,7 +1455,7 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = functio
|
|
|
1455
1455
|
message = response.message || response.Message || errorCode;
|
|
1456
1456
|
response.message = message;
|
|
1457
1457
|
delete response.Message;
|
|
1458
|
-
return [2
|
|
1458
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1459
1459
|
}
|
|
1460
1460
|
});
|
|
1461
1461
|
}); };
|
|
@@ -1465,15 +1465,15 @@ export var deserializeAws_json1_1DescribeBudgetsCommand = function (output, cont
|
|
|
1465
1465
|
switch (_a.label) {
|
|
1466
1466
|
case 0:
|
|
1467
1467
|
if (output.statusCode >= 300) {
|
|
1468
|
-
return [2
|
|
1468
|
+
return [2, deserializeAws_json1_1DescribeBudgetsCommandError(output, context)];
|
|
1469
1469
|
}
|
|
1470
|
-
return [4
|
|
1470
|
+
return [4, parseBody(output.body, context)];
|
|
1471
1471
|
case 1:
|
|
1472
1472
|
data = _a.sent();
|
|
1473
1473
|
contents = {};
|
|
1474
1474
|
contents = deserializeAws_json1_1DescribeBudgetsResponse(data, context);
|
|
1475
1475
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1476
|
-
return [2
|
|
1476
|
+
return [2, Promise.resolve(response)];
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
}); };
|
|
@@ -1485,63 +1485,63 @@ var deserializeAws_json1_1DescribeBudgetsCommandError = function (output, contex
|
|
|
1485
1485
|
case 0:
|
|
1486
1486
|
_a = [__assign({}, output)];
|
|
1487
1487
|
_j = {};
|
|
1488
|
-
return [4
|
|
1488
|
+
return [4, parseBody(output.body, context)];
|
|
1489
1489
|
case 1:
|
|
1490
1490
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1491
1491
|
errorCode = "UnknownError";
|
|
1492
1492
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1493
|
_b = errorCode;
|
|
1494
1494
|
switch (_b) {
|
|
1495
|
-
case "AccessDeniedException": return [3
|
|
1496
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1497
|
-
case "ExpiredNextTokenException": return [3
|
|
1498
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3
|
|
1499
|
-
case "InternalErrorException": return [3
|
|
1500
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1501
|
-
case "InvalidNextTokenException": return [3
|
|
1502
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1503
|
-
case "InvalidParameterException": return [3
|
|
1504
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1505
|
-
case "NotFoundException": return [3
|
|
1506
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1495
|
+
case "AccessDeniedException": return [3, 2];
|
|
1496
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1497
|
+
case "ExpiredNextTokenException": return [3, 4];
|
|
1498
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3, 4];
|
|
1499
|
+
case "InternalErrorException": return [3, 6];
|
|
1500
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
1501
|
+
case "InvalidNextTokenException": return [3, 8];
|
|
1502
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 8];
|
|
1503
|
+
case "InvalidParameterException": return [3, 10];
|
|
1504
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
1505
|
+
case "NotFoundException": return [3, 12];
|
|
1506
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
1507
1507
|
}
|
|
1508
|
-
return [3
|
|
1508
|
+
return [3, 14];
|
|
1509
1509
|
case 2:
|
|
1510
1510
|
_c = [{}];
|
|
1511
|
-
return [4
|
|
1511
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1512
1512
|
case 3:
|
|
1513
1513
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1514
|
-
return [3
|
|
1514
|
+
return [3, 15];
|
|
1515
1515
|
case 4:
|
|
1516
1516
|
_d = [{}];
|
|
1517
|
-
return [4
|
|
1517
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1518
1518
|
case 5:
|
|
1519
1519
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1520
|
-
return [3
|
|
1520
|
+
return [3, 15];
|
|
1521
1521
|
case 6:
|
|
1522
1522
|
_e = [{}];
|
|
1523
|
-
return [4
|
|
1523
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1524
1524
|
case 7:
|
|
1525
1525
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1526
|
-
return [3
|
|
1526
|
+
return [3, 15];
|
|
1527
1527
|
case 8:
|
|
1528
1528
|
_f = [{}];
|
|
1529
|
-
return [4
|
|
1529
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1530
1530
|
case 9:
|
|
1531
1531
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1532
|
-
return [3
|
|
1532
|
+
return [3, 15];
|
|
1533
1533
|
case 10:
|
|
1534
1534
|
_g = [{}];
|
|
1535
|
-
return [4
|
|
1535
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1536
1536
|
case 11:
|
|
1537
1537
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1538
|
-
return [3
|
|
1538
|
+
return [3, 15];
|
|
1539
1539
|
case 12:
|
|
1540
1540
|
_h = [{}];
|
|
1541
|
-
return [4
|
|
1541
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1542
1542
|
case 13:
|
|
1543
1543
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1544
|
-
return [3
|
|
1544
|
+
return [3, 15];
|
|
1545
1545
|
case 14:
|
|
1546
1546
|
parsedBody = parsedOutput.body;
|
|
1547
1547
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1551,7 +1551,7 @@ var deserializeAws_json1_1DescribeBudgetsCommandError = function (output, contex
|
|
|
1551
1551
|
message = response.message || response.Message || errorCode;
|
|
1552
1552
|
response.message = message;
|
|
1553
1553
|
delete response.Message;
|
|
1554
|
-
return [2
|
|
1554
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1555
1555
|
}
|
|
1556
1556
|
});
|
|
1557
1557
|
}); };
|
|
@@ -1561,15 +1561,15 @@ export var deserializeAws_json1_1DescribeNotificationsForBudgetCommand = functio
|
|
|
1561
1561
|
switch (_a.label) {
|
|
1562
1562
|
case 0:
|
|
1563
1563
|
if (output.statusCode >= 300) {
|
|
1564
|
-
return [2
|
|
1564
|
+
return [2, deserializeAws_json1_1DescribeNotificationsForBudgetCommandError(output, context)];
|
|
1565
1565
|
}
|
|
1566
|
-
return [4
|
|
1566
|
+
return [4, parseBody(output.body, context)];
|
|
1567
1567
|
case 1:
|
|
1568
1568
|
data = _a.sent();
|
|
1569
1569
|
contents = {};
|
|
1570
1570
|
contents = deserializeAws_json1_1DescribeNotificationsForBudgetResponse(data, context);
|
|
1571
1571
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1572
|
-
return [2
|
|
1572
|
+
return [2, Promise.resolve(response)];
|
|
1573
1573
|
}
|
|
1574
1574
|
});
|
|
1575
1575
|
}); };
|
|
@@ -1581,63 +1581,63 @@ var deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = function
|
|
|
1581
1581
|
case 0:
|
|
1582
1582
|
_a = [__assign({}, output)];
|
|
1583
1583
|
_j = {};
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, parseBody(output.body, context)];
|
|
1585
1585
|
case 1:
|
|
1586
1586
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1587
1587
|
errorCode = "UnknownError";
|
|
1588
1588
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
1589
|
_b = errorCode;
|
|
1590
1590
|
switch (_b) {
|
|
1591
|
-
case "AccessDeniedException": return [3
|
|
1592
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1593
|
-
case "ExpiredNextTokenException": return [3
|
|
1594
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3
|
|
1595
|
-
case "InternalErrorException": return [3
|
|
1596
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1597
|
-
case "InvalidNextTokenException": return [3
|
|
1598
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1599
|
-
case "InvalidParameterException": return [3
|
|
1600
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1601
|
-
case "NotFoundException": return [3
|
|
1602
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1591
|
+
case "AccessDeniedException": return [3, 2];
|
|
1592
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1593
|
+
case "ExpiredNextTokenException": return [3, 4];
|
|
1594
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3, 4];
|
|
1595
|
+
case "InternalErrorException": return [3, 6];
|
|
1596
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
1597
|
+
case "InvalidNextTokenException": return [3, 8];
|
|
1598
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 8];
|
|
1599
|
+
case "InvalidParameterException": return [3, 10];
|
|
1600
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
1601
|
+
case "NotFoundException": return [3, 12];
|
|
1602
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
1603
1603
|
}
|
|
1604
|
-
return [3
|
|
1604
|
+
return [3, 14];
|
|
1605
1605
|
case 2:
|
|
1606
1606
|
_c = [{}];
|
|
1607
|
-
return [4
|
|
1607
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1608
1608
|
case 3:
|
|
1609
1609
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1610
|
-
return [3
|
|
1610
|
+
return [3, 15];
|
|
1611
1611
|
case 4:
|
|
1612
1612
|
_d = [{}];
|
|
1613
|
-
return [4
|
|
1613
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1614
1614
|
case 5:
|
|
1615
1615
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1616
|
-
return [3
|
|
1616
|
+
return [3, 15];
|
|
1617
1617
|
case 6:
|
|
1618
1618
|
_e = [{}];
|
|
1619
|
-
return [4
|
|
1619
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1620
1620
|
case 7:
|
|
1621
1621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1622
|
-
return [3
|
|
1622
|
+
return [3, 15];
|
|
1623
1623
|
case 8:
|
|
1624
1624
|
_f = [{}];
|
|
1625
|
-
return [4
|
|
1625
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1626
1626
|
case 9:
|
|
1627
1627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1628
|
-
return [3
|
|
1628
|
+
return [3, 15];
|
|
1629
1629
|
case 10:
|
|
1630
1630
|
_g = [{}];
|
|
1631
|
-
return [4
|
|
1631
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1632
1632
|
case 11:
|
|
1633
1633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1634
|
-
return [3
|
|
1634
|
+
return [3, 15];
|
|
1635
1635
|
case 12:
|
|
1636
1636
|
_h = [{}];
|
|
1637
|
-
return [4
|
|
1637
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1638
1638
|
case 13:
|
|
1639
1639
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1640
|
-
return [3
|
|
1640
|
+
return [3, 15];
|
|
1641
1641
|
case 14:
|
|
1642
1642
|
parsedBody = parsedOutput.body;
|
|
1643
1643
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1647,7 +1647,7 @@ var deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = function
|
|
|
1647
1647
|
message = response.message || response.Message || errorCode;
|
|
1648
1648
|
response.message = message;
|
|
1649
1649
|
delete response.Message;
|
|
1650
|
-
return [2
|
|
1650
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1651
1651
|
}
|
|
1652
1652
|
});
|
|
1653
1653
|
}); };
|
|
@@ -1657,15 +1657,15 @@ export var deserializeAws_json1_1DescribeSubscribersForNotificationCommand = fun
|
|
|
1657
1657
|
switch (_a.label) {
|
|
1658
1658
|
case 0:
|
|
1659
1659
|
if (output.statusCode >= 300) {
|
|
1660
|
-
return [2
|
|
1660
|
+
return [2, deserializeAws_json1_1DescribeSubscribersForNotificationCommandError(output, context)];
|
|
1661
1661
|
}
|
|
1662
|
-
return [4
|
|
1662
|
+
return [4, parseBody(output.body, context)];
|
|
1663
1663
|
case 1:
|
|
1664
1664
|
data = _a.sent();
|
|
1665
1665
|
contents = {};
|
|
1666
1666
|
contents = deserializeAws_json1_1DescribeSubscribersForNotificationResponse(data, context);
|
|
1667
1667
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1668
|
-
return [2
|
|
1668
|
+
return [2, Promise.resolve(response)];
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
}); };
|
|
@@ -1677,63 +1677,63 @@ var deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = funct
|
|
|
1677
1677
|
case 0:
|
|
1678
1678
|
_a = [__assign({}, output)];
|
|
1679
1679
|
_j = {};
|
|
1680
|
-
return [4
|
|
1680
|
+
return [4, parseBody(output.body, context)];
|
|
1681
1681
|
case 1:
|
|
1682
1682
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1683
1683
|
errorCode = "UnknownError";
|
|
1684
1684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
1685
|
_b = errorCode;
|
|
1686
1686
|
switch (_b) {
|
|
1687
|
-
case "AccessDeniedException": return [3
|
|
1688
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1689
|
-
case "ExpiredNextTokenException": return [3
|
|
1690
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3
|
|
1691
|
-
case "InternalErrorException": return [3
|
|
1692
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1693
|
-
case "InvalidNextTokenException": return [3
|
|
1694
|
-
case "com.amazonaws.budgets#InvalidNextTokenException": return [3
|
|
1695
|
-
case "InvalidParameterException": return [3
|
|
1696
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1697
|
-
case "NotFoundException": return [3
|
|
1698
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1687
|
+
case "AccessDeniedException": return [3, 2];
|
|
1688
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1689
|
+
case "ExpiredNextTokenException": return [3, 4];
|
|
1690
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException": return [3, 4];
|
|
1691
|
+
case "InternalErrorException": return [3, 6];
|
|
1692
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
1693
|
+
case "InvalidNextTokenException": return [3, 8];
|
|
1694
|
+
case "com.amazonaws.budgets#InvalidNextTokenException": return [3, 8];
|
|
1695
|
+
case "InvalidParameterException": return [3, 10];
|
|
1696
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 10];
|
|
1697
|
+
case "NotFoundException": return [3, 12];
|
|
1698
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 12];
|
|
1699
1699
|
}
|
|
1700
|
-
return [3
|
|
1700
|
+
return [3, 14];
|
|
1701
1701
|
case 2:
|
|
1702
1702
|
_c = [{}];
|
|
1703
|
-
return [4
|
|
1703
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1704
1704
|
case 3:
|
|
1705
1705
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1706
|
-
return [3
|
|
1706
|
+
return [3, 15];
|
|
1707
1707
|
case 4:
|
|
1708
1708
|
_d = [{}];
|
|
1709
|
-
return [4
|
|
1709
|
+
return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
1710
1710
|
case 5:
|
|
1711
1711
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1712
|
-
return [3
|
|
1712
|
+
return [3, 15];
|
|
1713
1713
|
case 6:
|
|
1714
1714
|
_e = [{}];
|
|
1715
|
-
return [4
|
|
1715
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1716
1716
|
case 7:
|
|
1717
1717
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1718
|
-
return [3
|
|
1718
|
+
return [3, 15];
|
|
1719
1719
|
case 8:
|
|
1720
1720
|
_f = [{}];
|
|
1721
|
-
return [4
|
|
1721
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1722
1722
|
case 9:
|
|
1723
1723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1724
|
-
return [3
|
|
1724
|
+
return [3, 15];
|
|
1725
1725
|
case 10:
|
|
1726
1726
|
_g = [{}];
|
|
1727
|
-
return [4
|
|
1727
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1728
1728
|
case 11:
|
|
1729
1729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1730
|
-
return [3
|
|
1730
|
+
return [3, 15];
|
|
1731
1731
|
case 12:
|
|
1732
1732
|
_h = [{}];
|
|
1733
|
-
return [4
|
|
1733
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1734
1734
|
case 13:
|
|
1735
1735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1736
|
-
return [3
|
|
1736
|
+
return [3, 15];
|
|
1737
1737
|
case 14:
|
|
1738
1738
|
parsedBody = parsedOutput.body;
|
|
1739
1739
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1743,7 +1743,7 @@ var deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = funct
|
|
|
1743
1743
|
message = response.message || response.Message || errorCode;
|
|
1744
1744
|
response.message = message;
|
|
1745
1745
|
delete response.Message;
|
|
1746
|
-
return [2
|
|
1746
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1747
1747
|
}
|
|
1748
1748
|
});
|
|
1749
1749
|
}); };
|
|
@@ -1753,15 +1753,15 @@ export var deserializeAws_json1_1ExecuteBudgetActionCommand = function (output,
|
|
|
1753
1753
|
switch (_a.label) {
|
|
1754
1754
|
case 0:
|
|
1755
1755
|
if (output.statusCode >= 300) {
|
|
1756
|
-
return [2
|
|
1756
|
+
return [2, deserializeAws_json1_1ExecuteBudgetActionCommandError(output, context)];
|
|
1757
1757
|
}
|
|
1758
|
-
return [4
|
|
1758
|
+
return [4, parseBody(output.body, context)];
|
|
1759
1759
|
case 1:
|
|
1760
1760
|
data = _a.sent();
|
|
1761
1761
|
contents = {};
|
|
1762
1762
|
contents = deserializeAws_json1_1ExecuteBudgetActionResponse(data, context);
|
|
1763
1763
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1764
|
-
return [2
|
|
1764
|
+
return [2, Promise.resolve(response)];
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
1767
|
}); };
|
|
@@ -1773,55 +1773,55 @@ var deserializeAws_json1_1ExecuteBudgetActionCommandError = function (output, co
|
|
|
1773
1773
|
case 0:
|
|
1774
1774
|
_a = [__assign({}, output)];
|
|
1775
1775
|
_h = {};
|
|
1776
|
-
return [4
|
|
1776
|
+
return [4, parseBody(output.body, context)];
|
|
1777
1777
|
case 1:
|
|
1778
1778
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1779
1779
|
errorCode = "UnknownError";
|
|
1780
1780
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
1781
|
_b = errorCode;
|
|
1782
1782
|
switch (_b) {
|
|
1783
|
-
case "AccessDeniedException": return [3
|
|
1784
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1785
|
-
case "InternalErrorException": return [3
|
|
1786
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1787
|
-
case "InvalidParameterException": return [3
|
|
1788
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1789
|
-
case "NotFoundException": return [3
|
|
1790
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1791
|
-
case "ResourceLockedException": return [3
|
|
1792
|
-
case "com.amazonaws.budgets#ResourceLockedException": return [3
|
|
1783
|
+
case "AccessDeniedException": return [3, 2];
|
|
1784
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1785
|
+
case "InternalErrorException": return [3, 4];
|
|
1786
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1787
|
+
case "InvalidParameterException": return [3, 6];
|
|
1788
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
1789
|
+
case "NotFoundException": return [3, 8];
|
|
1790
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
1791
|
+
case "ResourceLockedException": return [3, 10];
|
|
1792
|
+
case "com.amazonaws.budgets#ResourceLockedException": return [3, 10];
|
|
1793
1793
|
}
|
|
1794
|
-
return [3
|
|
1794
|
+
return [3, 12];
|
|
1795
1795
|
case 2:
|
|
1796
1796
|
_c = [{}];
|
|
1797
|
-
return [4
|
|
1797
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1798
1798
|
case 3:
|
|
1799
1799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1800
|
-
return [3
|
|
1800
|
+
return [3, 13];
|
|
1801
1801
|
case 4:
|
|
1802
1802
|
_d = [{}];
|
|
1803
|
-
return [4
|
|
1803
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1804
1804
|
case 5:
|
|
1805
1805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1806
|
-
return [3
|
|
1806
|
+
return [3, 13];
|
|
1807
1807
|
case 6:
|
|
1808
1808
|
_e = [{}];
|
|
1809
|
-
return [4
|
|
1809
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1810
1810
|
case 7:
|
|
1811
1811
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1812
|
-
return [3
|
|
1812
|
+
return [3, 13];
|
|
1813
1813
|
case 8:
|
|
1814
1814
|
_f = [{}];
|
|
1815
|
-
return [4
|
|
1815
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1816
1816
|
case 9:
|
|
1817
1817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1818
|
-
return [3
|
|
1818
|
+
return [3, 13];
|
|
1819
1819
|
case 10:
|
|
1820
1820
|
_g = [{}];
|
|
1821
|
-
return [4
|
|
1821
|
+
return [4, deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)];
|
|
1822
1822
|
case 11:
|
|
1823
1823
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1824
|
-
return [3
|
|
1824
|
+
return [3, 13];
|
|
1825
1825
|
case 12:
|
|
1826
1826
|
parsedBody = parsedOutput.body;
|
|
1827
1827
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1831,7 +1831,7 @@ var deserializeAws_json1_1ExecuteBudgetActionCommandError = function (output, co
|
|
|
1831
1831
|
message = response.message || response.Message || errorCode;
|
|
1832
1832
|
response.message = message;
|
|
1833
1833
|
delete response.Message;
|
|
1834
|
-
return [2
|
|
1834
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1835
1835
|
}
|
|
1836
1836
|
});
|
|
1837
1837
|
}); };
|
|
@@ -1841,15 +1841,15 @@ export var deserializeAws_json1_1UpdateBudgetCommand = function (output, context
|
|
|
1841
1841
|
switch (_a.label) {
|
|
1842
1842
|
case 0:
|
|
1843
1843
|
if (output.statusCode >= 300) {
|
|
1844
|
-
return [2
|
|
1844
|
+
return [2, deserializeAws_json1_1UpdateBudgetCommandError(output, context)];
|
|
1845
1845
|
}
|
|
1846
|
-
return [4
|
|
1846
|
+
return [4, parseBody(output.body, context)];
|
|
1847
1847
|
case 1:
|
|
1848
1848
|
data = _a.sent();
|
|
1849
1849
|
contents = {};
|
|
1850
1850
|
contents = deserializeAws_json1_1UpdateBudgetResponse(data, context);
|
|
1851
1851
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1852
|
-
return [2
|
|
1852
|
+
return [2, Promise.resolve(response)];
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
}); };
|
|
@@ -1861,47 +1861,47 @@ var deserializeAws_json1_1UpdateBudgetCommandError = function (output, context)
|
|
|
1861
1861
|
case 0:
|
|
1862
1862
|
_a = [__assign({}, output)];
|
|
1863
1863
|
_g = {};
|
|
1864
|
-
return [4
|
|
1864
|
+
return [4, parseBody(output.body, context)];
|
|
1865
1865
|
case 1:
|
|
1866
1866
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1867
1867
|
errorCode = "UnknownError";
|
|
1868
1868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
1869
|
_b = errorCode;
|
|
1870
1870
|
switch (_b) {
|
|
1871
|
-
case "AccessDeniedException": return [3
|
|
1872
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1873
|
-
case "InternalErrorException": return [3
|
|
1874
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1875
|
-
case "InvalidParameterException": return [3
|
|
1876
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1877
|
-
case "NotFoundException": return [3
|
|
1878
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1871
|
+
case "AccessDeniedException": return [3, 2];
|
|
1872
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1873
|
+
case "InternalErrorException": return [3, 4];
|
|
1874
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1875
|
+
case "InvalidParameterException": return [3, 6];
|
|
1876
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
1877
|
+
case "NotFoundException": return [3, 8];
|
|
1878
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
1879
1879
|
}
|
|
1880
|
-
return [3
|
|
1880
|
+
return [3, 10];
|
|
1881
1881
|
case 2:
|
|
1882
1882
|
_c = [{}];
|
|
1883
|
-
return [4
|
|
1883
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1884
1884
|
case 3:
|
|
1885
1885
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1886
|
-
return [3
|
|
1886
|
+
return [3, 11];
|
|
1887
1887
|
case 4:
|
|
1888
1888
|
_d = [{}];
|
|
1889
|
-
return [4
|
|
1889
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1890
1890
|
case 5:
|
|
1891
1891
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1892
|
-
return [3
|
|
1892
|
+
return [3, 11];
|
|
1893
1893
|
case 6:
|
|
1894
1894
|
_e = [{}];
|
|
1895
|
-
return [4
|
|
1895
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1896
1896
|
case 7:
|
|
1897
1897
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1898
|
-
return [3
|
|
1898
|
+
return [3, 11];
|
|
1899
1899
|
case 8:
|
|
1900
1900
|
_f = [{}];
|
|
1901
|
-
return [4
|
|
1901
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1902
1902
|
case 9:
|
|
1903
1903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1904
|
-
return [3
|
|
1904
|
+
return [3, 11];
|
|
1905
1905
|
case 10:
|
|
1906
1906
|
parsedBody = parsedOutput.body;
|
|
1907
1907
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1911,7 +1911,7 @@ var deserializeAws_json1_1UpdateBudgetCommandError = function (output, context)
|
|
|
1911
1911
|
message = response.message || response.Message || errorCode;
|
|
1912
1912
|
response.message = message;
|
|
1913
1913
|
delete response.Message;
|
|
1914
|
-
return [2
|
|
1914
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
}); };
|
|
@@ -1921,15 +1921,15 @@ export var deserializeAws_json1_1UpdateBudgetActionCommand = function (output, c
|
|
|
1921
1921
|
switch (_a.label) {
|
|
1922
1922
|
case 0:
|
|
1923
1923
|
if (output.statusCode >= 300) {
|
|
1924
|
-
return [2
|
|
1924
|
+
return [2, deserializeAws_json1_1UpdateBudgetActionCommandError(output, context)];
|
|
1925
1925
|
}
|
|
1926
|
-
return [4
|
|
1926
|
+
return [4, parseBody(output.body, context)];
|
|
1927
1927
|
case 1:
|
|
1928
1928
|
data = _a.sent();
|
|
1929
1929
|
contents = {};
|
|
1930
1930
|
contents = deserializeAws_json1_1UpdateBudgetActionResponse(data, context);
|
|
1931
1931
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1932
|
-
return [2
|
|
1932
|
+
return [2, Promise.resolve(response)];
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
}); };
|
|
@@ -1941,55 +1941,55 @@ var deserializeAws_json1_1UpdateBudgetActionCommandError = function (output, con
|
|
|
1941
1941
|
case 0:
|
|
1942
1942
|
_a = [__assign({}, output)];
|
|
1943
1943
|
_h = {};
|
|
1944
|
-
return [4
|
|
1944
|
+
return [4, parseBody(output.body, context)];
|
|
1945
1945
|
case 1:
|
|
1946
1946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1947
1947
|
errorCode = "UnknownError";
|
|
1948
1948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1949
|
_b = errorCode;
|
|
1950
1950
|
switch (_b) {
|
|
1951
|
-
case "AccessDeniedException": return [3
|
|
1952
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
1953
|
-
case "InternalErrorException": return [3
|
|
1954
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
1955
|
-
case "InvalidParameterException": return [3
|
|
1956
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
1957
|
-
case "NotFoundException": return [3
|
|
1958
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
1959
|
-
case "ResourceLockedException": return [3
|
|
1960
|
-
case "com.amazonaws.budgets#ResourceLockedException": return [3
|
|
1951
|
+
case "AccessDeniedException": return [3, 2];
|
|
1952
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
1953
|
+
case "InternalErrorException": return [3, 4];
|
|
1954
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 4];
|
|
1955
|
+
case "InvalidParameterException": return [3, 6];
|
|
1956
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 6];
|
|
1957
|
+
case "NotFoundException": return [3, 8];
|
|
1958
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 8];
|
|
1959
|
+
case "ResourceLockedException": return [3, 10];
|
|
1960
|
+
case "com.amazonaws.budgets#ResourceLockedException": return [3, 10];
|
|
1961
1961
|
}
|
|
1962
|
-
return [3
|
|
1962
|
+
return [3, 12];
|
|
1963
1963
|
case 2:
|
|
1964
1964
|
_c = [{}];
|
|
1965
|
-
return [4
|
|
1965
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1966
1966
|
case 3:
|
|
1967
1967
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1968
|
-
return [3
|
|
1968
|
+
return [3, 13];
|
|
1969
1969
|
case 4:
|
|
1970
1970
|
_d = [{}];
|
|
1971
|
-
return [4
|
|
1971
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1972
1972
|
case 5:
|
|
1973
1973
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1974
|
-
return [3
|
|
1974
|
+
return [3, 13];
|
|
1975
1975
|
case 6:
|
|
1976
1976
|
_e = [{}];
|
|
1977
|
-
return [4
|
|
1977
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1978
1978
|
case 7:
|
|
1979
1979
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1980
|
-
return [3
|
|
1980
|
+
return [3, 13];
|
|
1981
1981
|
case 8:
|
|
1982
1982
|
_f = [{}];
|
|
1983
|
-
return [4
|
|
1983
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1984
1984
|
case 9:
|
|
1985
1985
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1986
|
-
return [3
|
|
1986
|
+
return [3, 13];
|
|
1987
1987
|
case 10:
|
|
1988
1988
|
_g = [{}];
|
|
1989
|
-
return [4
|
|
1989
|
+
return [4, deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context)];
|
|
1990
1990
|
case 11:
|
|
1991
1991
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1992
|
-
return [3
|
|
1992
|
+
return [3, 13];
|
|
1993
1993
|
case 12:
|
|
1994
1994
|
parsedBody = parsedOutput.body;
|
|
1995
1995
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1999,7 +1999,7 @@ var deserializeAws_json1_1UpdateBudgetActionCommandError = function (output, con
|
|
|
1999
1999
|
message = response.message || response.Message || errorCode;
|
|
2000
2000
|
response.message = message;
|
|
2001
2001
|
delete response.Message;
|
|
2002
|
-
return [2
|
|
2002
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2003
2003
|
}
|
|
2004
2004
|
});
|
|
2005
2005
|
}); };
|
|
@@ -2009,15 +2009,15 @@ export var deserializeAws_json1_1UpdateNotificationCommand = function (output, c
|
|
|
2009
2009
|
switch (_a.label) {
|
|
2010
2010
|
case 0:
|
|
2011
2011
|
if (output.statusCode >= 300) {
|
|
2012
|
-
return [2
|
|
2012
|
+
return [2, deserializeAws_json1_1UpdateNotificationCommandError(output, context)];
|
|
2013
2013
|
}
|
|
2014
|
-
return [4
|
|
2014
|
+
return [4, parseBody(output.body, context)];
|
|
2015
2015
|
case 1:
|
|
2016
2016
|
data = _a.sent();
|
|
2017
2017
|
contents = {};
|
|
2018
2018
|
contents = deserializeAws_json1_1UpdateNotificationResponse(data, context);
|
|
2019
2019
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2020
|
-
return [2
|
|
2020
|
+
return [2, Promise.resolve(response)];
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
}); };
|
|
@@ -2029,55 +2029,55 @@ var deserializeAws_json1_1UpdateNotificationCommandError = function (output, con
|
|
|
2029
2029
|
case 0:
|
|
2030
2030
|
_a = [__assign({}, output)];
|
|
2031
2031
|
_h = {};
|
|
2032
|
-
return [4
|
|
2032
|
+
return [4, parseBody(output.body, context)];
|
|
2033
2033
|
case 1:
|
|
2034
2034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2035
2035
|
errorCode = "UnknownError";
|
|
2036
2036
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2037
|
_b = errorCode;
|
|
2038
2038
|
switch (_b) {
|
|
2039
|
-
case "AccessDeniedException": return [3
|
|
2040
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
2041
|
-
case "DuplicateRecordException": return [3
|
|
2042
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
2043
|
-
case "InternalErrorException": return [3
|
|
2044
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
2045
|
-
case "InvalidParameterException": return [3
|
|
2046
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
2047
|
-
case "NotFoundException": return [3
|
|
2048
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
2039
|
+
case "AccessDeniedException": return [3, 2];
|
|
2040
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
2041
|
+
case "DuplicateRecordException": return [3, 4];
|
|
2042
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 4];
|
|
2043
|
+
case "InternalErrorException": return [3, 6];
|
|
2044
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
2045
|
+
case "InvalidParameterException": return [3, 8];
|
|
2046
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 8];
|
|
2047
|
+
case "NotFoundException": return [3, 10];
|
|
2048
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 10];
|
|
2049
2049
|
}
|
|
2050
|
-
return [3
|
|
2050
|
+
return [3, 12];
|
|
2051
2051
|
case 2:
|
|
2052
2052
|
_c = [{}];
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2054
2054
|
case 3:
|
|
2055
2055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2056
|
-
return [3
|
|
2056
|
+
return [3, 13];
|
|
2057
2057
|
case 4:
|
|
2058
2058
|
_d = [{}];
|
|
2059
|
-
return [4
|
|
2059
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
2060
2060
|
case 5:
|
|
2061
2061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3
|
|
2062
|
+
return [3, 13];
|
|
2063
2063
|
case 6:
|
|
2064
2064
|
_e = [{}];
|
|
2065
|
-
return [4
|
|
2065
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2066
2066
|
case 7:
|
|
2067
2067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2068
|
-
return [3
|
|
2068
|
+
return [3, 13];
|
|
2069
2069
|
case 8:
|
|
2070
2070
|
_f = [{}];
|
|
2071
|
-
return [4
|
|
2071
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2072
2072
|
case 9:
|
|
2073
2073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2074
|
-
return [3
|
|
2074
|
+
return [3, 13];
|
|
2075
2075
|
case 10:
|
|
2076
2076
|
_g = [{}];
|
|
2077
|
-
return [4
|
|
2077
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2078
2078
|
case 11:
|
|
2079
2079
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2080
|
-
return [3
|
|
2080
|
+
return [3, 13];
|
|
2081
2081
|
case 12:
|
|
2082
2082
|
parsedBody = parsedOutput.body;
|
|
2083
2083
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2087,7 +2087,7 @@ var deserializeAws_json1_1UpdateNotificationCommandError = function (output, con
|
|
|
2087
2087
|
message = response.message || response.Message || errorCode;
|
|
2088
2088
|
response.message = message;
|
|
2089
2089
|
delete response.Message;
|
|
2090
|
-
return [2
|
|
2090
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2091
2091
|
}
|
|
2092
2092
|
});
|
|
2093
2093
|
}); };
|
|
@@ -2097,15 +2097,15 @@ export var deserializeAws_json1_1UpdateSubscriberCommand = function (output, con
|
|
|
2097
2097
|
switch (_a.label) {
|
|
2098
2098
|
case 0:
|
|
2099
2099
|
if (output.statusCode >= 300) {
|
|
2100
|
-
return [2
|
|
2100
|
+
return [2, deserializeAws_json1_1UpdateSubscriberCommandError(output, context)];
|
|
2101
2101
|
}
|
|
2102
|
-
return [4
|
|
2102
|
+
return [4, parseBody(output.body, context)];
|
|
2103
2103
|
case 1:
|
|
2104
2104
|
data = _a.sent();
|
|
2105
2105
|
contents = {};
|
|
2106
2106
|
contents = deserializeAws_json1_1UpdateSubscriberResponse(data, context);
|
|
2107
2107
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2108
|
-
return [2
|
|
2108
|
+
return [2, Promise.resolve(response)];
|
|
2109
2109
|
}
|
|
2110
2110
|
});
|
|
2111
2111
|
}); };
|
|
@@ -2117,55 +2117,55 @@ var deserializeAws_json1_1UpdateSubscriberCommandError = function (output, conte
|
|
|
2117
2117
|
case 0:
|
|
2118
2118
|
_a = [__assign({}, output)];
|
|
2119
2119
|
_h = {};
|
|
2120
|
-
return [4
|
|
2120
|
+
return [4, parseBody(output.body, context)];
|
|
2121
2121
|
case 1:
|
|
2122
2122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2123
2123
|
errorCode = "UnknownError";
|
|
2124
2124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
2125
|
_b = errorCode;
|
|
2126
2126
|
switch (_b) {
|
|
2127
|
-
case "AccessDeniedException": return [3
|
|
2128
|
-
case "com.amazonaws.budgets#AccessDeniedException": return [3
|
|
2129
|
-
case "DuplicateRecordException": return [3
|
|
2130
|
-
case "com.amazonaws.budgets#DuplicateRecordException": return [3
|
|
2131
|
-
case "InternalErrorException": return [3
|
|
2132
|
-
case "com.amazonaws.budgets#InternalErrorException": return [3
|
|
2133
|
-
case "InvalidParameterException": return [3
|
|
2134
|
-
case "com.amazonaws.budgets#InvalidParameterException": return [3
|
|
2135
|
-
case "NotFoundException": return [3
|
|
2136
|
-
case "com.amazonaws.budgets#NotFoundException": return [3
|
|
2127
|
+
case "AccessDeniedException": return [3, 2];
|
|
2128
|
+
case "com.amazonaws.budgets#AccessDeniedException": return [3, 2];
|
|
2129
|
+
case "DuplicateRecordException": return [3, 4];
|
|
2130
|
+
case "com.amazonaws.budgets#DuplicateRecordException": return [3, 4];
|
|
2131
|
+
case "InternalErrorException": return [3, 6];
|
|
2132
|
+
case "com.amazonaws.budgets#InternalErrorException": return [3, 6];
|
|
2133
|
+
case "InvalidParameterException": return [3, 8];
|
|
2134
|
+
case "com.amazonaws.budgets#InvalidParameterException": return [3, 8];
|
|
2135
|
+
case "NotFoundException": return [3, 10];
|
|
2136
|
+
case "com.amazonaws.budgets#NotFoundException": return [3, 10];
|
|
2137
2137
|
}
|
|
2138
|
-
return [3
|
|
2138
|
+
return [3, 12];
|
|
2139
2139
|
case 2:
|
|
2140
2140
|
_c = [{}];
|
|
2141
|
-
return [4
|
|
2141
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2142
2142
|
case 3:
|
|
2143
2143
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2144
|
-
return [3
|
|
2144
|
+
return [3, 13];
|
|
2145
2145
|
case 4:
|
|
2146
2146
|
_d = [{}];
|
|
2147
|
-
return [4
|
|
2147
|
+
return [4, deserializeAws_json1_1DuplicateRecordExceptionResponse(parsedOutput, context)];
|
|
2148
2148
|
case 5:
|
|
2149
2149
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2150
|
-
return [3
|
|
2150
|
+
return [3, 13];
|
|
2151
2151
|
case 6:
|
|
2152
2152
|
_e = [{}];
|
|
2153
|
-
return [4
|
|
2153
|
+
return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2154
2154
|
case 7:
|
|
2155
2155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2156
|
-
return [3
|
|
2156
|
+
return [3, 13];
|
|
2157
2157
|
case 8:
|
|
2158
2158
|
_f = [{}];
|
|
2159
|
-
return [4
|
|
2159
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2160
2160
|
case 9:
|
|
2161
2161
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2162
|
-
return [3
|
|
2162
|
+
return [3, 13];
|
|
2163
2163
|
case 10:
|
|
2164
2164
|
_g = [{}];
|
|
2165
|
-
return [4
|
|
2165
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2166
2166
|
case 11:
|
|
2167
2167
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2168
|
-
return [3
|
|
2168
|
+
return [3, 13];
|
|
2169
2169
|
case 12:
|
|
2170
2170
|
parsedBody = parsedOutput.body;
|
|
2171
2171
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2175,7 +2175,7 @@ var deserializeAws_json1_1UpdateSubscriberCommandError = function (output, conte
|
|
|
2175
2175
|
message = response.message || response.Message || errorCode;
|
|
2176
2176
|
response.message = message;
|
|
2177
2177
|
delete response.Message;
|
|
2178
|
-
return [2
|
|
2178
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
2181
|
}); };
|
|
@@ -2185,7 +2185,7 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
2185
2185
|
body = parsedOutput.body;
|
|
2186
2186
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2187
2187
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2188
|
-
return [2
|
|
2188
|
+
return [2, contents];
|
|
2189
2189
|
});
|
|
2190
2190
|
}); };
|
|
2191
2191
|
var deserializeAws_json1_1CreationLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2194,7 +2194,7 @@ var deserializeAws_json1_1CreationLimitExceededExceptionResponse = function (par
|
|
|
2194
2194
|
body = parsedOutput.body;
|
|
2195
2195
|
deserialized = deserializeAws_json1_1CreationLimitExceededException(body, context);
|
|
2196
2196
|
contents = __assign({ name: "CreationLimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2197
|
-
return [2
|
|
2197
|
+
return [2, contents];
|
|
2198
2198
|
});
|
|
2199
2199
|
}); };
|
|
2200
2200
|
var deserializeAws_json1_1DuplicateRecordExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2203,7 +2203,7 @@ var deserializeAws_json1_1DuplicateRecordExceptionResponse = function (parsedOut
|
|
|
2203
2203
|
body = parsedOutput.body;
|
|
2204
2204
|
deserialized = deserializeAws_json1_1DuplicateRecordException(body, context);
|
|
2205
2205
|
contents = __assign({ name: "DuplicateRecordException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2206
|
-
return [2
|
|
2206
|
+
return [2, contents];
|
|
2207
2207
|
});
|
|
2208
2208
|
}); };
|
|
2209
2209
|
var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2212,7 +2212,7 @@ var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOu
|
|
|
2212
2212
|
body = parsedOutput.body;
|
|
2213
2213
|
deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
|
|
2214
2214
|
contents = __assign({ name: "ExpiredNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2215
|
-
return [2
|
|
2215
|
+
return [2, contents];
|
|
2216
2216
|
});
|
|
2217
2217
|
}); };
|
|
2218
2218
|
var deserializeAws_json1_1InternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2221,7 +2221,7 @@ var deserializeAws_json1_1InternalErrorExceptionResponse = function (parsedOutpu
|
|
|
2221
2221
|
body = parsedOutput.body;
|
|
2222
2222
|
deserialized = deserializeAws_json1_1InternalErrorException(body, context);
|
|
2223
2223
|
contents = __assign({ name: "InternalErrorException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2224
|
-
return [2
|
|
2224
|
+
return [2, contents];
|
|
2225
2225
|
});
|
|
2226
2226
|
}); };
|
|
2227
2227
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2230,7 +2230,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
2230
2230
|
body = parsedOutput.body;
|
|
2231
2231
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2232
2232
|
contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2233
|
-
return [2
|
|
2233
|
+
return [2, contents];
|
|
2234
2234
|
});
|
|
2235
2235
|
}); };
|
|
2236
2236
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2239,7 +2239,7 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
|
|
|
2239
2239
|
body = parsedOutput.body;
|
|
2240
2240
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2241
2241
|
contents = __assign({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2242
|
-
return [2
|
|
2242
|
+
return [2, contents];
|
|
2243
2243
|
});
|
|
2244
2244
|
}); };
|
|
2245
2245
|
var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2248,7 +2248,7 @@ var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, co
|
|
|
2248
2248
|
body = parsedOutput.body;
|
|
2249
2249
|
deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
2250
2250
|
contents = __assign({ name: "NotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2251
|
-
return [2
|
|
2251
|
+
return [2, contents];
|
|
2252
2252
|
});
|
|
2253
2253
|
}); };
|
|
2254
2254
|
var deserializeAws_json1_1ResourceLockedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2257,7 +2257,7 @@ var deserializeAws_json1_1ResourceLockedExceptionResponse = function (parsedOutp
|
|
|
2257
2257
|
body = parsedOutput.body;
|
|
2258
2258
|
deserialized = deserializeAws_json1_1ResourceLockedException(body, context);
|
|
2259
2259
|
contents = __assign({ name: "ResourceLockedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2260
|
-
return [2
|
|
2260
|
+
return [2, contents];
|
|
2261
2261
|
});
|
|
2262
2262
|
}); };
|
|
2263
2263
|
var serializeAws_json1_1ActionThreshold = function (input, context) {
|
|
@@ -2587,7 +2587,7 @@ var deserializeAws_json1_1ActionHistory = function (output, context) {
|
|
|
2587
2587
|
EventType: __expectString(output.EventType),
|
|
2588
2588
|
Status: __expectString(output.Status),
|
|
2589
2589
|
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
2590
|
-
?
|
|
2590
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
|
|
2591
2591
|
: undefined,
|
|
2592
2592
|
};
|
|
2593
2593
|
};
|
|
@@ -2632,7 +2632,7 @@ var deserializeAws_json1_1Budget = function (output, context) {
|
|
|
2632
2632
|
? deserializeAws_json1_1CostTypes(output.CostTypes, context)
|
|
2633
2633
|
: undefined,
|
|
2634
2634
|
LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
|
|
2635
|
-
?
|
|
2635
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
2636
2636
|
: undefined,
|
|
2637
2637
|
PlannedBudgetLimits: output.PlannedBudgetLimits !== undefined && output.PlannedBudgetLimits !== null
|
|
2638
2638
|
? deserializeAws_json1_1PlannedBudgetLimits(output.PlannedBudgetLimits, context)
|
|
@@ -3028,8 +3028,12 @@ var deserializeAws_json1_1TargetIds = function (output, context) {
|
|
|
3028
3028
|
};
|
|
3029
3029
|
var deserializeAws_json1_1TimePeriod = function (output, context) {
|
|
3030
3030
|
return {
|
|
3031
|
-
End: output.End !== undefined && output.End !== null
|
|
3032
|
-
|
|
3031
|
+
End: output.End !== undefined && output.End !== null
|
|
3032
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End)))
|
|
3033
|
+
: undefined,
|
|
3034
|
+
Start: output.Start !== undefined && output.Start !== null
|
|
3035
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start)))
|
|
3036
|
+
: undefined,
|
|
3033
3037
|
};
|
|
3034
3038
|
};
|
|
3035
3039
|
var deserializeAws_json1_1UpdateBudgetActionResponse = function (output, context) {
|
|
@@ -3072,7 +3076,6 @@ var deserializeMetadata = function (output) {
|
|
|
3072
3076
|
cfId: output.headers["x-amz-cf-id"],
|
|
3073
3077
|
});
|
|
3074
3078
|
};
|
|
3075
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3076
3079
|
var collectBody = function (streamBody, context) {
|
|
3077
3080
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3078
3081
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3080,7 +3083,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3080
3083
|
}
|
|
3081
3084
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3082
3085
|
};
|
|
3083
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3084
3086
|
var collectBodyString = function (streamBody, context) {
|
|
3085
3087
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3086
3088
|
};
|
|
@@ -3088,7 +3090,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3088
3090
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3089
3091
|
return __generator(this, function (_c) {
|
|
3090
3092
|
switch (_c.label) {
|
|
3091
|
-
case 0: return [4
|
|
3093
|
+
case 0: return [4, context.endpoint()];
|
|
3092
3094
|
case 1:
|
|
3093
3095
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3094
3096
|
contents = {
|
|
@@ -3105,7 +3107,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3105
3107
|
if (body !== undefined) {
|
|
3106
3108
|
contents.body = body;
|
|
3107
3109
|
}
|
|
3108
|
-
return [2
|
|
3110
|
+
return [2, new __HttpRequest(contents)];
|
|
3109
3111
|
}
|
|
3110
3112
|
});
|
|
3111
3113
|
}); };
|
|
@@ -3117,9 +3119,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3117
3119
|
return {};
|
|
3118
3120
|
});
|
|
3119
3121
|
};
|
|
3120
|
-
/**
|
|
3121
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3122
|
-
*/
|
|
3123
3122
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3124
3123
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3125
3124
|
var sanitizeErrorCode = function (rawValue) {
|