@aws-sdk/client-compute-optimizer 3.306.0 → 3.309.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/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +2 -2
- package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -2
- package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +2 -2
- package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetEnrollmentStatusCommand.js +2 -2
- package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetRecommendationSummariesCommand.js +2 -2
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +680 -728
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +3 -3
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -3
- package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +3 -3
- package/dist-es/commands/GetECSServiceRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/GetEnrollmentStatusCommand.js +3 -3
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -3
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/GetRecommendationSummariesCommand.js +3 -3
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +637 -685
- package/dist-types/protocols/Aws_json1_0.d.ts +168 -42
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +42 -42
- package/package.json +6 -6
|
@@ -1,235 +1,235 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateEnrollmentStatusCommand = exports.de_PutRecommendationPreferencesCommand = exports.de_GetRecommendationSummariesCommand = exports.de_GetRecommendationPreferencesCommand = exports.de_GetLambdaFunctionRecommendationsCommand = exports.de_GetEnrollmentStatusesForOrganizationCommand = exports.de_GetEnrollmentStatusCommand = exports.de_GetEffectiveRecommendationPreferencesCommand = exports.de_GetECSServiceRecommendationsCommand = exports.de_GetECSServiceRecommendationProjectedMetricsCommand = exports.de_GetEC2RecommendationProjectedMetricsCommand = exports.de_GetEC2InstanceRecommendationsCommand = exports.de_GetEBSVolumeRecommendationsCommand = exports.de_GetAutoScalingGroupRecommendationsCommand = exports.de_ExportLambdaFunctionRecommendationsCommand = exports.de_ExportECSServiceRecommendationsCommand = exports.de_ExportEC2InstanceRecommendationsCommand = exports.de_ExportEBSVolumeRecommendationsCommand = exports.de_ExportAutoScalingGroupRecommendationsCommand = exports.de_DescribeRecommendationExportJobsCommand = exports.de_DeleteRecommendationPreferencesCommand = exports.se_UpdateEnrollmentStatusCommand = exports.se_PutRecommendationPreferencesCommand = exports.se_GetRecommendationSummariesCommand = exports.se_GetRecommendationPreferencesCommand = exports.se_GetLambdaFunctionRecommendationsCommand = exports.se_GetEnrollmentStatusesForOrganizationCommand = exports.se_GetEnrollmentStatusCommand = exports.se_GetEffectiveRecommendationPreferencesCommand = exports.se_GetECSServiceRecommendationsCommand = exports.se_GetECSServiceRecommendationProjectedMetricsCommand = exports.se_GetEC2RecommendationProjectedMetricsCommand = exports.se_GetEC2InstanceRecommendationsCommand = exports.se_GetEBSVolumeRecommendationsCommand = exports.se_GetAutoScalingGroupRecommendationsCommand = exports.se_ExportLambdaFunctionRecommendationsCommand = exports.se_ExportECSServiceRecommendationsCommand = exports.se_ExportEC2InstanceRecommendationsCommand = exports.se_ExportEBSVolumeRecommendationsCommand = exports.se_ExportAutoScalingGroupRecommendationsCommand = exports.se_DescribeRecommendationExportJobsCommand = exports.se_DeleteRecommendationPreferencesCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const ComputeOptimizerServiceException_1 = require("../models/ComputeOptimizerServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.0",
|
|
11
11
|
"x-amz-target": "ComputeOptimizerService.DeleteRecommendationPreferences",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_DeleteRecommendationPreferencesRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_DeleteRecommendationPreferencesCommand = se_DeleteRecommendationPreferencesCommand;
|
|
18
|
+
const se_DescribeRecommendationExportJobsCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.0",
|
|
21
21
|
"x-amz-target": "ComputeOptimizerService.DescribeRecommendationExportJobs",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_DescribeRecommendationExportJobsRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_DescribeRecommendationExportJobsCommand = se_DescribeRecommendationExportJobsCommand;
|
|
28
|
+
const se_ExportAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.0",
|
|
31
31
|
"x-amz-target": "ComputeOptimizerService.ExportAutoScalingGroupRecommendations",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_ExportAutoScalingGroupRecommendationsRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_ExportAutoScalingGroupRecommendationsCommand = se_ExportAutoScalingGroupRecommendationsCommand;
|
|
38
|
+
const se_ExportEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.0",
|
|
41
41
|
"x-amz-target": "ComputeOptimizerService.ExportEBSVolumeRecommendations",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_ExportEBSVolumeRecommendationsRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_ExportEBSVolumeRecommendationsCommand = se_ExportEBSVolumeRecommendationsCommand;
|
|
48
|
+
const se_ExportEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.0",
|
|
51
51
|
"x-amz-target": "ComputeOptimizerService.ExportEC2InstanceRecommendations",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_ExportEC2InstanceRecommendationsRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_ExportEC2InstanceRecommendationsCommand = se_ExportEC2InstanceRecommendationsCommand;
|
|
58
|
+
const se_ExportECSServiceRecommendationsCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.0",
|
|
61
61
|
"x-amz-target": "ComputeOptimizerService.ExportECSServiceRecommendations",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_ExportECSServiceRecommendationsRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_ExportECSServiceRecommendationsCommand = se_ExportECSServiceRecommendationsCommand;
|
|
68
|
+
const se_ExportLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.0",
|
|
71
71
|
"x-amz-target": "ComputeOptimizerService.ExportLambdaFunctionRecommendations",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_ExportLambdaFunctionRecommendationsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_ExportLambdaFunctionRecommendationsCommand = se_ExportLambdaFunctionRecommendationsCommand;
|
|
78
|
+
const se_GetAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.0",
|
|
81
81
|
"x-amz-target": "ComputeOptimizerService.GetAutoScalingGroupRecommendations",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_GetAutoScalingGroupRecommendationsRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_GetAutoScalingGroupRecommendationsCommand = se_GetAutoScalingGroupRecommendationsCommand;
|
|
88
|
+
const se_GetEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.0",
|
|
91
91
|
"x-amz-target": "ComputeOptimizerService.GetEBSVolumeRecommendations",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_GetEBSVolumeRecommendationsRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_GetEBSVolumeRecommendationsCommand = se_GetEBSVolumeRecommendationsCommand;
|
|
98
|
+
const se_GetEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.0",
|
|
101
101
|
"x-amz-target": "ComputeOptimizerService.GetEC2InstanceRecommendations",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_GetEC2InstanceRecommendationsRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_GetEC2InstanceRecommendationsCommand = se_GetEC2InstanceRecommendationsCommand;
|
|
108
|
+
const se_GetEC2RecommendationProjectedMetricsCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.0",
|
|
111
111
|
"x-amz-target": "ComputeOptimizerService.GetEC2RecommendationProjectedMetrics",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_GetEC2RecommendationProjectedMetricsRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_GetEC2RecommendationProjectedMetricsCommand = se_GetEC2RecommendationProjectedMetricsCommand;
|
|
118
|
+
const se_GetECSServiceRecommendationProjectedMetricsCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.0",
|
|
121
121
|
"x-amz-target": "ComputeOptimizerService.GetECSServiceRecommendationProjectedMetrics",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_GetECSServiceRecommendationProjectedMetricsRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_GetECSServiceRecommendationProjectedMetricsCommand = se_GetECSServiceRecommendationProjectedMetricsCommand;
|
|
128
|
+
const se_GetECSServiceRecommendationsCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.0",
|
|
131
131
|
"x-amz-target": "ComputeOptimizerService.GetECSServiceRecommendations",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_GetECSServiceRecommendationsRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_GetECSServiceRecommendationsCommand = se_GetECSServiceRecommendationsCommand;
|
|
138
|
+
const se_GetEffectiveRecommendationPreferencesCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.0",
|
|
141
141
|
"x-amz-target": "ComputeOptimizerService.GetEffectiveRecommendationPreferences",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_GetEffectiveRecommendationPreferencesRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_GetEffectiveRecommendationPreferencesCommand = se_GetEffectiveRecommendationPreferencesCommand;
|
|
148
|
+
const se_GetEnrollmentStatusCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.0",
|
|
151
151
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatus",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_GetEnrollmentStatusRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_GetEnrollmentStatusCommand = se_GetEnrollmentStatusCommand;
|
|
158
|
+
const se_GetEnrollmentStatusesForOrganizationCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.0",
|
|
161
161
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatusesForOrganization",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_GetEnrollmentStatusesForOrganizationRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
167
|
+
exports.se_GetEnrollmentStatusesForOrganizationCommand = se_GetEnrollmentStatusesForOrganizationCommand;
|
|
168
|
+
const se_GetLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.0",
|
|
171
171
|
"x-amz-target": "ComputeOptimizerService.GetLambdaFunctionRecommendations",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_GetLambdaFunctionRecommendationsRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
177
|
+
exports.se_GetLambdaFunctionRecommendationsCommand = se_GetLambdaFunctionRecommendationsCommand;
|
|
178
|
+
const se_GetRecommendationPreferencesCommand = async (input, context) => {
|
|
179
179
|
const headers = {
|
|
180
180
|
"content-type": "application/x-amz-json-1.0",
|
|
181
181
|
"x-amz-target": "ComputeOptimizerService.GetRecommendationPreferences",
|
|
182
182
|
};
|
|
183
183
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
184
|
+
body = JSON.stringify(se_GetRecommendationPreferencesRequest(input, context));
|
|
185
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
186
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
187
|
+
exports.se_GetRecommendationPreferencesCommand = se_GetRecommendationPreferencesCommand;
|
|
188
|
+
const se_GetRecommendationSummariesCommand = async (input, context) => {
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/x-amz-json-1.0",
|
|
191
191
|
"x-amz-target": "ComputeOptimizerService.GetRecommendationSummaries",
|
|
192
192
|
};
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(se_GetRecommendationSummariesRequest(input, context));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
|
-
exports.
|
|
198
|
-
const
|
|
197
|
+
exports.se_GetRecommendationSummariesCommand = se_GetRecommendationSummariesCommand;
|
|
198
|
+
const se_PutRecommendationPreferencesCommand = async (input, context) => {
|
|
199
199
|
const headers = {
|
|
200
200
|
"content-type": "application/x-amz-json-1.0",
|
|
201
201
|
"x-amz-target": "ComputeOptimizerService.PutRecommendationPreferences",
|
|
202
202
|
};
|
|
203
203
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
204
|
+
body = JSON.stringify(se_PutRecommendationPreferencesRequest(input, context));
|
|
205
205
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
206
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
207
|
+
exports.se_PutRecommendationPreferencesCommand = se_PutRecommendationPreferencesCommand;
|
|
208
|
+
const se_UpdateEnrollmentStatusCommand = async (input, context) => {
|
|
209
209
|
const headers = {
|
|
210
210
|
"content-type": "application/x-amz-json-1.0",
|
|
211
211
|
"x-amz-target": "ComputeOptimizerService.UpdateEnrollmentStatus",
|
|
212
212
|
};
|
|
213
213
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
214
|
+
body = JSON.stringify(se_UpdateEnrollmentStatusRequest(input, context));
|
|
215
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
216
|
};
|
|
217
|
-
exports.
|
|
218
|
-
const
|
|
217
|
+
exports.se_UpdateEnrollmentStatusCommand = se_UpdateEnrollmentStatusCommand;
|
|
218
|
+
const de_DeleteRecommendationPreferencesCommand = async (output, context) => {
|
|
219
219
|
if (output.statusCode >= 300) {
|
|
220
|
-
return
|
|
220
|
+
return de_DeleteRecommendationPreferencesCommandError(output, context);
|
|
221
221
|
}
|
|
222
222
|
const data = await parseBody(output.body, context);
|
|
223
223
|
let contents = {};
|
|
224
|
-
contents =
|
|
224
|
+
contents = de_DeleteRecommendationPreferencesResponse(data, context);
|
|
225
225
|
const response = {
|
|
226
226
|
$metadata: deserializeMetadata(output),
|
|
227
227
|
...contents,
|
|
228
228
|
};
|
|
229
229
|
return Promise.resolve(response);
|
|
230
230
|
};
|
|
231
|
-
exports.
|
|
232
|
-
const
|
|
231
|
+
exports.de_DeleteRecommendationPreferencesCommand = de_DeleteRecommendationPreferencesCommand;
|
|
232
|
+
const de_DeleteRecommendationPreferencesCommandError = async (output, context) => {
|
|
233
233
|
const parsedOutput = {
|
|
234
234
|
...output,
|
|
235
235
|
body: await parseErrorBody(output.body, context),
|
|
@@ -238,28 +238,28 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
238
238
|
switch (errorCode) {
|
|
239
239
|
case "AccessDeniedException":
|
|
240
240
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
241
|
-
throw await
|
|
241
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
242
242
|
case "InternalServerException":
|
|
243
243
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
244
|
-
throw await
|
|
244
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
245
245
|
case "InvalidParameterValueException":
|
|
246
246
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
247
|
-
throw await
|
|
247
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
248
248
|
case "MissingAuthenticationToken":
|
|
249
249
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
250
|
-
throw await
|
|
250
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
251
251
|
case "OptInRequiredException":
|
|
252
252
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
253
|
-
throw await
|
|
253
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
254
254
|
case "ResourceNotFoundException":
|
|
255
255
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
256
|
-
throw await
|
|
256
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
257
257
|
case "ServiceUnavailableException":
|
|
258
258
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
259
|
-
throw await
|
|
259
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
260
260
|
case "ThrottlingException":
|
|
261
261
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
262
|
-
throw await
|
|
262
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
263
263
|
default:
|
|
264
264
|
const parsedBody = parsedOutput.body;
|
|
265
265
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -270,21 +270,21 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
|
-
const
|
|
273
|
+
const de_DescribeRecommendationExportJobsCommand = async (output, context) => {
|
|
274
274
|
if (output.statusCode >= 300) {
|
|
275
|
-
return
|
|
275
|
+
return de_DescribeRecommendationExportJobsCommandError(output, context);
|
|
276
276
|
}
|
|
277
277
|
const data = await parseBody(output.body, context);
|
|
278
278
|
let contents = {};
|
|
279
|
-
contents =
|
|
279
|
+
contents = de_DescribeRecommendationExportJobsResponse(data, context);
|
|
280
280
|
const response = {
|
|
281
281
|
$metadata: deserializeMetadata(output),
|
|
282
282
|
...contents,
|
|
283
283
|
};
|
|
284
284
|
return Promise.resolve(response);
|
|
285
285
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
286
|
+
exports.de_DescribeRecommendationExportJobsCommand = de_DescribeRecommendationExportJobsCommand;
|
|
287
|
+
const de_DescribeRecommendationExportJobsCommandError = async (output, context) => {
|
|
288
288
|
const parsedOutput = {
|
|
289
289
|
...output,
|
|
290
290
|
body: await parseErrorBody(output.body, context),
|
|
@@ -293,28 +293,28 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
293
293
|
switch (errorCode) {
|
|
294
294
|
case "AccessDeniedException":
|
|
295
295
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
296
|
-
throw await
|
|
296
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
297
297
|
case "InternalServerException":
|
|
298
298
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
299
|
-
throw await
|
|
299
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
300
300
|
case "InvalidParameterValueException":
|
|
301
301
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
302
|
-
throw await
|
|
302
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
303
303
|
case "MissingAuthenticationToken":
|
|
304
304
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
305
|
-
throw await
|
|
305
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
306
306
|
case "OptInRequiredException":
|
|
307
307
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
308
|
-
throw await
|
|
308
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
309
309
|
case "ResourceNotFoundException":
|
|
310
310
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
311
|
-
throw await
|
|
311
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
312
312
|
case "ServiceUnavailableException":
|
|
313
313
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
314
|
-
throw await
|
|
314
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
315
315
|
case "ThrottlingException":
|
|
316
316
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
317
|
-
throw await
|
|
317
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
318
318
|
default:
|
|
319
319
|
const parsedBody = parsedOutput.body;
|
|
320
320
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -325,21 +325,21 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
|
-
const
|
|
328
|
+
const de_ExportAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
329
329
|
if (output.statusCode >= 300) {
|
|
330
|
-
return
|
|
330
|
+
return de_ExportAutoScalingGroupRecommendationsCommandError(output, context);
|
|
331
331
|
}
|
|
332
332
|
const data = await parseBody(output.body, context);
|
|
333
333
|
let contents = {};
|
|
334
|
-
contents =
|
|
334
|
+
contents = de_ExportAutoScalingGroupRecommendationsResponse(data, context);
|
|
335
335
|
const response = {
|
|
336
336
|
$metadata: deserializeMetadata(output),
|
|
337
337
|
...contents,
|
|
338
338
|
};
|
|
339
339
|
return Promise.resolve(response);
|
|
340
340
|
};
|
|
341
|
-
exports.
|
|
342
|
-
const
|
|
341
|
+
exports.de_ExportAutoScalingGroupRecommendationsCommand = de_ExportAutoScalingGroupRecommendationsCommand;
|
|
342
|
+
const de_ExportAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
343
343
|
const parsedOutput = {
|
|
344
344
|
...output,
|
|
345
345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -348,28 +348,28 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
348
348
|
switch (errorCode) {
|
|
349
349
|
case "AccessDeniedException":
|
|
350
350
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
352
352
|
case "InternalServerException":
|
|
353
353
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
355
355
|
case "InvalidParameterValueException":
|
|
356
356
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
358
358
|
case "LimitExceededException":
|
|
359
359
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
360
|
-
throw await
|
|
360
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
361
361
|
case "MissingAuthenticationToken":
|
|
362
362
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
363
|
-
throw await
|
|
363
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
364
364
|
case "OptInRequiredException":
|
|
365
365
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
366
|
-
throw await
|
|
366
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
367
367
|
case "ServiceUnavailableException":
|
|
368
368
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
369
|
-
throw await
|
|
369
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
370
370
|
case "ThrottlingException":
|
|
371
371
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
372
|
-
throw await
|
|
372
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
373
373
|
default:
|
|
374
374
|
const parsedBody = parsedOutput.body;
|
|
375
375
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -380,21 +380,21 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
-
const
|
|
383
|
+
const de_ExportEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
384
384
|
if (output.statusCode >= 300) {
|
|
385
|
-
return
|
|
385
|
+
return de_ExportEBSVolumeRecommendationsCommandError(output, context);
|
|
386
386
|
}
|
|
387
387
|
const data = await parseBody(output.body, context);
|
|
388
388
|
let contents = {};
|
|
389
|
-
contents =
|
|
389
|
+
contents = de_ExportEBSVolumeRecommendationsResponse(data, context);
|
|
390
390
|
const response = {
|
|
391
391
|
$metadata: deserializeMetadata(output),
|
|
392
392
|
...contents,
|
|
393
393
|
};
|
|
394
394
|
return Promise.resolve(response);
|
|
395
395
|
};
|
|
396
|
-
exports.
|
|
397
|
-
const
|
|
396
|
+
exports.de_ExportEBSVolumeRecommendationsCommand = de_ExportEBSVolumeRecommendationsCommand;
|
|
397
|
+
const de_ExportEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
398
398
|
const parsedOutput = {
|
|
399
399
|
...output,
|
|
400
400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -403,28 +403,28 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
403
403
|
switch (errorCode) {
|
|
404
404
|
case "AccessDeniedException":
|
|
405
405
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
406
|
-
throw await
|
|
406
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
407
407
|
case "InternalServerException":
|
|
408
408
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
410
410
|
case "InvalidParameterValueException":
|
|
411
411
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
413
413
|
case "LimitExceededException":
|
|
414
414
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
416
416
|
case "MissingAuthenticationToken":
|
|
417
417
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
418
|
-
throw await
|
|
418
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
419
419
|
case "OptInRequiredException":
|
|
420
420
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
421
|
-
throw await
|
|
421
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
422
422
|
case "ServiceUnavailableException":
|
|
423
423
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
424
|
-
throw await
|
|
424
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
425
425
|
case "ThrottlingException":
|
|
426
426
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
427
|
-
throw await
|
|
427
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
428
428
|
default:
|
|
429
429
|
const parsedBody = parsedOutput.body;
|
|
430
430
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -435,21 +435,21 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
const
|
|
438
|
+
const de_ExportEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
439
439
|
if (output.statusCode >= 300) {
|
|
440
|
-
return
|
|
440
|
+
return de_ExportEC2InstanceRecommendationsCommandError(output, context);
|
|
441
441
|
}
|
|
442
442
|
const data = await parseBody(output.body, context);
|
|
443
443
|
let contents = {};
|
|
444
|
-
contents =
|
|
444
|
+
contents = de_ExportEC2InstanceRecommendationsResponse(data, context);
|
|
445
445
|
const response = {
|
|
446
446
|
$metadata: deserializeMetadata(output),
|
|
447
447
|
...contents,
|
|
448
448
|
};
|
|
449
449
|
return Promise.resolve(response);
|
|
450
450
|
};
|
|
451
|
-
exports.
|
|
452
|
-
const
|
|
451
|
+
exports.de_ExportEC2InstanceRecommendationsCommand = de_ExportEC2InstanceRecommendationsCommand;
|
|
452
|
+
const de_ExportEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
453
453
|
const parsedOutput = {
|
|
454
454
|
...output,
|
|
455
455
|
body: await parseErrorBody(output.body, context),
|
|
@@ -458,28 +458,28 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
458
458
|
switch (errorCode) {
|
|
459
459
|
case "AccessDeniedException":
|
|
460
460
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
461
|
-
throw await
|
|
461
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
462
462
|
case "InternalServerException":
|
|
463
463
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
464
|
-
throw await
|
|
464
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
465
465
|
case "InvalidParameterValueException":
|
|
466
466
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
467
|
-
throw await
|
|
467
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
468
468
|
case "LimitExceededException":
|
|
469
469
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
470
|
-
throw await
|
|
470
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
471
471
|
case "MissingAuthenticationToken":
|
|
472
472
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
473
|
-
throw await
|
|
473
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
474
474
|
case "OptInRequiredException":
|
|
475
475
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
476
|
-
throw await
|
|
476
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
477
477
|
case "ServiceUnavailableException":
|
|
478
478
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
479
|
-
throw await
|
|
479
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
480
480
|
case "ThrottlingException":
|
|
481
481
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
482
|
-
throw await
|
|
482
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
483
483
|
default:
|
|
484
484
|
const parsedBody = parsedOutput.body;
|
|
485
485
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -490,21 +490,21 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
|
-
const
|
|
493
|
+
const de_ExportECSServiceRecommendationsCommand = async (output, context) => {
|
|
494
494
|
if (output.statusCode >= 300) {
|
|
495
|
-
return
|
|
495
|
+
return de_ExportECSServiceRecommendationsCommandError(output, context);
|
|
496
496
|
}
|
|
497
497
|
const data = await parseBody(output.body, context);
|
|
498
498
|
let contents = {};
|
|
499
|
-
contents =
|
|
499
|
+
contents = de_ExportECSServiceRecommendationsResponse(data, context);
|
|
500
500
|
const response = {
|
|
501
501
|
$metadata: deserializeMetadata(output),
|
|
502
502
|
...contents,
|
|
503
503
|
};
|
|
504
504
|
return Promise.resolve(response);
|
|
505
505
|
};
|
|
506
|
-
exports.
|
|
507
|
-
const
|
|
506
|
+
exports.de_ExportECSServiceRecommendationsCommand = de_ExportECSServiceRecommendationsCommand;
|
|
507
|
+
const de_ExportECSServiceRecommendationsCommandError = async (output, context) => {
|
|
508
508
|
const parsedOutput = {
|
|
509
509
|
...output,
|
|
510
510
|
body: await parseErrorBody(output.body, context),
|
|
@@ -513,28 +513,28 @@ const deserializeAws_json1_0ExportECSServiceRecommendationsCommandError = async
|
|
|
513
513
|
switch (errorCode) {
|
|
514
514
|
case "AccessDeniedException":
|
|
515
515
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
517
517
|
case "InternalServerException":
|
|
518
518
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
520
520
|
case "InvalidParameterValueException":
|
|
521
521
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
522
|
-
throw await
|
|
522
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
523
523
|
case "LimitExceededException":
|
|
524
524
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
526
526
|
case "MissingAuthenticationToken":
|
|
527
527
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
528
|
-
throw await
|
|
528
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
529
529
|
case "OptInRequiredException":
|
|
530
530
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
531
|
-
throw await
|
|
531
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
532
532
|
case "ServiceUnavailableException":
|
|
533
533
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
534
|
-
throw await
|
|
534
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
535
535
|
case "ThrottlingException":
|
|
536
536
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
537
|
-
throw await
|
|
537
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
538
538
|
default:
|
|
539
539
|
const parsedBody = parsedOutput.body;
|
|
540
540
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -545,21 +545,21 @@ const deserializeAws_json1_0ExportECSServiceRecommendationsCommandError = async
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
|
-
const
|
|
548
|
+
const de_ExportLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
549
549
|
if (output.statusCode >= 300) {
|
|
550
|
-
return
|
|
550
|
+
return de_ExportLambdaFunctionRecommendationsCommandError(output, context);
|
|
551
551
|
}
|
|
552
552
|
const data = await parseBody(output.body, context);
|
|
553
553
|
let contents = {};
|
|
554
|
-
contents =
|
|
554
|
+
contents = de_ExportLambdaFunctionRecommendationsResponse(data, context);
|
|
555
555
|
const response = {
|
|
556
556
|
$metadata: deserializeMetadata(output),
|
|
557
557
|
...contents,
|
|
558
558
|
};
|
|
559
559
|
return Promise.resolve(response);
|
|
560
560
|
};
|
|
561
|
-
exports.
|
|
562
|
-
const
|
|
561
|
+
exports.de_ExportLambdaFunctionRecommendationsCommand = de_ExportLambdaFunctionRecommendationsCommand;
|
|
562
|
+
const de_ExportLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
563
563
|
const parsedOutput = {
|
|
564
564
|
...output,
|
|
565
565
|
body: await parseErrorBody(output.body, context),
|
|
@@ -568,28 +568,28 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
568
568
|
switch (errorCode) {
|
|
569
569
|
case "AccessDeniedException":
|
|
570
570
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
571
|
-
throw await
|
|
571
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
572
572
|
case "InternalServerException":
|
|
573
573
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
574
|
-
throw await
|
|
574
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
575
575
|
case "InvalidParameterValueException":
|
|
576
576
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
577
|
-
throw await
|
|
577
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
578
578
|
case "LimitExceededException":
|
|
579
579
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
581
581
|
case "MissingAuthenticationToken":
|
|
582
582
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
584
584
|
case "OptInRequiredException":
|
|
585
585
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
587
587
|
case "ServiceUnavailableException":
|
|
588
588
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
589
|
-
throw await
|
|
589
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
590
590
|
case "ThrottlingException":
|
|
591
591
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
593
593
|
default:
|
|
594
594
|
const parsedBody = parsedOutput.body;
|
|
595
595
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -600,21 +600,21 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
|
-
const
|
|
603
|
+
const de_GetAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
604
604
|
if (output.statusCode >= 300) {
|
|
605
|
-
return
|
|
605
|
+
return de_GetAutoScalingGroupRecommendationsCommandError(output, context);
|
|
606
606
|
}
|
|
607
607
|
const data = await parseBody(output.body, context);
|
|
608
608
|
let contents = {};
|
|
609
|
-
contents =
|
|
609
|
+
contents = de_GetAutoScalingGroupRecommendationsResponse(data, context);
|
|
610
610
|
const response = {
|
|
611
611
|
$metadata: deserializeMetadata(output),
|
|
612
612
|
...contents,
|
|
613
613
|
};
|
|
614
614
|
return Promise.resolve(response);
|
|
615
615
|
};
|
|
616
|
-
exports.
|
|
617
|
-
const
|
|
616
|
+
exports.de_GetAutoScalingGroupRecommendationsCommand = de_GetAutoScalingGroupRecommendationsCommand;
|
|
617
|
+
const de_GetAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
618
618
|
const parsedOutput = {
|
|
619
619
|
...output,
|
|
620
620
|
body: await parseErrorBody(output.body, context),
|
|
@@ -623,28 +623,28 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
623
623
|
switch (errorCode) {
|
|
624
624
|
case "AccessDeniedException":
|
|
625
625
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
626
|
-
throw await
|
|
626
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
627
627
|
case "InternalServerException":
|
|
628
628
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
629
|
-
throw await
|
|
629
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
630
630
|
case "InvalidParameterValueException":
|
|
631
631
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
632
|
-
throw await
|
|
632
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
633
633
|
case "MissingAuthenticationToken":
|
|
634
634
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
635
|
-
throw await
|
|
635
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
636
636
|
case "OptInRequiredException":
|
|
637
637
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
638
|
-
throw await
|
|
638
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
639
639
|
case "ResourceNotFoundException":
|
|
640
640
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
641
|
-
throw await
|
|
641
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
642
|
case "ServiceUnavailableException":
|
|
643
643
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
645
645
|
case "ThrottlingException":
|
|
646
646
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
647
|
-
throw await
|
|
647
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
648
648
|
default:
|
|
649
649
|
const parsedBody = parsedOutput.body;
|
|
650
650
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -655,21 +655,21 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
|
-
const
|
|
658
|
+
const de_GetEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
659
659
|
if (output.statusCode >= 300) {
|
|
660
|
-
return
|
|
660
|
+
return de_GetEBSVolumeRecommendationsCommandError(output, context);
|
|
661
661
|
}
|
|
662
662
|
const data = await parseBody(output.body, context);
|
|
663
663
|
let contents = {};
|
|
664
|
-
contents =
|
|
664
|
+
contents = de_GetEBSVolumeRecommendationsResponse(data, context);
|
|
665
665
|
const response = {
|
|
666
666
|
$metadata: deserializeMetadata(output),
|
|
667
667
|
...contents,
|
|
668
668
|
};
|
|
669
669
|
return Promise.resolve(response);
|
|
670
670
|
};
|
|
671
|
-
exports.
|
|
672
|
-
const
|
|
671
|
+
exports.de_GetEBSVolumeRecommendationsCommand = de_GetEBSVolumeRecommendationsCommand;
|
|
672
|
+
const de_GetEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -678,28 +678,28 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
678
678
|
switch (errorCode) {
|
|
679
679
|
case "AccessDeniedException":
|
|
680
680
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
682
682
|
case "InternalServerException":
|
|
683
683
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
685
685
|
case "InvalidParameterValueException":
|
|
686
686
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
688
688
|
case "MissingAuthenticationToken":
|
|
689
689
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
691
691
|
case "OptInRequiredException":
|
|
692
692
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
693
|
-
throw await
|
|
693
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
694
694
|
case "ResourceNotFoundException":
|
|
695
695
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
696
|
-
throw await
|
|
696
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
697
|
case "ServiceUnavailableException":
|
|
698
698
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
699
|
-
throw await
|
|
699
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
700
700
|
case "ThrottlingException":
|
|
701
701
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
703
703
|
default:
|
|
704
704
|
const parsedBody = parsedOutput.body;
|
|
705
705
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -710,21 +710,21 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
|
-
const
|
|
713
|
+
const de_GetEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
714
714
|
if (output.statusCode >= 300) {
|
|
715
|
-
return
|
|
715
|
+
return de_GetEC2InstanceRecommendationsCommandError(output, context);
|
|
716
716
|
}
|
|
717
717
|
const data = await parseBody(output.body, context);
|
|
718
718
|
let contents = {};
|
|
719
|
-
contents =
|
|
719
|
+
contents = de_GetEC2InstanceRecommendationsResponse(data, context);
|
|
720
720
|
const response = {
|
|
721
721
|
$metadata: deserializeMetadata(output),
|
|
722
722
|
...contents,
|
|
723
723
|
};
|
|
724
724
|
return Promise.resolve(response);
|
|
725
725
|
};
|
|
726
|
-
exports.
|
|
727
|
-
const
|
|
726
|
+
exports.de_GetEC2InstanceRecommendationsCommand = de_GetEC2InstanceRecommendationsCommand;
|
|
727
|
+
const de_GetEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
728
728
|
const parsedOutput = {
|
|
729
729
|
...output,
|
|
730
730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -733,28 +733,28 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
733
733
|
switch (errorCode) {
|
|
734
734
|
case "AccessDeniedException":
|
|
735
735
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
736
|
-
throw await
|
|
736
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
737
737
|
case "InternalServerException":
|
|
738
738
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
739
|
-
throw await
|
|
739
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
740
740
|
case "InvalidParameterValueException":
|
|
741
741
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
742
|
-
throw await
|
|
742
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
743
743
|
case "MissingAuthenticationToken":
|
|
744
744
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
745
|
-
throw await
|
|
745
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
746
746
|
case "OptInRequiredException":
|
|
747
747
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
749
749
|
case "ResourceNotFoundException":
|
|
750
750
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
752
752
|
case "ServiceUnavailableException":
|
|
753
753
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
755
755
|
case "ThrottlingException":
|
|
756
756
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
758
758
|
default:
|
|
759
759
|
const parsedBody = parsedOutput.body;
|
|
760
760
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -765,21 +765,21 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
const
|
|
768
|
+
const de_GetEC2RecommendationProjectedMetricsCommand = async (output, context) => {
|
|
769
769
|
if (output.statusCode >= 300) {
|
|
770
|
-
return
|
|
770
|
+
return de_GetEC2RecommendationProjectedMetricsCommandError(output, context);
|
|
771
771
|
}
|
|
772
772
|
const data = await parseBody(output.body, context);
|
|
773
773
|
let contents = {};
|
|
774
|
-
contents =
|
|
774
|
+
contents = de_GetEC2RecommendationProjectedMetricsResponse(data, context);
|
|
775
775
|
const response = {
|
|
776
776
|
$metadata: deserializeMetadata(output),
|
|
777
777
|
...contents,
|
|
778
778
|
};
|
|
779
779
|
return Promise.resolve(response);
|
|
780
780
|
};
|
|
781
|
-
exports.
|
|
782
|
-
const
|
|
781
|
+
exports.de_GetEC2RecommendationProjectedMetricsCommand = de_GetEC2RecommendationProjectedMetricsCommand;
|
|
782
|
+
const de_GetEC2RecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
783
783
|
const parsedOutput = {
|
|
784
784
|
...output,
|
|
785
785
|
body: await parseErrorBody(output.body, context),
|
|
@@ -788,28 +788,28 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
788
788
|
switch (errorCode) {
|
|
789
789
|
case "AccessDeniedException":
|
|
790
790
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
791
|
-
throw await
|
|
791
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
792
792
|
case "InternalServerException":
|
|
793
793
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
794
|
-
throw await
|
|
794
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
795
795
|
case "InvalidParameterValueException":
|
|
796
796
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
797
|
-
throw await
|
|
797
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
798
798
|
case "MissingAuthenticationToken":
|
|
799
799
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
800
|
-
throw await
|
|
800
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
801
801
|
case "OptInRequiredException":
|
|
802
802
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
803
|
-
throw await
|
|
803
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
804
804
|
case "ResourceNotFoundException":
|
|
805
805
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
806
|
-
throw await
|
|
806
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
807
807
|
case "ServiceUnavailableException":
|
|
808
808
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
809
|
-
throw await
|
|
809
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
810
810
|
case "ThrottlingException":
|
|
811
811
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
812
|
-
throw await
|
|
812
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
813
813
|
default:
|
|
814
814
|
const parsedBody = parsedOutput.body;
|
|
815
815
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -820,21 +820,21 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
|
-
const
|
|
823
|
+
const de_GetECSServiceRecommendationProjectedMetricsCommand = async (output, context) => {
|
|
824
824
|
if (output.statusCode >= 300) {
|
|
825
|
-
return
|
|
825
|
+
return de_GetECSServiceRecommendationProjectedMetricsCommandError(output, context);
|
|
826
826
|
}
|
|
827
827
|
const data = await parseBody(output.body, context);
|
|
828
828
|
let contents = {};
|
|
829
|
-
contents =
|
|
829
|
+
contents = de_GetECSServiceRecommendationProjectedMetricsResponse(data, context);
|
|
830
830
|
const response = {
|
|
831
831
|
$metadata: deserializeMetadata(output),
|
|
832
832
|
...contents,
|
|
833
833
|
};
|
|
834
834
|
return Promise.resolve(response);
|
|
835
835
|
};
|
|
836
|
-
exports.
|
|
837
|
-
const
|
|
836
|
+
exports.de_GetECSServiceRecommendationProjectedMetricsCommand = de_GetECSServiceRecommendationProjectedMetricsCommand;
|
|
837
|
+
const de_GetECSServiceRecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
838
838
|
const parsedOutput = {
|
|
839
839
|
...output,
|
|
840
840
|
body: await parseErrorBody(output.body, context),
|
|
@@ -843,28 +843,28 @@ const deserializeAws_json1_0GetECSServiceRecommendationProjectedMetricsCommandEr
|
|
|
843
843
|
switch (errorCode) {
|
|
844
844
|
case "AccessDeniedException":
|
|
845
845
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
847
847
|
case "InternalServerException":
|
|
848
848
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
850
850
|
case "InvalidParameterValueException":
|
|
851
851
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
853
853
|
case "MissingAuthenticationToken":
|
|
854
854
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
856
856
|
case "OptInRequiredException":
|
|
857
857
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
859
859
|
case "ResourceNotFoundException":
|
|
860
860
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
862
862
|
case "ServiceUnavailableException":
|
|
863
863
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
864
|
-
throw await
|
|
864
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
865
865
|
case "ThrottlingException":
|
|
866
866
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
867
|
-
throw await
|
|
867
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
868
|
default:
|
|
869
869
|
const parsedBody = parsedOutput.body;
|
|
870
870
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -875,21 +875,21 @@ const deserializeAws_json1_0GetECSServiceRecommendationProjectedMetricsCommandEr
|
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
const
|
|
878
|
+
const de_GetECSServiceRecommendationsCommand = async (output, context) => {
|
|
879
879
|
if (output.statusCode >= 300) {
|
|
880
|
-
return
|
|
880
|
+
return de_GetECSServiceRecommendationsCommandError(output, context);
|
|
881
881
|
}
|
|
882
882
|
const data = await parseBody(output.body, context);
|
|
883
883
|
let contents = {};
|
|
884
|
-
contents =
|
|
884
|
+
contents = de_GetECSServiceRecommendationsResponse(data, context);
|
|
885
885
|
const response = {
|
|
886
886
|
$metadata: deserializeMetadata(output),
|
|
887
887
|
...contents,
|
|
888
888
|
};
|
|
889
889
|
return Promise.resolve(response);
|
|
890
890
|
};
|
|
891
|
-
exports.
|
|
892
|
-
const
|
|
891
|
+
exports.de_GetECSServiceRecommendationsCommand = de_GetECSServiceRecommendationsCommand;
|
|
892
|
+
const de_GetECSServiceRecommendationsCommandError = async (output, context) => {
|
|
893
893
|
const parsedOutput = {
|
|
894
894
|
...output,
|
|
895
895
|
body: await parseErrorBody(output.body, context),
|
|
@@ -898,28 +898,28 @@ const deserializeAws_json1_0GetECSServiceRecommendationsCommandError = async (ou
|
|
|
898
898
|
switch (errorCode) {
|
|
899
899
|
case "AccessDeniedException":
|
|
900
900
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
901
|
-
throw await
|
|
901
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
902
902
|
case "InternalServerException":
|
|
903
903
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
904
|
-
throw await
|
|
904
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
905
|
case "InvalidParameterValueException":
|
|
906
906
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
907
|
-
throw await
|
|
907
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
908
908
|
case "MissingAuthenticationToken":
|
|
909
909
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
910
|
-
throw await
|
|
910
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
911
911
|
case "OptInRequiredException":
|
|
912
912
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
913
|
-
throw await
|
|
913
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
914
914
|
case "ResourceNotFoundException":
|
|
915
915
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
916
|
-
throw await
|
|
916
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
917
|
case "ServiceUnavailableException":
|
|
918
918
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
919
|
-
throw await
|
|
919
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
920
920
|
case "ThrottlingException":
|
|
921
921
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
922
|
-
throw await
|
|
922
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
923
923
|
default:
|
|
924
924
|
const parsedBody = parsedOutput.body;
|
|
925
925
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -930,21 +930,21 @@ const deserializeAws_json1_0GetECSServiceRecommendationsCommandError = async (ou
|
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
932
|
};
|
|
933
|
-
const
|
|
933
|
+
const de_GetEffectiveRecommendationPreferencesCommand = async (output, context) => {
|
|
934
934
|
if (output.statusCode >= 300) {
|
|
935
|
-
return
|
|
935
|
+
return de_GetEffectiveRecommendationPreferencesCommandError(output, context);
|
|
936
936
|
}
|
|
937
937
|
const data = await parseBody(output.body, context);
|
|
938
938
|
let contents = {};
|
|
939
|
-
contents =
|
|
939
|
+
contents = de_GetEffectiveRecommendationPreferencesResponse(data, context);
|
|
940
940
|
const response = {
|
|
941
941
|
$metadata: deserializeMetadata(output),
|
|
942
942
|
...contents,
|
|
943
943
|
};
|
|
944
944
|
return Promise.resolve(response);
|
|
945
945
|
};
|
|
946
|
-
exports.
|
|
947
|
-
const
|
|
946
|
+
exports.de_GetEffectiveRecommendationPreferencesCommand = de_GetEffectiveRecommendationPreferencesCommand;
|
|
947
|
+
const de_GetEffectiveRecommendationPreferencesCommandError = async (output, context) => {
|
|
948
948
|
const parsedOutput = {
|
|
949
949
|
...output,
|
|
950
950
|
body: await parseErrorBody(output.body, context),
|
|
@@ -953,28 +953,28 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
953
953
|
switch (errorCode) {
|
|
954
954
|
case "AccessDeniedException":
|
|
955
955
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
956
|
-
throw await
|
|
956
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
957
957
|
case "InternalServerException":
|
|
958
958
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
959
|
-
throw await
|
|
959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
960
|
case "InvalidParameterValueException":
|
|
961
961
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
962
|
-
throw await
|
|
962
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
963
963
|
case "MissingAuthenticationToken":
|
|
964
964
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
965
|
-
throw await
|
|
965
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
966
966
|
case "OptInRequiredException":
|
|
967
967
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
968
|
-
throw await
|
|
968
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
969
969
|
case "ResourceNotFoundException":
|
|
970
970
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
971
|
-
throw await
|
|
971
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
972
|
case "ServiceUnavailableException":
|
|
973
973
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
974
|
-
throw await
|
|
974
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
975
975
|
case "ThrottlingException":
|
|
976
976
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
977
|
-
throw await
|
|
977
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
978
978
|
default:
|
|
979
979
|
const parsedBody = parsedOutput.body;
|
|
980
980
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -985,21 +985,21 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
|
-
const
|
|
988
|
+
const de_GetEnrollmentStatusCommand = async (output, context) => {
|
|
989
989
|
if (output.statusCode >= 300) {
|
|
990
|
-
return
|
|
990
|
+
return de_GetEnrollmentStatusCommandError(output, context);
|
|
991
991
|
}
|
|
992
992
|
const data = await parseBody(output.body, context);
|
|
993
993
|
let contents = {};
|
|
994
|
-
contents =
|
|
994
|
+
contents = de_GetEnrollmentStatusResponse(data, context);
|
|
995
995
|
const response = {
|
|
996
996
|
$metadata: deserializeMetadata(output),
|
|
997
997
|
...contents,
|
|
998
998
|
};
|
|
999
999
|
return Promise.resolve(response);
|
|
1000
1000
|
};
|
|
1001
|
-
exports.
|
|
1002
|
-
const
|
|
1001
|
+
exports.de_GetEnrollmentStatusCommand = de_GetEnrollmentStatusCommand;
|
|
1002
|
+
const de_GetEnrollmentStatusCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
1005
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1008,22 +1008,22 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
1008
1008
|
switch (errorCode) {
|
|
1009
1009
|
case "AccessDeniedException":
|
|
1010
1010
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1011
|
-
throw await
|
|
1011
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
1012
|
case "InternalServerException":
|
|
1013
1013
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1015
1015
|
case "InvalidParameterValueException":
|
|
1016
1016
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1018
1018
|
case "MissingAuthenticationToken":
|
|
1019
1019
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1021
1021
|
case "ServiceUnavailableException":
|
|
1022
1022
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1024
1024
|
case "ThrottlingException":
|
|
1025
1025
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1026
|
-
throw await
|
|
1026
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
1027
|
default:
|
|
1028
1028
|
const parsedBody = parsedOutput.body;
|
|
1029
1029
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1034,21 +1034,21 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
|
-
const
|
|
1037
|
+
const de_GetEnrollmentStatusesForOrganizationCommand = async (output, context) => {
|
|
1038
1038
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1039
|
+
return de_GetEnrollmentStatusesForOrganizationCommandError(output, context);
|
|
1040
1040
|
}
|
|
1041
1041
|
const data = await parseBody(output.body, context);
|
|
1042
1042
|
let contents = {};
|
|
1043
|
-
contents =
|
|
1043
|
+
contents = de_GetEnrollmentStatusesForOrganizationResponse(data, context);
|
|
1044
1044
|
const response = {
|
|
1045
1045
|
$metadata: deserializeMetadata(output),
|
|
1046
1046
|
...contents,
|
|
1047
1047
|
};
|
|
1048
1048
|
return Promise.resolve(response);
|
|
1049
1049
|
};
|
|
1050
|
-
exports.
|
|
1051
|
-
const
|
|
1050
|
+
exports.de_GetEnrollmentStatusesForOrganizationCommand = de_GetEnrollmentStatusesForOrganizationCommand;
|
|
1051
|
+
const de_GetEnrollmentStatusesForOrganizationCommandError = async (output, context) => {
|
|
1052
1052
|
const parsedOutput = {
|
|
1053
1053
|
...output,
|
|
1054
1054
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,22 +1057,22 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
1057
1057
|
switch (errorCode) {
|
|
1058
1058
|
case "AccessDeniedException":
|
|
1059
1059
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1060
|
-
throw await
|
|
1060
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
1061
|
case "InternalServerException":
|
|
1062
1062
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1063
|
-
throw await
|
|
1063
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
1064
|
case "InvalidParameterValueException":
|
|
1065
1065
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1066
|
-
throw await
|
|
1066
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1067
1067
|
case "MissingAuthenticationToken":
|
|
1068
1068
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1069
|
-
throw await
|
|
1069
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1070
1070
|
case "ServiceUnavailableException":
|
|
1071
1071
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1072
|
-
throw await
|
|
1072
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1073
1073
|
case "ThrottlingException":
|
|
1074
1074
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
1076
|
default:
|
|
1077
1077
|
const parsedBody = parsedOutput.body;
|
|
1078
1078
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1083,21 +1083,21 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
const
|
|
1086
|
+
const de_GetLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
1087
1087
|
if (output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
1088
|
+
return de_GetLambdaFunctionRecommendationsCommandError(output, context);
|
|
1089
1089
|
}
|
|
1090
1090
|
const data = await parseBody(output.body, context);
|
|
1091
1091
|
let contents = {};
|
|
1092
|
-
contents =
|
|
1092
|
+
contents = de_GetLambdaFunctionRecommendationsResponse(data, context);
|
|
1093
1093
|
const response = {
|
|
1094
1094
|
$metadata: deserializeMetadata(output),
|
|
1095
1095
|
...contents,
|
|
1096
1096
|
};
|
|
1097
1097
|
return Promise.resolve(response);
|
|
1098
1098
|
};
|
|
1099
|
-
exports.
|
|
1100
|
-
const
|
|
1099
|
+
exports.de_GetLambdaFunctionRecommendationsCommand = de_GetLambdaFunctionRecommendationsCommand;
|
|
1100
|
+
const de_GetLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
1103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1106,28 +1106,28 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
1106
1106
|
switch (errorCode) {
|
|
1107
1107
|
case "AccessDeniedException":
|
|
1108
1108
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "InternalServerException":
|
|
1111
1111
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "InvalidParameterValueException":
|
|
1114
1114
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1116
1116
|
case "LimitExceededException":
|
|
1117
1117
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1119
1119
|
case "MissingAuthenticationToken":
|
|
1120
1120
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1121
|
-
throw await
|
|
1121
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1122
1122
|
case "OptInRequiredException":
|
|
1123
1123
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1124
|
-
throw await
|
|
1124
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1125
1125
|
case "ServiceUnavailableException":
|
|
1126
1126
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1127
|
-
throw await
|
|
1127
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1128
1128
|
case "ThrottlingException":
|
|
1129
1129
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1130
|
-
throw await
|
|
1130
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1131
1131
|
default:
|
|
1132
1132
|
const parsedBody = parsedOutput.body;
|
|
1133
1133
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1138,21 +1138,21 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
1140
|
};
|
|
1141
|
-
const
|
|
1141
|
+
const de_GetRecommendationPreferencesCommand = async (output, context) => {
|
|
1142
1142
|
if (output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
1143
|
+
return de_GetRecommendationPreferencesCommandError(output, context);
|
|
1144
1144
|
}
|
|
1145
1145
|
const data = await parseBody(output.body, context);
|
|
1146
1146
|
let contents = {};
|
|
1147
|
-
contents =
|
|
1147
|
+
contents = de_GetRecommendationPreferencesResponse(data, context);
|
|
1148
1148
|
const response = {
|
|
1149
1149
|
$metadata: deserializeMetadata(output),
|
|
1150
1150
|
...contents,
|
|
1151
1151
|
};
|
|
1152
1152
|
return Promise.resolve(response);
|
|
1153
1153
|
};
|
|
1154
|
-
exports.
|
|
1155
|
-
const
|
|
1154
|
+
exports.de_GetRecommendationPreferencesCommand = de_GetRecommendationPreferencesCommand;
|
|
1155
|
+
const de_GetRecommendationPreferencesCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
1158
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1161,28 +1161,28 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1161
1161
|
switch (errorCode) {
|
|
1162
1162
|
case "AccessDeniedException":
|
|
1163
1163
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1164
|
-
throw await
|
|
1164
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
1165
|
case "InternalServerException":
|
|
1166
1166
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1167
|
-
throw await
|
|
1167
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1168
1168
|
case "InvalidParameterValueException":
|
|
1169
1169
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1170
|
-
throw await
|
|
1170
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1171
1171
|
case "MissingAuthenticationToken":
|
|
1172
1172
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1173
|
-
throw await
|
|
1173
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1174
1174
|
case "OptInRequiredException":
|
|
1175
1175
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1176
|
-
throw await
|
|
1176
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1177
1177
|
case "ResourceNotFoundException":
|
|
1178
1178
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1180
1180
|
case "ServiceUnavailableException":
|
|
1181
1181
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1182
|
-
throw await
|
|
1182
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1183
1183
|
case "ThrottlingException":
|
|
1184
1184
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1185
|
-
throw await
|
|
1185
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1186
1186
|
default:
|
|
1187
1187
|
const parsedBody = parsedOutput.body;
|
|
1188
1188
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1193,21 +1193,21 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1193
1193
|
});
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
|
-
const
|
|
1196
|
+
const de_GetRecommendationSummariesCommand = async (output, context) => {
|
|
1197
1197
|
if (output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
1198
|
+
return de_GetRecommendationSummariesCommandError(output, context);
|
|
1199
1199
|
}
|
|
1200
1200
|
const data = await parseBody(output.body, context);
|
|
1201
1201
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1202
|
+
contents = de_GetRecommendationSummariesResponse(data, context);
|
|
1203
1203
|
const response = {
|
|
1204
1204
|
$metadata: deserializeMetadata(output),
|
|
1205
1205
|
...contents,
|
|
1206
1206
|
};
|
|
1207
1207
|
return Promise.resolve(response);
|
|
1208
1208
|
};
|
|
1209
|
-
exports.
|
|
1210
|
-
const
|
|
1209
|
+
exports.de_GetRecommendationSummariesCommand = de_GetRecommendationSummariesCommand;
|
|
1210
|
+
const de_GetRecommendationSummariesCommandError = async (output, context) => {
|
|
1211
1211
|
const parsedOutput = {
|
|
1212
1212
|
...output,
|
|
1213
1213
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1216,25 +1216,25 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1216
1216
|
switch (errorCode) {
|
|
1217
1217
|
case "AccessDeniedException":
|
|
1218
1218
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1219
|
-
throw await
|
|
1219
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1220
1220
|
case "InternalServerException":
|
|
1221
1221
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1222
|
-
throw await
|
|
1222
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1223
1223
|
case "InvalidParameterValueException":
|
|
1224
1224
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1225
|
-
throw await
|
|
1225
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1226
1226
|
case "MissingAuthenticationToken":
|
|
1227
1227
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1228
|
-
throw await
|
|
1228
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1229
1229
|
case "OptInRequiredException":
|
|
1230
1230
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1231
|
-
throw await
|
|
1231
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1232
1232
|
case "ServiceUnavailableException":
|
|
1233
1233
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1234
|
-
throw await
|
|
1234
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1235
1235
|
case "ThrottlingException":
|
|
1236
1236
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1237
|
-
throw await
|
|
1237
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1238
1238
|
default:
|
|
1239
1239
|
const parsedBody = parsedOutput.body;
|
|
1240
1240
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1245,21 +1245,21 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
1248
|
-
const
|
|
1248
|
+
const de_PutRecommendationPreferencesCommand = async (output, context) => {
|
|
1249
1249
|
if (output.statusCode >= 300) {
|
|
1250
|
-
return
|
|
1250
|
+
return de_PutRecommendationPreferencesCommandError(output, context);
|
|
1251
1251
|
}
|
|
1252
1252
|
const data = await parseBody(output.body, context);
|
|
1253
1253
|
let contents = {};
|
|
1254
|
-
contents =
|
|
1254
|
+
contents = de_PutRecommendationPreferencesResponse(data, context);
|
|
1255
1255
|
const response = {
|
|
1256
1256
|
$metadata: deserializeMetadata(output),
|
|
1257
1257
|
...contents,
|
|
1258
1258
|
};
|
|
1259
1259
|
return Promise.resolve(response);
|
|
1260
1260
|
};
|
|
1261
|
-
exports.
|
|
1262
|
-
const
|
|
1261
|
+
exports.de_PutRecommendationPreferencesCommand = de_PutRecommendationPreferencesCommand;
|
|
1262
|
+
const de_PutRecommendationPreferencesCommandError = async (output, context) => {
|
|
1263
1263
|
const parsedOutput = {
|
|
1264
1264
|
...output,
|
|
1265
1265
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1268,28 +1268,28 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1268
1268
|
switch (errorCode) {
|
|
1269
1269
|
case "AccessDeniedException":
|
|
1270
1270
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1271
|
-
throw await
|
|
1271
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1272
1272
|
case "InternalServerException":
|
|
1273
1273
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1274
|
-
throw await
|
|
1274
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1275
1275
|
case "InvalidParameterValueException":
|
|
1276
1276
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1277
|
-
throw await
|
|
1277
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1278
1278
|
case "MissingAuthenticationToken":
|
|
1279
1279
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1280
|
-
throw await
|
|
1280
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1281
1281
|
case "OptInRequiredException":
|
|
1282
1282
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1283
|
-
throw await
|
|
1283
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1284
1284
|
case "ResourceNotFoundException":
|
|
1285
1285
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1286
|
-
throw await
|
|
1286
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1287
1287
|
case "ServiceUnavailableException":
|
|
1288
1288
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1289
|
-
throw await
|
|
1289
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1290
1290
|
case "ThrottlingException":
|
|
1291
1291
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1292
|
-
throw await
|
|
1292
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1293
1293
|
default:
|
|
1294
1294
|
const parsedBody = parsedOutput.body;
|
|
1295
1295
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1300,21 +1300,21 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
1302
|
};
|
|
1303
|
-
const
|
|
1303
|
+
const de_UpdateEnrollmentStatusCommand = async (output, context) => {
|
|
1304
1304
|
if (output.statusCode >= 300) {
|
|
1305
|
-
return
|
|
1305
|
+
return de_UpdateEnrollmentStatusCommandError(output, context);
|
|
1306
1306
|
}
|
|
1307
1307
|
const data = await parseBody(output.body, context);
|
|
1308
1308
|
let contents = {};
|
|
1309
|
-
contents =
|
|
1309
|
+
contents = de_UpdateEnrollmentStatusResponse(data, context);
|
|
1310
1310
|
const response = {
|
|
1311
1311
|
$metadata: deserializeMetadata(output),
|
|
1312
1312
|
...contents,
|
|
1313
1313
|
};
|
|
1314
1314
|
return Promise.resolve(response);
|
|
1315
1315
|
};
|
|
1316
|
-
exports.
|
|
1317
|
-
const
|
|
1316
|
+
exports.de_UpdateEnrollmentStatusCommand = de_UpdateEnrollmentStatusCommand;
|
|
1317
|
+
const de_UpdateEnrollmentStatusCommandError = async (output, context) => {
|
|
1318
1318
|
const parsedOutput = {
|
|
1319
1319
|
...output,
|
|
1320
1320
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1323,22 +1323,22 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1323
1323
|
switch (errorCode) {
|
|
1324
1324
|
case "AccessDeniedException":
|
|
1325
1325
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1326
|
-
throw await
|
|
1326
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1327
1327
|
case "InternalServerException":
|
|
1328
1328
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1329
|
-
throw await
|
|
1329
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
1330
|
case "InvalidParameterValueException":
|
|
1331
1331
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1332
|
-
throw await
|
|
1332
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1333
1333
|
case "MissingAuthenticationToken":
|
|
1334
1334
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1335
|
-
throw await
|
|
1335
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1336
1336
|
case "ServiceUnavailableException":
|
|
1337
1337
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1338
|
-
throw await
|
|
1338
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1339
1339
|
case "ThrottlingException":
|
|
1340
1340
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1341
|
-
throw await
|
|
1341
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1342
1342
|
default:
|
|
1343
1343
|
const parsedBody = parsedOutput.body;
|
|
1344
1344
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1349,359 +1349,351 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
1351
|
};
|
|
1352
|
-
const
|
|
1352
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1353
1353
|
const body = parsedOutput.body;
|
|
1354
|
-
const deserialized =
|
|
1354
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1355
1355
|
const exception = new models_0_1.AccessDeniedException({
|
|
1356
1356
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
1357
|
...deserialized,
|
|
1358
1358
|
});
|
|
1359
1359
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1360
1360
|
};
|
|
1361
|
-
const
|
|
1361
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1362
1362
|
const body = parsedOutput.body;
|
|
1363
|
-
const deserialized =
|
|
1363
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1364
1364
|
const exception = new models_0_1.InternalServerException({
|
|
1365
1365
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1366
|
...deserialized,
|
|
1367
1367
|
});
|
|
1368
1368
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1369
1369
|
};
|
|
1370
|
-
const
|
|
1370
|
+
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1371
1371
|
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized =
|
|
1372
|
+
const deserialized = de_InvalidParameterValueException(body, context);
|
|
1373
1373
|
const exception = new models_0_1.InvalidParameterValueException({
|
|
1374
1374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
1375
|
...deserialized,
|
|
1376
1376
|
});
|
|
1377
1377
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1378
1378
|
};
|
|
1379
|
-
const
|
|
1379
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1380
1380
|
const body = parsedOutput.body;
|
|
1381
|
-
const deserialized =
|
|
1381
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1382
1382
|
const exception = new models_0_1.LimitExceededException({
|
|
1383
1383
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
1384
|
...deserialized,
|
|
1385
1385
|
});
|
|
1386
1386
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1387
1387
|
};
|
|
1388
|
-
const
|
|
1388
|
+
const de_MissingAuthenticationTokenRes = async (parsedOutput, context) => {
|
|
1389
1389
|
const body = parsedOutput.body;
|
|
1390
|
-
const deserialized =
|
|
1390
|
+
const deserialized = de_MissingAuthenticationToken(body, context);
|
|
1391
1391
|
const exception = new models_0_1.MissingAuthenticationToken({
|
|
1392
1392
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1393
1393
|
...deserialized,
|
|
1394
1394
|
});
|
|
1395
1395
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1396
1396
|
};
|
|
1397
|
-
const
|
|
1397
|
+
const de_OptInRequiredExceptionRes = async (parsedOutput, context) => {
|
|
1398
1398
|
const body = parsedOutput.body;
|
|
1399
|
-
const deserialized =
|
|
1399
|
+
const deserialized = de_OptInRequiredException(body, context);
|
|
1400
1400
|
const exception = new models_0_1.OptInRequiredException({
|
|
1401
1401
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1402
1402
|
...deserialized,
|
|
1403
1403
|
});
|
|
1404
1404
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1405
1405
|
};
|
|
1406
|
-
const
|
|
1406
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1407
1407
|
const body = parsedOutput.body;
|
|
1408
|
-
const deserialized =
|
|
1408
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1409
1409
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1410
1410
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1411
1411
|
...deserialized,
|
|
1412
1412
|
});
|
|
1413
1413
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1414
1414
|
};
|
|
1415
|
-
const
|
|
1415
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1416
1416
|
const body = parsedOutput.body;
|
|
1417
|
-
const deserialized =
|
|
1417
|
+
const deserialized = de_ServiceUnavailableException(body, context);
|
|
1418
1418
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1419
1419
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
1420
|
...deserialized,
|
|
1421
1421
|
});
|
|
1422
1422
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1423
1423
|
};
|
|
1424
|
-
const
|
|
1424
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1425
1425
|
const body = parsedOutput.body;
|
|
1426
|
-
const deserialized =
|
|
1426
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1427
1427
|
const exception = new models_0_1.ThrottlingException({
|
|
1428
1428
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1429
1429
|
...deserialized,
|
|
1430
1430
|
});
|
|
1431
1431
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1432
1432
|
};
|
|
1433
|
-
const
|
|
1433
|
+
const se_AccountIds = (input, context) => {
|
|
1434
1434
|
return input
|
|
1435
1435
|
.filter((e) => e != null)
|
|
1436
1436
|
.map((entry) => {
|
|
1437
1437
|
return entry;
|
|
1438
1438
|
});
|
|
1439
1439
|
};
|
|
1440
|
-
const
|
|
1440
|
+
const se_AutoScalingGroupArns = (input, context) => {
|
|
1441
1441
|
return input
|
|
1442
1442
|
.filter((e) => e != null)
|
|
1443
1443
|
.map((entry) => {
|
|
1444
1444
|
return entry;
|
|
1445
1445
|
});
|
|
1446
1446
|
};
|
|
1447
|
-
const
|
|
1447
|
+
const se_CpuVendorArchitectures = (input, context) => {
|
|
1448
1448
|
return input
|
|
1449
1449
|
.filter((e) => e != null)
|
|
1450
1450
|
.map((entry) => {
|
|
1451
1451
|
return entry;
|
|
1452
1452
|
});
|
|
1453
1453
|
};
|
|
1454
|
-
const
|
|
1454
|
+
const se_DeleteRecommendationPreferencesRequest = (input, context) => {
|
|
1455
1455
|
return {
|
|
1456
1456
|
...(input.recommendationPreferenceNames != null && {
|
|
1457
|
-
recommendationPreferenceNames:
|
|
1457
|
+
recommendationPreferenceNames: se_RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1458
1458
|
}),
|
|
1459
1459
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1460
|
-
...(input.scope != null && { scope:
|
|
1460
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1461
1461
|
};
|
|
1462
1462
|
};
|
|
1463
|
-
const
|
|
1463
|
+
const se_DescribeRecommendationExportJobsRequest = (input, context) => {
|
|
1464
1464
|
return {
|
|
1465
|
-
...(input.filters != null && { filters:
|
|
1466
|
-
...(input.jobIds != null && { jobIds:
|
|
1465
|
+
...(input.filters != null && { filters: se_JobFilters(input.filters, context) }),
|
|
1466
|
+
...(input.jobIds != null && { jobIds: se_JobIds(input.jobIds, context) }),
|
|
1467
1467
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1468
1468
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1469
1469
|
};
|
|
1470
1470
|
};
|
|
1471
|
-
const
|
|
1471
|
+
const se_EBSFilter = (input, context) => {
|
|
1472
1472
|
return {
|
|
1473
1473
|
...(input.name != null && { name: input.name }),
|
|
1474
|
-
...(input.values != null && { values:
|
|
1474
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
|
-
const
|
|
1477
|
+
const se_EBSFilters = (input, context) => {
|
|
1478
1478
|
return input
|
|
1479
1479
|
.filter((e) => e != null)
|
|
1480
1480
|
.map((entry) => {
|
|
1481
|
-
return
|
|
1481
|
+
return se_EBSFilter(entry, context);
|
|
1482
1482
|
});
|
|
1483
1483
|
};
|
|
1484
|
-
const
|
|
1484
|
+
const se_ECSServiceRecommendationFilter = (input, context) => {
|
|
1485
1485
|
return {
|
|
1486
1486
|
...(input.name != null && { name: input.name }),
|
|
1487
|
-
...(input.values != null && { values:
|
|
1487
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1488
1488
|
};
|
|
1489
1489
|
};
|
|
1490
|
-
const
|
|
1490
|
+
const se_ECSServiceRecommendationFilters = (input, context) => {
|
|
1491
1491
|
return input
|
|
1492
1492
|
.filter((e) => e != null)
|
|
1493
1493
|
.map((entry) => {
|
|
1494
|
-
return
|
|
1494
|
+
return se_ECSServiceRecommendationFilter(entry, context);
|
|
1495
1495
|
});
|
|
1496
1496
|
};
|
|
1497
|
-
const
|
|
1497
|
+
const se_EnrollmentFilter = (input, context) => {
|
|
1498
1498
|
return {
|
|
1499
1499
|
...(input.name != null && { name: input.name }),
|
|
1500
|
-
...(input.values != null && { values:
|
|
1500
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1501
1501
|
};
|
|
1502
1502
|
};
|
|
1503
|
-
const
|
|
1503
|
+
const se_EnrollmentFilters = (input, context) => {
|
|
1504
1504
|
return input
|
|
1505
1505
|
.filter((e) => e != null)
|
|
1506
1506
|
.map((entry) => {
|
|
1507
|
-
return
|
|
1507
|
+
return se_EnrollmentFilter(entry, context);
|
|
1508
1508
|
});
|
|
1509
1509
|
};
|
|
1510
|
-
const
|
|
1510
|
+
const se_ExportableAutoScalingGroupFields = (input, context) => {
|
|
1511
1511
|
return input
|
|
1512
1512
|
.filter((e) => e != null)
|
|
1513
1513
|
.map((entry) => {
|
|
1514
1514
|
return entry;
|
|
1515
1515
|
});
|
|
1516
1516
|
};
|
|
1517
|
-
const
|
|
1517
|
+
const se_ExportableECSServiceFields = (input, context) => {
|
|
1518
1518
|
return input
|
|
1519
1519
|
.filter((e) => e != null)
|
|
1520
1520
|
.map((entry) => {
|
|
1521
1521
|
return entry;
|
|
1522
1522
|
});
|
|
1523
1523
|
};
|
|
1524
|
-
const
|
|
1524
|
+
const se_ExportableInstanceFields = (input, context) => {
|
|
1525
1525
|
return input
|
|
1526
1526
|
.filter((e) => e != null)
|
|
1527
1527
|
.map((entry) => {
|
|
1528
1528
|
return entry;
|
|
1529
1529
|
});
|
|
1530
1530
|
};
|
|
1531
|
-
const
|
|
1531
|
+
const se_ExportableLambdaFunctionFields = (input, context) => {
|
|
1532
1532
|
return input
|
|
1533
1533
|
.filter((e) => e != null)
|
|
1534
1534
|
.map((entry) => {
|
|
1535
1535
|
return entry;
|
|
1536
1536
|
});
|
|
1537
1537
|
};
|
|
1538
|
-
const
|
|
1538
|
+
const se_ExportableVolumeFields = (input, context) => {
|
|
1539
1539
|
return input
|
|
1540
1540
|
.filter((e) => e != null)
|
|
1541
1541
|
.map((entry) => {
|
|
1542
1542
|
return entry;
|
|
1543
1543
|
});
|
|
1544
1544
|
};
|
|
1545
|
-
const
|
|
1545
|
+
const se_ExportAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1546
1546
|
return {
|
|
1547
|
-
...(input.accountIds != null && { accountIds:
|
|
1547
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1548
1548
|
...(input.fieldsToExport != null && {
|
|
1549
|
-
fieldsToExport:
|
|
1549
|
+
fieldsToExport: se_ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1550
1550
|
}),
|
|
1551
1551
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1552
|
-
...(input.filters != null && { filters:
|
|
1552
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1553
1553
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1554
1554
|
...(input.recommendationPreferences != null && {
|
|
1555
|
-
recommendationPreferences:
|
|
1555
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1556
1556
|
}),
|
|
1557
1557
|
...(input.s3DestinationConfig != null && {
|
|
1558
|
-
s3DestinationConfig:
|
|
1558
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1559
1559
|
}),
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
|
-
const
|
|
1562
|
+
const se_ExportEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1563
1563
|
return {
|
|
1564
|
-
...(input.accountIds != null && { accountIds:
|
|
1565
|
-
...(input.fieldsToExport != null && {
|
|
1566
|
-
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1567
|
-
}),
|
|
1564
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1565
|
+
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableVolumeFields(input.fieldsToExport, context) }),
|
|
1568
1566
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1569
|
-
...(input.filters != null && { filters:
|
|
1567
|
+
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1570
1568
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1571
1569
|
...(input.s3DestinationConfig != null && {
|
|
1572
|
-
s3DestinationConfig:
|
|
1570
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1573
1571
|
}),
|
|
1574
1572
|
};
|
|
1575
1573
|
};
|
|
1576
|
-
const
|
|
1574
|
+
const se_ExportEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1577
1575
|
return {
|
|
1578
|
-
...(input.accountIds != null && { accountIds:
|
|
1579
|
-
...(input.fieldsToExport != null && {
|
|
1580
|
-
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1581
|
-
}),
|
|
1576
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1577
|
+
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableInstanceFields(input.fieldsToExport, context) }),
|
|
1582
1578
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1583
|
-
...(input.filters != null && { filters:
|
|
1579
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1584
1580
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1585
1581
|
...(input.recommendationPreferences != null && {
|
|
1586
|
-
recommendationPreferences:
|
|
1582
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1587
1583
|
}),
|
|
1588
1584
|
...(input.s3DestinationConfig != null && {
|
|
1589
|
-
s3DestinationConfig:
|
|
1585
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1590
1586
|
}),
|
|
1591
1587
|
};
|
|
1592
1588
|
};
|
|
1593
|
-
const
|
|
1589
|
+
const se_ExportECSServiceRecommendationsRequest = (input, context) => {
|
|
1594
1590
|
return {
|
|
1595
|
-
...(input.accountIds != null && { accountIds:
|
|
1591
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1596
1592
|
...(input.fieldsToExport != null && {
|
|
1597
|
-
fieldsToExport:
|
|
1593
|
+
fieldsToExport: se_ExportableECSServiceFields(input.fieldsToExport, context),
|
|
1598
1594
|
}),
|
|
1599
1595
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1600
|
-
...(input.filters != null && {
|
|
1601
|
-
filters: serializeAws_json1_0ECSServiceRecommendationFilters(input.filters, context),
|
|
1602
|
-
}),
|
|
1596
|
+
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1603
1597
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1604
1598
|
...(input.s3DestinationConfig != null && {
|
|
1605
|
-
s3DestinationConfig:
|
|
1599
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1606
1600
|
}),
|
|
1607
1601
|
};
|
|
1608
1602
|
};
|
|
1609
|
-
const
|
|
1603
|
+
const se_ExportLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1610
1604
|
return {
|
|
1611
|
-
...(input.accountIds != null && { accountIds:
|
|
1605
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1612
1606
|
...(input.fieldsToExport != null && {
|
|
1613
|
-
fieldsToExport:
|
|
1607
|
+
fieldsToExport: se_ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1614
1608
|
}),
|
|
1615
1609
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1616
|
-
...(input.filters != null && {
|
|
1617
|
-
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1618
|
-
}),
|
|
1610
|
+
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1619
1611
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1620
1612
|
...(input.s3DestinationConfig != null && {
|
|
1621
|
-
s3DestinationConfig:
|
|
1613
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1622
1614
|
}),
|
|
1623
1615
|
};
|
|
1624
1616
|
};
|
|
1625
|
-
const
|
|
1617
|
+
const se_ExternalMetricsPreference = (input, context) => {
|
|
1626
1618
|
return {
|
|
1627
1619
|
...(input.source != null && { source: input.source }),
|
|
1628
1620
|
};
|
|
1629
1621
|
};
|
|
1630
|
-
const
|
|
1622
|
+
const se_Filter = (input, context) => {
|
|
1631
1623
|
return {
|
|
1632
1624
|
...(input.name != null && { name: input.name }),
|
|
1633
|
-
...(input.values != null && { values:
|
|
1625
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1634
1626
|
};
|
|
1635
1627
|
};
|
|
1636
|
-
const
|
|
1628
|
+
const se_Filters = (input, context) => {
|
|
1637
1629
|
return input
|
|
1638
1630
|
.filter((e) => e != null)
|
|
1639
1631
|
.map((entry) => {
|
|
1640
|
-
return
|
|
1632
|
+
return se_Filter(entry, context);
|
|
1641
1633
|
});
|
|
1642
1634
|
};
|
|
1643
|
-
const
|
|
1635
|
+
const se_FilterValues = (input, context) => {
|
|
1644
1636
|
return input
|
|
1645
1637
|
.filter((e) => e != null)
|
|
1646
1638
|
.map((entry) => {
|
|
1647
1639
|
return entry;
|
|
1648
1640
|
});
|
|
1649
1641
|
};
|
|
1650
|
-
const
|
|
1642
|
+
const se_FunctionArns = (input, context) => {
|
|
1651
1643
|
return input
|
|
1652
1644
|
.filter((e) => e != null)
|
|
1653
1645
|
.map((entry) => {
|
|
1654
1646
|
return entry;
|
|
1655
1647
|
});
|
|
1656
1648
|
};
|
|
1657
|
-
const
|
|
1649
|
+
const se_GetAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1658
1650
|
return {
|
|
1659
|
-
...(input.accountIds != null && { accountIds:
|
|
1651
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1660
1652
|
...(input.autoScalingGroupArns != null && {
|
|
1661
|
-
autoScalingGroupArns:
|
|
1653
|
+
autoScalingGroupArns: se_AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1662
1654
|
}),
|
|
1663
|
-
...(input.filters != null && { filters:
|
|
1655
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1664
1656
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1665
1657
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1666
1658
|
...(input.recommendationPreferences != null && {
|
|
1667
|
-
recommendationPreferences:
|
|
1659
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1668
1660
|
}),
|
|
1669
1661
|
};
|
|
1670
1662
|
};
|
|
1671
|
-
const
|
|
1663
|
+
const se_GetEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1672
1664
|
return {
|
|
1673
|
-
...(input.accountIds != null && { accountIds:
|
|
1674
|
-
...(input.filters != null && { filters:
|
|
1665
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1666
|
+
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1675
1667
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1676
1668
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1677
|
-
...(input.volumeArns != null && { volumeArns:
|
|
1669
|
+
...(input.volumeArns != null && { volumeArns: se_VolumeArns(input.volumeArns, context) }),
|
|
1678
1670
|
};
|
|
1679
1671
|
};
|
|
1680
|
-
const
|
|
1672
|
+
const se_GetEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1681
1673
|
return {
|
|
1682
|
-
...(input.accountIds != null && { accountIds:
|
|
1683
|
-
...(input.filters != null && { filters:
|
|
1684
|
-
...(input.instanceArns != null && { instanceArns:
|
|
1674
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1675
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1676
|
+
...(input.instanceArns != null && { instanceArns: se_InstanceArns(input.instanceArns, context) }),
|
|
1685
1677
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1686
1678
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1687
1679
|
...(input.recommendationPreferences != null && {
|
|
1688
|
-
recommendationPreferences:
|
|
1680
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1689
1681
|
}),
|
|
1690
1682
|
};
|
|
1691
1683
|
};
|
|
1692
|
-
const
|
|
1684
|
+
const se_GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1693
1685
|
return {
|
|
1694
1686
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1695
1687
|
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1696
1688
|
...(input.period != null && { period: input.period }),
|
|
1697
1689
|
...(input.recommendationPreferences != null && {
|
|
1698
|
-
recommendationPreferences:
|
|
1690
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1699
1691
|
}),
|
|
1700
1692
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1701
1693
|
...(input.stat != null && { stat: input.stat }),
|
|
1702
1694
|
};
|
|
1703
1695
|
};
|
|
1704
|
-
const
|
|
1696
|
+
const se_GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1705
1697
|
return {
|
|
1706
1698
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1707
1699
|
...(input.period != null && { period: input.period }),
|
|
@@ -1710,163 +1702,159 @@ const serializeAws_json1_0GetECSServiceRecommendationProjectedMetricsRequest = (
|
|
|
1710
1702
|
...(input.stat != null && { stat: input.stat }),
|
|
1711
1703
|
};
|
|
1712
1704
|
};
|
|
1713
|
-
const
|
|
1705
|
+
const se_GetECSServiceRecommendationsRequest = (input, context) => {
|
|
1714
1706
|
return {
|
|
1715
|
-
...(input.accountIds != null && { accountIds:
|
|
1716
|
-
...(input.filters != null && {
|
|
1717
|
-
filters: serializeAws_json1_0ECSServiceRecommendationFilters(input.filters, context),
|
|
1718
|
-
}),
|
|
1707
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1708
|
+
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1719
1709
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1720
1710
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1721
|
-
...(input.serviceArns != null && { serviceArns:
|
|
1711
|
+
...(input.serviceArns != null && { serviceArns: se_ServiceArns(input.serviceArns, context) }),
|
|
1722
1712
|
};
|
|
1723
1713
|
};
|
|
1724
|
-
const
|
|
1714
|
+
const se_GetEffectiveRecommendationPreferencesRequest = (input, context) => {
|
|
1725
1715
|
return {
|
|
1726
1716
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1727
1717
|
};
|
|
1728
1718
|
};
|
|
1729
|
-
const
|
|
1719
|
+
const se_GetEnrollmentStatusesForOrganizationRequest = (input, context) => {
|
|
1730
1720
|
return {
|
|
1731
|
-
...(input.filters != null && { filters:
|
|
1721
|
+
...(input.filters != null && { filters: se_EnrollmentFilters(input.filters, context) }),
|
|
1732
1722
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1733
1723
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1734
1724
|
};
|
|
1735
1725
|
};
|
|
1736
|
-
const
|
|
1726
|
+
const se_GetEnrollmentStatusRequest = (input, context) => {
|
|
1737
1727
|
return {};
|
|
1738
1728
|
};
|
|
1739
|
-
const
|
|
1729
|
+
const se_GetLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1740
1730
|
return {
|
|
1741
|
-
...(input.accountIds != null && { accountIds:
|
|
1742
|
-
...(input.filters != null && {
|
|
1743
|
-
|
|
1744
|
-
}),
|
|
1745
|
-
...(input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) }),
|
|
1731
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1732
|
+
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1733
|
+
...(input.functionArns != null && { functionArns: se_FunctionArns(input.functionArns, context) }),
|
|
1746
1734
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1747
1735
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1748
1736
|
};
|
|
1749
1737
|
};
|
|
1750
|
-
const
|
|
1738
|
+
const se_GetRecommendationPreferencesRequest = (input, context) => {
|
|
1751
1739
|
return {
|
|
1752
1740
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1753
1741
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1754
1742
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1755
|
-
...(input.scope != null && { scope:
|
|
1743
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1756
1744
|
};
|
|
1757
1745
|
};
|
|
1758
|
-
const
|
|
1746
|
+
const se_GetRecommendationSummariesRequest = (input, context) => {
|
|
1759
1747
|
return {
|
|
1760
|
-
...(input.accountIds != null && { accountIds:
|
|
1748
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1761
1749
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1762
1750
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1763
1751
|
};
|
|
1764
1752
|
};
|
|
1765
|
-
const
|
|
1753
|
+
const se_InstanceArns = (input, context) => {
|
|
1766
1754
|
return input
|
|
1767
1755
|
.filter((e) => e != null)
|
|
1768
1756
|
.map((entry) => {
|
|
1769
1757
|
return entry;
|
|
1770
1758
|
});
|
|
1771
1759
|
};
|
|
1772
|
-
const
|
|
1760
|
+
const se_JobFilter = (input, context) => {
|
|
1773
1761
|
return {
|
|
1774
1762
|
...(input.name != null && { name: input.name }),
|
|
1775
|
-
...(input.values != null && { values:
|
|
1763
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1776
1764
|
};
|
|
1777
1765
|
};
|
|
1778
|
-
const
|
|
1766
|
+
const se_JobFilters = (input, context) => {
|
|
1779
1767
|
return input
|
|
1780
1768
|
.filter((e) => e != null)
|
|
1781
1769
|
.map((entry) => {
|
|
1782
|
-
return
|
|
1770
|
+
return se_JobFilter(entry, context);
|
|
1783
1771
|
});
|
|
1784
1772
|
};
|
|
1785
|
-
const
|
|
1773
|
+
const se_JobIds = (input, context) => {
|
|
1786
1774
|
return input
|
|
1787
1775
|
.filter((e) => e != null)
|
|
1788
1776
|
.map((entry) => {
|
|
1789
1777
|
return entry;
|
|
1790
1778
|
});
|
|
1791
1779
|
};
|
|
1792
|
-
const
|
|
1780
|
+
const se_LambdaFunctionRecommendationFilter = (input, context) => {
|
|
1793
1781
|
return {
|
|
1794
1782
|
...(input.name != null && { name: input.name }),
|
|
1795
|
-
...(input.values != null && { values:
|
|
1783
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1796
1784
|
};
|
|
1797
1785
|
};
|
|
1798
|
-
const
|
|
1786
|
+
const se_LambdaFunctionRecommendationFilters = (input, context) => {
|
|
1799
1787
|
return input
|
|
1800
1788
|
.filter((e) => e != null)
|
|
1801
1789
|
.map((entry) => {
|
|
1802
|
-
return
|
|
1790
|
+
return se_LambdaFunctionRecommendationFilter(entry, context);
|
|
1803
1791
|
});
|
|
1804
1792
|
};
|
|
1805
|
-
const
|
|
1793
|
+
const se_PutRecommendationPreferencesRequest = (input, context) => {
|
|
1806
1794
|
return {
|
|
1807
1795
|
...(input.enhancedInfrastructureMetrics != null && {
|
|
1808
1796
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1809
1797
|
}),
|
|
1810
1798
|
...(input.externalMetricsPreference != null && {
|
|
1811
|
-
externalMetricsPreference:
|
|
1799
|
+
externalMetricsPreference: se_ExternalMetricsPreference(input.externalMetricsPreference, context),
|
|
1812
1800
|
}),
|
|
1813
1801
|
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1814
1802
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1815
|
-
...(input.scope != null && { scope:
|
|
1803
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1816
1804
|
};
|
|
1817
1805
|
};
|
|
1818
|
-
const
|
|
1806
|
+
const se_RecommendationPreferenceNames = (input, context) => {
|
|
1819
1807
|
return input
|
|
1820
1808
|
.filter((e) => e != null)
|
|
1821
1809
|
.map((entry) => {
|
|
1822
1810
|
return entry;
|
|
1823
1811
|
});
|
|
1824
1812
|
};
|
|
1825
|
-
const
|
|
1813
|
+
const se_RecommendationPreferences = (input, context) => {
|
|
1826
1814
|
return {
|
|
1827
1815
|
...(input.cpuVendorArchitectures != null && {
|
|
1828
|
-
cpuVendorArchitectures:
|
|
1816
|
+
cpuVendorArchitectures: se_CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1829
1817
|
}),
|
|
1830
1818
|
};
|
|
1831
1819
|
};
|
|
1832
|
-
const
|
|
1820
|
+
const se_S3DestinationConfig = (input, context) => {
|
|
1833
1821
|
return {
|
|
1834
1822
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
1835
1823
|
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
1836
1824
|
};
|
|
1837
1825
|
};
|
|
1838
|
-
const
|
|
1826
|
+
const se_Scope = (input, context) => {
|
|
1839
1827
|
return {
|
|
1840
1828
|
...(input.name != null && { name: input.name }),
|
|
1841
1829
|
...(input.value != null && { value: input.value }),
|
|
1842
1830
|
};
|
|
1843
1831
|
};
|
|
1844
|
-
const
|
|
1832
|
+
const se_ServiceArns = (input, context) => {
|
|
1845
1833
|
return input
|
|
1846
1834
|
.filter((e) => e != null)
|
|
1847
1835
|
.map((entry) => {
|
|
1848
1836
|
return entry;
|
|
1849
1837
|
});
|
|
1850
1838
|
};
|
|
1851
|
-
const
|
|
1839
|
+
const se_UpdateEnrollmentStatusRequest = (input, context) => {
|
|
1852
1840
|
return {
|
|
1853
1841
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1854
1842
|
...(input.status != null && { status: input.status }),
|
|
1855
1843
|
};
|
|
1856
1844
|
};
|
|
1857
|
-
const
|
|
1845
|
+
const se_VolumeArns = (input, context) => {
|
|
1858
1846
|
return input
|
|
1859
1847
|
.filter((e) => e != null)
|
|
1860
1848
|
.map((entry) => {
|
|
1861
1849
|
return entry;
|
|
1862
1850
|
});
|
|
1863
1851
|
};
|
|
1864
|
-
const
|
|
1852
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1865
1853
|
return {
|
|
1866
1854
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1867
1855
|
};
|
|
1868
1856
|
};
|
|
1869
|
-
const
|
|
1857
|
+
const de_AccountEnrollmentStatus = (output, context) => {
|
|
1870
1858
|
return {
|
|
1871
1859
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1872
1860
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
@@ -1876,18 +1864,18 @@ const deserializeAws_json1_0AccountEnrollmentStatus = (output, context) => {
|
|
|
1876
1864
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
1877
1865
|
};
|
|
1878
1866
|
};
|
|
1879
|
-
const
|
|
1867
|
+
const de_AccountEnrollmentStatuses = (output, context) => {
|
|
1880
1868
|
const retVal = (output || [])
|
|
1881
1869
|
.filter((e) => e != null)
|
|
1882
1870
|
.map((entry) => {
|
|
1883
1871
|
if (entry === null) {
|
|
1884
1872
|
return null;
|
|
1885
1873
|
}
|
|
1886
|
-
return
|
|
1874
|
+
return de_AccountEnrollmentStatus(entry, context);
|
|
1887
1875
|
});
|
|
1888
1876
|
return retVal;
|
|
1889
1877
|
};
|
|
1890
|
-
const
|
|
1878
|
+
const de_AutoScalingGroupConfiguration = (output, context) => {
|
|
1891
1879
|
return {
|
|
1892
1880
|
desiredCapacity: (0, smithy_client_1.expectInt32)(output.desiredCapacity),
|
|
1893
1881
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
@@ -1895,113 +1883,107 @@ const deserializeAws_json1_0AutoScalingGroupConfiguration = (output, context) =>
|
|
|
1895
1883
|
minSize: (0, smithy_client_1.expectInt32)(output.minSize),
|
|
1896
1884
|
};
|
|
1897
1885
|
};
|
|
1898
|
-
const
|
|
1886
|
+
const de_AutoScalingGroupRecommendation = (output, context) => {
|
|
1899
1887
|
return {
|
|
1900
1888
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1901
1889
|
autoScalingGroupArn: (0, smithy_client_1.expectString)(output.autoScalingGroupArn),
|
|
1902
1890
|
autoScalingGroupName: (0, smithy_client_1.expectString)(output.autoScalingGroupName),
|
|
1903
1891
|
currentConfiguration: output.currentConfiguration != null
|
|
1904
|
-
?
|
|
1892
|
+
? de_AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
1905
1893
|
: undefined,
|
|
1906
1894
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
1907
1895
|
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
1908
|
-
?
|
|
1896
|
+
? de_EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
1909
1897
|
: undefined,
|
|
1910
1898
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
1911
1899
|
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
1912
|
-
?
|
|
1900
|
+
? de_InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
1913
1901
|
: undefined,
|
|
1914
1902
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
1915
1903
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
1916
1904
|
: undefined,
|
|
1917
1905
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
1918
1906
|
recommendationOptions: output.recommendationOptions != null
|
|
1919
|
-
?
|
|
1920
|
-
: undefined,
|
|
1921
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
1922
|
-
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
1907
|
+
? de_AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
1923
1908
|
: undefined,
|
|
1909
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
1924
1910
|
};
|
|
1925
1911
|
};
|
|
1926
|
-
const
|
|
1912
|
+
const de_AutoScalingGroupRecommendationOption = (output, context) => {
|
|
1927
1913
|
return {
|
|
1928
|
-
configuration: output.configuration != null
|
|
1929
|
-
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
1930
|
-
: undefined,
|
|
1914
|
+
configuration: output.configuration != null ? de_AutoScalingGroupConfiguration(output.configuration, context) : undefined,
|
|
1931
1915
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
1932
1916
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
1933
1917
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
1934
|
-
?
|
|
1918
|
+
? de_ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
1935
1919
|
: undefined,
|
|
1936
1920
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
1937
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
1938
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
1939
|
-
: undefined,
|
|
1921
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
1940
1922
|
};
|
|
1941
1923
|
};
|
|
1942
|
-
const
|
|
1924
|
+
const de_AutoScalingGroupRecommendationOptions = (output, context) => {
|
|
1943
1925
|
const retVal = (output || [])
|
|
1944
1926
|
.filter((e) => e != null)
|
|
1945
1927
|
.map((entry) => {
|
|
1946
1928
|
if (entry === null) {
|
|
1947
1929
|
return null;
|
|
1948
1930
|
}
|
|
1949
|
-
return
|
|
1931
|
+
return de_AutoScalingGroupRecommendationOption(entry, context);
|
|
1950
1932
|
});
|
|
1951
1933
|
return retVal;
|
|
1952
1934
|
};
|
|
1953
|
-
const
|
|
1935
|
+
const de_AutoScalingGroupRecommendations = (output, context) => {
|
|
1954
1936
|
const retVal = (output || [])
|
|
1955
1937
|
.filter((e) => e != null)
|
|
1956
1938
|
.map((entry) => {
|
|
1957
1939
|
if (entry === null) {
|
|
1958
1940
|
return null;
|
|
1959
1941
|
}
|
|
1960
|
-
return
|
|
1942
|
+
return de_AutoScalingGroupRecommendation(entry, context);
|
|
1961
1943
|
});
|
|
1962
1944
|
return retVal;
|
|
1963
1945
|
};
|
|
1964
|
-
const
|
|
1946
|
+
const de_ContainerConfiguration = (output, context) => {
|
|
1965
1947
|
return {
|
|
1966
1948
|
containerName: (0, smithy_client_1.expectString)(output.containerName),
|
|
1967
1949
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
1968
1950
|
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1969
|
-
?
|
|
1951
|
+
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1970
1952
|
: undefined,
|
|
1971
1953
|
};
|
|
1972
1954
|
};
|
|
1973
|
-
const
|
|
1955
|
+
const de_ContainerConfigurations = (output, context) => {
|
|
1974
1956
|
const retVal = (output || [])
|
|
1975
1957
|
.filter((e) => e != null)
|
|
1976
1958
|
.map((entry) => {
|
|
1977
1959
|
if (entry === null) {
|
|
1978
1960
|
return null;
|
|
1979
1961
|
}
|
|
1980
|
-
return
|
|
1962
|
+
return de_ContainerConfiguration(entry, context);
|
|
1981
1963
|
});
|
|
1982
1964
|
return retVal;
|
|
1983
1965
|
};
|
|
1984
|
-
const
|
|
1966
|
+
const de_ContainerRecommendation = (output, context) => {
|
|
1985
1967
|
return {
|
|
1986
1968
|
containerName: (0, smithy_client_1.expectString)(output.containerName),
|
|
1987
1969
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
1988
1970
|
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1989
|
-
?
|
|
1971
|
+
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1990
1972
|
: undefined,
|
|
1991
1973
|
};
|
|
1992
1974
|
};
|
|
1993
|
-
const
|
|
1975
|
+
const de_ContainerRecommendations = (output, context) => {
|
|
1994
1976
|
const retVal = (output || [])
|
|
1995
1977
|
.filter((e) => e != null)
|
|
1996
1978
|
.map((entry) => {
|
|
1997
1979
|
if (entry === null) {
|
|
1998
1980
|
return null;
|
|
1999
1981
|
}
|
|
2000
|
-
return
|
|
1982
|
+
return de_ContainerRecommendation(entry, context);
|
|
2001
1983
|
});
|
|
2002
1984
|
return retVal;
|
|
2003
1985
|
};
|
|
2004
|
-
const
|
|
1986
|
+
const de_CpuVendorArchitectures = (output, context) => {
|
|
2005
1987
|
const retVal = (output || [])
|
|
2006
1988
|
.filter((e) => e != null)
|
|
2007
1989
|
.map((entry) => {
|
|
@@ -2012,7 +1994,7 @@ const deserializeAws_json1_0CpuVendorArchitectures = (output, context) => {
|
|
|
2012
1994
|
});
|
|
2013
1995
|
return retVal;
|
|
2014
1996
|
};
|
|
2015
|
-
const
|
|
1997
|
+
const de_CurrentPerformanceRiskRatings = (output, context) => {
|
|
2016
1998
|
return {
|
|
2017
1999
|
high: (0, smithy_client_1.expectLong)(output.high),
|
|
2018
2000
|
low: (0, smithy_client_1.expectLong)(output.low),
|
|
@@ -2020,59 +2002,55 @@ const deserializeAws_json1_0CurrentPerformanceRiskRatings = (output, context) =>
|
|
|
2020
2002
|
veryLow: (0, smithy_client_1.expectLong)(output.veryLow),
|
|
2021
2003
|
};
|
|
2022
2004
|
};
|
|
2023
|
-
const
|
|
2005
|
+
const de_DeleteRecommendationPreferencesResponse = (output, context) => {
|
|
2024
2006
|
return {};
|
|
2025
2007
|
};
|
|
2026
|
-
const
|
|
2008
|
+
const de_DescribeRecommendationExportJobsResponse = (output, context) => {
|
|
2027
2009
|
return {
|
|
2028
2010
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2029
2011
|
recommendationExportJobs: output.recommendationExportJobs != null
|
|
2030
|
-
?
|
|
2012
|
+
? de_RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
2031
2013
|
: undefined,
|
|
2032
2014
|
};
|
|
2033
2015
|
};
|
|
2034
|
-
const
|
|
2016
|
+
const de_EBSUtilizationMetric = (output, context) => {
|
|
2035
2017
|
return {
|
|
2036
2018
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2037
2019
|
statistic: (0, smithy_client_1.expectString)(output.statistic),
|
|
2038
2020
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2039
2021
|
};
|
|
2040
2022
|
};
|
|
2041
|
-
const
|
|
2023
|
+
const de_EBSUtilizationMetrics = (output, context) => {
|
|
2042
2024
|
const retVal = (output || [])
|
|
2043
2025
|
.filter((e) => e != null)
|
|
2044
2026
|
.map((entry) => {
|
|
2045
2027
|
if (entry === null) {
|
|
2046
2028
|
return null;
|
|
2047
2029
|
}
|
|
2048
|
-
return
|
|
2030
|
+
return de_EBSUtilizationMetric(entry, context);
|
|
2049
2031
|
});
|
|
2050
2032
|
return retVal;
|
|
2051
2033
|
};
|
|
2052
|
-
const
|
|
2034
|
+
const de_ECSServiceProjectedMetric = (output, context) => {
|
|
2053
2035
|
return {
|
|
2054
|
-
lowerBoundValues: output.lowerBoundValues != null
|
|
2055
|
-
? deserializeAws_json1_0MetricValues(output.lowerBoundValues, context)
|
|
2056
|
-
: undefined,
|
|
2036
|
+
lowerBoundValues: output.lowerBoundValues != null ? de_MetricValues(output.lowerBoundValues, context) : undefined,
|
|
2057
2037
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2058
|
-
timestamps: output.timestamps != null ?
|
|
2059
|
-
upperBoundValues: output.upperBoundValues != null
|
|
2060
|
-
? deserializeAws_json1_0MetricValues(output.upperBoundValues, context)
|
|
2061
|
-
: undefined,
|
|
2038
|
+
timestamps: output.timestamps != null ? de_Timestamps(output.timestamps, context) : undefined,
|
|
2039
|
+
upperBoundValues: output.upperBoundValues != null ? de_MetricValues(output.upperBoundValues, context) : undefined,
|
|
2062
2040
|
};
|
|
2063
2041
|
};
|
|
2064
|
-
const
|
|
2042
|
+
const de_ECSServiceProjectedMetrics = (output, context) => {
|
|
2065
2043
|
const retVal = (output || [])
|
|
2066
2044
|
.filter((e) => e != null)
|
|
2067
2045
|
.map((entry) => {
|
|
2068
2046
|
if (entry === null) {
|
|
2069
2047
|
return null;
|
|
2070
2048
|
}
|
|
2071
|
-
return
|
|
2049
|
+
return de_ECSServiceProjectedMetric(entry, context);
|
|
2072
2050
|
});
|
|
2073
2051
|
return retVal;
|
|
2074
2052
|
};
|
|
2075
|
-
const
|
|
2053
|
+
const de_ECSServiceProjectedUtilizationMetric = (output, context) => {
|
|
2076
2054
|
return {
|
|
2077
2055
|
lowerBoundValue: (0, smithy_client_1.limitedParseDouble)(output.lowerBoundValue),
|
|
2078
2056
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2080,27 +2058,27 @@ const deserializeAws_json1_0ECSServiceProjectedUtilizationMetric = (output, cont
|
|
|
2080
2058
|
upperBoundValue: (0, smithy_client_1.limitedParseDouble)(output.upperBoundValue),
|
|
2081
2059
|
};
|
|
2082
2060
|
};
|
|
2083
|
-
const
|
|
2061
|
+
const de_ECSServiceProjectedUtilizationMetrics = (output, context) => {
|
|
2084
2062
|
const retVal = (output || [])
|
|
2085
2063
|
.filter((e) => e != null)
|
|
2086
2064
|
.map((entry) => {
|
|
2087
2065
|
if (entry === null) {
|
|
2088
2066
|
return null;
|
|
2089
2067
|
}
|
|
2090
|
-
return
|
|
2068
|
+
return de_ECSServiceProjectedUtilizationMetric(entry, context);
|
|
2091
2069
|
});
|
|
2092
2070
|
return retVal;
|
|
2093
2071
|
};
|
|
2094
|
-
const
|
|
2072
|
+
const de_ECSServiceRecommendation = (output, context) => {
|
|
2095
2073
|
return {
|
|
2096
2074
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2097
2075
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2098
2076
|
currentServiceConfiguration: output.currentServiceConfiguration != null
|
|
2099
|
-
?
|
|
2077
|
+
? de_ServiceConfiguration(output.currentServiceConfiguration, context)
|
|
2100
2078
|
: undefined,
|
|
2101
2079
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2102
2080
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2103
|
-
?
|
|
2081
|
+
? de_ECSServiceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2104
2082
|
: undefined,
|
|
2105
2083
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2106
2084
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
@@ -2109,14 +2087,14 @@ const deserializeAws_json1_0ECSServiceRecommendation = (output, context) => {
|
|
|
2109
2087
|
lookbackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookbackPeriodInDays),
|
|
2110
2088
|
serviceArn: (0, smithy_client_1.expectString)(output.serviceArn),
|
|
2111
2089
|
serviceRecommendationOptions: output.serviceRecommendationOptions != null
|
|
2112
|
-
?
|
|
2090
|
+
? de_ECSServiceRecommendationOptions(output.serviceRecommendationOptions, context)
|
|
2113
2091
|
: undefined,
|
|
2114
2092
|
utilizationMetrics: output.utilizationMetrics != null
|
|
2115
|
-
?
|
|
2093
|
+
? de_ECSServiceUtilizationMetrics(output.utilizationMetrics, context)
|
|
2116
2094
|
: undefined,
|
|
2117
2095
|
};
|
|
2118
2096
|
};
|
|
2119
|
-
const
|
|
2097
|
+
const de_ECSServiceRecommendationFindingReasonCodes = (output, context) => {
|
|
2120
2098
|
const retVal = (output || [])
|
|
2121
2099
|
.filter((e) => e != null)
|
|
2122
2100
|
.map((entry) => {
|
|
@@ -2127,206 +2105,202 @@ const deserializeAws_json1_0ECSServiceRecommendationFindingReasonCodes = (output
|
|
|
2127
2105
|
});
|
|
2128
2106
|
return retVal;
|
|
2129
2107
|
};
|
|
2130
|
-
const
|
|
2108
|
+
const de_ECSServiceRecommendationOption = (output, context) => {
|
|
2131
2109
|
return {
|
|
2132
2110
|
containerRecommendations: output.containerRecommendations != null
|
|
2133
|
-
?
|
|
2111
|
+
? de_ContainerRecommendations(output.containerRecommendations, context)
|
|
2134
2112
|
: undefined,
|
|
2135
2113
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
2136
2114
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
2137
2115
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2138
|
-
?
|
|
2139
|
-
: undefined,
|
|
2140
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2141
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2116
|
+
? de_ECSServiceProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2142
2117
|
: undefined,
|
|
2118
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2143
2119
|
};
|
|
2144
2120
|
};
|
|
2145
|
-
const
|
|
2121
|
+
const de_ECSServiceRecommendationOptions = (output, context) => {
|
|
2146
2122
|
const retVal = (output || [])
|
|
2147
2123
|
.filter((e) => e != null)
|
|
2148
2124
|
.map((entry) => {
|
|
2149
2125
|
if (entry === null) {
|
|
2150
2126
|
return null;
|
|
2151
2127
|
}
|
|
2152
|
-
return
|
|
2128
|
+
return de_ECSServiceRecommendationOption(entry, context);
|
|
2153
2129
|
});
|
|
2154
2130
|
return retVal;
|
|
2155
2131
|
};
|
|
2156
|
-
const
|
|
2132
|
+
const de_ECSServiceRecommendations = (output, context) => {
|
|
2157
2133
|
const retVal = (output || [])
|
|
2158
2134
|
.filter((e) => e != null)
|
|
2159
2135
|
.map((entry) => {
|
|
2160
2136
|
if (entry === null) {
|
|
2161
2137
|
return null;
|
|
2162
2138
|
}
|
|
2163
|
-
return
|
|
2139
|
+
return de_ECSServiceRecommendation(entry, context);
|
|
2164
2140
|
});
|
|
2165
2141
|
return retVal;
|
|
2166
2142
|
};
|
|
2167
|
-
const
|
|
2143
|
+
const de_ECSServiceRecommendedOptionProjectedMetric = (output, context) => {
|
|
2168
2144
|
return {
|
|
2169
|
-
projectedMetrics: output.projectedMetrics != null
|
|
2170
|
-
? deserializeAws_json1_0ECSServiceProjectedMetrics(output.projectedMetrics, context)
|
|
2171
|
-
: undefined,
|
|
2145
|
+
projectedMetrics: output.projectedMetrics != null ? de_ECSServiceProjectedMetrics(output.projectedMetrics, context) : undefined,
|
|
2172
2146
|
recommendedCpuUnits: (0, smithy_client_1.expectInt32)(output.recommendedCpuUnits),
|
|
2173
2147
|
recommendedMemorySize: (0, smithy_client_1.expectInt32)(output.recommendedMemorySize),
|
|
2174
2148
|
};
|
|
2175
2149
|
};
|
|
2176
|
-
const
|
|
2150
|
+
const de_ECSServiceRecommendedOptionProjectedMetrics = (output, context) => {
|
|
2177
2151
|
const retVal = (output || [])
|
|
2178
2152
|
.filter((e) => e != null)
|
|
2179
2153
|
.map((entry) => {
|
|
2180
2154
|
if (entry === null) {
|
|
2181
2155
|
return null;
|
|
2182
2156
|
}
|
|
2183
|
-
return
|
|
2157
|
+
return de_ECSServiceRecommendedOptionProjectedMetric(entry, context);
|
|
2184
2158
|
});
|
|
2185
2159
|
return retVal;
|
|
2186
2160
|
};
|
|
2187
|
-
const
|
|
2161
|
+
const de_ECSServiceUtilizationMetric = (output, context) => {
|
|
2188
2162
|
return {
|
|
2189
2163
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2190
2164
|
statistic: (0, smithy_client_1.expectString)(output.statistic),
|
|
2191
2165
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2192
2166
|
};
|
|
2193
2167
|
};
|
|
2194
|
-
const
|
|
2168
|
+
const de_ECSServiceUtilizationMetrics = (output, context) => {
|
|
2195
2169
|
const retVal = (output || [])
|
|
2196
2170
|
.filter((e) => e != null)
|
|
2197
2171
|
.map((entry) => {
|
|
2198
2172
|
if (entry === null) {
|
|
2199
2173
|
return null;
|
|
2200
2174
|
}
|
|
2201
|
-
return
|
|
2175
|
+
return de_ECSServiceUtilizationMetric(entry, context);
|
|
2202
2176
|
});
|
|
2203
2177
|
return retVal;
|
|
2204
2178
|
};
|
|
2205
|
-
const
|
|
2179
|
+
const de_EffectiveRecommendationPreferences = (output, context) => {
|
|
2206
2180
|
return {
|
|
2207
2181
|
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
2208
|
-
?
|
|
2182
|
+
? de_CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2209
2183
|
: undefined,
|
|
2210
2184
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2211
2185
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2212
|
-
?
|
|
2186
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2213
2187
|
: undefined,
|
|
2214
2188
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
2215
2189
|
};
|
|
2216
2190
|
};
|
|
2217
|
-
const
|
|
2191
|
+
const de_EstimatedMonthlySavings = (output, context) => {
|
|
2218
2192
|
return {
|
|
2219
2193
|
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
2220
2194
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2221
2195
|
};
|
|
2222
2196
|
};
|
|
2223
|
-
const
|
|
2197
|
+
const de_ExportAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2224
2198
|
return {
|
|
2225
2199
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2226
|
-
s3Destination: output.s3Destination != null ?
|
|
2200
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2227
2201
|
};
|
|
2228
2202
|
};
|
|
2229
|
-
const
|
|
2203
|
+
const de_ExportDestination = (output, context) => {
|
|
2230
2204
|
return {
|
|
2231
|
-
s3: output.s3 != null ?
|
|
2205
|
+
s3: output.s3 != null ? de_S3Destination(output.s3, context) : undefined,
|
|
2232
2206
|
};
|
|
2233
2207
|
};
|
|
2234
|
-
const
|
|
2208
|
+
const de_ExportEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2235
2209
|
return {
|
|
2236
2210
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2237
|
-
s3Destination: output.s3Destination != null ?
|
|
2211
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2238
2212
|
};
|
|
2239
2213
|
};
|
|
2240
|
-
const
|
|
2214
|
+
const de_ExportEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2241
2215
|
return {
|
|
2242
2216
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2243
|
-
s3Destination: output.s3Destination != null ?
|
|
2217
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2244
2218
|
};
|
|
2245
2219
|
};
|
|
2246
|
-
const
|
|
2220
|
+
const de_ExportECSServiceRecommendationsResponse = (output, context) => {
|
|
2247
2221
|
return {
|
|
2248
2222
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2249
|
-
s3Destination: output.s3Destination != null ?
|
|
2223
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2250
2224
|
};
|
|
2251
2225
|
};
|
|
2252
|
-
const
|
|
2226
|
+
const de_ExportLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2253
2227
|
return {
|
|
2254
2228
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2255
|
-
s3Destination: output.s3Destination != null ?
|
|
2229
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2256
2230
|
};
|
|
2257
2231
|
};
|
|
2258
|
-
const
|
|
2232
|
+
const de_ExternalMetricsPreference = (output, context) => {
|
|
2259
2233
|
return {
|
|
2260
2234
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
2261
2235
|
};
|
|
2262
2236
|
};
|
|
2263
|
-
const
|
|
2237
|
+
const de_GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2264
2238
|
return {
|
|
2265
2239
|
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
2266
|
-
?
|
|
2240
|
+
? de_AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
2267
2241
|
: undefined,
|
|
2268
|
-
errors: output.errors != null ?
|
|
2242
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2269
2243
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2270
2244
|
};
|
|
2271
2245
|
};
|
|
2272
|
-
const
|
|
2246
|
+
const de_GetEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2273
2247
|
return {
|
|
2274
|
-
errors: output.errors != null ?
|
|
2248
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2275
2249
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2276
2250
|
volumeRecommendations: output.volumeRecommendations != null
|
|
2277
|
-
?
|
|
2251
|
+
? de_VolumeRecommendations(output.volumeRecommendations, context)
|
|
2278
2252
|
: undefined,
|
|
2279
2253
|
};
|
|
2280
2254
|
};
|
|
2281
|
-
const
|
|
2255
|
+
const de_GetEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2282
2256
|
return {
|
|
2283
|
-
errors: output.errors != null ?
|
|
2257
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2284
2258
|
instanceRecommendations: output.instanceRecommendations != null
|
|
2285
|
-
?
|
|
2259
|
+
? de_InstanceRecommendations(output.instanceRecommendations, context)
|
|
2286
2260
|
: undefined,
|
|
2287
2261
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2288
2262
|
};
|
|
2289
2263
|
};
|
|
2290
|
-
const
|
|
2264
|
+
const de_GetEC2RecommendationProjectedMetricsResponse = (output, context) => {
|
|
2291
2265
|
return {
|
|
2292
2266
|
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2293
|
-
?
|
|
2267
|
+
? de_RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2294
2268
|
: undefined,
|
|
2295
2269
|
};
|
|
2296
2270
|
};
|
|
2297
|
-
const
|
|
2271
|
+
const de_GetECSServiceRecommendationProjectedMetricsResponse = (output, context) => {
|
|
2298
2272
|
return {
|
|
2299
2273
|
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2300
|
-
?
|
|
2274
|
+
? de_ECSServiceRecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2301
2275
|
: undefined,
|
|
2302
2276
|
};
|
|
2303
2277
|
};
|
|
2304
|
-
const
|
|
2278
|
+
const de_GetECSServiceRecommendationsResponse = (output, context) => {
|
|
2305
2279
|
return {
|
|
2306
2280
|
ecsServiceRecommendations: output.ecsServiceRecommendations != null
|
|
2307
|
-
?
|
|
2281
|
+
? de_ECSServiceRecommendations(output.ecsServiceRecommendations, context)
|
|
2308
2282
|
: undefined,
|
|
2309
|
-
errors: output.errors != null ?
|
|
2283
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2310
2284
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2311
2285
|
};
|
|
2312
2286
|
};
|
|
2313
|
-
const
|
|
2287
|
+
const de_GetEffectiveRecommendationPreferencesResponse = (output, context) => {
|
|
2314
2288
|
return {
|
|
2315
2289
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2316
2290
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2317
|
-
?
|
|
2291
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2318
2292
|
: undefined,
|
|
2319
2293
|
};
|
|
2320
2294
|
};
|
|
2321
|
-
const
|
|
2295
|
+
const de_GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
2322
2296
|
return {
|
|
2323
2297
|
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
2324
|
-
?
|
|
2298
|
+
? de_AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
2325
2299
|
: undefined,
|
|
2326
2300
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2327
2301
|
};
|
|
2328
2302
|
};
|
|
2329
|
-
const
|
|
2303
|
+
const de_GetEnrollmentStatusResponse = (output, context) => {
|
|
2330
2304
|
return {
|
|
2331
2305
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2332
2306
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
@@ -2337,49 +2311,49 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
|
2337
2311
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2338
2312
|
};
|
|
2339
2313
|
};
|
|
2340
|
-
const
|
|
2314
|
+
const de_GetLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2341
2315
|
return {
|
|
2342
2316
|
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2343
|
-
?
|
|
2317
|
+
? de_LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2344
2318
|
: undefined,
|
|
2345
2319
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2346
2320
|
};
|
|
2347
2321
|
};
|
|
2348
|
-
const
|
|
2322
|
+
const de_GetRecommendationError = (output, context) => {
|
|
2349
2323
|
return {
|
|
2350
2324
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
2351
2325
|
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
2352
2326
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2353
2327
|
};
|
|
2354
2328
|
};
|
|
2355
|
-
const
|
|
2329
|
+
const de_GetRecommendationErrors = (output, context) => {
|
|
2356
2330
|
const retVal = (output || [])
|
|
2357
2331
|
.filter((e) => e != null)
|
|
2358
2332
|
.map((entry) => {
|
|
2359
2333
|
if (entry === null) {
|
|
2360
2334
|
return null;
|
|
2361
2335
|
}
|
|
2362
|
-
return
|
|
2336
|
+
return de_GetRecommendationError(entry, context);
|
|
2363
2337
|
});
|
|
2364
2338
|
return retVal;
|
|
2365
2339
|
};
|
|
2366
|
-
const
|
|
2340
|
+
const de_GetRecommendationPreferencesResponse = (output, context) => {
|
|
2367
2341
|
return {
|
|
2368
2342
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2369
2343
|
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2370
|
-
?
|
|
2344
|
+
? de_RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2371
2345
|
: undefined,
|
|
2372
2346
|
};
|
|
2373
2347
|
};
|
|
2374
|
-
const
|
|
2348
|
+
const de_GetRecommendationSummariesResponse = (output, context) => {
|
|
2375
2349
|
return {
|
|
2376
2350
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2377
2351
|
recommendationSummaries: output.recommendationSummaries != null
|
|
2378
|
-
?
|
|
2352
|
+
? de_RecommendationSummaries(output.recommendationSummaries, context)
|
|
2379
2353
|
: undefined,
|
|
2380
2354
|
};
|
|
2381
2355
|
};
|
|
2382
|
-
const
|
|
2356
|
+
const de_InferredWorkloadTypes = (output, context) => {
|
|
2383
2357
|
const retVal = (output || [])
|
|
2384
2358
|
.filter((e) => e != null)
|
|
2385
2359
|
.map((entry) => {
|
|
@@ -2390,20 +2364,20 @@ const deserializeAws_json1_0InferredWorkloadTypes = (output, context) => {
|
|
|
2390
2364
|
});
|
|
2391
2365
|
return retVal;
|
|
2392
2366
|
};
|
|
2393
|
-
const
|
|
2367
|
+
const de_InstanceRecommendation = (output, context) => {
|
|
2394
2368
|
return {
|
|
2395
2369
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2396
2370
|
currentInstanceType: (0, smithy_client_1.expectString)(output.currentInstanceType),
|
|
2397
2371
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2398
2372
|
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2399
|
-
?
|
|
2373
|
+
? de_EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2400
2374
|
: undefined,
|
|
2401
2375
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2402
2376
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2403
|
-
?
|
|
2377
|
+
? de_InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2404
2378
|
: undefined,
|
|
2405
2379
|
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2406
|
-
?
|
|
2380
|
+
? de_InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2407
2381
|
: undefined,
|
|
2408
2382
|
instanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
|
|
2409
2383
|
instanceName: (0, smithy_client_1.expectString)(output.instanceName),
|
|
@@ -2413,17 +2387,15 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2413
2387
|
: undefined,
|
|
2414
2388
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2415
2389
|
recommendationOptions: output.recommendationOptions != null
|
|
2416
|
-
?
|
|
2390
|
+
? de_RecommendationOptions(output.recommendationOptions, context)
|
|
2417
2391
|
: undefined,
|
|
2418
2392
|
recommendationSources: output.recommendationSources != null
|
|
2419
|
-
?
|
|
2420
|
-
: undefined,
|
|
2421
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
2422
|
-
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2393
|
+
? de_RecommendationSources(output.recommendationSources, context)
|
|
2423
2394
|
: undefined,
|
|
2395
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
2424
2396
|
};
|
|
2425
2397
|
};
|
|
2426
|
-
const
|
|
2398
|
+
const de_InstanceRecommendationFindingReasonCodes = (output, context) => {
|
|
2427
2399
|
const retVal = (output || [])
|
|
2428
2400
|
.filter((e) => e != null)
|
|
2429
2401
|
.map((entry) => {
|
|
@@ -2434,93 +2406,87 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = (output,
|
|
|
2434
2406
|
});
|
|
2435
2407
|
return retVal;
|
|
2436
2408
|
};
|
|
2437
|
-
const
|
|
2409
|
+
const de_InstanceRecommendationOption = (output, context) => {
|
|
2438
2410
|
return {
|
|
2439
2411
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
2440
2412
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
2441
2413
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2442
|
-
platformDifferences: output.platformDifferences != null
|
|
2443
|
-
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2444
|
-
: undefined,
|
|
2414
|
+
platformDifferences: output.platformDifferences != null ? de_PlatformDifferences(output.platformDifferences, context) : undefined,
|
|
2445
2415
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2446
|
-
?
|
|
2416
|
+
? de_ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2447
2417
|
: undefined,
|
|
2448
2418
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2449
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2450
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2451
|
-
: undefined,
|
|
2419
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2452
2420
|
};
|
|
2453
2421
|
};
|
|
2454
|
-
const
|
|
2422
|
+
const de_InstanceRecommendations = (output, context) => {
|
|
2455
2423
|
const retVal = (output || [])
|
|
2456
2424
|
.filter((e) => e != null)
|
|
2457
2425
|
.map((entry) => {
|
|
2458
2426
|
if (entry === null) {
|
|
2459
2427
|
return null;
|
|
2460
2428
|
}
|
|
2461
|
-
return
|
|
2429
|
+
return de_InstanceRecommendation(entry, context);
|
|
2462
2430
|
});
|
|
2463
2431
|
return retVal;
|
|
2464
2432
|
};
|
|
2465
|
-
const
|
|
2433
|
+
const de_InternalServerException = (output, context) => {
|
|
2466
2434
|
return {
|
|
2467
2435
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2468
2436
|
};
|
|
2469
2437
|
};
|
|
2470
|
-
const
|
|
2438
|
+
const de_InvalidParameterValueException = (output, context) => {
|
|
2471
2439
|
return {
|
|
2472
2440
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2473
2441
|
};
|
|
2474
2442
|
};
|
|
2475
|
-
const
|
|
2443
|
+
const de_LambdaFunctionMemoryProjectedMetric = (output, context) => {
|
|
2476
2444
|
return {
|
|
2477
2445
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2478
2446
|
statistic: (0, smithy_client_1.expectString)(output.statistic),
|
|
2479
2447
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2480
2448
|
};
|
|
2481
2449
|
};
|
|
2482
|
-
const
|
|
2450
|
+
const de_LambdaFunctionMemoryProjectedMetrics = (output, context) => {
|
|
2483
2451
|
const retVal = (output || [])
|
|
2484
2452
|
.filter((e) => e != null)
|
|
2485
2453
|
.map((entry) => {
|
|
2486
2454
|
if (entry === null) {
|
|
2487
2455
|
return null;
|
|
2488
2456
|
}
|
|
2489
|
-
return
|
|
2457
|
+
return de_LambdaFunctionMemoryProjectedMetric(entry, context);
|
|
2490
2458
|
});
|
|
2491
2459
|
return retVal;
|
|
2492
2460
|
};
|
|
2493
|
-
const
|
|
2461
|
+
const de_LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2494
2462
|
return {
|
|
2495
2463
|
memorySize: (0, smithy_client_1.expectInt32)(output.memorySize),
|
|
2496
2464
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2497
|
-
?
|
|
2465
|
+
? de_LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2498
2466
|
: undefined,
|
|
2499
2467
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2500
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2501
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2502
|
-
: undefined,
|
|
2468
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2503
2469
|
};
|
|
2504
2470
|
};
|
|
2505
|
-
const
|
|
2471
|
+
const de_LambdaFunctionMemoryRecommendationOptions = (output, context) => {
|
|
2506
2472
|
const retVal = (output || [])
|
|
2507
2473
|
.filter((e) => e != null)
|
|
2508
2474
|
.map((entry) => {
|
|
2509
2475
|
if (entry === null) {
|
|
2510
2476
|
return null;
|
|
2511
2477
|
}
|
|
2512
|
-
return
|
|
2478
|
+
return de_LambdaFunctionMemoryRecommendationOption(entry, context);
|
|
2513
2479
|
});
|
|
2514
2480
|
return retVal;
|
|
2515
2481
|
};
|
|
2516
|
-
const
|
|
2482
|
+
const de_LambdaFunctionRecommendation = (output, context) => {
|
|
2517
2483
|
return {
|
|
2518
2484
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2519
2485
|
currentMemorySize: (0, smithy_client_1.expectInt32)(output.currentMemorySize),
|
|
2520
2486
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2521
2487
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2522
2488
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2523
|
-
?
|
|
2489
|
+
? de_LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2524
2490
|
: undefined,
|
|
2525
2491
|
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
2526
2492
|
functionVersion: (0, smithy_client_1.expectString)(output.functionVersion),
|
|
@@ -2529,15 +2495,15 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) =>
|
|
|
2529
2495
|
: undefined,
|
|
2530
2496
|
lookbackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookbackPeriodInDays),
|
|
2531
2497
|
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2532
|
-
?
|
|
2498
|
+
? de_LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2533
2499
|
: undefined,
|
|
2534
2500
|
numberOfInvocations: (0, smithy_client_1.expectLong)(output.numberOfInvocations),
|
|
2535
2501
|
utilizationMetrics: output.utilizationMetrics != null
|
|
2536
|
-
?
|
|
2502
|
+
? de_LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2537
2503
|
: undefined,
|
|
2538
2504
|
};
|
|
2539
2505
|
};
|
|
2540
|
-
const
|
|
2506
|
+
const de_LambdaFunctionRecommendationFindingReasonCodes = (output, context) => {
|
|
2541
2507
|
const retVal = (output || [])
|
|
2542
2508
|
.filter((e) => e != null)
|
|
2543
2509
|
.map((entry) => {
|
|
@@ -2548,47 +2514,47 @@ const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = (ou
|
|
|
2548
2514
|
});
|
|
2549
2515
|
return retVal;
|
|
2550
2516
|
};
|
|
2551
|
-
const
|
|
2517
|
+
const de_LambdaFunctionRecommendations = (output, context) => {
|
|
2552
2518
|
const retVal = (output || [])
|
|
2553
2519
|
.filter((e) => e != null)
|
|
2554
2520
|
.map((entry) => {
|
|
2555
2521
|
if (entry === null) {
|
|
2556
2522
|
return null;
|
|
2557
2523
|
}
|
|
2558
|
-
return
|
|
2524
|
+
return de_LambdaFunctionRecommendation(entry, context);
|
|
2559
2525
|
});
|
|
2560
2526
|
return retVal;
|
|
2561
2527
|
};
|
|
2562
|
-
const
|
|
2528
|
+
const de_LambdaFunctionUtilizationMetric = (output, context) => {
|
|
2563
2529
|
return {
|
|
2564
2530
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2565
2531
|
statistic: (0, smithy_client_1.expectString)(output.statistic),
|
|
2566
2532
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2567
2533
|
};
|
|
2568
2534
|
};
|
|
2569
|
-
const
|
|
2535
|
+
const de_LambdaFunctionUtilizationMetrics = (output, context) => {
|
|
2570
2536
|
const retVal = (output || [])
|
|
2571
2537
|
.filter((e) => e != null)
|
|
2572
2538
|
.map((entry) => {
|
|
2573
2539
|
if (entry === null) {
|
|
2574
2540
|
return null;
|
|
2575
2541
|
}
|
|
2576
|
-
return
|
|
2542
|
+
return de_LambdaFunctionUtilizationMetric(entry, context);
|
|
2577
2543
|
});
|
|
2578
2544
|
return retVal;
|
|
2579
2545
|
};
|
|
2580
|
-
const
|
|
2546
|
+
const de_LimitExceededException = (output, context) => {
|
|
2581
2547
|
return {
|
|
2582
2548
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2583
2549
|
};
|
|
2584
2550
|
};
|
|
2585
|
-
const
|
|
2551
|
+
const de_MemorySizeConfiguration = (output, context) => {
|
|
2586
2552
|
return {
|
|
2587
2553
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
2588
2554
|
memoryReservation: (0, smithy_client_1.expectInt32)(output.memoryReservation),
|
|
2589
2555
|
};
|
|
2590
2556
|
};
|
|
2591
|
-
const
|
|
2557
|
+
const de_MetricValues = (output, context) => {
|
|
2592
2558
|
const retVal = (output || [])
|
|
2593
2559
|
.filter((e) => e != null)
|
|
2594
2560
|
.map((entry) => {
|
|
@@ -2599,17 +2565,17 @@ const deserializeAws_json1_0MetricValues = (output, context) => {
|
|
|
2599
2565
|
});
|
|
2600
2566
|
return retVal;
|
|
2601
2567
|
};
|
|
2602
|
-
const
|
|
2568
|
+
const de_MissingAuthenticationToken = (output, context) => {
|
|
2603
2569
|
return {
|
|
2604
2570
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2605
2571
|
};
|
|
2606
2572
|
};
|
|
2607
|
-
const
|
|
2573
|
+
const de_OptInRequiredException = (output, context) => {
|
|
2608
2574
|
return {
|
|
2609
2575
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2610
2576
|
};
|
|
2611
2577
|
};
|
|
2612
|
-
const
|
|
2578
|
+
const de_PlatformDifferences = (output, context) => {
|
|
2613
2579
|
const retVal = (output || [])
|
|
2614
2580
|
.filter((e) => e != null)
|
|
2615
2581
|
.map((entry) => {
|
|
@@ -2620,61 +2586,61 @@ const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
|
2620
2586
|
});
|
|
2621
2587
|
return retVal;
|
|
2622
2588
|
};
|
|
2623
|
-
const
|
|
2589
|
+
const de_ProjectedMetric = (output, context) => {
|
|
2624
2590
|
return {
|
|
2625
2591
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2626
|
-
timestamps: output.timestamps != null ?
|
|
2627
|
-
values: output.values != null ?
|
|
2592
|
+
timestamps: output.timestamps != null ? de_Timestamps(output.timestamps, context) : undefined,
|
|
2593
|
+
values: output.values != null ? de_MetricValues(output.values, context) : undefined,
|
|
2628
2594
|
};
|
|
2629
2595
|
};
|
|
2630
|
-
const
|
|
2596
|
+
const de_ProjectedMetrics = (output, context) => {
|
|
2631
2597
|
const retVal = (output || [])
|
|
2632
2598
|
.filter((e) => e != null)
|
|
2633
2599
|
.map((entry) => {
|
|
2634
2600
|
if (entry === null) {
|
|
2635
2601
|
return null;
|
|
2636
2602
|
}
|
|
2637
|
-
return
|
|
2603
|
+
return de_ProjectedMetric(entry, context);
|
|
2638
2604
|
});
|
|
2639
2605
|
return retVal;
|
|
2640
2606
|
};
|
|
2641
|
-
const
|
|
2607
|
+
const de_ProjectedUtilizationMetrics = (output, context) => {
|
|
2642
2608
|
const retVal = (output || [])
|
|
2643
2609
|
.filter((e) => e != null)
|
|
2644
2610
|
.map((entry) => {
|
|
2645
2611
|
if (entry === null) {
|
|
2646
2612
|
return null;
|
|
2647
2613
|
}
|
|
2648
|
-
return
|
|
2614
|
+
return de_UtilizationMetric(entry, context);
|
|
2649
2615
|
});
|
|
2650
2616
|
return retVal;
|
|
2651
2617
|
};
|
|
2652
|
-
const
|
|
2618
|
+
const de_PutRecommendationPreferencesResponse = (output, context) => {
|
|
2653
2619
|
return {};
|
|
2654
2620
|
};
|
|
2655
|
-
const
|
|
2621
|
+
const de_ReasonCodeSummaries = (output, context) => {
|
|
2656
2622
|
const retVal = (output || [])
|
|
2657
2623
|
.filter((e) => e != null)
|
|
2658
2624
|
.map((entry) => {
|
|
2659
2625
|
if (entry === null) {
|
|
2660
2626
|
return null;
|
|
2661
2627
|
}
|
|
2662
|
-
return
|
|
2628
|
+
return de_ReasonCodeSummary(entry, context);
|
|
2663
2629
|
});
|
|
2664
2630
|
return retVal;
|
|
2665
2631
|
};
|
|
2666
|
-
const
|
|
2632
|
+
const de_ReasonCodeSummary = (output, context) => {
|
|
2667
2633
|
return {
|
|
2668
2634
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2669
2635
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2670
2636
|
};
|
|
2671
2637
|
};
|
|
2672
|
-
const
|
|
2638
|
+
const de_RecommendationExportJob = (output, context) => {
|
|
2673
2639
|
return {
|
|
2674
2640
|
creationTimestamp: output.creationTimestamp != null
|
|
2675
2641
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
2676
2642
|
: undefined,
|
|
2677
|
-
destination: output.destination != null ?
|
|
2643
|
+
destination: output.destination != null ? de_ExportDestination(output.destination, context) : undefined,
|
|
2678
2644
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
2679
2645
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2680
2646
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
@@ -2684,179 +2650,173 @@ const deserializeAws_json1_0RecommendationExportJob = (output, context) => {
|
|
|
2684
2650
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2685
2651
|
};
|
|
2686
2652
|
};
|
|
2687
|
-
const
|
|
2653
|
+
const de_RecommendationExportJobs = (output, context) => {
|
|
2688
2654
|
const retVal = (output || [])
|
|
2689
2655
|
.filter((e) => e != null)
|
|
2690
2656
|
.map((entry) => {
|
|
2691
2657
|
if (entry === null) {
|
|
2692
2658
|
return null;
|
|
2693
2659
|
}
|
|
2694
|
-
return
|
|
2660
|
+
return de_RecommendationExportJob(entry, context);
|
|
2695
2661
|
});
|
|
2696
2662
|
return retVal;
|
|
2697
2663
|
};
|
|
2698
|
-
const
|
|
2664
|
+
const de_RecommendationOptions = (output, context) => {
|
|
2699
2665
|
const retVal = (output || [])
|
|
2700
2666
|
.filter((e) => e != null)
|
|
2701
2667
|
.map((entry) => {
|
|
2702
2668
|
if (entry === null) {
|
|
2703
2669
|
return null;
|
|
2704
2670
|
}
|
|
2705
|
-
return
|
|
2671
|
+
return de_InstanceRecommendationOption(entry, context);
|
|
2706
2672
|
});
|
|
2707
2673
|
return retVal;
|
|
2708
2674
|
};
|
|
2709
|
-
const
|
|
2675
|
+
const de_RecommendationPreferencesDetail = (output, context) => {
|
|
2710
2676
|
return {
|
|
2711
2677
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2712
2678
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2713
|
-
?
|
|
2679
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2714
2680
|
: undefined,
|
|
2715
2681
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
2716
2682
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2717
|
-
scope: output.scope != null ?
|
|
2683
|
+
scope: output.scope != null ? de_Scope(output.scope, context) : undefined,
|
|
2718
2684
|
};
|
|
2719
2685
|
};
|
|
2720
|
-
const
|
|
2686
|
+
const de_RecommendationPreferencesDetails = (output, context) => {
|
|
2721
2687
|
const retVal = (output || [])
|
|
2722
2688
|
.filter((e) => e != null)
|
|
2723
2689
|
.map((entry) => {
|
|
2724
2690
|
if (entry === null) {
|
|
2725
2691
|
return null;
|
|
2726
2692
|
}
|
|
2727
|
-
return
|
|
2693
|
+
return de_RecommendationPreferencesDetail(entry, context);
|
|
2728
2694
|
});
|
|
2729
2695
|
return retVal;
|
|
2730
2696
|
};
|
|
2731
|
-
const
|
|
2697
|
+
const de_RecommendationSource = (output, context) => {
|
|
2732
2698
|
return {
|
|
2733
2699
|
recommendationSourceArn: (0, smithy_client_1.expectString)(output.recommendationSourceArn),
|
|
2734
2700
|
recommendationSourceType: (0, smithy_client_1.expectString)(output.recommendationSourceType),
|
|
2735
2701
|
};
|
|
2736
2702
|
};
|
|
2737
|
-
const
|
|
2703
|
+
const de_RecommendationSources = (output, context) => {
|
|
2738
2704
|
const retVal = (output || [])
|
|
2739
2705
|
.filter((e) => e != null)
|
|
2740
2706
|
.map((entry) => {
|
|
2741
2707
|
if (entry === null) {
|
|
2742
2708
|
return null;
|
|
2743
2709
|
}
|
|
2744
|
-
return
|
|
2710
|
+
return de_RecommendationSource(entry, context);
|
|
2745
2711
|
});
|
|
2746
2712
|
return retVal;
|
|
2747
2713
|
};
|
|
2748
|
-
const
|
|
2714
|
+
const de_RecommendationSummaries = (output, context) => {
|
|
2749
2715
|
const retVal = (output || [])
|
|
2750
2716
|
.filter((e) => e != null)
|
|
2751
2717
|
.map((entry) => {
|
|
2752
2718
|
if (entry === null) {
|
|
2753
2719
|
return null;
|
|
2754
2720
|
}
|
|
2755
|
-
return
|
|
2721
|
+
return de_RecommendationSummary(entry, context);
|
|
2756
2722
|
});
|
|
2757
2723
|
return retVal;
|
|
2758
2724
|
};
|
|
2759
|
-
const
|
|
2725
|
+
const de_RecommendationSummary = (output, context) => {
|
|
2760
2726
|
return {
|
|
2761
2727
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2762
2728
|
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2763
|
-
?
|
|
2729
|
+
? de_CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2764
2730
|
: undefined,
|
|
2765
2731
|
recommendationResourceType: (0, smithy_client_1.expectString)(output.recommendationResourceType),
|
|
2766
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2767
|
-
|
|
2768
|
-
: undefined,
|
|
2769
|
-
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2732
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2733
|
+
summaries: output.summaries != null ? de_Summaries(output.summaries, context) : undefined,
|
|
2770
2734
|
};
|
|
2771
2735
|
};
|
|
2772
|
-
const
|
|
2736
|
+
const de_RecommendedOptionProjectedMetric = (output, context) => {
|
|
2773
2737
|
return {
|
|
2774
|
-
projectedMetrics: output.projectedMetrics != null
|
|
2775
|
-
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2776
|
-
: undefined,
|
|
2738
|
+
projectedMetrics: output.projectedMetrics != null ? de_ProjectedMetrics(output.projectedMetrics, context) : undefined,
|
|
2777
2739
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2778
2740
|
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
2779
2741
|
};
|
|
2780
2742
|
};
|
|
2781
|
-
const
|
|
2743
|
+
const de_RecommendedOptionProjectedMetrics = (output, context) => {
|
|
2782
2744
|
const retVal = (output || [])
|
|
2783
2745
|
.filter((e) => e != null)
|
|
2784
2746
|
.map((entry) => {
|
|
2785
2747
|
if (entry === null) {
|
|
2786
2748
|
return null;
|
|
2787
2749
|
}
|
|
2788
|
-
return
|
|
2750
|
+
return de_RecommendedOptionProjectedMetric(entry, context);
|
|
2789
2751
|
});
|
|
2790
2752
|
return retVal;
|
|
2791
2753
|
};
|
|
2792
|
-
const
|
|
2754
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2793
2755
|
return {
|
|
2794
2756
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2795
2757
|
};
|
|
2796
2758
|
};
|
|
2797
|
-
const
|
|
2759
|
+
const de_S3Destination = (output, context) => {
|
|
2798
2760
|
return {
|
|
2799
2761
|
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
2800
2762
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
2801
2763
|
metadataKey: (0, smithy_client_1.expectString)(output.metadataKey),
|
|
2802
2764
|
};
|
|
2803
2765
|
};
|
|
2804
|
-
const
|
|
2766
|
+
const de_SavingsOpportunity = (output, context) => {
|
|
2805
2767
|
return {
|
|
2806
2768
|
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2807
|
-
?
|
|
2769
|
+
? de_EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2808
2770
|
: undefined,
|
|
2809
2771
|
savingsOpportunityPercentage: (0, smithy_client_1.limitedParseDouble)(output.savingsOpportunityPercentage),
|
|
2810
2772
|
};
|
|
2811
2773
|
};
|
|
2812
|
-
const
|
|
2774
|
+
const de_Scope = (output, context) => {
|
|
2813
2775
|
return {
|
|
2814
2776
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2815
2777
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2816
2778
|
};
|
|
2817
2779
|
};
|
|
2818
|
-
const
|
|
2780
|
+
const de_ServiceConfiguration = (output, context) => {
|
|
2819
2781
|
return {
|
|
2820
2782
|
autoScalingConfiguration: (0, smithy_client_1.expectString)(output.autoScalingConfiguration),
|
|
2821
2783
|
containerConfigurations: output.containerConfigurations != null
|
|
2822
|
-
?
|
|
2784
|
+
? de_ContainerConfigurations(output.containerConfigurations, context)
|
|
2823
2785
|
: undefined,
|
|
2824
2786
|
cpu: (0, smithy_client_1.expectInt32)(output.cpu),
|
|
2825
2787
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
2826
2788
|
taskDefinitionArn: (0, smithy_client_1.expectString)(output.taskDefinitionArn),
|
|
2827
2789
|
};
|
|
2828
2790
|
};
|
|
2829
|
-
const
|
|
2791
|
+
const de_ServiceUnavailableException = (output, context) => {
|
|
2830
2792
|
return {
|
|
2831
2793
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2832
2794
|
};
|
|
2833
2795
|
};
|
|
2834
|
-
const
|
|
2796
|
+
const de_Summaries = (output, context) => {
|
|
2835
2797
|
const retVal = (output || [])
|
|
2836
2798
|
.filter((e) => e != null)
|
|
2837
2799
|
.map((entry) => {
|
|
2838
2800
|
if (entry === null) {
|
|
2839
2801
|
return null;
|
|
2840
2802
|
}
|
|
2841
|
-
return
|
|
2803
|
+
return de_Summary(entry, context);
|
|
2842
2804
|
});
|
|
2843
2805
|
return retVal;
|
|
2844
2806
|
};
|
|
2845
|
-
const
|
|
2807
|
+
const de_Summary = (output, context) => {
|
|
2846
2808
|
return {
|
|
2847
2809
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2848
|
-
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2849
|
-
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2850
|
-
: undefined,
|
|
2810
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null ? de_ReasonCodeSummaries(output.reasonCodeSummaries, context) : undefined,
|
|
2851
2811
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2852
2812
|
};
|
|
2853
2813
|
};
|
|
2854
|
-
const
|
|
2814
|
+
const de_ThrottlingException = (output, context) => {
|
|
2855
2815
|
return {
|
|
2856
2816
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2857
2817
|
};
|
|
2858
2818
|
};
|
|
2859
|
-
const
|
|
2819
|
+
const de_Timestamps = (output, context) => {
|
|
2860
2820
|
const retVal = (output || [])
|
|
2861
2821
|
.filter((e) => e != null)
|
|
2862
2822
|
.map((entry) => {
|
|
@@ -2867,31 +2827,31 @@ const deserializeAws_json1_0Timestamps = (output, context) => {
|
|
|
2867
2827
|
});
|
|
2868
2828
|
return retVal;
|
|
2869
2829
|
};
|
|
2870
|
-
const
|
|
2830
|
+
const de_UpdateEnrollmentStatusResponse = (output, context) => {
|
|
2871
2831
|
return {
|
|
2872
2832
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2873
2833
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2874
2834
|
};
|
|
2875
2835
|
};
|
|
2876
|
-
const
|
|
2836
|
+
const de_UtilizationMetric = (output, context) => {
|
|
2877
2837
|
return {
|
|
2878
2838
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2879
2839
|
statistic: (0, smithy_client_1.expectString)(output.statistic),
|
|
2880
2840
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
2881
2841
|
};
|
|
2882
2842
|
};
|
|
2883
|
-
const
|
|
2843
|
+
const de_UtilizationMetrics = (output, context) => {
|
|
2884
2844
|
const retVal = (output || [])
|
|
2885
2845
|
.filter((e) => e != null)
|
|
2886
2846
|
.map((entry) => {
|
|
2887
2847
|
if (entry === null) {
|
|
2888
2848
|
return null;
|
|
2889
2849
|
}
|
|
2890
|
-
return
|
|
2850
|
+
return de_UtilizationMetric(entry, context);
|
|
2891
2851
|
});
|
|
2892
2852
|
return retVal;
|
|
2893
2853
|
};
|
|
2894
|
-
const
|
|
2854
|
+
const de_VolumeConfiguration = (output, context) => {
|
|
2895
2855
|
return {
|
|
2896
2856
|
rootVolume: (0, smithy_client_1.expectBoolean)(output.rootVolume),
|
|
2897
2857
|
volumeBaselineIOPS: (0, smithy_client_1.expectInt32)(output.volumeBaselineIOPS),
|
|
@@ -2902,58 +2862,50 @@ const deserializeAws_json1_0VolumeConfiguration = (output, context) => {
|
|
|
2902
2862
|
volumeType: (0, smithy_client_1.expectString)(output.volumeType),
|
|
2903
2863
|
};
|
|
2904
2864
|
};
|
|
2905
|
-
const
|
|
2865
|
+
const de_VolumeRecommendation = (output, context) => {
|
|
2906
2866
|
return {
|
|
2907
2867
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2908
|
-
currentConfiguration: output.currentConfiguration != null
|
|
2909
|
-
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2910
|
-
: undefined,
|
|
2868
|
+
currentConfiguration: output.currentConfiguration != null ? de_VolumeConfiguration(output.currentConfiguration, context) : undefined,
|
|
2911
2869
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2912
2870
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2913
2871
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2914
2872
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2915
2873
|
: undefined,
|
|
2916
2874
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2917
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
2918
|
-
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2919
|
-
: undefined,
|
|
2875
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_EBSUtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
2920
2876
|
volumeArn: (0, smithy_client_1.expectString)(output.volumeArn),
|
|
2921
2877
|
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2922
|
-
?
|
|
2878
|
+
? de_VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2923
2879
|
: undefined,
|
|
2924
2880
|
};
|
|
2925
2881
|
};
|
|
2926
|
-
const
|
|
2882
|
+
const de_VolumeRecommendationOption = (output, context) => {
|
|
2927
2883
|
return {
|
|
2928
|
-
configuration: output.configuration != null
|
|
2929
|
-
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2930
|
-
: undefined,
|
|
2884
|
+
configuration: output.configuration != null ? de_VolumeConfiguration(output.configuration, context) : undefined,
|
|
2931
2885
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2932
2886
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2933
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2934
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2935
|
-
: undefined,
|
|
2887
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2936
2888
|
};
|
|
2937
2889
|
};
|
|
2938
|
-
const
|
|
2890
|
+
const de_VolumeRecommendationOptions = (output, context) => {
|
|
2939
2891
|
const retVal = (output || [])
|
|
2940
2892
|
.filter((e) => e != null)
|
|
2941
2893
|
.map((entry) => {
|
|
2942
2894
|
if (entry === null) {
|
|
2943
2895
|
return null;
|
|
2944
2896
|
}
|
|
2945
|
-
return
|
|
2897
|
+
return de_VolumeRecommendationOption(entry, context);
|
|
2946
2898
|
});
|
|
2947
2899
|
return retVal;
|
|
2948
2900
|
};
|
|
2949
|
-
const
|
|
2901
|
+
const de_VolumeRecommendations = (output, context) => {
|
|
2950
2902
|
const retVal = (output || [])
|
|
2951
2903
|
.filter((e) => e != null)
|
|
2952
2904
|
.map((entry) => {
|
|
2953
2905
|
if (entry === null) {
|
|
2954
2906
|
return null;
|
|
2955
2907
|
}
|
|
2956
|
-
return
|
|
2908
|
+
return de_VolumeRecommendation(entry, context);
|
|
2957
2909
|
});
|
|
2958
2910
|
return retVal;
|
|
2959
2911
|
};
|