@aws-sdk/client-emr 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultEMRHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2009-03-31",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.emr",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "http://elasticmapreduce.amazonaws.com/doc/2009-03-31",
30
32
  version: "2009-03-31",
31
33
  serviceTarget: "ElasticMapReduce",
@@ -151,9 +151,9 @@ const _EBDCL = "EbsBlockDeviceConfigList";
151
151
  const _EBDCb = "EbsBlockDeviceConfigs";
152
152
  const _EBDL = "EbsBlockDeviceList";
153
153
  const _EBDb = "EbsBlockDevices";
154
- const _EC = "EbsConfiguration";
154
+ const _EC = "ErrorCode";
155
155
  const _ECIITT = "EC2InstanceIdsToTerminate";
156
- const _ECr = "ErrorCode";
156
+ const _ECb = "EbsConfiguration";
157
157
  const _ED = "ErrorDetails";
158
158
  const _EDL = "ErrorDetailList";
159
159
  const _EDT = "EndDateTime";
@@ -624,12 +624,38 @@ const _aQE = "awsQueryError";
624
624
  const _c = "client";
625
625
  const _e = "error";
626
626
  const _hE = "httpError";
627
- const _s = "server";
628
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.emr";
627
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.emr";
628
+ const _se = "server";
629
629
  const n0 = "com.amazonaws.emr";
630
630
  import { TypeRegistry } from "@smithy/core/schema";
631
631
  import { EMRServiceException } from "../models/EMRServiceException";
632
632
  import { InternalServerError, InternalServerException, InvalidRequestException } from "../models/errors";
