@aws-sdk/client-emr 3.489.0 → 3.495.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/EMR.js +1 -121
- package/dist-cjs/EMRClient.js +1 -43
- package/dist-cjs/commands/AddInstanceFleetCommand.js +1 -28
- package/dist-cjs/commands/AddInstanceGroupsCommand.js +1 -28
- package/dist-cjs/commands/AddJobFlowStepsCommand.js +1 -28
- package/dist-cjs/commands/AddTagsCommand.js +1 -28
- package/dist-cjs/commands/CancelStepsCommand.js +1 -28
- package/dist-cjs/commands/CreateSecurityConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateStudioCommand.js +1 -28
- package/dist-cjs/commands/CreateStudioSessionMappingCommand.js +1 -28
- package/dist-cjs/commands/DeleteSecurityConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteStudioCommand.js +1 -28
- package/dist-cjs/commands/DeleteStudioSessionMappingCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobFlowsCommand.js +1 -28
- package/dist-cjs/commands/DescribeNotebookExecutionCommand.js +1 -28
- package/dist-cjs/commands/DescribeReleaseLabelCommand.js +1 -28
- package/dist-cjs/commands/DescribeSecurityConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeStepCommand.js +1 -28
- package/dist-cjs/commands/DescribeStudioCommand.js +1 -28
- package/dist-cjs/commands/GetAutoTerminationPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetBlockPublicAccessConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetClusterSessionCredentialsCommand.js +1 -29
- package/dist-cjs/commands/GetManagedScalingPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetStudioSessionMappingCommand.js +1 -28
- package/dist-cjs/commands/ListBootstrapActionsCommand.js +1 -28
- package/dist-cjs/commands/ListClustersCommand.js +1 -28
- package/dist-cjs/commands/ListInstanceFleetsCommand.js +1 -28
- package/dist-cjs/commands/ListInstanceGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListInstancesCommand.js +1 -28
- package/dist-cjs/commands/ListNotebookExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListReleaseLabelsCommand.js +1 -28
- package/dist-cjs/commands/ListSecurityConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListStepsCommand.js +1 -28
- package/dist-cjs/commands/ListStudioSessionMappingsCommand.js +1 -28
- package/dist-cjs/commands/ListStudiosCommand.js +1 -28
- package/dist-cjs/commands/ListSupportedInstanceTypesCommand.js +1 -28
- package/dist-cjs/commands/ModifyClusterCommand.js +1 -28
- package/dist-cjs/commands/ModifyInstanceFleetCommand.js +1 -28
- package/dist-cjs/commands/ModifyInstanceGroupsCommand.js +1 -28
- package/dist-cjs/commands/PutAutoScalingPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutAutoTerminationPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutBlockPublicAccessConfigurationCommand.js +1 -28
- package/dist-cjs/commands/PutManagedScalingPolicyCommand.js +1 -28
- package/dist-cjs/commands/RemoveAutoScalingPolicyCommand.js +1 -28
- package/dist-cjs/commands/RemoveAutoTerminationPolicyCommand.js +1 -28
- package/dist-cjs/commands/RemoveManagedScalingPolicyCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsCommand.js +1 -28
- package/dist-cjs/commands/RunJobFlowCommand.js +1 -28
- package/dist-cjs/commands/SetKeepJobFlowAliveWhenNoStepsCommand.js +1 -28
- package/dist-cjs/commands/SetTerminationProtectionCommand.js +1 -28
- package/dist-cjs/commands/SetVisibleToAllUsersCommand.js +1 -28
- package/dist-cjs/commands/StartNotebookExecutionCommand.js +1 -28
- package/dist-cjs/commands/StopNotebookExecutionCommand.js +1 -28
- package/dist-cjs/commands/TerminateJobFlowsCommand.js +1 -28
- package/dist-cjs/commands/UpdateStudioCommand.js +1 -28
- package/dist-cjs/commands/UpdateStudioSessionMappingCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -58
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5066 -12
- package/dist-cjs/models/EMRServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -339
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListBootstrapActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
- package/dist-cjs/pagination/ListInstanceFleetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInstanceGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/ListNotebookExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListReleaseLabelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSecurityConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListStepsPaginator.js +1 -7
- package/dist-cjs/pagination/ListStudioSessionMappingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListStudiosPaginator.js +1 -7
- package/dist-cjs/pagination/ListSupportedInstanceTypesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -16
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3287
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -6
- package/dist-cjs/waiters/waitForClusterRunning.js +1 -72
- package/dist-cjs/waiters/waitForClusterTerminated.js +1 -45
- package/dist-cjs/waiters/waitForStepComplete.js +1 -54
- package/package.json +41 -41
|
@@ -1,3287 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_SetVisibleToAllUsersCommand = exports.se_SetTerminationProtectionCommand = exports.se_SetKeepJobFlowAliveWhenNoStepsCommand = exports.se_RunJobFlowCommand = exports.se_RemoveTagsCommand = exports.se_RemoveManagedScalingPolicyCommand = exports.se_RemoveAutoTerminationPolicyCommand = exports.se_RemoveAutoScalingPolicyCommand = exports.se_PutManagedScalingPolicyCommand = exports.se_PutBlockPublicAccessConfigurationCommand = exports.se_PutAutoTerminationPolicyCommand = exports.se_PutAutoScalingPolicyCommand = exports.se_ModifyInstanceGroupsCommand = exports.se_ModifyInstanceFleetCommand = exports.se_ModifyClusterCommand = exports.se_ListSupportedInstanceTypesCommand = exports.se_ListStudioSessionMappingsCommand = exports.se_ListStudiosCommand = exports.se_ListStepsCommand = exports.se_ListSecurityConfigurationsCommand = exports.se_ListReleaseLabelsCommand = exports.se_ListNotebookExecutionsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceGroupsCommand = exports.se_ListInstanceFleetsCommand = exports.se_ListClustersCommand = exports.se_ListBootstrapActionsCommand = exports.se_GetStudioSessionMappingCommand = exports.se_GetManagedScalingPolicyCommand = exports.se_GetClusterSessionCredentialsCommand = exports.se_GetBlockPublicAccessConfigurationCommand = exports.se_GetAutoTerminationPolicyCommand = exports.se_DescribeStudioCommand = exports.se_DescribeStepCommand = exports.se_DescribeSecurityConfigurationCommand = exports.se_DescribeReleaseLabelCommand = exports.se_DescribeNotebookExecutionCommand = exports.se_DescribeJobFlowsCommand = exports.se_DescribeClusterCommand = exports.se_DeleteStudioSessionMappingCommand = exports.se_DeleteStudioCommand = exports.se_DeleteSecurityConfigurationCommand = exports.se_CreateStudioSessionMappingCommand = exports.se_CreateStudioCommand = exports.se_CreateSecurityConfigurationCommand = exports.se_CancelStepsCommand = exports.se_AddTagsCommand = exports.se_AddJobFlowStepsCommand = exports.se_AddInstanceGroupsCommand = exports.se_AddInstanceFleetCommand = void 0;
|
|
4
|
-
exports.de_RemoveManagedScalingPolicyCommand = exports.de_RemoveAutoTerminationPolicyCommand = exports.de_RemoveAutoScalingPolicyCommand = exports.de_PutManagedScalingPolicyCommand = exports.de_PutBlockPublicAccessConfigurationCommand = exports.de_PutAutoTerminationPolicyCommand = exports.de_PutAutoScalingPolicyCommand = exports.de_ModifyInstanceGroupsCommand = exports.de_ModifyInstanceFleetCommand = exports.de_ModifyClusterCommand = exports.de_ListSupportedInstanceTypesCommand = exports.de_ListStudioSessionMappingsCommand = exports.de_ListStudiosCommand = exports.de_ListStepsCommand = exports.de_ListSecurityConfigurationsCommand = exports.de_ListReleaseLabelsCommand = exports.de_ListNotebookExecutionsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceGroupsCommand = exports.de_ListInstanceFleetsCommand = exports.de_ListClustersCommand = exports.de_ListBootstrapActionsCommand = exports.de_GetStudioSessionMappingCommand = exports.de_GetManagedScalingPolicyCommand = exports.de_GetClusterSessionCredentialsCommand = exports.de_GetBlockPublicAccessConfigurationCommand = exports.de_GetAutoTerminationPolicyCommand = exports.de_DescribeStudioCommand = exports.de_DescribeStepCommand = exports.de_DescribeSecurityConfigurationCommand = exports.de_DescribeReleaseLabelCommand = exports.de_DescribeNotebookExecutionCommand = exports.de_DescribeJobFlowsCommand = exports.de_DescribeClusterCommand = exports.de_DeleteStudioSessionMappingCommand = exports.de_DeleteStudioCommand = exports.de_DeleteSecurityConfigurationCommand = exports.de_CreateStudioSessionMappingCommand = exports.de_CreateStudioCommand = exports.de_CreateSecurityConfigurationCommand = exports.de_CancelStepsCommand = exports.de_AddTagsCommand = exports.de_AddJobFlowStepsCommand = exports.de_AddInstanceGroupsCommand = exports.de_AddInstanceFleetCommand = exports.se_UpdateStudioSessionMappingCommand = exports.se_UpdateStudioCommand = exports.se_TerminateJobFlowsCommand = exports.se_StopNotebookExecutionCommand = exports.se_StartNotebookExecutionCommand = void 0;
|
|
5
|
-
exports.de_UpdateStudioSessionMappingCommand = exports.de_UpdateStudioCommand = exports.de_TerminateJobFlowsCommand = exports.de_StopNotebookExecutionCommand = exports.de_StartNotebookExecutionCommand = exports.de_SetVisibleToAllUsersCommand = exports.de_SetTerminationProtectionCommand = exports.de_SetKeepJobFlowAliveWhenNoStepsCommand = exports.de_RunJobFlowCommand = exports.de_RemoveTagsCommand = void 0;
|
|
6
|
-
const core_1 = require("@aws-sdk/core");
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const EMRServiceException_1 = require("../models/EMRServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AddInstanceFleetCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AddInstanceFleet");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(se_AddInstanceFleetInput(input, context));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AddInstanceFleetCommand = se_AddInstanceFleetCommand;
|
|
18
|
-
const se_AddInstanceGroupsCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AddInstanceGroups");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(se_AddInstanceGroupsInput(input, context));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_AddInstanceGroupsCommand = se_AddInstanceGroupsCommand;
|
|
25
|
-
const se_AddJobFlowStepsCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("AddJobFlowSteps");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_AddJobFlowStepsCommand = se_AddJobFlowStepsCommand;
|
|
32
|
-
const se_AddTagsCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("AddTags");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_AddTagsCommand = se_AddTagsCommand;
|
|
39
|
-
const se_CancelStepsCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CancelSteps");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CancelStepsCommand = se_CancelStepsCommand;
|
|
46
|
-
const se_CreateSecurityConfigurationCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateSecurityConfiguration");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateSecurityConfigurationCommand = se_CreateSecurityConfigurationCommand;
|
|
53
|
-
const se_CreateStudioCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateStudio");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateStudioCommand = se_CreateStudioCommand;
|
|
60
|
-
const se_CreateStudioSessionMappingCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateStudioSessionMapping");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateStudioSessionMappingCommand = se_CreateStudioSessionMappingCommand;
|
|
67
|
-
const se_DeleteSecurityConfigurationCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DeleteSecurityConfiguration");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_DeleteSecurityConfigurationCommand = se_DeleteSecurityConfigurationCommand;
|
|
74
|
-
const se_DeleteStudioCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("DeleteStudio");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_DeleteStudioCommand = se_DeleteStudioCommand;
|
|
81
|
-
const se_DeleteStudioSessionMappingCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteStudioSessionMapping");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteStudioSessionMappingCommand = se_DeleteStudioSessionMappingCommand;
|
|
88
|
-
const se_DescribeClusterCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DescribeCluster");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
|
|
95
|
-
const se_DescribeJobFlowsCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DescribeJobFlows");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify(se_DescribeJobFlowsInput(input, context));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DescribeJobFlowsCommand = se_DescribeJobFlowsCommand;
|
|
102
|
-
const se_DescribeNotebookExecutionCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DescribeNotebookExecution");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DescribeNotebookExecutionCommand = se_DescribeNotebookExecutionCommand;
|
|
109
|
-
const se_DescribeReleaseLabelCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DescribeReleaseLabel");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DescribeReleaseLabelCommand = se_DescribeReleaseLabelCommand;
|
|
116
|
-
const se_DescribeSecurityConfigurationCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DescribeSecurityConfiguration");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DescribeSecurityConfigurationCommand = se_DescribeSecurityConfigurationCommand;
|
|
123
|
-
const se_DescribeStepCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DescribeStep");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DescribeStepCommand = se_DescribeStepCommand;
|
|
130
|
-
const se_DescribeStudioCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DescribeStudio");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DescribeStudioCommand = se_DescribeStudioCommand;
|
|
137
|
-
const se_GetAutoTerminationPolicyCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("GetAutoTerminationPolicy");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetAutoTerminationPolicyCommand = se_GetAutoTerminationPolicyCommand;
|
|
144
|
-
const se_GetBlockPublicAccessConfigurationCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetBlockPublicAccessConfiguration");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_GetBlockPublicAccessConfigurationCommand = se_GetBlockPublicAccessConfigurationCommand;
|
|
151
|
-
const se_GetClusterSessionCredentialsCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetClusterSessionCredentials");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetClusterSessionCredentialsCommand = se_GetClusterSessionCredentialsCommand;
|
|
158
|
-
const se_GetManagedScalingPolicyCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("GetManagedScalingPolicy");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_GetManagedScalingPolicyCommand = se_GetManagedScalingPolicyCommand;
|
|
165
|
-
const se_GetStudioSessionMappingCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetStudioSessionMapping");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetStudioSessionMappingCommand = se_GetStudioSessionMappingCommand;
|
|
172
|
-
const se_ListBootstrapActionsCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("ListBootstrapActions");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_ListBootstrapActionsCommand = se_ListBootstrapActionsCommand;
|
|
179
|
-
const se_ListClustersCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("ListClusters");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify(se_ListClustersInput(input, context));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_ListClustersCommand = se_ListClustersCommand;
|
|
186
|
-
const se_ListInstanceFleetsCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListInstanceFleets");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_ListInstanceFleetsCommand = se_ListInstanceFleetsCommand;
|
|
193
|
-
const se_ListInstanceGroupsCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("ListInstanceGroups");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_ListInstanceGroupsCommand = se_ListInstanceGroupsCommand;
|
|
200
|
-
const se_ListInstancesCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("ListInstances");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_ListInstancesCommand = se_ListInstancesCommand;
|
|
207
|
-
const se_ListNotebookExecutionsCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("ListNotebookExecutions");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify(se_ListNotebookExecutionsInput(input, context));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_ListNotebookExecutionsCommand = se_ListNotebookExecutionsCommand;
|
|
214
|
-
const se_ListReleaseLabelsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("ListReleaseLabels");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListReleaseLabelsCommand = se_ListReleaseLabelsCommand;
|
|
221
|
-
const se_ListSecurityConfigurationsCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("ListSecurityConfigurations");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_ListSecurityConfigurationsCommand = se_ListSecurityConfigurationsCommand;
|
|
228
|
-
const se_ListStepsCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListSteps");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_ListStepsCommand = se_ListStepsCommand;
|
|
235
|
-
const se_ListStudiosCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListStudios");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListStudiosCommand = se_ListStudiosCommand;
|
|
242
|
-
const se_ListStudioSessionMappingsCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("ListStudioSessionMappings");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_ListStudioSessionMappingsCommand = se_ListStudioSessionMappingsCommand;
|
|
249
|
-
const se_ListSupportedInstanceTypesCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("ListSupportedInstanceTypes");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_ListSupportedInstanceTypesCommand = se_ListSupportedInstanceTypesCommand;
|
|
256
|
-
const se_ModifyClusterCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("ModifyCluster");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ModifyClusterCommand = se_ModifyClusterCommand;
|
|
263
|
-
const se_ModifyInstanceFleetCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("ModifyInstanceFleet");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_ModifyInstanceFleetCommand = se_ModifyInstanceFleetCommand;
|
|
270
|
-
const se_ModifyInstanceGroupsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ModifyInstanceGroups");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(se_ModifyInstanceGroupsInput(input, context));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ModifyInstanceGroupsCommand = se_ModifyInstanceGroupsCommand;
|
|
277
|
-
const se_PutAutoScalingPolicyCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("PutAutoScalingPolicy");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(se_PutAutoScalingPolicyInput(input, context));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_PutAutoScalingPolicyCommand = se_PutAutoScalingPolicyCommand;
|
|
284
|
-
const se_PutAutoTerminationPolicyCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("PutAutoTerminationPolicy");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_PutAutoTerminationPolicyCommand = se_PutAutoTerminationPolicyCommand;
|
|
291
|
-
const se_PutBlockPublicAccessConfigurationCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("PutBlockPublicAccessConfiguration");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify(se_PutBlockPublicAccessConfigurationInput(input, context));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_PutBlockPublicAccessConfigurationCommand = se_PutBlockPublicAccessConfigurationCommand;
|
|
298
|
-
const se_PutManagedScalingPolicyCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("PutManagedScalingPolicy");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_PutManagedScalingPolicyCommand = se_PutManagedScalingPolicyCommand;
|
|
305
|
-
const se_RemoveAutoScalingPolicyCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("RemoveAutoScalingPolicy");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_RemoveAutoScalingPolicyCommand = se_RemoveAutoScalingPolicyCommand;
|
|
312
|
-
const se_RemoveAutoTerminationPolicyCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("RemoveAutoTerminationPolicy");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_RemoveAutoTerminationPolicyCommand = se_RemoveAutoTerminationPolicyCommand;
|
|
319
|
-
const se_RemoveManagedScalingPolicyCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("RemoveManagedScalingPolicy");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_RemoveManagedScalingPolicyCommand = se_RemoveManagedScalingPolicyCommand;
|
|
326
|
-
const se_RemoveTagsCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("RemoveTags");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
|
|
333
|
-
const se_RunJobFlowCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("RunJobFlow");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify(se_RunJobFlowInput(input, context));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_RunJobFlowCommand = se_RunJobFlowCommand;
|
|
340
|
-
const se_SetKeepJobFlowAliveWhenNoStepsCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("SetKeepJobFlowAliveWhenNoSteps");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_SetKeepJobFlowAliveWhenNoStepsCommand = se_SetKeepJobFlowAliveWhenNoStepsCommand;
|
|
347
|
-
const se_SetTerminationProtectionCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("SetTerminationProtection");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_SetTerminationProtectionCommand = se_SetTerminationProtectionCommand;
|
|
354
|
-
const se_SetVisibleToAllUsersCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("SetVisibleToAllUsers");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_SetVisibleToAllUsersCommand = se_SetVisibleToAllUsersCommand;
|
|
361
|
-
const se_StartNotebookExecutionCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("StartNotebookExecution");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_StartNotebookExecutionCommand = se_StartNotebookExecutionCommand;
|
|
368
|
-
const se_StopNotebookExecutionCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("StopNotebookExecution");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_StopNotebookExecutionCommand = se_StopNotebookExecutionCommand;
|
|
375
|
-
const se_TerminateJobFlowsCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("TerminateJobFlows");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_TerminateJobFlowsCommand = se_TerminateJobFlowsCommand;
|
|
382
|
-
const se_UpdateStudioCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("UpdateStudio");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_UpdateStudioCommand = se_UpdateStudioCommand;
|
|
389
|
-
const se_UpdateStudioSessionMappingCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("UpdateStudioSessionMapping");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_UpdateStudioSessionMappingCommand = se_UpdateStudioSessionMappingCommand;
|
|
396
|
-
const de_AddInstanceFleetCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode >= 300) {
|
|
398
|
-
return de_AddInstanceFleetCommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const data = await parseBody(output.body, context);
|
|
401
|
-
let contents = {};
|
|
402
|
-
contents = (0, smithy_client_1._json)(data);
|
|
403
|
-
const response = {
|
|
404
|
-
$metadata: deserializeMetadata(output),
|
|
405
|
-
...contents,
|
|
406
|
-
};
|
|
407
|
-
return response;
|
|
408
|
-
};
|
|
409
|
-
exports.de_AddInstanceFleetCommand = de_AddInstanceFleetCommand;
|
|
410
|
-
const de_AddInstanceFleetCommandError = async (output, context) => {
|
|
411
|
-
const parsedOutput = {
|
|
412
|
-
...output,
|
|
413
|
-
body: await parseErrorBody(output.body, context),
|
|
414
|
-
};
|
|
415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
|
-
switch (errorCode) {
|
|
417
|
-
case "InternalServerException":
|
|
418
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
420
|
-
case "InvalidRequestException":
|
|
421
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
422
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
423
|
-
default:
|
|
424
|
-
const parsedBody = parsedOutput.body;
|
|
425
|
-
return throwDefaultError({
|
|
426
|
-
output,
|
|
427
|
-
parsedBody,
|
|
428
|
-
errorCode,
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
const de_AddInstanceGroupsCommand = async (output, context) => {
|
|
433
|
-
if (output.statusCode >= 300) {
|
|
434
|
-
return de_AddInstanceGroupsCommandError(output, context);
|
|
435
|
-
}
|
|
436
|
-
const data = await parseBody(output.body, context);
|
|
437
|
-
let contents = {};
|
|
438
|
-
contents = (0, smithy_client_1._json)(data);
|
|
439
|
-
const response = {
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
...contents,
|
|
442
|
-
};
|
|
443
|
-
return response;
|
|
444
|
-
};
|
|
445
|
-
exports.de_AddInstanceGroupsCommand = de_AddInstanceGroupsCommand;
|
|
446
|
-
const de_AddInstanceGroupsCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "InternalServerError":
|
|
454
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
455
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
const de_AddJobFlowStepsCommand = async (output, context) => {
|
|
466
|
-
if (output.statusCode >= 300) {
|
|
467
|
-
return de_AddJobFlowStepsCommandError(output, context);
|
|
468
|
-
}
|
|
469
|
-
const data = await parseBody(output.body, context);
|
|
470
|
-
let contents = {};
|
|
471
|
-
contents = (0, smithy_client_1._json)(data);
|
|
472
|
-
const response = {
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
...contents,
|
|
475
|
-
};
|
|
476
|
-
return response;
|
|
477
|
-
};
|
|
478
|
-
exports.de_AddJobFlowStepsCommand = de_AddJobFlowStepsCommand;
|
|
479
|
-
const de_AddJobFlowStepsCommandError = async (output, context) => {
|
|
480
|
-
const parsedOutput = {
|
|
481
|
-
...output,
|
|
482
|
-
body: await parseErrorBody(output.body, context),
|
|
483
|
-
};
|
|
484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
-
switch (errorCode) {
|
|
486
|
-
case "InternalServerError":
|
|
487
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
488
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
const de_AddTagsCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode >= 300) {
|
|
500
|
-
return de_AddTagsCommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const data = await parseBody(output.body, context);
|
|
503
|
-
let contents = {};
|
|
504
|
-
contents = (0, smithy_client_1._json)(data);
|
|
505
|
-
const response = {
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
...contents,
|
|
508
|
-
};
|
|
509
|
-
return response;
|
|
510
|
-
};
|
|
511
|
-
exports.de_AddTagsCommand = de_AddTagsCommand;
|
|
512
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
513
|
-
const parsedOutput = {
|
|
514
|
-
...output,
|
|
515
|
-
body: await parseErrorBody(output.body, context),
|
|
516
|
-
};
|
|
517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
|
-
switch (errorCode) {
|
|
519
|
-
case "InternalServerException":
|
|
520
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
-
case "InvalidRequestException":
|
|
523
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
524
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody,
|
|
530
|
-
errorCode,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
const de_CancelStepsCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CancelStepsCommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await parseBody(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = (0, smithy_client_1._json)(data);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents,
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
};
|
|
547
|
-
exports.de_CancelStepsCommand = de_CancelStepsCommand;
|
|
548
|
-
const de_CancelStepsCommandError = async (output, context) => {
|
|
549
|
-
const parsedOutput = {
|
|
550
|
-
...output,
|
|
551
|
-
body: await parseErrorBody(output.body, context),
|
|
552
|
-
};
|
|
553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
-
switch (errorCode) {
|
|
555
|
-
case "InternalServerError":
|
|
556
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
557
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
558
|
-
case "InvalidRequestException":
|
|
559
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
560
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
561
|
-
default:
|
|
562
|
-
const parsedBody = parsedOutput.body;
|
|
563
|
-
return throwDefaultError({
|
|
564
|
-
output,
|
|
565
|
-
parsedBody,
|
|
566
|
-
errorCode,
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
const de_CreateSecurityConfigurationCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_CreateSecurityConfigurationCommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = de_CreateSecurityConfigurationOutput(data, context);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
exports.de_CreateSecurityConfigurationCommand = de_CreateSecurityConfigurationCommand;
|
|
584
|
-
const de_CreateSecurityConfigurationCommandError = async (output, context) => {
|
|
585
|
-
const parsedOutput = {
|
|
586
|
-
...output,
|
|
587
|
-
body: await parseErrorBody(output.body, context),
|
|
588
|
-
};
|
|
589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
-
switch (errorCode) {
|
|
591
|
-
case "InternalServerException":
|
|
592
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
594
|
-
case "InvalidRequestException":
|
|
595
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
596
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
597
|
-
default:
|
|
598
|
-
const parsedBody = parsedOutput.body;
|
|
599
|
-
return throwDefaultError({
|
|
600
|
-
output,
|
|
601
|
-
parsedBody,
|
|
602
|
-
errorCode,
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
const de_CreateStudioCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode >= 300) {
|
|
608
|
-
return de_CreateStudioCommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const data = await parseBody(output.body, context);
|
|
611
|
-
let contents = {};
|
|
612
|
-
contents = (0, smithy_client_1._json)(data);
|
|
613
|
-
const response = {
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
...contents,
|
|
616
|
-
};
|
|
617
|
-
return response;
|
|
618
|
-
};
|
|
619
|
-
exports.de_CreateStudioCommand = de_CreateStudioCommand;
|
|
620
|
-
const de_CreateStudioCommandError = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await parseErrorBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
-
switch (errorCode) {
|
|
627
|
-
case "InternalServerException":
|
|
628
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
629
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
630
|
-
case "InvalidRequestException":
|
|
631
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
632
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode,
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
const de_CreateStudioSessionMappingCommand = async (output, context) => {
|
|
643
|
-
if (output.statusCode >= 300) {
|
|
644
|
-
return de_CreateStudioSessionMappingCommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
647
|
-
const response = {
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
};
|
|
650
|
-
return response;
|
|
651
|
-
};
|
|
652
|
-
exports.de_CreateStudioSessionMappingCommand = de_CreateStudioSessionMappingCommand;
|
|
653
|
-
const de_CreateStudioSessionMappingCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "InternalServerError":
|
|
661
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
662
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
663
|
-
case "InvalidRequestException":
|
|
664
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
665
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
const de_DeleteSecurityConfigurationCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode >= 300) {
|
|
677
|
-
return de_DeleteSecurityConfigurationCommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const data = await parseBody(output.body, context);
|
|
680
|
-
let contents = {};
|
|
681
|
-
contents = (0, smithy_client_1._json)(data);
|
|
682
|
-
const response = {
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
...contents,
|
|
685
|
-
};
|
|
686
|
-
return response;
|
|
687
|
-
};
|
|
688
|
-
exports.de_DeleteSecurityConfigurationCommand = de_DeleteSecurityConfigurationCommand;
|
|
689
|
-
const de_DeleteSecurityConfigurationCommandError = async (output, context) => {
|
|
690
|
-
const parsedOutput = {
|
|
691
|
-
...output,
|
|
692
|
-
body: await parseErrorBody(output.body, context),
|
|
693
|
-
};
|
|
694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
-
switch (errorCode) {
|
|
696
|
-
case "InternalServerException":
|
|
697
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InvalidRequestException":
|
|
700
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
701
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
702
|
-
default:
|
|
703
|
-
const parsedBody = parsedOutput.body;
|
|
704
|
-
return throwDefaultError({
|
|
705
|
-
output,
|
|
706
|
-
parsedBody,
|
|
707
|
-
errorCode,
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
const de_DeleteStudioCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode >= 300) {
|
|
713
|
-
return de_DeleteStudioCommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
716
|
-
const response = {
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
};
|
|
721
|
-
exports.de_DeleteStudioCommand = de_DeleteStudioCommand;
|
|
722
|
-
const de_DeleteStudioCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "InternalServerException":
|
|
730
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InvalidRequestException":
|
|
733
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
734
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
735
|
-
default:
|
|
736
|
-
const parsedBody = parsedOutput.body;
|
|
737
|
-
return throwDefaultError({
|
|
738
|
-
output,
|
|
739
|
-
parsedBody,
|
|
740
|
-
errorCode,
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
const de_DeleteStudioSessionMappingCommand = async (output, context) => {
|
|
745
|
-
if (output.statusCode >= 300) {
|
|
746
|
-
return de_DeleteStudioSessionMappingCommandError(output, context);
|
|
747
|
-
}
|
|
748
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
};
|
|
752
|
-
return response;
|
|
753
|
-
};
|
|
754
|
-
exports.de_DeleteStudioSessionMappingCommand = de_DeleteStudioSessionMappingCommand;
|
|
755
|
-
const de_DeleteStudioSessionMappingCommandError = async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context),
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "InternalServerError":
|
|
763
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
764
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
765
|
-
case "InvalidRequestException":
|
|
766
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
767
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
const de_DescribeClusterCommand = async (output, context) => {
|
|
778
|
-
if (output.statusCode >= 300) {
|
|
779
|
-
return de_DescribeClusterCommandError(output, context);
|
|
780
|
-
}
|
|
781
|
-
const data = await parseBody(output.body, context);
|
|
782
|
-
let contents = {};
|
|
783
|
-
contents = de_DescribeClusterOutput(data, context);
|
|
784
|
-
const response = {
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
...contents,
|
|
787
|
-
};
|
|
788
|
-
return response;
|
|
789
|
-
};
|
|
790
|
-
exports.de_DescribeClusterCommand = de_DescribeClusterCommand;
|
|
791
|
-
const de_DescribeClusterCommandError = async (output, context) => {
|
|
792
|
-
const parsedOutput = {
|
|
793
|
-
...output,
|
|
794
|
-
body: await parseErrorBody(output.body, context),
|
|
795
|
-
};
|
|
796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
|
-
switch (errorCode) {
|
|
798
|
-
case "InternalServerException":
|
|
799
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
801
|
-
case "InvalidRequestException":
|
|
802
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
803
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode,
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
const de_DescribeJobFlowsCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode >= 300) {
|
|
815
|
-
return de_DescribeJobFlowsCommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const data = await parseBody(output.body, context);
|
|
818
|
-
let contents = {};
|
|
819
|
-
contents = de_DescribeJobFlowsOutput(data, context);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
...contents,
|
|
823
|
-
};
|
|
824
|
-
return response;
|
|
825
|
-
};
|
|
826
|
-
exports.de_DescribeJobFlowsCommand = de_DescribeJobFlowsCommand;
|
|
827
|
-
const de_DescribeJobFlowsCommandError = async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context),
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "InternalServerError":
|
|
835
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
836
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
837
|
-
default:
|
|
838
|
-
const parsedBody = parsedOutput.body;
|
|
839
|
-
return throwDefaultError({
|
|
840
|
-
output,
|
|
841
|
-
parsedBody,
|
|
842
|
-
errorCode,
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
const de_DescribeNotebookExecutionCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode >= 300) {
|
|
848
|
-
return de_DescribeNotebookExecutionCommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const data = await parseBody(output.body, context);
|
|
851
|
-
let contents = {};
|
|
852
|
-
contents = de_DescribeNotebookExecutionOutput(data, context);
|
|
853
|
-
const response = {
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
...contents,
|
|
856
|
-
};
|
|
857
|
-
return response;
|
|
858
|
-
};
|
|
859
|
-
exports.de_DescribeNotebookExecutionCommand = de_DescribeNotebookExecutionCommand;
|
|
860
|
-
const de_DescribeNotebookExecutionCommandError = async (output, context) => {
|
|
861
|
-
const parsedOutput = {
|
|
862
|
-
...output,
|
|
863
|
-
body: await parseErrorBody(output.body, context),
|
|
864
|
-
};
|
|
865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
|
-
switch (errorCode) {
|
|
867
|
-
case "InternalServerError":
|
|
868
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
869
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
870
|
-
case "InvalidRequestException":
|
|
871
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
872
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
873
|
-
default:
|
|
874
|
-
const parsedBody = parsedOutput.body;
|
|
875
|
-
return throwDefaultError({
|
|
876
|
-
output,
|
|
877
|
-
parsedBody,
|
|
878
|
-
errorCode,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
const de_DescribeReleaseLabelCommand = async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_DescribeReleaseLabelCommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await parseBody(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = (0, smithy_client_1._json)(data);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
exports.de_DescribeReleaseLabelCommand = de_DescribeReleaseLabelCommand;
|
|
896
|
-
const de_DescribeReleaseLabelCommandError = async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context),
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "InternalServerException":
|
|
904
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
906
|
-
case "InvalidRequestException":
|
|
907
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
908
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode,
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
const de_DescribeSecurityConfigurationCommand = async (output, context) => {
|
|
919
|
-
if (output.statusCode >= 300) {
|
|
920
|
-
return de_DescribeSecurityConfigurationCommandError(output, context);
|
|
921
|
-
}
|
|
922
|
-
const data = await parseBody(output.body, context);
|
|
923
|
-
let contents = {};
|
|
924
|
-
contents = de_DescribeSecurityConfigurationOutput(data, context);
|
|
925
|
-
const response = {
|
|
926
|
-
$metadata: deserializeMetadata(output),
|
|
927
|
-
...contents,
|
|
928
|
-
};
|
|
929
|
-
return response;
|
|
930
|
-
};
|
|
931
|
-
exports.de_DescribeSecurityConfigurationCommand = de_DescribeSecurityConfigurationCommand;
|
|
932
|
-
const de_DescribeSecurityConfigurationCommandError = async (output, context) => {
|
|
933
|
-
const parsedOutput = {
|
|
934
|
-
...output,
|
|
935
|
-
body: await parseErrorBody(output.body, context),
|
|
936
|
-
};
|
|
937
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
-
switch (errorCode) {
|
|
939
|
-
case "InternalServerException":
|
|
940
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
-
case "InvalidRequestException":
|
|
943
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
944
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
945
|
-
default:
|
|
946
|
-
const parsedBody = parsedOutput.body;
|
|
947
|
-
return throwDefaultError({
|
|
948
|
-
output,
|
|
949
|
-
parsedBody,
|
|
950
|
-
errorCode,
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
|
-
const de_DescribeStepCommand = async (output, context) => {
|
|
955
|
-
if (output.statusCode >= 300) {
|
|
956
|
-
return de_DescribeStepCommandError(output, context);
|
|
957
|
-
}
|
|
958
|
-
const data = await parseBody(output.body, context);
|
|
959
|
-
let contents = {};
|
|
960
|
-
contents = de_DescribeStepOutput(data, context);
|
|
961
|
-
const response = {
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
...contents,
|
|
964
|
-
};
|
|
965
|
-
return response;
|
|
966
|
-
};
|
|
967
|
-
exports.de_DescribeStepCommand = de_DescribeStepCommand;
|
|
968
|
-
const de_DescribeStepCommandError = async (output, context) => {
|
|
969
|
-
const parsedOutput = {
|
|
970
|
-
...output,
|
|
971
|
-
body: await parseErrorBody(output.body, context),
|
|
972
|
-
};
|
|
973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
|
-
switch (errorCode) {
|
|
975
|
-
case "InternalServerException":
|
|
976
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
978
|
-
case "InvalidRequestException":
|
|
979
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
980
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
const de_DescribeStudioCommand = async (output, context) => {
|
|
991
|
-
if (output.statusCode >= 300) {
|
|
992
|
-
return de_DescribeStudioCommandError(output, context);
|
|
993
|
-
}
|
|
994
|
-
const data = await parseBody(output.body, context);
|
|
995
|
-
let contents = {};
|
|
996
|
-
contents = de_DescribeStudioOutput(data, context);
|
|
997
|
-
const response = {
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
...contents,
|
|
1000
|
-
};
|
|
1001
|
-
return response;
|
|
1002
|
-
};
|
|
1003
|
-
exports.de_DescribeStudioCommand = de_DescribeStudioCommand;
|
|
1004
|
-
const de_DescribeStudioCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "InternalServerException":
|
|
1012
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "InvalidRequestException":
|
|
1015
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1016
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
const de_GetAutoTerminationPolicyCommand = async (output, context) => {
|
|
1027
|
-
if (output.statusCode >= 300) {
|
|
1028
|
-
return de_GetAutoTerminationPolicyCommandError(output, context);
|
|
1029
|
-
}
|
|
1030
|
-
const data = await parseBody(output.body, context);
|
|
1031
|
-
let contents = {};
|
|
1032
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1033
|
-
const response = {
|
|
1034
|
-
$metadata: deserializeMetadata(output),
|
|
1035
|
-
...contents,
|
|
1036
|
-
};
|
|
1037
|
-
return response;
|
|
1038
|
-
};
|
|
1039
|
-
exports.de_GetAutoTerminationPolicyCommand = de_GetAutoTerminationPolicyCommand;
|
|
1040
|
-
const de_GetAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context),
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
const de_GetBlockPublicAccessConfigurationCommand = async (output, context) => {
|
|
1054
|
-
if (output.statusCode >= 300) {
|
|
1055
|
-
return de_GetBlockPublicAccessConfigurationCommandError(output, context);
|
|
1056
|
-
}
|
|
1057
|
-
const data = await parseBody(output.body, context);
|
|
1058
|
-
let contents = {};
|
|
1059
|
-
contents = de_GetBlockPublicAccessConfigurationOutput(data, context);
|
|
1060
|
-
const response = {
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
...contents,
|
|
1063
|
-
};
|
|
1064
|
-
return response;
|
|
1065
|
-
};
|
|
1066
|
-
exports.de_GetBlockPublicAccessConfigurationCommand = de_GetBlockPublicAccessConfigurationCommand;
|
|
1067
|
-
const de_GetBlockPublicAccessConfigurationCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "InternalServerException":
|
|
1075
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1076
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InvalidRequestException":
|
|
1078
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1079
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
const de_GetClusterSessionCredentialsCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_GetClusterSessionCredentialsCommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await parseBody(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = de_GetClusterSessionCredentialsOutput(data, context);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents,
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
exports.de_GetClusterSessionCredentialsCommand = de_GetClusterSessionCredentialsCommand;
|
|
1103
|
-
const de_GetClusterSessionCredentialsCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "InternalServerError":
|
|
1111
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1112
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1113
|
-
case "InvalidRequestException":
|
|
1114
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1115
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
const de_GetManagedScalingPolicyCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode >= 300) {
|
|
1127
|
-
return de_GetManagedScalingPolicyCommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const data = await parseBody(output.body, context);
|
|
1130
|
-
let contents = {};
|
|
1131
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1132
|
-
const response = {
|
|
1133
|
-
$metadata: deserializeMetadata(output),
|
|
1134
|
-
...contents,
|
|
1135
|
-
};
|
|
1136
|
-
return response;
|
|
1137
|
-
};
|
|
1138
|
-
exports.de_GetManagedScalingPolicyCommand = de_GetManagedScalingPolicyCommand;
|
|
1139
|
-
const de_GetManagedScalingPolicyCommandError = async (output, context) => {
|
|
1140
|
-
const parsedOutput = {
|
|
1141
|
-
...output,
|
|
1142
|
-
body: await parseErrorBody(output.body, context),
|
|
1143
|
-
};
|
|
1144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode,
|
|
1150
|
-
});
|
|
1151
|
-
};
|
|
1152
|
-
const de_GetStudioSessionMappingCommand = async (output, context) => {
|
|
1153
|
-
if (output.statusCode >= 300) {
|
|
1154
|
-
return de_GetStudioSessionMappingCommandError(output, context);
|
|
1155
|
-
}
|
|
1156
|
-
const data = await parseBody(output.body, context);
|
|
1157
|
-
let contents = {};
|
|
1158
|
-
contents = de_GetStudioSessionMappingOutput(data, context);
|
|
1159
|
-
const response = {
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
...contents,
|
|
1162
|
-
};
|
|
1163
|
-
return response;
|
|
1164
|
-
};
|
|
1165
|
-
exports.de_GetStudioSessionMappingCommand = de_GetStudioSessionMappingCommand;
|
|
1166
|
-
const de_GetStudioSessionMappingCommandError = async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context),
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "InternalServerError":
|
|
1174
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1175
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1176
|
-
case "InvalidRequestException":
|
|
1177
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1178
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
const de_ListBootstrapActionsCommand = async (output, context) => {
|
|
1189
|
-
if (output.statusCode >= 300) {
|
|
1190
|
-
return de_ListBootstrapActionsCommandError(output, context);
|
|
1191
|
-
}
|
|
1192
|
-
const data = await parseBody(output.body, context);
|
|
1193
|
-
let contents = {};
|
|
1194
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1195
|
-
const response = {
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
...contents,
|
|
1198
|
-
};
|
|
1199
|
-
return response;
|
|
1200
|
-
};
|
|
1201
|
-
exports.de_ListBootstrapActionsCommand = de_ListBootstrapActionsCommand;
|
|
1202
|
-
const de_ListBootstrapActionsCommandError = async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context),
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "InternalServerException":
|
|
1210
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1211
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InvalidRequestException":
|
|
1213
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1214
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
const de_ListClustersCommand = async (output, context) => {
|
|
1225
|
-
if (output.statusCode >= 300) {
|
|
1226
|
-
return de_ListClustersCommandError(output, context);
|
|
1227
|
-
}
|
|
1228
|
-
const data = await parseBody(output.body, context);
|
|
1229
|
-
let contents = {};
|
|
1230
|
-
contents = de_ListClustersOutput(data, context);
|
|
1231
|
-
const response = {
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
...contents,
|
|
1234
|
-
};
|
|
1235
|
-
return response;
|
|
1236
|
-
};
|
|
1237
|
-
exports.de_ListClustersCommand = de_ListClustersCommand;
|
|
1238
|
-
const de_ListClustersCommandError = async (output, context) => {
|
|
1239
|
-
const parsedOutput = {
|
|
1240
|
-
...output,
|
|
1241
|
-
body: await parseErrorBody(output.body, context),
|
|
1242
|
-
};
|
|
1243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
-
switch (errorCode) {
|
|
1245
|
-
case "InternalServerException":
|
|
1246
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "InvalidRequestException":
|
|
1249
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1250
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode,
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
const de_ListInstanceFleetsCommand = async (output, context) => {
|
|
1261
|
-
if (output.statusCode >= 300) {
|
|
1262
|
-
return de_ListInstanceFleetsCommandError(output, context);
|
|
1263
|
-
}
|
|
1264
|
-
const data = await parseBody(output.body, context);
|
|
1265
|
-
let contents = {};
|
|
1266
|
-
contents = de_ListInstanceFleetsOutput(data, context);
|
|
1267
|
-
const response = {
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
...contents,
|
|
1270
|
-
};
|
|
1271
|
-
return response;
|
|
1272
|
-
};
|
|
1273
|
-
exports.de_ListInstanceFleetsCommand = de_ListInstanceFleetsCommand;
|
|
1274
|
-
const de_ListInstanceFleetsCommandError = async (output, context) => {
|
|
1275
|
-
const parsedOutput = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseErrorBody(output.body, context),
|
|
1278
|
-
};
|
|
1279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
-
switch (errorCode) {
|
|
1281
|
-
case "InternalServerException":
|
|
1282
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "InvalidRequestException":
|
|
1285
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1286
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
const de_ListInstanceGroupsCommand = async (output, context) => {
|
|
1297
|
-
if (output.statusCode >= 300) {
|
|
1298
|
-
return de_ListInstanceGroupsCommandError(output, context);
|
|
1299
|
-
}
|
|
1300
|
-
const data = await parseBody(output.body, context);
|
|
1301
|
-
let contents = {};
|
|
1302
|
-
contents = de_ListInstanceGroupsOutput(data, context);
|
|
1303
|
-
const response = {
|
|
1304
|
-
$metadata: deserializeMetadata(output),
|
|
1305
|
-
...contents,
|
|
1306
|
-
};
|
|
1307
|
-
return response;
|
|
1308
|
-
};
|
|
1309
|
-
exports.de_ListInstanceGroupsCommand = de_ListInstanceGroupsCommand;
|
|
1310
|
-
const de_ListInstanceGroupsCommandError = async (output, context) => {
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "InternalServerException":
|
|
1318
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1319
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "InvalidRequestException":
|
|
1321
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1322
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
|
-
const de_ListInstancesCommand = async (output, context) => {
|
|
1333
|
-
if (output.statusCode >= 300) {
|
|
1334
|
-
return de_ListInstancesCommandError(output, context);
|
|
1335
|
-
}
|
|
1336
|
-
const data = await parseBody(output.body, context);
|
|
1337
|
-
let contents = {};
|
|
1338
|
-
contents = de_ListInstancesOutput(data, context);
|
|
1339
|
-
const response = {
|
|
1340
|
-
$metadata: deserializeMetadata(output),
|
|
1341
|
-
...contents,
|
|
1342
|
-
};
|
|
1343
|
-
return response;
|
|
1344
|
-
};
|
|
1345
|
-
exports.de_ListInstancesCommand = de_ListInstancesCommand;
|
|
1346
|
-
const de_ListInstancesCommandError = async (output, context) => {
|
|
1347
|
-
const parsedOutput = {
|
|
1348
|
-
...output,
|
|
1349
|
-
body: await parseErrorBody(output.body, context),
|
|
1350
|
-
};
|
|
1351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
-
switch (errorCode) {
|
|
1353
|
-
case "InternalServerException":
|
|
1354
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "InvalidRequestException":
|
|
1357
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1358
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1359
|
-
default:
|
|
1360
|
-
const parsedBody = parsedOutput.body;
|
|
1361
|
-
return throwDefaultError({
|
|
1362
|
-
output,
|
|
1363
|
-
parsedBody,
|
|
1364
|
-
errorCode,
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
|
-
const de_ListNotebookExecutionsCommand = async (output, context) => {
|
|
1369
|
-
if (output.statusCode >= 300) {
|
|
1370
|
-
return de_ListNotebookExecutionsCommandError(output, context);
|
|
1371
|
-
}
|
|
1372
|
-
const data = await parseBody(output.body, context);
|
|
1373
|
-
let contents = {};
|
|
1374
|
-
contents = de_ListNotebookExecutionsOutput(data, context);
|
|
1375
|
-
const response = {
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
...contents,
|
|
1378
|
-
};
|
|
1379
|
-
return response;
|
|
1380
|
-
};
|
|
1381
|
-
exports.de_ListNotebookExecutionsCommand = de_ListNotebookExecutionsCommand;
|
|
1382
|
-
const de_ListNotebookExecutionsCommandError = async (output, context) => {
|
|
1383
|
-
const parsedOutput = {
|
|
1384
|
-
...output,
|
|
1385
|
-
body: await parseErrorBody(output.body, context),
|
|
1386
|
-
};
|
|
1387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
-
switch (errorCode) {
|
|
1389
|
-
case "InternalServerError":
|
|
1390
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1391
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1392
|
-
case "InvalidRequestException":
|
|
1393
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1394
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
const de_ListReleaseLabelsCommand = async (output, context) => {
|
|
1405
|
-
if (output.statusCode >= 300) {
|
|
1406
|
-
return de_ListReleaseLabelsCommandError(output, context);
|
|
1407
|
-
}
|
|
1408
|
-
const data = await parseBody(output.body, context);
|
|
1409
|
-
let contents = {};
|
|
1410
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1411
|
-
const response = {
|
|
1412
|
-
$metadata: deserializeMetadata(output),
|
|
1413
|
-
...contents,
|
|
1414
|
-
};
|
|
1415
|
-
return response;
|
|
1416
|
-
};
|
|
1417
|
-
exports.de_ListReleaseLabelsCommand = de_ListReleaseLabelsCommand;
|
|
1418
|
-
const de_ListReleaseLabelsCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "InternalServerException":
|
|
1426
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InvalidRequestException":
|
|
1429
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1430
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1431
|
-
default:
|
|
1432
|
-
const parsedBody = parsedOutput.body;
|
|
1433
|
-
return throwDefaultError({
|
|
1434
|
-
output,
|
|
1435
|
-
parsedBody,
|
|
1436
|
-
errorCode,
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
const de_ListSecurityConfigurationsCommand = async (output, context) => {
|
|
1441
|
-
if (output.statusCode >= 300) {
|
|
1442
|
-
return de_ListSecurityConfigurationsCommandError(output, context);
|
|
1443
|
-
}
|
|
1444
|
-
const data = await parseBody(output.body, context);
|
|
1445
|
-
let contents = {};
|
|
1446
|
-
contents = de_ListSecurityConfigurationsOutput(data, context);
|
|
1447
|
-
const response = {
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
...contents,
|
|
1450
|
-
};
|
|
1451
|
-
return response;
|
|
1452
|
-
};
|
|
1453
|
-
exports.de_ListSecurityConfigurationsCommand = de_ListSecurityConfigurationsCommand;
|
|
1454
|
-
const de_ListSecurityConfigurationsCommandError = async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context),
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "InternalServerException":
|
|
1462
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1463
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "InvalidRequestException":
|
|
1465
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1466
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1467
|
-
default:
|
|
1468
|
-
const parsedBody = parsedOutput.body;
|
|
1469
|
-
return throwDefaultError({
|
|
1470
|
-
output,
|
|
1471
|
-
parsedBody,
|
|
1472
|
-
errorCode,
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
};
|
|
1476
|
-
const de_ListStepsCommand = async (output, context) => {
|
|
1477
|
-
if (output.statusCode >= 300) {
|
|
1478
|
-
return de_ListStepsCommandError(output, context);
|
|
1479
|
-
}
|
|
1480
|
-
const data = await parseBody(output.body, context);
|
|
1481
|
-
let contents = {};
|
|
1482
|
-
contents = de_ListStepsOutput(data, context);
|
|
1483
|
-
const response = {
|
|
1484
|
-
$metadata: deserializeMetadata(output),
|
|
1485
|
-
...contents,
|
|
1486
|
-
};
|
|
1487
|
-
return response;
|
|
1488
|
-
};
|
|
1489
|
-
exports.de_ListStepsCommand = de_ListStepsCommand;
|
|
1490
|
-
const de_ListStepsCommandError = async (output, context) => {
|
|
1491
|
-
const parsedOutput = {
|
|
1492
|
-
...output,
|
|
1493
|
-
body: await parseErrorBody(output.body, context),
|
|
1494
|
-
};
|
|
1495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
-
switch (errorCode) {
|
|
1497
|
-
case "InternalServerException":
|
|
1498
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1499
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InvalidRequestException":
|
|
1501
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1502
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1503
|
-
default:
|
|
1504
|
-
const parsedBody = parsedOutput.body;
|
|
1505
|
-
return throwDefaultError({
|
|
1506
|
-
output,
|
|
1507
|
-
parsedBody,
|
|
1508
|
-
errorCode,
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
const de_ListStudiosCommand = async (output, context) => {
|
|
1513
|
-
if (output.statusCode >= 300) {
|
|
1514
|
-
return de_ListStudiosCommandError(output, context);
|
|
1515
|
-
}
|
|
1516
|
-
const data = await parseBody(output.body, context);
|
|
1517
|
-
let contents = {};
|
|
1518
|
-
contents = de_ListStudiosOutput(data, context);
|
|
1519
|
-
const response = {
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
...contents,
|
|
1522
|
-
};
|
|
1523
|
-
return response;
|
|
1524
|
-
};
|
|
1525
|
-
exports.de_ListStudiosCommand = de_ListStudiosCommand;
|
|
1526
|
-
const de_ListStudiosCommandError = async (output, context) => {
|
|
1527
|
-
const parsedOutput = {
|
|
1528
|
-
...output,
|
|
1529
|
-
body: await parseErrorBody(output.body, context),
|
|
1530
|
-
};
|
|
1531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
-
switch (errorCode) {
|
|
1533
|
-
case "InternalServerException":
|
|
1534
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidRequestException":
|
|
1537
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1538
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1539
|
-
default:
|
|
1540
|
-
const parsedBody = parsedOutput.body;
|
|
1541
|
-
return throwDefaultError({
|
|
1542
|
-
output,
|
|
1543
|
-
parsedBody,
|
|
1544
|
-
errorCode,
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
|
-
};
|
|
1548
|
-
const de_ListStudioSessionMappingsCommand = async (output, context) => {
|
|
1549
|
-
if (output.statusCode >= 300) {
|
|
1550
|
-
return de_ListStudioSessionMappingsCommandError(output, context);
|
|
1551
|
-
}
|
|
1552
|
-
const data = await parseBody(output.body, context);
|
|
1553
|
-
let contents = {};
|
|
1554
|
-
contents = de_ListStudioSessionMappingsOutput(data, context);
|
|
1555
|
-
const response = {
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
...contents,
|
|
1558
|
-
};
|
|
1559
|
-
return response;
|
|
1560
|
-
};
|
|
1561
|
-
exports.de_ListStudioSessionMappingsCommand = de_ListStudioSessionMappingsCommand;
|
|
1562
|
-
const de_ListStudioSessionMappingsCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context),
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "InternalServerError":
|
|
1570
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1571
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1572
|
-
case "InvalidRequestException":
|
|
1573
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1574
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_ListSupportedInstanceTypesCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_ListSupportedInstanceTypesCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = de_ListSupportedInstanceTypesOutput(data, context);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
exports.de_ListSupportedInstanceTypesCommand = de_ListSupportedInstanceTypesCommand;
|
|
1598
|
-
const de_ListSupportedInstanceTypesCommandError = async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "InternalServerException":
|
|
1606
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1607
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "InvalidRequestException":
|
|
1609
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1610
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1611
|
-
default:
|
|
1612
|
-
const parsedBody = parsedOutput.body;
|
|
1613
|
-
return throwDefaultError({
|
|
1614
|
-
output,
|
|
1615
|
-
parsedBody,
|
|
1616
|
-
errorCode,
|
|
1617
|
-
});
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
|
-
const de_ModifyClusterCommand = async (output, context) => {
|
|
1621
|
-
if (output.statusCode >= 300) {
|
|
1622
|
-
return de_ModifyClusterCommandError(output, context);
|
|
1623
|
-
}
|
|
1624
|
-
const data = await parseBody(output.body, context);
|
|
1625
|
-
let contents = {};
|
|
1626
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1627
|
-
const response = {
|
|
1628
|
-
$metadata: deserializeMetadata(output),
|
|
1629
|
-
...contents,
|
|
1630
|
-
};
|
|
1631
|
-
return response;
|
|
1632
|
-
};
|
|
1633
|
-
exports.de_ModifyClusterCommand = de_ModifyClusterCommand;
|
|
1634
|
-
const de_ModifyClusterCommandError = async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context),
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "InternalServerError":
|
|
1642
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1643
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1644
|
-
case "InvalidRequestException":
|
|
1645
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1646
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1647
|
-
default:
|
|
1648
|
-
const parsedBody = parsedOutput.body;
|
|
1649
|
-
return throwDefaultError({
|
|
1650
|
-
output,
|
|
1651
|
-
parsedBody,
|
|
1652
|
-
errorCode,
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
};
|
|
1656
|
-
const de_ModifyInstanceFleetCommand = async (output, context) => {
|
|
1657
|
-
if (output.statusCode >= 300) {
|
|
1658
|
-
return de_ModifyInstanceFleetCommandError(output, context);
|
|
1659
|
-
}
|
|
1660
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1661
|
-
const response = {
|
|
1662
|
-
$metadata: deserializeMetadata(output),
|
|
1663
|
-
};
|
|
1664
|
-
return response;
|
|
1665
|
-
};
|
|
1666
|
-
exports.de_ModifyInstanceFleetCommand = de_ModifyInstanceFleetCommand;
|
|
1667
|
-
const de_ModifyInstanceFleetCommandError = async (output, context) => {
|
|
1668
|
-
const parsedOutput = {
|
|
1669
|
-
...output,
|
|
1670
|
-
body: await parseErrorBody(output.body, context),
|
|
1671
|
-
};
|
|
1672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
|
-
switch (errorCode) {
|
|
1674
|
-
case "InternalServerException":
|
|
1675
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1676
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "InvalidRequestException":
|
|
1678
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1679
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1680
|
-
default:
|
|
1681
|
-
const parsedBody = parsedOutput.body;
|
|
1682
|
-
return throwDefaultError({
|
|
1683
|
-
output,
|
|
1684
|
-
parsedBody,
|
|
1685
|
-
errorCode,
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
};
|
|
1689
|
-
const de_ModifyInstanceGroupsCommand = async (output, context) => {
|
|
1690
|
-
if (output.statusCode >= 300) {
|
|
1691
|
-
return de_ModifyInstanceGroupsCommandError(output, context);
|
|
1692
|
-
}
|
|
1693
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1694
|
-
const response = {
|
|
1695
|
-
$metadata: deserializeMetadata(output),
|
|
1696
|
-
};
|
|
1697
|
-
return response;
|
|
1698
|
-
};
|
|
1699
|
-
exports.de_ModifyInstanceGroupsCommand = de_ModifyInstanceGroupsCommand;
|
|
1700
|
-
const de_ModifyInstanceGroupsCommandError = async (output, context) => {
|
|
1701
|
-
const parsedOutput = {
|
|
1702
|
-
...output,
|
|
1703
|
-
body: await parseErrorBody(output.body, context),
|
|
1704
|
-
};
|
|
1705
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
|
-
switch (errorCode) {
|
|
1707
|
-
case "InternalServerError":
|
|
1708
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1709
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
const de_PutAutoScalingPolicyCommand = async (output, context) => {
|
|
1720
|
-
if (output.statusCode >= 300) {
|
|
1721
|
-
return de_PutAutoScalingPolicyCommandError(output, context);
|
|
1722
|
-
}
|
|
1723
|
-
const data = await parseBody(output.body, context);
|
|
1724
|
-
let contents = {};
|
|
1725
|
-
contents = de_PutAutoScalingPolicyOutput(data, context);
|
|
1726
|
-
const response = {
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
...contents,
|
|
1729
|
-
};
|
|
1730
|
-
return response;
|
|
1731
|
-
};
|
|
1732
|
-
exports.de_PutAutoScalingPolicyCommand = de_PutAutoScalingPolicyCommand;
|
|
1733
|
-
const de_PutAutoScalingPolicyCommandError = async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context),
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody,
|
|
1743
|
-
errorCode,
|
|
1744
|
-
});
|
|
1745
|
-
};
|
|
1746
|
-
const de_PutAutoTerminationPolicyCommand = async (output, context) => {
|
|
1747
|
-
if (output.statusCode >= 300) {
|
|
1748
|
-
return de_PutAutoTerminationPolicyCommandError(output, context);
|
|
1749
|
-
}
|
|
1750
|
-
const data = await parseBody(output.body, context);
|
|
1751
|
-
let contents = {};
|
|
1752
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1753
|
-
const response = {
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
...contents,
|
|
1756
|
-
};
|
|
1757
|
-
return response;
|
|
1758
|
-
};
|
|
1759
|
-
exports.de_PutAutoTerminationPolicyCommand = de_PutAutoTerminationPolicyCommand;
|
|
1760
|
-
const de_PutAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context),
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
const parsedBody = parsedOutput.body;
|
|
1767
|
-
return throwDefaultError({
|
|
1768
|
-
output,
|
|
1769
|
-
parsedBody,
|
|
1770
|
-
errorCode,
|
|
1771
|
-
});
|
|
1772
|
-
};
|
|
1773
|
-
const de_PutBlockPublicAccessConfigurationCommand = async (output, context) => {
|
|
1774
|
-
if (output.statusCode >= 300) {
|
|
1775
|
-
return de_PutBlockPublicAccessConfigurationCommandError(output, context);
|
|
1776
|
-
}
|
|
1777
|
-
const data = await parseBody(output.body, context);
|
|
1778
|
-
let contents = {};
|
|
1779
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1780
|
-
const response = {
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
...contents,
|
|
1783
|
-
};
|
|
1784
|
-
return response;
|
|
1785
|
-
};
|
|
1786
|
-
exports.de_PutBlockPublicAccessConfigurationCommand = de_PutBlockPublicAccessConfigurationCommand;
|
|
1787
|
-
const de_PutBlockPublicAccessConfigurationCommandError = async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "InternalServerException":
|
|
1795
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1796
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "InvalidRequestException":
|
|
1798
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1799
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1800
|
-
default:
|
|
1801
|
-
const parsedBody = parsedOutput.body;
|
|
1802
|
-
return throwDefaultError({
|
|
1803
|
-
output,
|
|
1804
|
-
parsedBody,
|
|
1805
|
-
errorCode,
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
const de_PutManagedScalingPolicyCommand = async (output, context) => {
|
|
1810
|
-
if (output.statusCode >= 300) {
|
|
1811
|
-
return de_PutManagedScalingPolicyCommandError(output, context);
|
|
1812
|
-
}
|
|
1813
|
-
const data = await parseBody(output.body, context);
|
|
1814
|
-
let contents = {};
|
|
1815
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1816
|
-
const response = {
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
...contents,
|
|
1819
|
-
};
|
|
1820
|
-
return response;
|
|
1821
|
-
};
|
|
1822
|
-
exports.de_PutManagedScalingPolicyCommand = de_PutManagedScalingPolicyCommand;
|
|
1823
|
-
const de_PutManagedScalingPolicyCommandError = async (output, context) => {
|
|
1824
|
-
const parsedOutput = {
|
|
1825
|
-
...output,
|
|
1826
|
-
body: await parseErrorBody(output.body, context),
|
|
1827
|
-
};
|
|
1828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
-
const parsedBody = parsedOutput.body;
|
|
1830
|
-
return throwDefaultError({
|
|
1831
|
-
output,
|
|
1832
|
-
parsedBody,
|
|
1833
|
-
errorCode,
|
|
1834
|
-
});
|
|
1835
|
-
};
|
|
1836
|
-
const de_RemoveAutoScalingPolicyCommand = async (output, context) => {
|
|
1837
|
-
if (output.statusCode >= 300) {
|
|
1838
|
-
return de_RemoveAutoScalingPolicyCommandError(output, context);
|
|
1839
|
-
}
|
|
1840
|
-
const data = await parseBody(output.body, context);
|
|
1841
|
-
let contents = {};
|
|
1842
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1843
|
-
const response = {
|
|
1844
|
-
$metadata: deserializeMetadata(output),
|
|
1845
|
-
...contents,
|
|
1846
|
-
};
|
|
1847
|
-
return response;
|
|
1848
|
-
};
|
|
1849
|
-
exports.de_RemoveAutoScalingPolicyCommand = de_RemoveAutoScalingPolicyCommand;
|
|
1850
|
-
const de_RemoveAutoScalingPolicyCommandError = async (output, context) => {
|
|
1851
|
-
const parsedOutput = {
|
|
1852
|
-
...output,
|
|
1853
|
-
body: await parseErrorBody(output.body, context),
|
|
1854
|
-
};
|
|
1855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode,
|
|
1861
|
-
});
|
|
1862
|
-
};
|
|
1863
|
-
const de_RemoveAutoTerminationPolicyCommand = async (output, context) => {
|
|
1864
|
-
if (output.statusCode >= 300) {
|
|
1865
|
-
return de_RemoveAutoTerminationPolicyCommandError(output, context);
|
|
1866
|
-
}
|
|
1867
|
-
const data = await parseBody(output.body, context);
|
|
1868
|
-
let contents = {};
|
|
1869
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1870
|
-
const response = {
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
...contents,
|
|
1873
|
-
};
|
|
1874
|
-
return response;
|
|
1875
|
-
};
|
|
1876
|
-
exports.de_RemoveAutoTerminationPolicyCommand = de_RemoveAutoTerminationPolicyCommand;
|
|
1877
|
-
const de_RemoveAutoTerminationPolicyCommandError = async (output, context) => {
|
|
1878
|
-
const parsedOutput = {
|
|
1879
|
-
...output,
|
|
1880
|
-
body: await parseErrorBody(output.body, context),
|
|
1881
|
-
};
|
|
1882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
-
const parsedBody = parsedOutput.body;
|
|
1884
|
-
return throwDefaultError({
|
|
1885
|
-
output,
|
|
1886
|
-
parsedBody,
|
|
1887
|
-
errorCode,
|
|
1888
|
-
});
|
|
1889
|
-
};
|
|
1890
|
-
const de_RemoveManagedScalingPolicyCommand = async (output, context) => {
|
|
1891
|
-
if (output.statusCode >= 300) {
|
|
1892
|
-
return de_RemoveManagedScalingPolicyCommandError(output, context);
|
|
1893
|
-
}
|
|
1894
|
-
const data = await parseBody(output.body, context);
|
|
1895
|
-
let contents = {};
|
|
1896
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1897
|
-
const response = {
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
...contents,
|
|
1900
|
-
};
|
|
1901
|
-
return response;
|
|
1902
|
-
};
|
|
1903
|
-
exports.de_RemoveManagedScalingPolicyCommand = de_RemoveManagedScalingPolicyCommand;
|
|
1904
|
-
const de_RemoveManagedScalingPolicyCommandError = async (output, context) => {
|
|
1905
|
-
const parsedOutput = {
|
|
1906
|
-
...output,
|
|
1907
|
-
body: await parseErrorBody(output.body, context),
|
|
1908
|
-
};
|
|
1909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
|
-
const parsedBody = parsedOutput.body;
|
|
1911
|
-
return throwDefaultError({
|
|
1912
|
-
output,
|
|
1913
|
-
parsedBody,
|
|
1914
|
-
errorCode,
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
const de_RemoveTagsCommand = async (output, context) => {
|
|
1918
|
-
if (output.statusCode >= 300) {
|
|
1919
|
-
return de_RemoveTagsCommandError(output, context);
|
|
1920
|
-
}
|
|
1921
|
-
const data = await parseBody(output.body, context);
|
|
1922
|
-
let contents = {};
|
|
1923
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1924
|
-
const response = {
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
...contents,
|
|
1927
|
-
};
|
|
1928
|
-
return response;
|
|
1929
|
-
};
|
|
1930
|
-
exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
|
|
1931
|
-
const de_RemoveTagsCommandError = async (output, context) => {
|
|
1932
|
-
const parsedOutput = {
|
|
1933
|
-
...output,
|
|
1934
|
-
body: await parseErrorBody(output.body, context),
|
|
1935
|
-
};
|
|
1936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
-
switch (errorCode) {
|
|
1938
|
-
case "InternalServerException":
|
|
1939
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1940
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "InvalidRequestException":
|
|
1942
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1943
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1944
|
-
default:
|
|
1945
|
-
const parsedBody = parsedOutput.body;
|
|
1946
|
-
return throwDefaultError({
|
|
1947
|
-
output,
|
|
1948
|
-
parsedBody,
|
|
1949
|
-
errorCode,
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
};
|
|
1953
|
-
const de_RunJobFlowCommand = async (output, context) => {
|
|
1954
|
-
if (output.statusCode >= 300) {
|
|
1955
|
-
return de_RunJobFlowCommandError(output, context);
|
|
1956
|
-
}
|
|
1957
|
-
const data = await parseBody(output.body, context);
|
|
1958
|
-
let contents = {};
|
|
1959
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1960
|
-
const response = {
|
|
1961
|
-
$metadata: deserializeMetadata(output),
|
|
1962
|
-
...contents,
|
|
1963
|
-
};
|
|
1964
|
-
return response;
|
|
1965
|
-
};
|
|
1966
|
-
exports.de_RunJobFlowCommand = de_RunJobFlowCommand;
|
|
1967
|
-
const de_RunJobFlowCommandError = async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "InternalServerError":
|
|
1975
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1976
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1977
|
-
default:
|
|
1978
|
-
const parsedBody = parsedOutput.body;
|
|
1979
|
-
return throwDefaultError({
|
|
1980
|
-
output,
|
|
1981
|
-
parsedBody,
|
|
1982
|
-
errorCode,
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
1986
|
-
const de_SetKeepJobFlowAliveWhenNoStepsCommand = async (output, context) => {
|
|
1987
|
-
if (output.statusCode >= 300) {
|
|
1988
|
-
return de_SetKeepJobFlowAliveWhenNoStepsCommandError(output, context);
|
|
1989
|
-
}
|
|
1990
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1991
|
-
const response = {
|
|
1992
|
-
$metadata: deserializeMetadata(output),
|
|
1993
|
-
};
|
|
1994
|
-
return response;
|
|
1995
|
-
};
|
|
1996
|
-
exports.de_SetKeepJobFlowAliveWhenNoStepsCommand = de_SetKeepJobFlowAliveWhenNoStepsCommand;
|
|
1997
|
-
const de_SetKeepJobFlowAliveWhenNoStepsCommandError = async (output, context) => {
|
|
1998
|
-
const parsedOutput = {
|
|
1999
|
-
...output,
|
|
2000
|
-
body: await parseErrorBody(output.body, context),
|
|
2001
|
-
};
|
|
2002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
-
switch (errorCode) {
|
|
2004
|
-
case "InternalServerError":
|
|
2005
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2006
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2007
|
-
default:
|
|
2008
|
-
const parsedBody = parsedOutput.body;
|
|
2009
|
-
return throwDefaultError({
|
|
2010
|
-
output,
|
|
2011
|
-
parsedBody,
|
|
2012
|
-
errorCode,
|
|
2013
|
-
});
|
|
2014
|
-
}
|
|
2015
|
-
};
|
|
2016
|
-
const de_SetTerminationProtectionCommand = async (output, context) => {
|
|
2017
|
-
if (output.statusCode >= 300) {
|
|
2018
|
-
return de_SetTerminationProtectionCommandError(output, context);
|
|
2019
|
-
}
|
|
2020
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2021
|
-
const response = {
|
|
2022
|
-
$metadata: deserializeMetadata(output),
|
|
2023
|
-
};
|
|
2024
|
-
return response;
|
|
2025
|
-
};
|
|
2026
|
-
exports.de_SetTerminationProtectionCommand = de_SetTerminationProtectionCommand;
|
|
2027
|
-
const de_SetTerminationProtectionCommandError = async (output, context) => {
|
|
2028
|
-
const parsedOutput = {
|
|
2029
|
-
...output,
|
|
2030
|
-
body: await parseErrorBody(output.body, context),
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "InternalServerError":
|
|
2035
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2036
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode,
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
};
|
|
2046
|
-
const de_SetVisibleToAllUsersCommand = async (output, context) => {
|
|
2047
|
-
if (output.statusCode >= 300) {
|
|
2048
|
-
return de_SetVisibleToAllUsersCommandError(output, context);
|
|
2049
|
-
}
|
|
2050
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2051
|
-
const response = {
|
|
2052
|
-
$metadata: deserializeMetadata(output),
|
|
2053
|
-
};
|
|
2054
|
-
return response;
|
|
2055
|
-
};
|
|
2056
|
-
exports.de_SetVisibleToAllUsersCommand = de_SetVisibleToAllUsersCommand;
|
|
2057
|
-
const de_SetVisibleToAllUsersCommandError = async (output, context) => {
|
|
2058
|
-
const parsedOutput = {
|
|
2059
|
-
...output,
|
|
2060
|
-
body: await parseErrorBody(output.body, context),
|
|
2061
|
-
};
|
|
2062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
|
-
switch (errorCode) {
|
|
2064
|
-
case "InternalServerError":
|
|
2065
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2066
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2067
|
-
default:
|
|
2068
|
-
const parsedBody = parsedOutput.body;
|
|
2069
|
-
return throwDefaultError({
|
|
2070
|
-
output,
|
|
2071
|
-
parsedBody,
|
|
2072
|
-
errorCode,
|
|
2073
|
-
});
|
|
2074
|
-
}
|
|
2075
|
-
};
|
|
2076
|
-
const de_StartNotebookExecutionCommand = async (output, context) => {
|
|
2077
|
-
if (output.statusCode >= 300) {
|
|
2078
|
-
return de_StartNotebookExecutionCommandError(output, context);
|
|
2079
|
-
}
|
|
2080
|
-
const data = await parseBody(output.body, context);
|
|
2081
|
-
let contents = {};
|
|
2082
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2083
|
-
const response = {
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
...contents,
|
|
2086
|
-
};
|
|
2087
|
-
return response;
|
|
2088
|
-
};
|
|
2089
|
-
exports.de_StartNotebookExecutionCommand = de_StartNotebookExecutionCommand;
|
|
2090
|
-
const de_StartNotebookExecutionCommandError = async (output, context) => {
|
|
2091
|
-
const parsedOutput = {
|
|
2092
|
-
...output,
|
|
2093
|
-
body: await parseErrorBody(output.body, context),
|
|
2094
|
-
};
|
|
2095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
|
-
switch (errorCode) {
|
|
2097
|
-
case "InternalServerException":
|
|
2098
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2099
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidRequestException":
|
|
2101
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2102
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2103
|
-
default:
|
|
2104
|
-
const parsedBody = parsedOutput.body;
|
|
2105
|
-
return throwDefaultError({
|
|
2106
|
-
output,
|
|
2107
|
-
parsedBody,
|
|
2108
|
-
errorCode,
|
|
2109
|
-
});
|
|
2110
|
-
}
|
|
2111
|
-
};
|
|
2112
|
-
const de_StopNotebookExecutionCommand = async (output, context) => {
|
|
2113
|
-
if (output.statusCode >= 300) {
|
|
2114
|
-
return de_StopNotebookExecutionCommandError(output, context);
|
|
2115
|
-
}
|
|
2116
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2117
|
-
const response = {
|
|
2118
|
-
$metadata: deserializeMetadata(output),
|
|
2119
|
-
};
|
|
2120
|
-
return response;
|
|
2121
|
-
};
|
|
2122
|
-
exports.de_StopNotebookExecutionCommand = de_StopNotebookExecutionCommand;
|
|
2123
|
-
const de_StopNotebookExecutionCommandError = async (output, context) => {
|
|
2124
|
-
const parsedOutput = {
|
|
2125
|
-
...output,
|
|
2126
|
-
body: await parseErrorBody(output.body, context),
|
|
2127
|
-
};
|
|
2128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
-
switch (errorCode) {
|
|
2130
|
-
case "InternalServerError":
|
|
2131
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2132
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2133
|
-
case "InvalidRequestException":
|
|
2134
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2135
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode,
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
};
|
|
2145
|
-
const de_TerminateJobFlowsCommand = async (output, context) => {
|
|
2146
|
-
if (output.statusCode >= 300) {
|
|
2147
|
-
return de_TerminateJobFlowsCommandError(output, context);
|
|
2148
|
-
}
|
|
2149
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2150
|
-
const response = {
|
|
2151
|
-
$metadata: deserializeMetadata(output),
|
|
2152
|
-
};
|
|
2153
|
-
return response;
|
|
2154
|
-
};
|
|
2155
|
-
exports.de_TerminateJobFlowsCommand = de_TerminateJobFlowsCommand;
|
|
2156
|
-
const de_TerminateJobFlowsCommandError = async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context),
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "InternalServerError":
|
|
2164
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2165
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2166
|
-
default:
|
|
2167
|
-
const parsedBody = parsedOutput.body;
|
|
2168
|
-
return throwDefaultError({
|
|
2169
|
-
output,
|
|
2170
|
-
parsedBody,
|
|
2171
|
-
errorCode,
|
|
2172
|
-
});
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
|
-
const de_UpdateStudioCommand = async (output, context) => {
|
|
2176
|
-
if (output.statusCode >= 300) {
|
|
2177
|
-
return de_UpdateStudioCommandError(output, context);
|
|
2178
|
-
}
|
|
2179
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2180
|
-
const response = {
|
|
2181
|
-
$metadata: deserializeMetadata(output),
|
|
2182
|
-
};
|
|
2183
|
-
return response;
|
|
2184
|
-
};
|
|
2185
|
-
exports.de_UpdateStudioCommand = de_UpdateStudioCommand;
|
|
2186
|
-
const de_UpdateStudioCommandError = async (output, context) => {
|
|
2187
|
-
const parsedOutput = {
|
|
2188
|
-
...output,
|
|
2189
|
-
body: await parseErrorBody(output.body, context),
|
|
2190
|
-
};
|
|
2191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
-
switch (errorCode) {
|
|
2193
|
-
case "InternalServerException":
|
|
2194
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2195
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "InvalidRequestException":
|
|
2197
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2198
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2199
|
-
default:
|
|
2200
|
-
const parsedBody = parsedOutput.body;
|
|
2201
|
-
return throwDefaultError({
|
|
2202
|
-
output,
|
|
2203
|
-
parsedBody,
|
|
2204
|
-
errorCode,
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
};
|
|
2208
|
-
const de_UpdateStudioSessionMappingCommand = async (output, context) => {
|
|
2209
|
-
if (output.statusCode >= 300) {
|
|
2210
|
-
return de_UpdateStudioSessionMappingCommandError(output, context);
|
|
2211
|
-
}
|
|
2212
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2213
|
-
const response = {
|
|
2214
|
-
$metadata: deserializeMetadata(output),
|
|
2215
|
-
};
|
|
2216
|
-
return response;
|
|
2217
|
-
};
|
|
2218
|
-
exports.de_UpdateStudioSessionMappingCommand = de_UpdateStudioSessionMappingCommand;
|
|
2219
|
-
const de_UpdateStudioSessionMappingCommandError = async (output, context) => {
|
|
2220
|
-
const parsedOutput = {
|
|
2221
|
-
...output,
|
|
2222
|
-
body: await parseErrorBody(output.body, context),
|
|
2223
|
-
};
|
|
2224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
|
-
switch (errorCode) {
|
|
2226
|
-
case "InternalServerError":
|
|
2227
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2228
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2229
|
-
case "InvalidRequestException":
|
|
2230
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2231
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2232
|
-
default:
|
|
2233
|
-
const parsedBody = parsedOutput.body;
|
|
2234
|
-
return throwDefaultError({
|
|
2235
|
-
output,
|
|
2236
|
-
parsedBody,
|
|
2237
|
-
errorCode,
|
|
2238
|
-
});
|
|
2239
|
-
}
|
|
2240
|
-
};
|
|
2241
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
2242
|
-
const body = parsedOutput.body;
|
|
2243
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2244
|
-
const exception = new models_0_1.InternalServerError({
|
|
2245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2246
|
-
...deserialized,
|
|
2247
|
-
});
|
|
2248
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2249
|
-
};
|
|
2250
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2251
|
-
const body = parsedOutput.body;
|
|
2252
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2253
|
-
const exception = new models_0_1.InternalServerException({
|
|
2254
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2255
|
-
...deserialized,
|
|
2256
|
-
});
|
|
2257
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2258
|
-
};
|
|
2259
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2260
|
-
const body = parsedOutput.body;
|
|
2261
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2262
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
2263
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2264
|
-
...deserialized,
|
|
2265
|
-
});
|
|
2266
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2267
|
-
};
|
|
2268
|
-
const se_AddInstanceFleetInput = (input, context) => {
|
|
2269
|
-
return (0, smithy_client_1.take)(input, {
|
|
2270
|
-
ClusterId: [],
|
|
2271
|
-
InstanceFleet: (_) => se_InstanceFleetConfig(_, context),
|
|
2272
|
-
});
|
|
2273
|
-
};
|
|
2274
|
-
const se_AddInstanceGroupsInput = (input, context) => {
|
|
2275
|
-
return (0, smithy_client_1.take)(input, {
|
|
2276
|
-
InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
|
|
2277
|
-
JobFlowId: [],
|
|
2278
|
-
});
|
|
2279
|
-
};
|
|
2280
|
-
const se_AutoScalingPolicy = (input, context) => {
|
|
2281
|
-
return (0, smithy_client_1.take)(input, {
|
|
2282
|
-
Constraints: smithy_client_1._json,
|
|
2283
|
-
Rules: (_) => se_ScalingRuleList(_, context),
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
const se_BlockPublicAccessConfiguration = (input, context) => {
|
|
2287
|
-
return (0, smithy_client_1.take)(input, {
|
|
2288
|
-
BlockPublicSecurityGroupRules: [],
|
|
2289
|
-
Classification: [],
|
|
2290
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2291
|
-
PermittedPublicSecurityGroupRuleRanges: smithy_client_1._json,
|
|
2292
|
-
Properties: smithy_client_1._json,
|
|
2293
|
-
});
|
|
2294
|
-
};
|
|
2295
|
-
const se_CloudWatchAlarmDefinition = (input, context) => {
|
|
2296
|
-
return (0, smithy_client_1.take)(input, {
|
|
2297
|
-
ComparisonOperator: [],
|
|
2298
|
-
Dimensions: smithy_client_1._json,
|
|
2299
|
-
EvaluationPeriods: [],
|
|
2300
|
-
MetricName: [],
|
|
2301
|
-
Namespace: [],
|
|
2302
|
-
Period: [],
|
|
2303
|
-
Statistic: [],
|
|
2304
|
-
Threshold: smithy_client_1.serializeFloat,
|
|
2305
|
-
Unit: [],
|
|
2306
|
-
});
|
|
2307
|
-
};
|
|
2308
|
-
const se_Configuration = (input, context) => {
|
|
2309
|
-
return (0, smithy_client_1.take)(input, {
|
|
2310
|
-
Classification: [],
|
|
2311
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2312
|
-
Properties: smithy_client_1._json,
|
|
2313
|
-
});
|
|
2314
|
-
};
|
|
2315
|
-
const se_ConfigurationList = (input, context) => {
|
|
2316
|
-
return input
|
|
2317
|
-
.filter((e) => e != null)
|
|
2318
|
-
.map((entry) => {
|
|
2319
|
-
return se_Configuration(entry, context);
|
|
2320
|
-
});
|
|
2321
|
-
};
|
|
2322
|
-
const se_DescribeJobFlowsInput = (input, context) => {
|
|
2323
|
-
return (0, smithy_client_1.take)(input, {
|
|
2324
|
-
CreatedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
2325
|
-
CreatedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
2326
|
-
JobFlowIds: smithy_client_1._json,
|
|
2327
|
-
JobFlowStates: smithy_client_1._json,
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
const se_InstanceFleetConfig = (input, context) => {
|
|
2331
|
-
return (0, smithy_client_1.take)(input, {
|
|
2332
|
-
InstanceFleetType: [],
|
|
2333
|
-
InstanceTypeConfigs: (_) => se_InstanceTypeConfigList(_, context),
|
|
2334
|
-
LaunchSpecifications: smithy_client_1._json,
|
|
2335
|
-
Name: [],
|
|
2336
|
-
ResizeSpecifications: smithy_client_1._json,
|
|
2337
|
-
TargetOnDemandCapacity: [],
|
|
2338
|
-
TargetSpotCapacity: [],
|
|
2339
|
-
});
|
|
2340
|
-
};
|
|
2341
|
-
const se_InstanceFleetConfigList = (input, context) => {
|
|
2342
|
-
return input
|
|
2343
|
-
.filter((e) => e != null)
|
|
2344
|
-
.map((entry) => {
|
|
2345
|
-
return se_InstanceFleetConfig(entry, context);
|
|
2346
|
-
});
|
|
2347
|
-
};
|
|
2348
|
-
const se_InstanceGroupConfig = (input, context) => {
|
|
2349
|
-
return (0, smithy_client_1.take)(input, {
|
|
2350
|
-
AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
|
|
2351
|
-
BidPrice: [],
|
|
2352
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2353
|
-
CustomAmiId: [],
|
|
2354
|
-
EbsConfiguration: smithy_client_1._json,
|
|
2355
|
-
InstanceCount: [],
|
|
2356
|
-
InstanceRole: [],
|
|
2357
|
-
InstanceType: [],
|
|
2358
|
-
Market: [],
|
|
2359
|
-
Name: [],
|
|
2360
|
-
});
|
|
2361
|
-
};
|
|
2362
|
-
const se_InstanceGroupConfigList = (input, context) => {
|
|
2363
|
-
return input
|
|
2364
|
-
.filter((e) => e != null)
|
|
2365
|
-
.map((entry) => {
|
|
2366
|
-
return se_InstanceGroupConfig(entry, context);
|
|
2367
|
-
});
|
|
2368
|
-
};
|
|
2369
|
-
const se_InstanceGroupModifyConfig = (input, context) => {
|
|
2370
|
-
return (0, smithy_client_1.take)(input, {
|
|
2371
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2372
|
-
EC2InstanceIdsToTerminate: smithy_client_1._json,
|
|
2373
|
-
InstanceCount: [],
|
|
2374
|
-
InstanceGroupId: [],
|
|
2375
|
-
ReconfigurationType: [],
|
|
2376
|
-
ShrinkPolicy: smithy_client_1._json,
|
|
2377
|
-
});
|
|
2378
|
-
};
|
|
2379
|
-
const se_InstanceGroupModifyConfigList = (input, context) => {
|
|
2380
|
-
return input
|
|
2381
|
-
.filter((e) => e != null)
|
|
2382
|
-
.map((entry) => {
|
|
2383
|
-
return se_InstanceGroupModifyConfig(entry, context);
|
|
2384
|
-
});
|
|
2385
|
-
};
|
|
2386
|
-
const se_InstanceTypeConfig = (input, context) => {
|
|
2387
|
-
return (0, smithy_client_1.take)(input, {
|
|
2388
|
-
BidPrice: [],
|
|
2389
|
-
BidPriceAsPercentageOfOnDemandPrice: smithy_client_1.serializeFloat,
|
|
2390
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2391
|
-
CustomAmiId: [],
|
|
2392
|
-
EbsConfiguration: smithy_client_1._json,
|
|
2393
|
-
InstanceType: [],
|
|
2394
|
-
WeightedCapacity: [],
|
|
2395
|
-
});
|
|
2396
|
-
};
|
|
2397
|
-
const se_InstanceTypeConfigList = (input, context) => {
|
|
2398
|
-
return input
|
|
2399
|
-
.filter((e) => e != null)
|
|
2400
|
-
.map((entry) => {
|
|
2401
|
-
return se_InstanceTypeConfig(entry, context);
|
|
2402
|
-
});
|
|
2403
|
-
};
|
|
2404
|
-
const se_JobFlowInstancesConfig = (input, context) => {
|
|
2405
|
-
return (0, smithy_client_1.take)(input, {
|
|
2406
|
-
AdditionalMasterSecurityGroups: smithy_client_1._json,
|
|
2407
|
-
AdditionalSlaveSecurityGroups: smithy_client_1._json,
|
|
2408
|
-
Ec2KeyName: [],
|
|
2409
|
-
Ec2SubnetId: [],
|
|
2410
|
-
Ec2SubnetIds: smithy_client_1._json,
|
|
2411
|
-
EmrManagedMasterSecurityGroup: [],
|
|
2412
|
-
EmrManagedSlaveSecurityGroup: [],
|
|
2413
|
-
HadoopVersion: [],
|
|
2414
|
-
InstanceCount: [],
|
|
2415
|
-
InstanceFleets: (_) => se_InstanceFleetConfigList(_, context),
|
|
2416
|
-
InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
|
|
2417
|
-
KeepJobFlowAliveWhenNoSteps: [],
|
|
2418
|
-
MasterInstanceType: [],
|
|
2419
|
-
Placement: smithy_client_1._json,
|
|
2420
|
-
ServiceAccessSecurityGroup: [],
|
|
2421
|
-
SlaveInstanceType: [],
|
|
2422
|
-
TerminationProtected: [],
|
|
2423
|
-
});
|
|
2424
|
-
};
|
|
2425
|
-
const se_ListClustersInput = (input, context) => {
|
|
2426
|
-
return (0, smithy_client_1.take)(input, {
|
|
2427
|
-
ClusterStates: smithy_client_1._json,
|
|
2428
|
-
CreatedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
2429
|
-
CreatedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
2430
|
-
Marker: [],
|
|
2431
|
-
});
|
|
2432
|
-
};
|
|
2433
|
-
const se_ListNotebookExecutionsInput = (input, context) => {
|
|
2434
|
-
return (0, smithy_client_1.take)(input, {
|
|
2435
|
-
EditorId: [],
|
|
2436
|
-
ExecutionEngineId: [],
|
|
2437
|
-
From: (_) => Math.round(_.getTime() / 1000),
|
|
2438
|
-
Marker: [],
|
|
2439
|
-
Status: [],
|
|
2440
|
-
To: (_) => Math.round(_.getTime() / 1000),
|
|
2441
|
-
});
|
|
2442
|
-
};
|
|
2443
|
-
const se_ModifyInstanceGroupsInput = (input, context) => {
|
|
2444
|
-
return (0, smithy_client_1.take)(input, {
|
|
2445
|
-
ClusterId: [],
|
|
2446
|
-
InstanceGroups: (_) => se_InstanceGroupModifyConfigList(_, context),
|
|
2447
|
-
});
|
|
2448
|
-
};
|
|
2449
|
-
const se_PutAutoScalingPolicyInput = (input, context) => {
|
|
2450
|
-
return (0, smithy_client_1.take)(input, {
|
|
2451
|
-
AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
|
|
2452
|
-
ClusterId: [],
|
|
2453
|
-
InstanceGroupId: [],
|
|
2454
|
-
});
|
|
2455
|
-
};
|
|
2456
|
-
const se_PutBlockPublicAccessConfigurationInput = (input, context) => {
|
|
2457
|
-
return (0, smithy_client_1.take)(input, {
|
|
2458
|
-
BlockPublicAccessConfiguration: (_) => se_BlockPublicAccessConfiguration(_, context),
|
|
2459
|
-
});
|
|
2460
|
-
};
|
|
2461
|
-
const se_RunJobFlowInput = (input, context) => {
|
|
2462
|
-
return (0, smithy_client_1.take)(input, {
|
|
2463
|
-
AdditionalInfo: [],
|
|
2464
|
-
AmiVersion: [],
|
|
2465
|
-
Applications: smithy_client_1._json,
|
|
2466
|
-
AutoScalingRole: [],
|
|
2467
|
-
AutoTerminationPolicy: smithy_client_1._json,
|
|
2468
|
-
BootstrapActions: smithy_client_1._json,
|
|
2469
|
-
Configurations: (_) => se_ConfigurationList(_, context),
|
|
2470
|
-
CustomAmiId: [],
|
|
2471
|
-
EbsRootVolumeIops: [],
|
|
2472
|
-
EbsRootVolumeSize: [],
|
|
2473
|
-
EbsRootVolumeThroughput: [],
|
|
2474
|
-
Instances: (_) => se_JobFlowInstancesConfig(_, context),
|
|
2475
|
-
JobFlowRole: [],
|
|
2476
|
-
KerberosAttributes: smithy_client_1._json,
|
|
2477
|
-
LogEncryptionKmsKeyId: [],
|
|
2478
|
-
LogUri: [],
|
|
2479
|
-
ManagedScalingPolicy: smithy_client_1._json,
|
|
2480
|
-
Name: [],
|
|
2481
|
-
NewSupportedProducts: smithy_client_1._json,
|
|
2482
|
-
OSReleaseLabel: [],
|
|
2483
|
-
PlacementGroupConfigs: smithy_client_1._json,
|
|
2484
|
-
ReleaseLabel: [],
|
|
2485
|
-
RepoUpgradeOnBoot: [],
|
|
2486
|
-
ScaleDownBehavior: [],
|
|
2487
|
-
SecurityConfiguration: [],
|
|
2488
|
-
ServiceRole: [],
|
|
2489
|
-
StepConcurrencyLevel: [],
|
|
2490
|
-
Steps: smithy_client_1._json,
|
|
2491
|
-
SupportedProducts: smithy_client_1._json,
|
|
2492
|
-
Tags: smithy_client_1._json,
|
|
2493
|
-
VisibleToAllUsers: [],
|
|
2494
|
-
});
|
|
2495
|
-
};
|
|
2496
|
-
const se_ScalingRule = (input, context) => {
|
|
2497
|
-
return (0, smithy_client_1.take)(input, {
|
|
2498
|
-
Action: smithy_client_1._json,
|
|
2499
|
-
Description: [],
|
|
2500
|
-
Name: [],
|
|
2501
|
-
Trigger: (_) => se_ScalingTrigger(_, context),
|
|
2502
|
-
});
|
|
2503
|
-
};
|
|
2504
|
-
const se_ScalingRuleList = (input, context) => {
|
|
2505
|
-
return input
|
|
2506
|
-
.filter((e) => e != null)
|
|
2507
|
-
.map((entry) => {
|
|
2508
|
-
return se_ScalingRule(entry, context);
|
|
2509
|
-
});
|
|
2510
|
-
};
|
|
2511
|
-
const se_ScalingTrigger = (input, context) => {
|
|
2512
|
-
return (0, smithy_client_1.take)(input, {
|
|
2513
|
-
CloudWatchAlarmDefinition: (_) => se_CloudWatchAlarmDefinition(_, context),
|
|
2514
|
-
});
|
|
2515
|
-
};
|
|
2516
|
-
const de_AutoScalingPolicyDescription = (output, context) => {
|
|
2517
|
-
return (0, smithy_client_1.take)(output, {
|
|
2518
|
-
Constraints: smithy_client_1._json,
|
|
2519
|
-
Rules: (_) => de_ScalingRuleList(_, context),
|
|
2520
|
-
Status: smithy_client_1._json,
|
|
2521
|
-
});
|
|
2522
|
-
};
|
|
2523
|
-
const de_BlockPublicAccessConfiguration = (output, context) => {
|
|
2524
|
-
return (0, smithy_client_1.take)(output, {
|
|
2525
|
-
BlockPublicSecurityGroupRules: smithy_client_1.expectBoolean,
|
|
2526
|
-
Classification: smithy_client_1.expectString,
|
|
2527
|
-
Configurations: (_) => de_ConfigurationList(_, context),
|
|
2528
|
-
PermittedPublicSecurityGroupRuleRanges: smithy_client_1._json,
|
|
2529
|
-
Properties: smithy_client_1._json,
|
|
2530
|
-
});
|
|
2531
|
-
};
|
|
2532
|
-
const de_BlockPublicAccessConfigurationMetadata = (output, context) => {
|
|
2533
|
-
return (0, smithy_client_1.take)(output, {
|
|
2534
|
-
CreatedByArn: smithy_client_1.expectString,
|
|
2535
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2536
|
-
});
|
|
2537
|
-
};
|
|
2538
|
-
const de_CloudWatchAlarmDefinition = (output, context) => {
|
|
2539
|
-
return (0, smithy_client_1.take)(output, {
|
|
2540
|
-
ComparisonOperator: smithy_client_1.expectString,
|
|
2541
|
-
Dimensions: smithy_client_1._json,
|
|
2542
|
-
EvaluationPeriods: smithy_client_1.expectInt32,
|
|
2543
|
-
MetricName: smithy_client_1.expectString,
|
|
2544
|
-
Namespace: smithy_client_1.expectString,
|
|
2545
|
-
Period: smithy_client_1.expectInt32,
|
|
2546
|
-
Statistic: smithy_client_1.expectString,
|
|
2547
|
-
Threshold: smithy_client_1.limitedParseDouble,
|
|
2548
|
-
Unit: smithy_client_1.expectString,
|
|
2549
|
-
});
|
|
2550
|
-
};
|
|
2551
|
-
const de_Cluster = (output, context) => {
|
|
2552
|
-
return (0, smithy_client_1.take)(output, {
|
|
2553
|
-
Applications: smithy_client_1._json,
|
|
2554
|
-
AutoScalingRole: smithy_client_1.expectString,
|
|
2555
|
-
AutoTerminate: smithy_client_1.expectBoolean,
|
|
2556
|
-
ClusterArn: smithy_client_1.expectString,
|
|
2557
|
-
Configurations: (_) => de_ConfigurationList(_, context),
|
|
2558
|
-
CustomAmiId: smithy_client_1.expectString,
|
|
2559
|
-
EbsRootVolumeIops: smithy_client_1.expectInt32,
|
|
2560
|
-
EbsRootVolumeSize: smithy_client_1.expectInt32,
|
|
2561
|
-
EbsRootVolumeThroughput: smithy_client_1.expectInt32,
|
|
2562
|
-
Ec2InstanceAttributes: smithy_client_1._json,
|
|
2563
|
-
Id: smithy_client_1.expectString,
|
|
2564
|
-
InstanceCollectionType: smithy_client_1.expectString,
|
|
2565
|
-
KerberosAttributes: smithy_client_1._json,
|
|
2566
|
-
LogEncryptionKmsKeyId: smithy_client_1.expectString,
|
|
2567
|
-
LogUri: smithy_client_1.expectString,
|
|
2568
|
-
MasterPublicDnsName: smithy_client_1.expectString,
|
|
2569
|
-
Name: smithy_client_1.expectString,
|
|
2570
|
-
NormalizedInstanceHours: smithy_client_1.expectInt32,
|
|
2571
|
-
OSReleaseLabel: smithy_client_1.expectString,
|
|
2572
|
-
OutpostArn: smithy_client_1.expectString,
|
|
2573
|
-
PlacementGroups: smithy_client_1._json,
|
|
2574
|
-
ReleaseLabel: smithy_client_1.expectString,
|
|
2575
|
-
RepoUpgradeOnBoot: smithy_client_1.expectString,
|
|
2576
|
-
RequestedAmiVersion: smithy_client_1.expectString,
|
|
2577
|
-
RunningAmiVersion: smithy_client_1.expectString,
|
|
2578
|
-
ScaleDownBehavior: smithy_client_1.expectString,
|
|
2579
|
-
SecurityConfiguration: smithy_client_1.expectString,
|
|
2580
|
-
ServiceRole: smithy_client_1.expectString,
|
|
2581
|
-
Status: (_) => de_ClusterStatus(_, context),
|
|
2582
|
-
StepConcurrencyLevel: smithy_client_1.expectInt32,
|
|
2583
|
-
Tags: smithy_client_1._json,
|
|
2584
|
-
TerminationProtected: smithy_client_1.expectBoolean,
|
|
2585
|
-
VisibleToAllUsers: smithy_client_1.expectBoolean,
|
|
2586
|
-
});
|
|
2587
|
-
};
|
|
2588
|
-
const de_ClusterStatus = (output, context) => {
|
|
2589
|
-
return (0, smithy_client_1.take)(output, {
|
|
2590
|
-
ErrorDetails: smithy_client_1._json,
|
|
2591
|
-
State: smithy_client_1.expectString,
|
|
2592
|
-
StateChangeReason: smithy_client_1._json,
|
|
2593
|
-
Timeline: (_) => de_ClusterTimeline(_, context),
|
|
2594
|
-
});
|
|
2595
|
-
};
|
|
2596
|
-
const de_ClusterSummary = (output, context) => {
|
|
2597
|
-
return (0, smithy_client_1.take)(output, {
|
|
2598
|
-
ClusterArn: smithy_client_1.expectString,
|
|
2599
|
-
Id: smithy_client_1.expectString,
|
|
2600
|
-
Name: smithy_client_1.expectString,
|
|
2601
|
-
NormalizedInstanceHours: smithy_client_1.expectInt32,
|
|
2602
|
-
OutpostArn: smithy_client_1.expectString,
|
|
2603
|
-
Status: (_) => de_ClusterStatus(_, context),
|
|
2604
|
-
});
|
|
2605
|
-
};
|
|
2606
|
-
const de_ClusterSummaryList = (output, context) => {
|
|
2607
|
-
const retVal = (output || [])
|
|
2608
|
-
.filter((e) => e != null)
|
|
2609
|
-
.map((entry) => {
|
|
2610
|
-
return de_ClusterSummary(entry, context);
|
|
2611
|
-
});
|
|
2612
|
-
return retVal;
|
|
2613
|
-
};
|
|
2614
|
-
const de_ClusterTimeline = (output, context) => {
|
|
2615
|
-
return (0, smithy_client_1.take)(output, {
|
|
2616
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2617
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2618
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2619
|
-
});
|
|
2620
|
-
};
|
|
2621
|
-
const de_Configuration = (output, context) => {
|
|
2622
|
-
return (0, smithy_client_1.take)(output, {
|
|
2623
|
-
Classification: smithy_client_1.expectString,
|
|
2624
|
-
Configurations: (_) => de_ConfigurationList(_, context),
|
|
2625
|
-
Properties: smithy_client_1._json,
|
|
2626
|
-
});
|
|
2627
|
-
};
|
|
2628
|
-
const de_ConfigurationList = (output, context) => {
|
|
2629
|
-
const retVal = (output || [])
|
|
2630
|
-
.filter((e) => e != null)
|
|
2631
|
-
.map((entry) => {
|
|
2632
|
-
return de_Configuration(entry, context);
|
|
2633
|
-
});
|
|
2634
|
-
return retVal;
|
|
2635
|
-
};
|
|
2636
|
-
const de_CreateSecurityConfigurationOutput = (output, context) => {
|
|
2637
|
-
return (0, smithy_client_1.take)(output, {
|
|
2638
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2639
|
-
Name: smithy_client_1.expectString,
|
|
2640
|
-
});
|
|
2641
|
-
};
|
|
2642
|
-
const de_DescribeClusterOutput = (output, context) => {
|
|
2643
|
-
return (0, smithy_client_1.take)(output, {
|
|
2644
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
2645
|
-
});
|
|
2646
|
-
};
|
|
2647
|
-
const de_DescribeJobFlowsOutput = (output, context) => {
|
|
2648
|
-
return (0, smithy_client_1.take)(output, {
|
|
2649
|
-
JobFlows: (_) => de_JobFlowDetailList(_, context),
|
|
2650
|
-
});
|
|
2651
|
-
};
|
|
2652
|
-
const de_DescribeNotebookExecutionOutput = (output, context) => {
|
|
2653
|
-
return (0, smithy_client_1.take)(output, {
|
|
2654
|
-
NotebookExecution: (_) => de_NotebookExecution(_, context),
|
|
2655
|
-
});
|
|
2656
|
-
};
|
|
2657
|
-
const de_DescribeSecurityConfigurationOutput = (output, context) => {
|
|
2658
|
-
return (0, smithy_client_1.take)(output, {
|
|
2659
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2660
|
-
Name: smithy_client_1.expectString,
|
|
2661
|
-
SecurityConfiguration: smithy_client_1.expectString,
|
|
2662
|
-
});
|
|
2663
|
-
};
|
|
2664
|
-
const de_DescribeStepOutput = (output, context) => {
|
|
2665
|
-
return (0, smithy_client_1.take)(output, {
|
|
2666
|
-
Step: (_) => de_Step(_, context),
|
|
2667
|
-
});
|
|
2668
|
-
};
|
|
2669
|
-
const de_DescribeStudioOutput = (output, context) => {
|
|
2670
|
-
return (0, smithy_client_1.take)(output, {
|
|
2671
|
-
Studio: (_) => de_Studio(_, context),
|
|
2672
|
-
});
|
|
2673
|
-
};
|
|
2674
|
-
const de_GetBlockPublicAccessConfigurationOutput = (output, context) => {
|
|
2675
|
-
return (0, smithy_client_1.take)(output, {
|
|
2676
|
-
BlockPublicAccessConfiguration: (_) => de_BlockPublicAccessConfiguration(_, context),
|
|
2677
|
-
BlockPublicAccessConfigurationMetadata: (_) => de_BlockPublicAccessConfigurationMetadata(_, context),
|
|
2678
|
-
});
|
|
2679
|
-
};
|
|
2680
|
-
const de_GetClusterSessionCredentialsOutput = (output, context) => {
|
|
2681
|
-
return (0, smithy_client_1.take)(output, {
|
|
2682
|
-
Credentials: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2683
|
-
ExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2684
|
-
});
|
|
2685
|
-
};
|
|
2686
|
-
const de_GetStudioSessionMappingOutput = (output, context) => {
|
|
2687
|
-
return (0, smithy_client_1.take)(output, {
|
|
2688
|
-
SessionMapping: (_) => de_SessionMappingDetail(_, context),
|
|
2689
|
-
});
|
|
2690
|
-
};
|
|
2691
|
-
const de_Instance = (output, context) => {
|
|
2692
|
-
return (0, smithy_client_1.take)(output, {
|
|
2693
|
-
EbsVolumes: smithy_client_1._json,
|
|
2694
|
-
Ec2InstanceId: smithy_client_1.expectString,
|
|
2695
|
-
Id: smithy_client_1.expectString,
|
|
2696
|
-
InstanceFleetId: smithy_client_1.expectString,
|
|
2697
|
-
InstanceGroupId: smithy_client_1.expectString,
|
|
2698
|
-
InstanceType: smithy_client_1.expectString,
|
|
2699
|
-
Market: smithy_client_1.expectString,
|
|
2700
|
-
PrivateDnsName: smithy_client_1.expectString,
|
|
2701
|
-
PrivateIpAddress: smithy_client_1.expectString,
|
|
2702
|
-
PublicDnsName: smithy_client_1.expectString,
|
|
2703
|
-
PublicIpAddress: smithy_client_1.expectString,
|
|
2704
|
-
Status: (_) => de_InstanceStatus(_, context),
|
|
2705
|
-
});
|
|
2706
|
-
};
|
|
2707
|
-
const de_InstanceFleet = (output, context) => {
|
|
2708
|
-
return (0, smithy_client_1.take)(output, {
|
|
2709
|
-
Id: smithy_client_1.expectString,
|
|
2710
|
-
InstanceFleetType: smithy_client_1.expectString,
|
|
2711
|
-
InstanceTypeSpecifications: (_) => de_InstanceTypeSpecificationList(_, context),
|
|
2712
|
-
LaunchSpecifications: smithy_client_1._json,
|
|
2713
|
-
Name: smithy_client_1.expectString,
|
|
2714
|
-
ProvisionedOnDemandCapacity: smithy_client_1.expectInt32,
|
|
2715
|
-
ProvisionedSpotCapacity: smithy_client_1.expectInt32,
|
|
2716
|
-
ResizeSpecifications: smithy_client_1._json,
|
|
2717
|
-
Status: (_) => de_InstanceFleetStatus(_, context),
|
|
2718
|
-
TargetOnDemandCapacity: smithy_client_1.expectInt32,
|
|
2719
|
-
TargetSpotCapacity: smithy_client_1.expectInt32,
|
|
2720
|
-
});
|
|
2721
|
-
};
|
|
2722
|
-
const de_InstanceFleetList = (output, context) => {
|
|
2723
|
-
const retVal = (output || [])
|
|
2724
|
-
.filter((e) => e != null)
|
|
2725
|
-
.map((entry) => {
|
|
2726
|
-
return de_InstanceFleet(entry, context);
|
|
2727
|
-
});
|
|
2728
|
-
return retVal;
|
|
2729
|
-
};
|
|
2730
|
-
const de_InstanceFleetStatus = (output, context) => {
|
|
2731
|
-
return (0, smithy_client_1.take)(output, {
|
|
2732
|
-
State: smithy_client_1.expectString,
|
|
2733
|
-
StateChangeReason: smithy_client_1._json,
|
|
2734
|
-
Timeline: (_) => de_InstanceFleetTimeline(_, context),
|
|
2735
|
-
});
|
|
2736
|
-
};
|
|
2737
|
-
const de_InstanceFleetTimeline = (output, context) => {
|
|
2738
|
-
return (0, smithy_client_1.take)(output, {
|
|
2739
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2740
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2741
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2742
|
-
});
|
|
2743
|
-
};
|
|
2744
|
-
const de_InstanceGroup = (output, context) => {
|
|
2745
|
-
return (0, smithy_client_1.take)(output, {
|
|
2746
|
-
AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
|
|
2747
|
-
BidPrice: smithy_client_1.expectString,
|
|
2748
|
-
Configurations: (_) => de_ConfigurationList(_, context),
|
|
2749
|
-
ConfigurationsVersion: smithy_client_1.expectLong,
|
|
2750
|
-
CustomAmiId: smithy_client_1.expectString,
|
|
2751
|
-
EbsBlockDevices: smithy_client_1._json,
|
|
2752
|
-
EbsOptimized: smithy_client_1.expectBoolean,
|
|
2753
|
-
Id: smithy_client_1.expectString,
|
|
2754
|
-
InstanceGroupType: smithy_client_1.expectString,
|
|
2755
|
-
InstanceType: smithy_client_1.expectString,
|
|
2756
|
-
LastSuccessfullyAppliedConfigurations: (_) => de_ConfigurationList(_, context),
|
|
2757
|
-
LastSuccessfullyAppliedConfigurationsVersion: smithy_client_1.expectLong,
|
|
2758
|
-
Market: smithy_client_1.expectString,
|
|
2759
|
-
Name: smithy_client_1.expectString,
|
|
2760
|
-
RequestedInstanceCount: smithy_client_1.expectInt32,
|
|
2761
|
-
RunningInstanceCount: smithy_client_1.expectInt32,
|
|
2762
|
-
ShrinkPolicy: smithy_client_1._json,
|
|
2763
|
-
Status: (_) => de_InstanceGroupStatus(_, context),
|
|
2764
|
-
});
|
|
2765
|
-
};
|
|
2766
|
-
const de_InstanceGroupDetail = (output, context) => {
|
|
2767
|
-
return (0, smithy_client_1.take)(output, {
|
|
2768
|
-
BidPrice: smithy_client_1.expectString,
|
|
2769
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2770
|
-
CustomAmiId: smithy_client_1.expectString,
|
|
2771
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2772
|
-
InstanceGroupId: smithy_client_1.expectString,
|
|
2773
|
-
InstanceRequestCount: smithy_client_1.expectInt32,
|
|
2774
|
-
InstanceRole: smithy_client_1.expectString,
|
|
2775
|
-
InstanceRunningCount: smithy_client_1.expectInt32,
|
|
2776
|
-
InstanceType: smithy_client_1.expectString,
|
|
2777
|
-
LastStateChangeReason: smithy_client_1.expectString,
|
|
2778
|
-
Market: smithy_client_1.expectString,
|
|
2779
|
-
Name: smithy_client_1.expectString,
|
|
2780
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2781
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2782
|
-
State: smithy_client_1.expectString,
|
|
2783
|
-
});
|
|
2784
|
-
};
|
|
2785
|
-
const de_InstanceGroupDetailList = (output, context) => {
|
|
2786
|
-
const retVal = (output || [])
|
|
2787
|
-
.filter((e) => e != null)
|
|
2788
|
-
.map((entry) => {
|
|
2789
|
-
return de_InstanceGroupDetail(entry, context);
|
|
2790
|
-
});
|
|
2791
|
-
return retVal;
|
|
2792
|
-
};
|
|
2793
|
-
const de_InstanceGroupList = (output, context) => {
|
|
2794
|
-
const retVal = (output || [])
|
|
2795
|
-
.filter((e) => e != null)
|
|
2796
|
-
.map((entry) => {
|
|
2797
|
-
return de_InstanceGroup(entry, context);
|
|
2798
|
-
});
|
|
2799
|
-
return retVal;
|
|
2800
|
-
};
|
|
2801
|
-
const de_InstanceGroupStatus = (output, context) => {
|
|
2802
|
-
return (0, smithy_client_1.take)(output, {
|
|
2803
|
-
State: smithy_client_1.expectString,
|
|
2804
|
-
StateChangeReason: smithy_client_1._json,
|
|
2805
|
-
Timeline: (_) => de_InstanceGroupTimeline(_, context),
|
|
2806
|
-
});
|
|
2807
|
-
};
|
|
2808
|
-
const de_InstanceGroupTimeline = (output, context) => {
|
|
2809
|
-
return (0, smithy_client_1.take)(output, {
|
|
2810
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2811
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2812
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2813
|
-
});
|
|
2814
|
-
};
|
|
2815
|
-
const de_InstanceList = (output, context) => {
|
|
2816
|
-
const retVal = (output || [])
|
|
2817
|
-
.filter((e) => e != null)
|
|
2818
|
-
.map((entry) => {
|
|
2819
|
-
return de_Instance(entry, context);
|
|
2820
|
-
});
|
|
2821
|
-
return retVal;
|
|
2822
|
-
};
|
|
2823
|
-
const de_InstanceStatus = (output, context) => {
|
|
2824
|
-
return (0, smithy_client_1.take)(output, {
|
|
2825
|
-
State: smithy_client_1.expectString,
|
|
2826
|
-
StateChangeReason: smithy_client_1._json,
|
|
2827
|
-
Timeline: (_) => de_InstanceTimeline(_, context),
|
|
2828
|
-
});
|
|
2829
|
-
};
|
|
2830
|
-
const de_InstanceTimeline = (output, context) => {
|
|
2831
|
-
return (0, smithy_client_1.take)(output, {
|
|
2832
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2833
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2834
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2835
|
-
});
|
|
2836
|
-
};
|
|
2837
|
-
const de_InstanceTypeSpecification = (output, context) => {
|
|
2838
|
-
return (0, smithy_client_1.take)(output, {
|
|
2839
|
-
BidPrice: smithy_client_1.expectString,
|
|
2840
|
-
BidPriceAsPercentageOfOnDemandPrice: smithy_client_1.limitedParseDouble,
|
|
2841
|
-
Configurations: (_) => de_ConfigurationList(_, context),
|
|
2842
|
-
CustomAmiId: smithy_client_1.expectString,
|
|
2843
|
-
EbsBlockDevices: smithy_client_1._json,
|
|
2844
|
-
EbsOptimized: smithy_client_1.expectBoolean,
|
|
2845
|
-
InstanceType: smithy_client_1.expectString,
|
|
2846
|
-
WeightedCapacity: smithy_client_1.expectInt32,
|
|
2847
|
-
});
|
|
2848
|
-
};
|
|
2849
|
-
const de_InstanceTypeSpecificationList = (output, context) => {
|
|
2850
|
-
const retVal = (output || [])
|
|
2851
|
-
.filter((e) => e != null)
|
|
2852
|
-
.map((entry) => {
|
|
2853
|
-
return de_InstanceTypeSpecification(entry, context);
|
|
2854
|
-
});
|
|
2855
|
-
return retVal;
|
|
2856
|
-
};
|
|
2857
|
-
const de_JobFlowDetail = (output, context) => {
|
|
2858
|
-
return (0, smithy_client_1.take)(output, {
|
|
2859
|
-
AmiVersion: smithy_client_1.expectString,
|
|
2860
|
-
AutoScalingRole: smithy_client_1.expectString,
|
|
2861
|
-
BootstrapActions: smithy_client_1._json,
|
|
2862
|
-
ExecutionStatusDetail: (_) => de_JobFlowExecutionStatusDetail(_, context),
|
|
2863
|
-
Instances: (_) => de_JobFlowInstancesDetail(_, context),
|
|
2864
|
-
JobFlowId: smithy_client_1.expectString,
|
|
2865
|
-
JobFlowRole: smithy_client_1.expectString,
|
|
2866
|
-
LogEncryptionKmsKeyId: smithy_client_1.expectString,
|
|
2867
|
-
LogUri: smithy_client_1.expectString,
|
|
2868
|
-
Name: smithy_client_1.expectString,
|
|
2869
|
-
ScaleDownBehavior: smithy_client_1.expectString,
|
|
2870
|
-
ServiceRole: smithy_client_1.expectString,
|
|
2871
|
-
Steps: (_) => de_StepDetailList(_, context),
|
|
2872
|
-
SupportedProducts: smithy_client_1._json,
|
|
2873
|
-
VisibleToAllUsers: smithy_client_1.expectBoolean,
|
|
2874
|
-
});
|
|
2875
|
-
};
|
|
2876
|
-
const de_JobFlowDetailList = (output, context) => {
|
|
2877
|
-
const retVal = (output || [])
|
|
2878
|
-
.filter((e) => e != null)
|
|
2879
|
-
.map((entry) => {
|
|
2880
|
-
return de_JobFlowDetail(entry, context);
|
|
2881
|
-
});
|
|
2882
|
-
return retVal;
|
|
2883
|
-
};
|
|
2884
|
-
const de_JobFlowExecutionStatusDetail = (output, context) => {
|
|
2885
|
-
return (0, smithy_client_1.take)(output, {
|
|
2886
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2887
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2888
|
-
LastStateChangeReason: smithy_client_1.expectString,
|
|
2889
|
-
ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2890
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2891
|
-
State: smithy_client_1.expectString,
|
|
2892
|
-
});
|
|
2893
|
-
};
|
|
2894
|
-
const de_JobFlowInstancesDetail = (output, context) => {
|
|
2895
|
-
return (0, smithy_client_1.take)(output, {
|
|
2896
|
-
Ec2KeyName: smithy_client_1.expectString,
|
|
2897
|
-
Ec2SubnetId: smithy_client_1.expectString,
|
|
2898
|
-
HadoopVersion: smithy_client_1.expectString,
|
|
2899
|
-
InstanceCount: smithy_client_1.expectInt32,
|
|
2900
|
-
InstanceGroups: (_) => de_InstanceGroupDetailList(_, context),
|
|
2901
|
-
KeepJobFlowAliveWhenNoSteps: smithy_client_1.expectBoolean,
|
|
2902
|
-
MasterInstanceId: smithy_client_1.expectString,
|
|
2903
|
-
MasterInstanceType: smithy_client_1.expectString,
|
|
2904
|
-
MasterPublicDnsName: smithy_client_1.expectString,
|
|
2905
|
-
NormalizedInstanceHours: smithy_client_1.expectInt32,
|
|
2906
|
-
Placement: smithy_client_1._json,
|
|
2907
|
-
SlaveInstanceType: smithy_client_1.expectString,
|
|
2908
|
-
TerminationProtected: smithy_client_1.expectBoolean,
|
|
2909
|
-
});
|
|
2910
|
-
};
|
|
2911
|
-
const de_ListClustersOutput = (output, context) => {
|
|
2912
|
-
return (0, smithy_client_1.take)(output, {
|
|
2913
|
-
Clusters: (_) => de_ClusterSummaryList(_, context),
|
|
2914
|
-
Marker: smithy_client_1.expectString,
|
|
2915
|
-
});
|
|
2916
|
-
};
|
|
2917
|
-
const de_ListInstanceFleetsOutput = (output, context) => {
|
|
2918
|
-
return (0, smithy_client_1.take)(output, {
|
|
2919
|
-
InstanceFleets: (_) => de_InstanceFleetList(_, context),
|
|
2920
|
-
Marker: smithy_client_1.expectString,
|
|
2921
|
-
});
|
|
2922
|
-
};
|
|
2923
|
-
const de_ListInstanceGroupsOutput = (output, context) => {
|
|
2924
|
-
return (0, smithy_client_1.take)(output, {
|
|
2925
|
-
InstanceGroups: (_) => de_InstanceGroupList(_, context),
|
|
2926
|
-
Marker: smithy_client_1.expectString,
|
|
2927
|
-
});
|
|
2928
|
-
};
|
|
2929
|
-
const de_ListInstancesOutput = (output, context) => {
|
|
2930
|
-
return (0, smithy_client_1.take)(output, {
|
|
2931
|
-
Instances: (_) => de_InstanceList(_, context),
|
|
2932
|
-
Marker: smithy_client_1.expectString,
|
|
2933
|
-
});
|
|
2934
|
-
};
|
|
2935
|
-
const de_ListNotebookExecutionsOutput = (output, context) => {
|
|
2936
|
-
return (0, smithy_client_1.take)(output, {
|
|
2937
|
-
Marker: smithy_client_1.expectString,
|
|
2938
|
-
NotebookExecutions: (_) => de_NotebookExecutionSummaryList(_, context),
|
|
2939
|
-
});
|
|
2940
|
-
};
|
|
2941
|
-
const de_ListSecurityConfigurationsOutput = (output, context) => {
|
|
2942
|
-
return (0, smithy_client_1.take)(output, {
|
|
2943
|
-
Marker: smithy_client_1.expectString,
|
|
2944
|
-
SecurityConfigurations: (_) => de_SecurityConfigurationList(_, context),
|
|
2945
|
-
});
|
|
2946
|
-
};
|
|
2947
|
-
const de_ListStepsOutput = (output, context) => {
|
|
2948
|
-
return (0, smithy_client_1.take)(output, {
|
|
2949
|
-
Marker: smithy_client_1.expectString,
|
|
2950
|
-
Steps: (_) => de_StepSummaryList(_, context),
|
|
2951
|
-
});
|
|
2952
|
-
};
|
|
2953
|
-
const de_ListStudioSessionMappingsOutput = (output, context) => {
|
|
2954
|
-
return (0, smithy_client_1.take)(output, {
|
|
2955
|
-
Marker: smithy_client_1.expectString,
|
|
2956
|
-
SessionMappings: (_) => de_SessionMappingSummaryList(_, context),
|
|
2957
|
-
});
|
|
2958
|
-
};
|
|
2959
|
-
const de_ListStudiosOutput = (output, context) => {
|
|
2960
|
-
return (0, smithy_client_1.take)(output, {
|
|
2961
|
-
Marker: smithy_client_1.expectString,
|
|
2962
|
-
Studios: (_) => de_StudioSummaryList(_, context),
|
|
2963
|
-
});
|
|
2964
|
-
};
|
|
2965
|
-
const de_ListSupportedInstanceTypesOutput = (output, context) => {
|
|
2966
|
-
return (0, smithy_client_1.take)(output, {
|
|
2967
|
-
Marker: smithy_client_1.expectString,
|
|
2968
|
-
SupportedInstanceTypes: (_) => de_SupportedInstanceTypesList(_, context),
|
|
2969
|
-
});
|
|
2970
|
-
};
|
|
2971
|
-
const de_NotebookExecution = (output, context) => {
|
|
2972
|
-
return (0, smithy_client_1.take)(output, {
|
|
2973
|
-
Arn: smithy_client_1.expectString,
|
|
2974
|
-
EditorId: smithy_client_1.expectString,
|
|
2975
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2976
|
-
EnvironmentVariables: smithy_client_1._json,
|
|
2977
|
-
ExecutionEngine: smithy_client_1._json,
|
|
2978
|
-
LastStateChangeReason: smithy_client_1.expectString,
|
|
2979
|
-
NotebookExecutionId: smithy_client_1.expectString,
|
|
2980
|
-
NotebookExecutionName: smithy_client_1.expectString,
|
|
2981
|
-
NotebookInstanceSecurityGroupId: smithy_client_1.expectString,
|
|
2982
|
-
NotebookParams: smithy_client_1.expectString,
|
|
2983
|
-
NotebookS3Location: smithy_client_1._json,
|
|
2984
|
-
OutputNotebookFormat: smithy_client_1.expectString,
|
|
2985
|
-
OutputNotebookS3Location: smithy_client_1._json,
|
|
2986
|
-
OutputNotebookURI: smithy_client_1.expectString,
|
|
2987
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2988
|
-
Status: smithy_client_1.expectString,
|
|
2989
|
-
Tags: smithy_client_1._json,
|
|
2990
|
-
});
|
|
2991
|
-
};
|
|
2992
|
-
const de_NotebookExecutionSummary = (output, context) => {
|
|
2993
|
-
return (0, smithy_client_1.take)(output, {
|
|
2994
|
-
EditorId: smithy_client_1.expectString,
|
|
2995
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2996
|
-
ExecutionEngineId: smithy_client_1.expectString,
|
|
2997
|
-
NotebookExecutionId: smithy_client_1.expectString,
|
|
2998
|
-
NotebookExecutionName: smithy_client_1.expectString,
|
|
2999
|
-
NotebookS3Location: smithy_client_1._json,
|
|
3000
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3001
|
-
Status: smithy_client_1.expectString,
|
|
3002
|
-
});
|
|
3003
|
-
};
|
|
3004
|
-
const de_NotebookExecutionSummaryList = (output, context) => {
|
|
3005
|
-
const retVal = (output || [])
|
|
3006
|
-
.filter((e) => e != null)
|
|
3007
|
-
.map((entry) => {
|
|
3008
|
-
return de_NotebookExecutionSummary(entry, context);
|
|
3009
|
-
});
|
|
3010
|
-
return retVal;
|
|
3011
|
-
};
|
|
3012
|
-
const de_PutAutoScalingPolicyOutput = (output, context) => {
|
|
3013
|
-
return (0, smithy_client_1.take)(output, {
|
|
3014
|
-
AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
|
|
3015
|
-
ClusterArn: smithy_client_1.expectString,
|
|
3016
|
-
ClusterId: smithy_client_1.expectString,
|
|
3017
|
-
InstanceGroupId: smithy_client_1.expectString,
|
|
3018
|
-
});
|
|
3019
|
-
};
|
|
3020
|
-
const de_ScalingRule = (output, context) => {
|
|
3021
|
-
return (0, smithy_client_1.take)(output, {
|
|
3022
|
-
Action: smithy_client_1._json,
|
|
3023
|
-
Description: smithy_client_1.expectString,
|
|
3024
|
-
Name: smithy_client_1.expectString,
|
|
3025
|
-
Trigger: (_) => de_ScalingTrigger(_, context),
|
|
3026
|
-
});
|
|
3027
|
-
};
|
|
3028
|
-
const de_ScalingRuleList = (output, context) => {
|
|
3029
|
-
const retVal = (output || [])
|
|
3030
|
-
.filter((e) => e != null)
|
|
3031
|
-
.map((entry) => {
|
|
3032
|
-
return de_ScalingRule(entry, context);
|
|
3033
|
-
});
|
|
3034
|
-
return retVal;
|
|
3035
|
-
};
|
|
3036
|
-
const de_ScalingTrigger = (output, context) => {
|
|
3037
|
-
return (0, smithy_client_1.take)(output, {
|
|
3038
|
-
CloudWatchAlarmDefinition: (_) => de_CloudWatchAlarmDefinition(_, context),
|
|
3039
|
-
});
|
|
3040
|
-
};
|
|
3041
|
-
const de_SecurityConfigurationList = (output, context) => {
|
|
3042
|
-
const retVal = (output || [])
|
|
3043
|
-
.filter((e) => e != null)
|
|
3044
|
-
.map((entry) => {
|
|
3045
|
-
return de_SecurityConfigurationSummary(entry, context);
|
|
3046
|
-
});
|
|
3047
|
-
return retVal;
|
|
3048
|
-
};
|
|
3049
|
-
const de_SecurityConfigurationSummary = (output, context) => {
|
|
3050
|
-
return (0, smithy_client_1.take)(output, {
|
|
3051
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3052
|
-
Name: smithy_client_1.expectString,
|
|
3053
|
-
});
|
|
3054
|
-
};
|
|
3055
|
-
const de_SessionMappingDetail = (output, context) => {
|
|
3056
|
-
return (0, smithy_client_1.take)(output, {
|
|
3057
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3058
|
-
IdentityId: smithy_client_1.expectString,
|
|
3059
|
-
IdentityName: smithy_client_1.expectString,
|
|
3060
|
-
IdentityType: smithy_client_1.expectString,
|
|
3061
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3062
|
-
SessionPolicyArn: smithy_client_1.expectString,
|
|
3063
|
-
StudioId: smithy_client_1.expectString,
|
|
3064
|
-
});
|
|
3065
|
-
};
|
|
3066
|
-
const de_SessionMappingSummary = (output, context) => {
|
|
3067
|
-
return (0, smithy_client_1.take)(output, {
|
|
3068
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3069
|
-
IdentityId: smithy_client_1.expectString,
|
|
3070
|
-
IdentityName: smithy_client_1.expectString,
|
|
3071
|
-
IdentityType: smithy_client_1.expectString,
|
|
3072
|
-
SessionPolicyArn: smithy_client_1.expectString,
|
|
3073
|
-
StudioId: smithy_client_1.expectString,
|
|
3074
|
-
});
|
|
3075
|
-
};
|
|
3076
|
-
const de_SessionMappingSummaryList = (output, context) => {
|
|
3077
|
-
const retVal = (output || [])
|
|
3078
|
-
.filter((e) => e != null)
|
|
3079
|
-
.map((entry) => {
|
|
3080
|
-
return de_SessionMappingSummary(entry, context);
|
|
3081
|
-
});
|
|
3082
|
-
return retVal;
|
|
3083
|
-
};
|
|
3084
|
-
const de_Step = (output, context) => {
|
|
3085
|
-
return (0, smithy_client_1.take)(output, {
|
|
3086
|
-
ActionOnFailure: smithy_client_1.expectString,
|
|
3087
|
-
Config: smithy_client_1._json,
|
|
3088
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
3089
|
-
Id: smithy_client_1.expectString,
|
|
3090
|
-
Name: smithy_client_1.expectString,
|
|
3091
|
-
Status: (_) => de_StepStatus(_, context),
|
|
3092
|
-
});
|
|
3093
|
-
};
|
|
3094
|
-
const de_StepDetail = (output, context) => {
|
|
3095
|
-
return (0, smithy_client_1.take)(output, {
|
|
3096
|
-
ExecutionStatusDetail: (_) => de_StepExecutionStatusDetail(_, context),
|
|
3097
|
-
StepConfig: smithy_client_1._json,
|
|
3098
|
-
});
|
|
3099
|
-
};
|
|
3100
|
-
const de_StepDetailList = (output, context) => {
|
|
3101
|
-
const retVal = (output || [])
|
|
3102
|
-
.filter((e) => e != null)
|
|
3103
|
-
.map((entry) => {
|
|
3104
|
-
return de_StepDetail(entry, context);
|
|
3105
|
-
});
|
|
3106
|
-
return retVal;
|
|
3107
|
-
};
|
|
3108
|
-
const de_StepExecutionStatusDetail = (output, context) => {
|
|
3109
|
-
return (0, smithy_client_1.take)(output, {
|
|
3110
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3111
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3112
|
-
LastStateChangeReason: smithy_client_1.expectString,
|
|
3113
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3114
|
-
State: smithy_client_1.expectString,
|
|
3115
|
-
});
|
|
3116
|
-
};
|
|
3117
|
-
const de_StepStatus = (output, context) => {
|
|
3118
|
-
return (0, smithy_client_1.take)(output, {
|
|
3119
|
-
FailureDetails: smithy_client_1._json,
|
|
3120
|
-
State: smithy_client_1.expectString,
|
|
3121
|
-
StateChangeReason: smithy_client_1._json,
|
|
3122
|
-
Timeline: (_) => de_StepTimeline(_, context),
|
|
3123
|
-
});
|
|
3124
|
-
};
|
|
3125
|
-
const de_StepSummary = (output, context) => {
|
|
3126
|
-
return (0, smithy_client_1.take)(output, {
|
|
3127
|
-
ActionOnFailure: smithy_client_1.expectString,
|
|
3128
|
-
Config: smithy_client_1._json,
|
|
3129
|
-
Id: smithy_client_1.expectString,
|
|
3130
|
-
Name: smithy_client_1.expectString,
|
|
3131
|
-
Status: (_) => de_StepStatus(_, context),
|
|
3132
|
-
});
|
|
3133
|
-
};
|
|
3134
|
-
const de_StepSummaryList = (output, context) => {
|
|
3135
|
-
const retVal = (output || [])
|
|
3136
|
-
.filter((e) => e != null)
|
|
3137
|
-
.map((entry) => {
|
|
3138
|
-
return de_StepSummary(entry, context);
|
|
3139
|
-
});
|
|
3140
|
-
return retVal;
|
|
3141
|
-
};
|
|
3142
|
-
const de_StepTimeline = (output, context) => {
|
|
3143
|
-
return (0, smithy_client_1.take)(output, {
|
|
3144
|
-
CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3145
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3146
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3147
|
-
});
|
|
3148
|
-
};
|
|
3149
|
-
const de_Studio = (output, context) => {
|
|
3150
|
-
return (0, smithy_client_1.take)(output, {
|
|
3151
|
-
AuthMode: smithy_client_1.expectString,
|
|
3152
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3153
|
-
DefaultS3Location: smithy_client_1.expectString,
|
|
3154
|
-
Description: smithy_client_1.expectString,
|
|
3155
|
-
EncryptionKeyArn: smithy_client_1.expectString,
|
|
3156
|
-
EngineSecurityGroupId: smithy_client_1.expectString,
|
|
3157
|
-
IdcInstanceArn: smithy_client_1.expectString,
|
|
3158
|
-
IdcUserAssignment: smithy_client_1.expectString,
|
|
3159
|
-
IdpAuthUrl: smithy_client_1.expectString,
|
|
3160
|
-
IdpRelayStateParameterName: smithy_client_1.expectString,
|
|
3161
|
-
Name: smithy_client_1.expectString,
|
|
3162
|
-
ServiceRole: smithy_client_1.expectString,
|
|
3163
|
-
StudioArn: smithy_client_1.expectString,
|
|
3164
|
-
StudioId: smithy_client_1.expectString,
|
|
3165
|
-
SubnetIds: smithy_client_1._json,
|
|
3166
|
-
Tags: smithy_client_1._json,
|
|
3167
|
-
TrustedIdentityPropagationEnabled: smithy_client_1.expectBoolean,
|
|
3168
|
-
Url: smithy_client_1.expectString,
|
|
3169
|
-
UserRole: smithy_client_1.expectString,
|
|
3170
|
-
VpcId: smithy_client_1.expectString,
|
|
3171
|
-
WorkspaceSecurityGroupId: smithy_client_1.expectString,
|
|
3172
|
-
});
|
|
3173
|
-
};
|
|
3174
|
-
const de_StudioSummary = (output, context) => {
|
|
3175
|
-
return (0, smithy_client_1.take)(output, {
|
|
3176
|
-
AuthMode: smithy_client_1.expectString,
|
|
3177
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3178
|
-
Description: smithy_client_1.expectString,
|
|
3179
|
-
Name: smithy_client_1.expectString,
|
|
3180
|
-
StudioId: smithy_client_1.expectString,
|
|
3181
|
-
Url: smithy_client_1.expectString,
|
|
3182
|
-
VpcId: smithy_client_1.expectString,
|
|
3183
|
-
});
|
|
3184
|
-
};
|
|
3185
|
-
const de_StudioSummaryList = (output, context) => {
|
|
3186
|
-
const retVal = (output || [])
|
|
3187
|
-
.filter((e) => e != null)
|
|
3188
|
-
.map((entry) => {
|
|
3189
|
-
return de_StudioSummary(entry, context);
|
|
3190
|
-
});
|
|
3191
|
-
return retVal;
|
|
3192
|
-
};
|
|
3193
|
-
const de_SupportedInstanceType = (output, context) => {
|
|
3194
|
-
return (0, smithy_client_1.take)(output, {
|
|
3195
|
-
Architecture: smithy_client_1.expectString,
|
|
3196
|
-
EbsOptimizedAvailable: smithy_client_1.expectBoolean,
|
|
3197
|
-
EbsOptimizedByDefault: smithy_client_1.expectBoolean,
|
|
3198
|
-
EbsStorageOnly: smithy_client_1.expectBoolean,
|
|
3199
|
-
InstanceFamilyId: smithy_client_1.expectString,
|
|
3200
|
-
Is64BitsOnly: smithy_client_1.expectBoolean,
|
|
3201
|
-
MemoryGB: smithy_client_1.limitedParseFloat32,
|
|
3202
|
-
NumberOfDisks: smithy_client_1.expectInt32,
|
|
3203
|
-
StorageGB: smithy_client_1.expectInt32,
|
|
3204
|
-
Type: smithy_client_1.expectString,
|
|
3205
|
-
VCPU: smithy_client_1.expectInt32,
|
|
3206
|
-
});
|
|
3207
|
-
};
|
|
3208
|
-
const de_SupportedInstanceTypesList = (output, context) => {
|
|
3209
|
-
const retVal = (output || [])
|
|
3210
|
-
.filter((e) => e != null)
|
|
3211
|
-
.map((entry) => {
|
|
3212
|
-
return de_SupportedInstanceType(entry, context);
|
|
3213
|
-
});
|
|
3214
|
-
return retVal;
|
|
3215
|
-
};
|
|
3216
|
-
const deserializeMetadata = (output) => ({
|
|
3217
|
-
httpStatusCode: output.statusCode,
|
|
3218
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3219
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3220
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3221
|
-
});
|
|
3222
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3223
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EMRServiceException_1.EMRServiceException);
|
|
3224
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3225
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3226
|
-
const contents = {
|
|
3227
|
-
protocol,
|
|
3228
|
-
hostname,
|
|
3229
|
-
port,
|
|
3230
|
-
method: "POST",
|
|
3231
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3232
|
-
headers,
|
|
3233
|
-
};
|
|
3234
|
-
if (resolvedHostname !== undefined) {
|
|
3235
|
-
contents.hostname = resolvedHostname;
|
|
3236
|
-
}
|
|
3237
|
-
if (body !== undefined) {
|
|
3238
|
-
contents.body = body;
|
|
3239
|
-
}
|
|
3240
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3241
|
-
};
|
|
3242
|
-
function sharedHeaders(operation) {
|
|
3243
|
-
return {
|
|
3244
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3245
|
-
"x-amz-target": `ElasticMapReduce.${operation}`,
|
|
3246
|
-
};
|
|
3247
|
-
}
|
|
3248
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3249
|
-
if (encoded.length) {
|
|
3250
|
-
return JSON.parse(encoded);
|
|
3251
|
-
}
|
|
3252
|
-
return {};
|
|
3253
|
-
});
|
|
3254
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3255
|
-
const value = await parseBody(errorBody, context);
|
|
3256
|
-
value.message = value.message ?? value.Message;
|
|
3257
|
-
return value;
|
|
3258
|
-
};
|
|
3259
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3260
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3261
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3262
|
-
let cleanValue = rawValue;
|
|
3263
|
-
if (typeof cleanValue === "number") {
|
|
3264
|
-
cleanValue = cleanValue.toString();
|
|
3265
|
-
}
|
|
3266
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3267
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3268
|
-
}
|
|
3269
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3270
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3271
|
-
}
|
|
3272
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3273
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3274
|
-
}
|
|
3275
|
-
return cleanValue;
|
|
3276
|
-
};
|
|
3277
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3278
|
-
if (headerKey !== undefined) {
|
|
3279
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3280
|
-
}
|
|
3281
|
-
if (data.code !== undefined) {
|
|
3282
|
-
return sanitizeErrorCode(data.code);
|
|
3283
|
-
}
|
|
3284
|
-
if (data["__type"] !== undefined) {
|
|
3285
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|