@aws-sdk/client-resource-groups-tagging-api 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPI.js +1 -2
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPIClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/DescribeReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetComplianceSummaryCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagKeysCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagValuesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/GetComplianceSummaryPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetResourcesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagKeysPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagValuesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPI.js +2 -6
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPIClient.js +2 -11
- package/{dist/es → dist-es}/commands/DescribeReportCreationCommand.js +4 -32
- package/dist-es/commands/GetComplianceSummaryCommand.js +39 -0
- package/dist-es/commands/GetResourcesCommand.js +39 -0
- package/dist-es/commands/GetTagKeysCommand.js +39 -0
- package/dist-es/commands/GetTagValuesCommand.js +39 -0
- package/{dist/es → dist-es}/commands/StartReportCreationCommand.js +4 -38
- package/dist-es/commands/TagResourcesCommand.js +39 -0
- package/dist-es/commands/UntagResourcesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -85
- package/{dist/es → dist-es}/pagination/GetComplianceSummaryPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagKeysPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagValuesPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +188 -194
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ResourceGroupsTaggingAPI.ts +0 -385
- package/ResourceGroupsTaggingAPIClient.ts +0 -269
- package/commands/DescribeReportCreationCommand.ts +0 -100
- package/commands/GetComplianceSummaryCommand.ts +0 -110
- package/commands/GetResourcesCommand.ts +0 -121
- package/commands/GetTagKeysCommand.ts +0 -105
- package/commands/GetTagValuesCommand.ts +0 -105
- package/commands/StartReportCreationCommand.ts +0 -106
- package/commands/TagResourcesCommand.ts +0 -125
- package/commands/UntagResourcesCommand.ts +0 -113
- package/dist/cjs/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/cjs/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/cjs/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/cjs/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/es/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/es/commands/GetComplianceSummaryCommand.js +0 -77
- package/dist/es/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/es/commands/GetResourcesCommand.js +0 -88
- package/dist/es/commands/GetResourcesCommand.js.map +0 -1
- package/dist/es/commands/GetTagKeysCommand.js +0 -72
- package/dist/es/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/es/commands/GetTagValuesCommand.js +0 -72
- package/dist/es/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/es/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/es/commands/TagResourcesCommand.js +0 -92
- package/dist/es/commands/TagResourcesCommand.js.map +0 -1
- package/dist/es/commands/UntagResourcesCommand.js +0 -80
- package/dist/es/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -947
- package/pagination/GetComplianceSummaryPaginator.ts +0 -58
- package/pagination/GetResourcesPaginator.ts +0 -58
- package/pagination/GetTagKeysPaginator.ts +0 -53
- package/pagination/GetTagValuesPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -1448
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1DescribeReportCreationCommand = function (input,
|
|
|
9
9
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.DescribeReportCreation",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1DescribeReportCreationInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1GetComplianceSummaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1GetComplianceSummaryCommand = function (input, co
|
|
|
20
20
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetComplianceSummary",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1GetComplianceSummaryInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1GetResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1GetResourcesCommand = function (input, context) {
|
|
|
31
31
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetResources",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1GetResourcesInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1GetTagKeysCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1GetTagKeysCommand = function (input, context) { r
|
|
|
42
42
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagKeys",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1GetTagKeysInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1GetTagValuesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1GetTagValuesCommand = function (input, context) {
|
|
|
53
53
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagValues",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1GetTagValuesInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1StartReportCreationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1StartReportCreationCommand = function (input, con
|
|
|
64
64
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.StartReportCreation",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1StartReportCreationInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1TagResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1TagResourcesCommand = function (input, context) {
|
|
|
75
75
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.TagResources",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1TagResourcesInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1UntagResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1UntagResourcesCommand = function (input, context)
|
|
|
86
86
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.UntagResources",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1UntagResourcesInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var deserializeAws_json1_1DescribeReportCreationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -95,15 +95,15 @@ export var deserializeAws_json1_1DescribeReportCreationCommand = function (outpu
|
|
|
95
95
|
switch (_a.label) {
|
|
96
96
|
case 0:
|
|
97
97
|
if (output.statusCode >= 300) {
|
|
98
|
-
return [2
|
|
98
|
+
return [2, deserializeAws_json1_1DescribeReportCreationCommandError(output, context)];
|
|
99
99
|
}
|
|
100
|
-
return [4
|
|
100
|
+
return [4, parseBody(output.body, context)];
|
|
101
101
|
case 1:
|
|
102
102
|
data = _a.sent();
|
|
103
103
|
contents = {};
|
|
104
104
|
contents = deserializeAws_json1_1DescribeReportCreationOutput(data, context);
|
|
105
105
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
106
|
-
return [2
|
|
106
|
+
return [2, Promise.resolve(response)];
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}); };
|
|
@@ -115,47 +115,47 @@ var deserializeAws_json1_1DescribeReportCreationCommandError = function (output,
|
|
|
115
115
|
case 0:
|
|
116
116
|
_a = [__assign({}, output)];
|
|
117
117
|
_g = {};
|
|
118
|
-
return [4
|
|
118
|
+
return [4, parseBody(output.body, context)];
|
|
119
119
|
case 1:
|
|
120
120
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
121
121
|
errorCode = "UnknownError";
|
|
122
122
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
123
123
|
_b = errorCode;
|
|
124
124
|
switch (_b) {
|
|
125
|
-
case "ConstraintViolationException": return [3
|
|
126
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3
|
|
127
|
-
case "InternalServiceException": return [3
|
|
128
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
129
|
-
case "InvalidParameterException": return [3
|
|
130
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
131
|
-
case "ThrottledException": return [3
|
|
132
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
125
|
+
case "ConstraintViolationException": return [3, 2];
|
|
126
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 2];
|
|
127
|
+
case "InternalServiceException": return [3, 4];
|
|
128
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 4];
|
|
129
|
+
case "InvalidParameterException": return [3, 6];
|
|
130
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 6];
|
|
131
|
+
case "ThrottledException": return [3, 8];
|
|
132
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
133
133
|
}
|
|
134
|
-
return [3
|
|
134
|
+
return [3, 10];
|
|
135
135
|
case 2:
|
|
136
136
|
_c = [{}];
|
|
137
|
-
return [4
|
|
137
|
+
return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
138
138
|
case 3:
|
|
139
139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
140
|
-
return [3
|
|
140
|
+
return [3, 11];
|
|
141
141
|
case 4:
|
|
142
142
|
_d = [{}];
|
|
143
|
-
return [4
|
|
143
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
144
144
|
case 5:
|
|
145
145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
146
|
-
return [3
|
|
146
|
+
return [3, 11];
|
|
147
147
|
case 6:
|
|
148
148
|
_e = [{}];
|
|
149
|
-
return [4
|
|
149
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
150
150
|
case 7:
|
|
151
151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
152
|
-
return [3
|
|
152
|
+
return [3, 11];
|
|
153
153
|
case 8:
|
|
154
154
|
_f = [{}];
|
|
155
|
-
return [4
|
|
155
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
156
156
|
case 9:
|
|
157
157
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
158
|
-
return [3
|
|
158
|
+
return [3, 11];
|
|
159
159
|
case 10:
|
|
160
160
|
parsedBody = parsedOutput.body;
|
|
161
161
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -165,7 +165,7 @@ var deserializeAws_json1_1DescribeReportCreationCommandError = function (output,
|
|
|
165
165
|
message = response.message || response.Message || errorCode;
|
|
166
166
|
response.message = message;
|
|
167
167
|
delete response.Message;
|
|
168
|
-
return [2
|
|
168
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}); };
|
|
@@ -175,15 +175,15 @@ export var deserializeAws_json1_1GetComplianceSummaryCommand = function (output,
|
|
|
175
175
|
switch (_a.label) {
|
|
176
176
|
case 0:
|
|
177
177
|
if (output.statusCode >= 300) {
|
|
178
|
-
return [2
|
|
178
|
+
return [2, deserializeAws_json1_1GetComplianceSummaryCommandError(output, context)];
|
|
179
179
|
}
|
|
180
|
-
return [4
|
|
180
|
+
return [4, parseBody(output.body, context)];
|
|
181
181
|
case 1:
|
|
182
182
|
data = _a.sent();
|
|
183
183
|
contents = {};
|
|
184
184
|
contents = deserializeAws_json1_1GetComplianceSummaryOutput(data, context);
|
|
185
185
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
186
|
-
return [2
|
|
186
|
+
return [2, Promise.resolve(response)];
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
}); };
|
|
@@ -195,47 +195,47 @@ var deserializeAws_json1_1GetComplianceSummaryCommandError = function (output, c
|
|
|
195
195
|
case 0:
|
|
196
196
|
_a = [__assign({}, output)];
|
|
197
197
|
_g = {};
|
|
198
|
-
return [4
|
|
198
|
+
return [4, parseBody(output.body, context)];
|
|
199
199
|
case 1:
|
|
200
200
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
201
201
|
errorCode = "UnknownError";
|
|
202
202
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
203
|
_b = errorCode;
|
|
204
204
|
switch (_b) {
|
|
205
|
-
case "ConstraintViolationException": return [3
|
|
206
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3
|
|
207
|
-
case "InternalServiceException": return [3
|
|
208
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
209
|
-
case "InvalidParameterException": return [3
|
|
210
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
211
|
-
case "ThrottledException": return [3
|
|
212
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
205
|
+
case "ConstraintViolationException": return [3, 2];
|
|
206
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 2];
|
|
207
|
+
case "InternalServiceException": return [3, 4];
|
|
208
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 4];
|
|
209
|
+
case "InvalidParameterException": return [3, 6];
|
|
210
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 6];
|
|
211
|
+
case "ThrottledException": return [3, 8];
|
|
212
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
213
213
|
}
|
|
214
|
-
return [3
|
|
214
|
+
return [3, 10];
|
|
215
215
|
case 2:
|
|
216
216
|
_c = [{}];
|
|
217
|
-
return [4
|
|
217
|
+
return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
218
218
|
case 3:
|
|
219
219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
220
|
-
return [3
|
|
220
|
+
return [3, 11];
|
|
221
221
|
case 4:
|
|
222
222
|
_d = [{}];
|
|
223
|
-
return [4
|
|
223
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
224
224
|
case 5:
|
|
225
225
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
226
|
-
return [3
|
|
226
|
+
return [3, 11];
|
|
227
227
|
case 6:
|
|
228
228
|
_e = [{}];
|
|
229
|
-
return [4
|
|
229
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
230
230
|
case 7:
|
|
231
231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
232
|
-
return [3
|
|
232
|
+
return [3, 11];
|
|
233
233
|
case 8:
|
|
234
234
|
_f = [{}];
|
|
235
|
-
return [4
|
|
235
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
236
236
|
case 9:
|
|
237
237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
238
|
-
return [3
|
|
238
|
+
return [3, 11];
|
|
239
239
|
case 10:
|
|
240
240
|
parsedBody = parsedOutput.body;
|
|
241
241
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -245,7 +245,7 @@ var deserializeAws_json1_1GetComplianceSummaryCommandError = function (output, c
|
|
|
245
245
|
message = response.message || response.Message || errorCode;
|
|
246
246
|
response.message = message;
|
|
247
247
|
delete response.Message;
|
|
248
|
-
return [2
|
|
248
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
251
|
}); };
|
|
@@ -255,15 +255,15 @@ export var deserializeAws_json1_1GetResourcesCommand = function (output, context
|
|
|
255
255
|
switch (_a.label) {
|
|
256
256
|
case 0:
|
|
257
257
|
if (output.statusCode >= 300) {
|
|
258
|
-
return [2
|
|
258
|
+
return [2, deserializeAws_json1_1GetResourcesCommandError(output, context)];
|
|
259
259
|
}
|
|
260
|
-
return [4
|
|
260
|
+
return [4, parseBody(output.body, context)];
|
|
261
261
|
case 1:
|
|
262
262
|
data = _a.sent();
|
|
263
263
|
contents = {};
|
|
264
264
|
contents = deserializeAws_json1_1GetResourcesOutput(data, context);
|
|
265
265
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
266
|
-
return [2
|
|
266
|
+
return [2, Promise.resolve(response)];
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
}); };
|
|
@@ -275,47 +275,47 @@ var deserializeAws_json1_1GetResourcesCommandError = function (output, context)
|
|
|
275
275
|
case 0:
|
|
276
276
|
_a = [__assign({}, output)];
|
|
277
277
|
_g = {};
|
|
278
|
-
return [4
|
|
278
|
+
return [4, parseBody(output.body, context)];
|
|
279
279
|
case 1:
|
|
280
280
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
281
281
|
errorCode = "UnknownError";
|
|
282
282
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
283
283
|
_b = errorCode;
|
|
284
284
|
switch (_b) {
|
|
285
|
-
case "InternalServiceException": return [3
|
|
286
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
287
|
-
case "InvalidParameterException": return [3
|
|
288
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
289
|
-
case "PaginationTokenExpiredException": return [3
|
|
290
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3
|
|
291
|
-
case "ThrottledException": return [3
|
|
292
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
285
|
+
case "InternalServiceException": return [3, 2];
|
|
286
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
287
|
+
case "InvalidParameterException": return [3, 4];
|
|
288
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
289
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
290
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
291
|
+
case "ThrottledException": return [3, 8];
|
|
292
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
293
293
|
}
|
|
294
|
-
return [3
|
|
294
|
+
return [3, 10];
|
|
295
295
|
case 2:
|
|
296
296
|
_c = [{}];
|
|
297
|
-
return [4
|
|
297
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
298
298
|
case 3:
|
|
299
299
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
300
|
-
return [3
|
|
300
|
+
return [3, 11];
|
|
301
301
|
case 4:
|
|
302
302
|
_d = [{}];
|
|
303
|
-
return [4
|
|
303
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
304
304
|
case 5:
|
|
305
305
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
306
|
-
return [3
|
|
306
|
+
return [3, 11];
|
|
307
307
|
case 6:
|
|
308
308
|
_e = [{}];
|
|
309
|
-
return [4
|
|
309
|
+
return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
310
310
|
case 7:
|
|
311
311
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
312
|
-
return [3
|
|
312
|
+
return [3, 11];
|
|
313
313
|
case 8:
|
|
314
314
|
_f = [{}];
|
|
315
|
-
return [4
|
|
315
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
316
316
|
case 9:
|
|
317
317
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
318
|
-
return [3
|
|
318
|
+
return [3, 11];
|
|
319
319
|
case 10:
|
|
320
320
|
parsedBody = parsedOutput.body;
|
|
321
321
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -325,7 +325,7 @@ var deserializeAws_json1_1GetResourcesCommandError = function (output, context)
|
|
|
325
325
|
message = response.message || response.Message || errorCode;
|
|
326
326
|
response.message = message;
|
|
327
327
|
delete response.Message;
|
|
328
|
-
return [2
|
|
328
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
}); };
|
|
@@ -335,15 +335,15 @@ export var deserializeAws_json1_1GetTagKeysCommand = function (output, context)
|
|
|
335
335
|
switch (_a.label) {
|
|
336
336
|
case 0:
|
|
337
337
|
if (output.statusCode >= 300) {
|
|
338
|
-
return [2
|
|
338
|
+
return [2, deserializeAws_json1_1GetTagKeysCommandError(output, context)];
|
|
339
339
|
}
|
|
340
|
-
return [4
|
|
340
|
+
return [4, parseBody(output.body, context)];
|
|
341
341
|
case 1:
|
|
342
342
|
data = _a.sent();
|
|
343
343
|
contents = {};
|
|
344
344
|
contents = deserializeAws_json1_1GetTagKeysOutput(data, context);
|
|
345
345
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
346
|
-
return [2
|
|
346
|
+
return [2, Promise.resolve(response)];
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
}); };
|
|
@@ -355,47 +355,47 @@ var deserializeAws_json1_1GetTagKeysCommandError = function (output, context) {
|
|
|
355
355
|
case 0:
|
|
356
356
|
_a = [__assign({}, output)];
|
|
357
357
|
_g = {};
|
|
358
|
-
return [4
|
|
358
|
+
return [4, parseBody(output.body, context)];
|
|
359
359
|
case 1:
|
|
360
360
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
361
361
|
errorCode = "UnknownError";
|
|
362
362
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
363
|
_b = errorCode;
|
|
364
364
|
switch (_b) {
|
|
365
|
-
case "InternalServiceException": return [3
|
|
366
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
367
|
-
case "InvalidParameterException": return [3
|
|
368
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
369
|
-
case "PaginationTokenExpiredException": return [3
|
|
370
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3
|
|
371
|
-
case "ThrottledException": return [3
|
|
372
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
365
|
+
case "InternalServiceException": return [3, 2];
|
|
366
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
367
|
+
case "InvalidParameterException": return [3, 4];
|
|
368
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
369
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
370
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
371
|
+
case "ThrottledException": return [3, 8];
|
|
372
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
373
373
|
}
|
|
374
|
-
return [3
|
|
374
|
+
return [3, 10];
|
|
375
375
|
case 2:
|
|
376
376
|
_c = [{}];
|
|
377
|
-
return [4
|
|
377
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
378
378
|
case 3:
|
|
379
379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
380
|
-
return [3
|
|
380
|
+
return [3, 11];
|
|
381
381
|
case 4:
|
|
382
382
|
_d = [{}];
|
|
383
|
-
return [4
|
|
383
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
384
384
|
case 5:
|
|
385
385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
386
|
-
return [3
|
|
386
|
+
return [3, 11];
|
|
387
387
|
case 6:
|
|
388
388
|
_e = [{}];
|
|
389
|
-
return [4
|
|
389
|
+
return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
390
390
|
case 7:
|
|
391
391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
392
|
-
return [3
|
|
392
|
+
return [3, 11];
|
|
393
393
|
case 8:
|
|
394
394
|
_f = [{}];
|
|
395
|
-
return [4
|
|
395
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
396
396
|
case 9:
|
|
397
397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
398
|
-
return [3
|
|
398
|
+
return [3, 11];
|
|
399
399
|
case 10:
|
|
400
400
|
parsedBody = parsedOutput.body;
|
|
401
401
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -405,7 +405,7 @@ var deserializeAws_json1_1GetTagKeysCommandError = function (output, context) {
|
|
|
405
405
|
message = response.message || response.Message || errorCode;
|
|
406
406
|
response.message = message;
|
|
407
407
|
delete response.Message;
|
|
408
|
-
return [2
|
|
408
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}); };
|
|
@@ -415,15 +415,15 @@ export var deserializeAws_json1_1GetTagValuesCommand = function (output, context
|
|
|
415
415
|
switch (_a.label) {
|
|
416
416
|
case 0:
|
|
417
417
|
if (output.statusCode >= 300) {
|
|
418
|
-
return [2
|
|
418
|
+
return [2, deserializeAws_json1_1GetTagValuesCommandError(output, context)];
|
|
419
419
|
}
|
|
420
|
-
return [4
|
|
420
|
+
return [4, parseBody(output.body, context)];
|
|
421
421
|
case 1:
|
|
422
422
|
data = _a.sent();
|
|
423
423
|
contents = {};
|
|
424
424
|
contents = deserializeAws_json1_1GetTagValuesOutput(data, context);
|
|
425
425
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
426
|
-
return [2
|
|
426
|
+
return [2, Promise.resolve(response)];
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}); };
|
|
@@ -435,47 +435,47 @@ var deserializeAws_json1_1GetTagValuesCommandError = function (output, context)
|
|
|
435
435
|
case 0:
|
|
436
436
|
_a = [__assign({}, output)];
|
|
437
437
|
_g = {};
|
|
438
|
-
return [4
|
|
438
|
+
return [4, parseBody(output.body, context)];
|
|
439
439
|
case 1:
|
|
440
440
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
441
441
|
errorCode = "UnknownError";
|
|
442
442
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
443
|
_b = errorCode;
|
|
444
444
|
switch (_b) {
|
|
445
|
-
case "InternalServiceException": return [3
|
|
446
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
447
|
-
case "InvalidParameterException": return [3
|
|
448
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
449
|
-
case "PaginationTokenExpiredException": return [3
|
|
450
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3
|
|
451
|
-
case "ThrottledException": return [3
|
|
452
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
445
|
+
case "InternalServiceException": return [3, 2];
|
|
446
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
447
|
+
case "InvalidParameterException": return [3, 4];
|
|
448
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
449
|
+
case "PaginationTokenExpiredException": return [3, 6];
|
|
450
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException": return [3, 6];
|
|
451
|
+
case "ThrottledException": return [3, 8];
|
|
452
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 8];
|
|
453
453
|
}
|
|
454
|
-
return [3
|
|
454
|
+
return [3, 10];
|
|
455
455
|
case 2:
|
|
456
456
|
_c = [{}];
|
|
457
|
-
return [4
|
|
457
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
458
458
|
case 3:
|
|
459
459
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
460
|
-
return [3
|
|
460
|
+
return [3, 11];
|
|
461
461
|
case 4:
|
|
462
462
|
_d = [{}];
|
|
463
|
-
return [4
|
|
463
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
464
464
|
case 5:
|
|
465
465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
466
|
-
return [3
|
|
466
|
+
return [3, 11];
|
|
467
467
|
case 6:
|
|
468
468
|
_e = [{}];
|
|
469
|
-
return [4
|
|
469
|
+
return [4, deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)];
|
|
470
470
|
case 7:
|
|
471
471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
472
|
-
return [3
|
|
472
|
+
return [3, 11];
|
|
473
473
|
case 8:
|
|
474
474
|
_f = [{}];
|
|
475
|
-
return [4
|
|
475
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
476
476
|
case 9:
|
|
477
477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
478
|
-
return [3
|
|
478
|
+
return [3, 11];
|
|
479
479
|
case 10:
|
|
480
480
|
parsedBody = parsedOutput.body;
|
|
481
481
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -485,7 +485,7 @@ var deserializeAws_json1_1GetTagValuesCommandError = function (output, context)
|
|
|
485
485
|
message = response.message || response.Message || errorCode;
|
|
486
486
|
response.message = message;
|
|
487
487
|
delete response.Message;
|
|
488
|
-
return [2
|
|
488
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}); };
|
|
@@ -495,15 +495,15 @@ export var deserializeAws_json1_1StartReportCreationCommand = function (output,
|
|
|
495
495
|
switch (_a.label) {
|
|
496
496
|
case 0:
|
|
497
497
|
if (output.statusCode >= 300) {
|
|
498
|
-
return [2
|
|
498
|
+
return [2, deserializeAws_json1_1StartReportCreationCommandError(output, context)];
|
|
499
499
|
}
|
|
500
|
-
return [4
|
|
500
|
+
return [4, parseBody(output.body, context)];
|
|
501
501
|
case 1:
|
|
502
502
|
data = _a.sent();
|
|
503
503
|
contents = {};
|
|
504
504
|
contents = deserializeAws_json1_1StartReportCreationOutput(data, context);
|
|
505
505
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
506
|
-
return [2
|
|
506
|
+
return [2, Promise.resolve(response)];
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
}); };
|
|
@@ -515,55 +515,55 @@ var deserializeAws_json1_1StartReportCreationCommandError = function (output, co
|
|
|
515
515
|
case 0:
|
|
516
516
|
_a = [__assign({}, output)];
|
|
517
517
|
_h = {};
|
|
518
|
-
return [4
|
|
518
|
+
return [4, parseBody(output.body, context)];
|
|
519
519
|
case 1:
|
|
520
520
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
521
521
|
errorCode = "UnknownError";
|
|
522
522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
523
|
_b = errorCode;
|
|
524
524
|
switch (_b) {
|
|
525
|
-
case "ConcurrentModificationException": return [3
|
|
526
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException": return [3
|
|
527
|
-
case "ConstraintViolationException": return [3
|
|
528
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3
|
|
529
|
-
case "InternalServiceException": return [3
|
|
530
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
531
|
-
case "InvalidParameterException": return [3
|
|
532
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
533
|
-
case "ThrottledException": return [3
|
|
534
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
525
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
526
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException": return [3, 2];
|
|
527
|
+
case "ConstraintViolationException": return [3, 4];
|
|
528
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException": return [3, 4];
|
|
529
|
+
case "InternalServiceException": return [3, 6];
|
|
530
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 6];
|
|
531
|
+
case "InvalidParameterException": return [3, 8];
|
|
532
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 8];
|
|
533
|
+
case "ThrottledException": return [3, 10];
|
|
534
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 10];
|
|
535
535
|
}
|
|
536
|
-
return [3
|
|
536
|
+
return [3, 12];
|
|
537
537
|
case 2:
|
|
538
538
|
_c = [{}];
|
|
539
|
-
return [4
|
|
539
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
540
540
|
case 3:
|
|
541
541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
542
|
-
return [3
|
|
542
|
+
return [3, 13];
|
|
543
543
|
case 4:
|
|
544
544
|
_d = [{}];
|
|
545
|
-
return [4
|
|
545
|
+
return [4, deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)];
|
|
546
546
|
case 5:
|
|
547
547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
548
|
-
return [3
|
|
548
|
+
return [3, 13];
|
|
549
549
|
case 6:
|
|
550
550
|
_e = [{}];
|
|
551
|
-
return [4
|
|
551
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
552
552
|
case 7:
|
|
553
553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
554
|
-
return [3
|
|
554
|
+
return [3, 13];
|
|
555
555
|
case 8:
|
|
556
556
|
_f = [{}];
|
|
557
|
-
return [4
|
|
557
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
558
558
|
case 9:
|
|
559
559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
560
|
-
return [3
|
|
560
|
+
return [3, 13];
|
|
561
561
|
case 10:
|
|
562
562
|
_g = [{}];
|
|
563
|
-
return [4
|
|
563
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
564
564
|
case 11:
|
|
565
565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
566
|
-
return [3
|
|
566
|
+
return [3, 13];
|
|
567
567
|
case 12:
|
|
568
568
|
parsedBody = parsedOutput.body;
|
|
569
569
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -573,7 +573,7 @@ var deserializeAws_json1_1StartReportCreationCommandError = function (output, co
|
|
|
573
573
|
message = response.message || response.Message || errorCode;
|
|
574
574
|
response.message = message;
|
|
575
575
|
delete response.Message;
|
|
576
|
-
return [2
|
|
576
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
}); };
|
|
@@ -583,15 +583,15 @@ export var deserializeAws_json1_1TagResourcesCommand = function (output, context
|
|
|
583
583
|
switch (_a.label) {
|
|
584
584
|
case 0:
|
|
585
585
|
if (output.statusCode >= 300) {
|
|
586
|
-
return [2
|
|
586
|
+
return [2, deserializeAws_json1_1TagResourcesCommandError(output, context)];
|
|
587
587
|
}
|
|
588
|
-
return [4
|
|
588
|
+
return [4, parseBody(output.body, context)];
|
|
589
589
|
case 1:
|
|
590
590
|
data = _a.sent();
|
|
591
591
|
contents = {};
|
|
592
592
|
contents = deserializeAws_json1_1TagResourcesOutput(data, context);
|
|
593
593
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
594
|
-
return [2
|
|
594
|
+
return [2, Promise.resolve(response)];
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}); };
|
|
@@ -603,39 +603,39 @@ var deserializeAws_json1_1TagResourcesCommandError = function (output, context)
|
|
|
603
603
|
case 0:
|
|
604
604
|
_a = [__assign({}, output)];
|
|
605
605
|
_f = {};
|
|
606
|
-
return [4
|
|
606
|
+
return [4, parseBody(output.body, context)];
|
|
607
607
|
case 1:
|
|
608
608
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
609
609
|
errorCode = "UnknownError";
|
|
610
610
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
611
|
_b = errorCode;
|
|
612
612
|
switch (_b) {
|
|
613
|
-
case "InternalServiceException": return [3
|
|
614
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
615
|
-
case "InvalidParameterException": return [3
|
|
616
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
617
|
-
case "ThrottledException": return [3
|
|
618
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
613
|
+
case "InternalServiceException": return [3, 2];
|
|
614
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
615
|
+
case "InvalidParameterException": return [3, 4];
|
|
616
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
617
|
+
case "ThrottledException": return [3, 6];
|
|
618
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
619
619
|
}
|
|
620
|
-
return [3
|
|
620
|
+
return [3, 8];
|
|
621
621
|
case 2:
|
|
622
622
|
_c = [{}];
|
|
623
|
-
return [4
|
|
623
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
624
624
|
case 3:
|
|
625
625
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
626
|
-
return [3
|
|
626
|
+
return [3, 9];
|
|
627
627
|
case 4:
|
|
628
628
|
_d = [{}];
|
|
629
|
-
return [4
|
|
629
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
630
630
|
case 5:
|
|
631
631
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
632
|
-
return [3
|
|
632
|
+
return [3, 9];
|
|
633
633
|
case 6:
|
|
634
634
|
_e = [{}];
|
|
635
|
-
return [4
|
|
635
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
636
636
|
case 7:
|
|
637
637
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
638
|
-
return [3
|
|
638
|
+
return [3, 9];
|
|
639
639
|
case 8:
|
|
640
640
|
parsedBody = parsedOutput.body;
|
|
641
641
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -645,7 +645,7 @@ var deserializeAws_json1_1TagResourcesCommandError = function (output, context)
|
|
|
645
645
|
message = response.message || response.Message || errorCode;
|
|
646
646
|
response.message = message;
|
|
647
647
|
delete response.Message;
|
|
648
|
-
return [2
|
|
648
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
651
|
}); };
|
|
@@ -655,15 +655,15 @@ export var deserializeAws_json1_1UntagResourcesCommand = function (output, conte
|
|
|
655
655
|
switch (_a.label) {
|
|
656
656
|
case 0:
|
|
657
657
|
if (output.statusCode >= 300) {
|
|
658
|
-
return [2
|
|
658
|
+
return [2, deserializeAws_json1_1UntagResourcesCommandError(output, context)];
|
|
659
659
|
}
|
|
660
|
-
return [4
|
|
660
|
+
return [4, parseBody(output.body, context)];
|
|
661
661
|
case 1:
|
|
662
662
|
data = _a.sent();
|
|
663
663
|
contents = {};
|
|
664
664
|
contents = deserializeAws_json1_1UntagResourcesOutput(data, context);
|
|
665
665
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
666
|
-
return [2
|
|
666
|
+
return [2, Promise.resolve(response)];
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
}); };
|
|
@@ -675,39 +675,39 @@ var deserializeAws_json1_1UntagResourcesCommandError = function (output, context
|
|
|
675
675
|
case 0:
|
|
676
676
|
_a = [__assign({}, output)];
|
|
677
677
|
_f = {};
|
|
678
|
-
return [4
|
|
678
|
+
return [4, parseBody(output.body, context)];
|
|
679
679
|
case 1:
|
|
680
680
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
681
681
|
errorCode = "UnknownError";
|
|
682
682
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
683
|
_b = errorCode;
|
|
684
684
|
switch (_b) {
|
|
685
|
-
case "InternalServiceException": return [3
|
|
686
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3
|
|
687
|
-
case "InvalidParameterException": return [3
|
|
688
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3
|
|
689
|
-
case "ThrottledException": return [3
|
|
690
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3
|
|
685
|
+
case "InternalServiceException": return [3, 2];
|
|
686
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
687
|
+
case "InvalidParameterException": return [3, 4];
|
|
688
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
689
|
+
case "ThrottledException": return [3, 6];
|
|
690
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
691
691
|
}
|
|
692
|
-
return [3
|
|
692
|
+
return [3, 8];
|
|
693
693
|
case 2:
|
|
694
694
|
_c = [{}];
|
|
695
|
-
return [4
|
|
695
|
+
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
696
696
|
case 3:
|
|
697
697
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
698
|
-
return [3
|
|
698
|
+
return [3, 9];
|
|
699
699
|
case 4:
|
|
700
700
|
_d = [{}];
|
|
701
|
-
return [4
|
|
701
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
702
702
|
case 5:
|
|
703
703
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
704
|
-
return [3
|
|
704
|
+
return [3, 9];
|
|
705
705
|
case 6:
|
|
706
706
|
_e = [{}];
|
|
707
|
-
return [4
|
|
707
|
+
return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
708
708
|
case 7:
|
|
709
709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
710
|
-
return [3
|
|
710
|
+
return [3, 9];
|
|
711
711
|
case 8:
|
|
712
712
|
parsedBody = parsedOutput.body;
|
|
713
713
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -717,7 +717,7 @@ var deserializeAws_json1_1UntagResourcesCommandError = function (output, context
|
|
|
717
717
|
message = response.message || response.Message || errorCode;
|
|
718
718
|
response.message = message;
|
|
719
719
|
delete response.Message;
|
|
720
|
-
return [2
|
|
720
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
721
721
|
}
|
|
722
722
|
});
|
|
723
723
|
}); };
|
|
@@ -727,7 +727,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
727
727
|
body = parsedOutput.body;
|
|
728
728
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
729
729
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
730
|
-
return [2
|
|
730
|
+
return [2, contents];
|
|
731
731
|
});
|
|
732
732
|
}); };
|
|
733
733
|
var deserializeAws_json1_1ConstraintViolationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -736,7 +736,7 @@ var deserializeAws_json1_1ConstraintViolationExceptionResponse = function (parse
|
|
|
736
736
|
body = parsedOutput.body;
|
|
737
737
|
deserialized = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
738
738
|
contents = __assign({ name: "ConstraintViolationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
739
|
-
return [2
|
|
739
|
+
return [2, contents];
|
|
740
740
|
});
|
|
741
741
|
}); };
|
|
742
742
|
var deserializeAws_json1_1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -745,7 +745,7 @@ var deserializeAws_json1_1InternalServiceExceptionResponse = function (parsedOut
|
|
|
745
745
|
body = parsedOutput.body;
|
|
746
746
|
deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
747
747
|
contents = __assign({ name: "InternalServiceException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
748
|
-
return [2
|
|
748
|
+
return [2, contents];
|
|
749
749
|
});
|
|
750
750
|
}); };
|
|
751
751
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -754,7 +754,7 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
|
|
|
754
754
|
body = parsedOutput.body;
|
|
755
755
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
756
756
|
contents = __assign({ name: "InvalidParameterException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
757
|
-
return [2
|
|
757
|
+
return [2, contents];
|
|
758
758
|
});
|
|
759
759
|
}); };
|
|
760
760
|
var deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -763,7 +763,7 @@ var deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = function (pa
|
|
|
763
763
|
body = parsedOutput.body;
|
|
764
764
|
deserialized = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
765
765
|
contents = __assign({ name: "PaginationTokenExpiredException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
766
|
-
return [2
|
|
766
|
+
return [2, contents];
|
|
767
767
|
});
|
|
768
768
|
}); };
|
|
769
769
|
var deserializeAws_json1_1ThrottledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -772,7 +772,7 @@ var deserializeAws_json1_1ThrottledExceptionResponse = function (parsedOutput, c
|
|
|
772
772
|
body = parsedOutput.body;
|
|
773
773
|
deserialized = deserializeAws_json1_1ThrottledException(body, context);
|
|
774
774
|
contents = __assign({ name: "ThrottledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
775
|
-
return [2
|
|
775
|
+
return [2, contents];
|
|
776
776
|
});
|
|
777
777
|
}); };
|
|
778
778
|
var serializeAws_json1_1DescribeReportCreationInput = function (input, context) {
|
|
@@ -1148,7 +1148,6 @@ var deserializeMetadata = function (output) {
|
|
|
1148
1148
|
cfId: output.headers["x-amz-cf-id"],
|
|
1149
1149
|
});
|
|
1150
1150
|
};
|
|
1151
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1152
1151
|
var collectBody = function (streamBody, context) {
|
|
1153
1152
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1154
1153
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1156,7 +1155,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1156
1155
|
}
|
|
1157
1156
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1158
1157
|
};
|
|
1159
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1160
1158
|
var collectBodyString = function (streamBody, context) {
|
|
1161
1159
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1162
1160
|
};
|
|
@@ -1164,7 +1162,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1164
1162
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1165
1163
|
return __generator(this, function (_c) {
|
|
1166
1164
|
switch (_c.label) {
|
|
1167
|
-
case 0: return [4
|
|
1165
|
+
case 0: return [4, context.endpoint()];
|
|
1168
1166
|
case 1:
|
|
1169
1167
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1170
1168
|
contents = {
|
|
@@ -1181,7 +1179,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1181
1179
|
if (body !== undefined) {
|
|
1182
1180
|
contents.body = body;
|
|
1183
1181
|
}
|
|
1184
|
-
return [2
|
|
1182
|
+
return [2, new __HttpRequest(contents)];
|
|
1185
1183
|
}
|
|
1186
1184
|
});
|
|
1187
1185
|
}); };
|
|
@@ -1193,9 +1191,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1193
1191
|
return {};
|
|
1194
1192
|
});
|
|
1195
1193
|
};
|
|
1196
|
-
/**
|
|
1197
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1198
|
-
*/
|
|
1199
1194
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1200
1195
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1201
1196
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -1220,4 +1215,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1220
1215
|
}
|
|
1221
1216
|
return "";
|
|
1222
1217
|
};
|
|
1223
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|