633
+ const _s_registry = TypeRegistry.for(_s);
634
+ export var EMRServiceException$ = [-3, _s, "EMRServiceException", 0, [], []];
635
+ _s_registry.registerError(EMRServiceException$, EMRServiceException);
636
+ const n0_registry = TypeRegistry.for(n0);
637
+ export var InternalServerError$ = [-3, n0, _ISE,
638
+ { [_aQE]: [`InternalFailure`, 500], [_e]: _se, [_hE]: 500 },
639
+ [],
640
+ []
641
+ ];
642
+ n0_registry.registerError(InternalServerError$, InternalServerError);
643
+ export var InternalServerException$ = [-3, n0, _ISEn,
644
+ { [_e]: _se },
645
+ [_M],
646
+ [0]
647
+ ];
648
+ n0_registry.registerError(InternalServerException$, InternalServerException);
649
+ export var InvalidRequestException$ = [-3, n0, _IRE,
650
+ { [_e]: _c },
651
+ [_EC, _M],
652
+ [0, 0]
653
+ ];
654
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
655
+ export const errorTypeRegistries = [
656
+ _s_registry,
657
+ n0_registry,
658
+ ];
633
659
  export var AddInstanceFleetInput$ = [3, n0, _AIFI,
634
660
  0,
635
661
  [_CI, _IF],
@@ -930,7 +956,7 @@ export var EbsBlockDeviceConfig$ = [3, n0, _EBDC,
930
956
  [_VS, _VPI],
931
957
  [() => VolumeSpecification$, 1], 1
932
958
  ];
933
- export var EbsConfiguration$ = [3, n0, _EC,
959
+ export var EbsConfiguration$ = [3, n0, _ECb,
934
960
  0,
935
961
  [_EBDCb, _EO],
936
962
  [() => EbsBlockDeviceConfigList, 2]
@@ -952,7 +978,7 @@ export var EMRContainersConfig$ = [3, n0, _EMRCC,
952
978
  ];
953
979
  export var ErrorDetail$ = [3, n0, _EDr,
954
980
  0,
955
- [_ECr, _EDrr, _EM],
981
+ [_EC, _EDrr, _EM],
956
982
  [0, [1, n0, _EDrr, 0, 128 | 0], 0]
957
983
  ];
958
984
  export var ExecutionEngineConfig$ = [3, n0, _EEC,
@@ -1097,7 +1123,7 @@ export var InstanceGroup$ = [3, n0, _IGn,
1097
1123
  ];
1098
1124
  export var InstanceGroupConfig$ = [3, n0, _IGC,
1099
1125
  0,
1100
- [_IR, _ITn, _IC, _N, _Ma, _BP, _Con, _EC, _ASP, _CAI],
1126
+ [_IR, _ITn, _IC, _N, _Ma, _BP, _Con, _ECb, _ASP, _CAI],
1101
1127
  [0, 0, 1, 0, 0, 0, () => ConfigurationList, () => EbsConfiguration$, () => AutoScalingPolicy$, 0], 3
1102
1128
  ];
1103
1129
  export var InstanceGroupDetail$ = [3, n0, _IGD,
@@ -1147,7 +1173,7 @@ export var InstanceTimeline$ = [3, n0, _ITns,
1147
1173
  ];
1148
1174
  export var InstanceTypeConfig$ = [3, n0, _ITCn,
1149
1175
  0,
1150
- [_ITn, _WC, _BP, _BPAPOODP, _EC, _Con, _CAI, _Pr],
1176
+ [_ITn, _WC, _BP, _BPAPOODP, _ECb, _Con, _CAI, _Pr],
1151
1177
  [0, 1, 0, 1, () => EbsConfiguration$, () => ConfigurationList, 0, 1], 1
1152
1178
  ];
1153
1179
  export var InstanceTypeSpecification$ = [3, n0, _ITSn,
@@ -1155,24 +1181,6 @@ export var InstanceTypeSpecification$ = [3, n0, _ITSn,
1155
1181
  [_ITn, _WC, _BP, _BPAPOODP, _Con, _EBDb, _EO, _CAI, _Pr],
1156
1182
  [0, 1, 0, 1, () => ConfigurationList, () => EbsBlockDeviceList, 2, 0, 1]
1157
1183
  ];
1158
- export var InternalServerError$ = [-3, n0, _ISE,
1159
- { [_aQE]: [`InternalFailure`, 500], [_e]: _s, [_hE]: 500 },
1160
- [],
1161
- []
1162
- ];
1163
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
1164
- export var InternalServerException$ = [-3, n0, _ISEn,
1165
- { [_e]: _s },
1166
- [_M],
1167
- [0]
1168
- ];
1169
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
1170
- export var InvalidRequestException$ = [-3, n0, _IRE,
1171
- { [_e]: _c },
1172
- [_ECr, _M],
1173
- [0, 0]
1174
- ];
1175
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
1176
1184
  export var JobFlowDetail$ = [3, n0, _JFD,
1177
1185
  0,
1178
1186
  [_JFI, _N, _ESD, _Ins, _LU, _LEKKI, _AV, _S, _BA, _SPu, _VTAU, _JFR, _SR, _ASR, _SDB],
@@ -1724,8 +1732,6 @@ export var VolumeSpecification$ = [3, n0, _VS,
1724
1732
  [0, 1, 1, 1], 2
1725
1733
  ];
1726
1734
  var __Unit = "unit";
1727
- export var EMRServiceException$ = [-3, _sm, "EMRServiceException", 0, [], []];
1728
- TypeRegistry.for(_sm).registerError(EMRServiceException$, EMRServiceException);
1729
1735
  var ApplicationList = [1, n0, _AL,
1730
1736
  0, () => Application$
1731
1737
  ];
@@ -1,4 +1,15 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var EMRServiceException$: StaticErrorSchema;
4
+ export declare var InternalServerError$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var InvalidRequestException$: StaticErrorSchema;
7
+ /**
8
+ * TypeRegistry instances containing modeled errors.
9
+ * @internal
10
+ *
11
+ */
12
+ export declare const errorTypeRegistries: TypeRegistry[];
2
13
  export declare var AddInstanceFleetInput$: StaticStructureSchema;
3
14
  export declare var AddInstanceFleetOutput$: StaticStructureSchema;
4
15
  export declare var AddInstanceGroupsInput$: StaticStructureSchema;
@@ -104,9 +115,6 @@ export declare var InstanceStatus$: StaticStructureSchema;
104
115
  export declare var InstanceTimeline$: StaticStructureSchema;
105
116
  export declare var InstanceTypeConfig$: StaticStructureSchema;
106
117
  export declare var InstanceTypeSpecification$: StaticStructureSchema;
107
- export declare var InternalServerError$: StaticErrorSchema;
108
- export declare var InternalServerException$: StaticErrorSchema;
109
- export declare var InvalidRequestException$: StaticErrorSchema;
110
118
  export declare var JobFlowDetail$: StaticStructureSchema;
111
119
  export declare var JobFlowExecutionStatusDetail$: StaticStructureSchema;
112
120
  export declare var JobFlowInstancesConfig$: StaticStructureSchema;
@@ -217,7 +225,6 @@ export declare var UpdateStudioInput$: StaticStructureSchema;
217
225
  export declare var UpdateStudioSessionMappingInput$: StaticStructureSchema;
218
226
  export declare var UsernamePassword$: StaticStructureSchema;
219
227
  export declare var VolumeSpecification$: StaticStructureSchema;
220
- export declare var EMRServiceException$: StaticErrorSchema;
221
228
  export declare var Credentials$: StaticUnionSchema;
222
229
  export declare var AddInstanceFleet$: StaticOperationSchema;
223
230
  export declare var AddInstanceGroups$: StaticOperationSchema;
@@ -1,9 +1,15 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var EMRServiceException$: StaticErrorSchema;
9
+ export declare var InternalServerError$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var InvalidRequestException$: StaticErrorSchema;
12
+ export declare const errorTypeRegistries: TypeRegistry[];
7
13
  export declare var AddInstanceFleetInput$: StaticStructureSchema;
8
14
  export declare var AddInstanceFleetOutput$: StaticStructureSchema;
9
15
  export declare var AddInstanceGroupsInput$: StaticStructureSchema;
@@ -109,9 +115,6 @@ export declare var InstanceStatus$: StaticStructureSchema;
109
115
  export declare var InstanceTimeline$: StaticStructureSchema;
110
116
  export declare var InstanceTypeConfig$: StaticStructureSchema;
111
117
  export declare var InstanceTypeSpecification$: StaticStructureSchema;
112
- export declare var InternalServerError$: StaticErrorSchema;
113
- export declare var InternalServerException$: StaticErrorSchema;
114
- export declare var InvalidRequestException$: StaticErrorSchema;
115
118
  export declare var JobFlowDetail$: StaticStructureSchema;
116
119
  export declare var JobFlowExecutionStatusDetail$: StaticStructureSchema;
117
120
  export declare var JobFlowInstancesConfig$: StaticStructureSchema;
@@ -222,7 +225,6 @@ export declare var UpdateStudioInput$: StaticStructureSchema;
222
225
  export declare var UpdateStudioSessionMappingInput$: StaticStructureSchema;
223
226
  export declare var UsernamePassword$: StaticStructureSchema;
224
227
  export declare var VolumeSpecification$: StaticStructureSchema;
225
- export declare var EMRServiceException$: StaticErrorSchema;
226
228
  export declare var Credentials$: StaticUnionSchema;
227
229
  export declare var AddInstanceFleet$: StaticOperationSchema;
228
230
  export declare var AddInstanceGroups$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr",
3
3
  "description": "AWS SDK for JavaScript Emr Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.7",
27
- "@aws-sdk/credential-provider-node": "^3.972.6",
26
+ "@aws-sdk/core": "^3.973.9",
27
+ "@aws-sdk/credential-provider-node": "^3.972.8",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.987.0",
34
+ "@aws-sdk/util-endpoints": "3.989.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.13",
44
- "@smithy/middleware-retry": "^4.4.30",
43
+ "@smithy/middleware-endpoint": "^4.4.14",
44
+ "@smithy/middleware-retry": "^4.4.31",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
- "@smithy/node-http-handler": "^4.4.9",
48
+ "@smithy/node-http-handler": "^4.4.10",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.11.2",
50
+ "@smithy/smithy-client": "^4.11.3",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.29",
57
- "@smithy/util-defaults-mode-node": "^4.2.32",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
57
+ "@smithy/util-defaults-mode-node": "^4.2.33",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",