@aws-sdk/client-emr 3.606.0 → 3.609.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/index.js CHANGED
@@ -335,7 +335,8 @@ var InstanceFleetType = {
335
335
  TASK: "TASK"
336
336
  };
337
337
  var OnDemandProvisioningAllocationStrategy = {
338
- LOWEST_PRICE: "lowest-price"
338
+ LOWEST_PRICE: "lowest-price",
339
+ PRIORITIZED: "prioritized"
339
340
  };
340
341
  var OnDemandCapacityReservationPreference = {
341
342
  NONE: "none",
@@ -346,6 +347,7 @@ var OnDemandCapacityReservationUsageStrategy = {
346
347
  };
347
348
  var SpotProvisioningAllocationStrategy = {
348
349
  CAPACITY_OPTIMIZED: "capacity-optimized",
350
+ CAPACITY_OPTIMIZED_PRIORITIZED: "capacity-optimized-prioritized",
349
351
  DIVERSIFIED: "diversified",
350
352
  LOWEST_PRICE: "lowest-price",
351
353
  PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized"
@@ -1863,6 +1865,7 @@ var se_InstanceTypeConfig = /* @__PURE__ */ __name((input, context) => {
1863
1865
  CustomAmiId: [],
1864
1866
  EbsConfiguration: import_smithy_client._json,
1865
1867
  InstanceType: [],
1868
+ Priority: import_smithy_client.serializeFloat,
1866
1869
  WeightedCapacity: []
1867
1870
  });
1868
1871
  }, "se_InstanceTypeConfig");
@@ -2301,6 +2304,7 @@ var de_InstanceTypeSpecification = /* @__PURE__ */ __name((output, context) => {
2301
2304
  EbsBlockDevices: import_smithy_client._json,
2302
2305
  EbsOptimized: import_smithy_client.expectBoolean,
2303
2306
  InstanceType: import_smithy_client.expectString,
2307
+ Priority: import_smithy_client.limitedParseDouble,
2304
2308
  WeightedCapacity: import_smithy_client.expectInt32
2305
2309
  });
2306
2310
  }, "de_InstanceTypeSpecification");
@@ -13,6 +13,7 @@ export const InstanceFleetType = {
13
13
  };
14
14
  export const OnDemandProvisioningAllocationStrategy = {
15
15
  LOWEST_PRICE: "lowest-price",
16
+ PRIORITIZED: "prioritized",
16
17
  };
17
18
  export const OnDemandCapacityReservationPreference = {
18
19
  NONE: "none",
@@ -23,6 +24,7 @@ export const OnDemandCapacityReservationUsageStrategy = {
23
24
  };
24
25
  export const SpotProvisioningAllocationStrategy = {
25
26
  CAPACITY_OPTIMIZED: "capacity-optimized",
27
+ CAPACITY_OPTIMIZED_PRIORITIZED: "capacity-optimized-prioritized",
26
28
  DIVERSIFIED: "diversified",
27
29
  LOWEST_PRICE: "lowest-price",
28
30
  PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized",
@@ -1206,6 +1206,7 @@ const se_InstanceTypeConfig = (input, context) => {
1206
1206
  CustomAmiId: [],
1207
1207
  EbsConfiguration: _json,
1208
1208
  InstanceType: [],
1209
+ Priority: __serializeFloat,
1209
1210
  WeightedCapacity: [],
1210
1211
  });
1211
1212
  };
@@ -1660,6 +1661,7 @@ const de_InstanceTypeSpecification = (output, context) => {
1660
1661
  EbsBlockDevices: _json,
1661
1662
  EbsOptimized: __expectBoolean,
1662
1663
  InstanceType: __expectString,
1664
+ Priority: __limitedParseDouble,
1663
1665
  WeightedCapacity: __expectInt32,
1664
1666
  });
1665
1667
  };
@@ -83,6 +83,7 @@ declare const AddInstanceFleetCommand_base: {
83
83
  * },
84
84
  * ],
85
85
  * CustomAmiId: "STRING_VALUE",
86
+ * Priority: Number("double"),
86
87
  * },
87
88
  * ],
88
89
  * LaunchSpecifications: { // InstanceFleetProvisioningSpecifications
@@ -90,10 +91,10 @@ declare const AddInstanceFleetCommand_base: {
90
91
  * TimeoutDurationMinutes: Number("int"), // required
91
92
  * TimeoutAction: "SWITCH_TO_ON_DEMAND" || "TERMINATE_CLUSTER", // required
92
93
  * BlockDurationMinutes: Number("int"),
93
- * AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified",
94
+ * AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified" || "capacity-optimized-prioritized",
94
95
  * },
95
96
  * OnDemandSpecification: { // OnDemandProvisioningSpecification
96
- * AllocationStrategy: "lowest-price", // required
97
+ * AllocationStrategy: "lowest-price" || "prioritized", // required
97
98
  * CapacityReservationOptions: { // OnDemandCapacityReservationOptions
98
99
  * UsageStrategy: "use-capacity-reservations-first",
99
100
  * CapacityReservationPreference: "open" || "none",
@@ -102,6 +102,7 @@ declare const ListInstanceFleetsCommand_base: {
102
102
  * // ],
103
103
  * // EbsOptimized: true || false,
104
104
  * // CustomAmiId: "STRING_VALUE",
105
+ * // Priority: Number("double"),
105
106
  * // },
106
107
  * // ],
107
108
  * // LaunchSpecifications: { // InstanceFleetProvisioningSpecifications
@@ -109,10 +110,10 @@ declare const ListInstanceFleetsCommand_base: {
109
110
  * // TimeoutDurationMinutes: Number("int"), // required
110
111
  * // TimeoutAction: "SWITCH_TO_ON_DEMAND" || "TERMINATE_CLUSTER", // required
111
112
  * // BlockDurationMinutes: Number("int"),
112
- * // AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified",
113
+ * // AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified" || "capacity-optimized-prioritized",
113
114
  * // },
114
115
  * // OnDemandSpecification: { // OnDemandProvisioningSpecification
115
- * // AllocationStrategy: "lowest-price", // required
116
+ * // AllocationStrategy: "lowest-price" || "prioritized", // required
116
117
  * // CapacityReservationOptions: { // OnDemandCapacityReservationOptions
117
118
  * // UsageStrategy: "use-capacity-reservations-first",
118
119
  * // CapacityReservationPreference: "open" || "none",
@@ -174,6 +174,7 @@ declare const RunJobFlowCommand_base: {
174
174
  * },
175
175
  * Configurations: "<ConfigurationList>",
176
176
  * CustomAmiId: "STRING_VALUE",
177
+ * Priority: Number("double"),
177
178
  * },
178
179
  * ],
179
180
  * LaunchSpecifications: { // InstanceFleetProvisioningSpecifications
@@ -181,10 +182,10 @@ declare const RunJobFlowCommand_base: {
181
182
  * TimeoutDurationMinutes: Number("int"), // required
182
183
  * TimeoutAction: "SWITCH_TO_ON_DEMAND" || "TERMINATE_CLUSTER", // required
183
184
  * BlockDurationMinutes: Number("int"),
184
- * AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified",
185
+ * AllocationStrategy: "capacity-optimized" || "price-capacity-optimized" || "lowest-price" || "diversified" || "capacity-optimized-prioritized",
185
186
  * },
186
187
  * OnDemandSpecification: { // OnDemandProvisioningSpecification
187
- * AllocationStrategy: "lowest-price", // required
188
+ * AllocationStrategy: "lowest-price" || "prioritized", // required
188
189
  * CapacityReservationOptions: { // OnDemandCapacityReservationOptions
189
190
  * UsageStrategy: "use-capacity-reservations-first",
190
191
  * CapacityReservationPreference: "open" || "none",
@@ -101,6 +101,7 @@ export interface EbsConfiguration {
101
101
  */
102
102
  export declare const OnDemandProvisioningAllocationStrategy: {
103
103
  readonly LOWEST_PRICE: "lowest-price";
104
+ readonly PRIORITIZED: "prioritized";
104
105
  };
105
106
  /**
106
107
  * @public
@@ -186,9 +187,11 @@ export interface OnDemandCapacityReservationOptions {
186
187
  */
187
188
  export interface OnDemandProvisioningSpecification {
188
189
  /**
189
- * <p>Specifies the strategy to use in launching On-Demand instance fleets. Currently, the
190
- * only option is <code>lowest-price</code> (the default), which launches the lowest price
191
- * first.</p>
190
+ * <p>Specifies the strategy to use in launching On-Demand instance fleets. Available
191
+ * options are <code>lowest-price</code> and <code>prioritized</code>. <code>lowest-price</code>
192
+ * specifies to launch the instances with the lowest price first, and <code>prioritized</code> specifies
193
+ * that Amazon EMR should launch the instances with the highest priority first. The default is
194
+ * <code>lowest-price</code>.</p>
192
195
  * @public
193
196
  */
194
197
  AllocationStrategy: OnDemandProvisioningAllocationStrategy | undefined;
@@ -205,6 +208,7 @@ export interface OnDemandProvisioningSpecification {
205
208
  */
206
209
  export declare const SpotProvisioningAllocationStrategy: {
207
210
  readonly CAPACITY_OPTIMIZED: "capacity-optimized";
211
+ readonly CAPACITY_OPTIMIZED_PRIORITIZED: "capacity-optimized-prioritized";
208
212
  readonly DIVERSIFIED: "diversified";
209
213
  readonly LOWEST_PRICE: "lowest-price";
210
214
  readonly PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized";
@@ -278,7 +282,9 @@ export interface SpotProvisioningSpecification {
278
282
  */
279
283
  BlockDurationMinutes?: number;
280
284
  /**
281
- * <p>Specifies one of the following strategies to launch Spot Instance fleets: <code>price-capacity-optimized</code>, <code>capacity-optimized</code>, <code>lowest-price</code>, or <code>diversified</code>. For more information on the provisioning strategies, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html">Allocation strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
285
+ * <p>Specifies one of the following strategies to launch Spot Instance fleets:
286
+ * <code>capacity-optimized</code>, <code>price-capacity-optimized</code>, <code>lowest-price</code>, or
287
+ * <code>diversified</code>, and <code>capacity-optimized-prioritized</code>. For more information on the provisioning strategies, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html">Allocation strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
282
288
  * <note>
283
289
  * <p>When you launch a Spot Instance fleet with the old console, it automatically launches with the <code>capacity-optimized</code> strategy. You can't change the allocation strategy from the old console.</p>
284
290
  * </note>
@@ -5833,6 +5839,12 @@ export interface InstanceTypeConfig {
5833
5839
  * @public
5834
5840
  */
5835
5841
  CustomAmiId?: string;
5842
+ /**
5843
+ * <p>The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.
5844
+ * Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.</p>
5845
+ * @public
5846
+ */
5847
+ Priority?: number;
5836
5848
  }
5837
5849
  /**
5838
5850
  * <p>The configuration specification for each instance type in an instance fleet.</p>
@@ -5892,6 +5904,12 @@ export interface InstanceTypeSpecification {
5892
5904
  * @public
5893
5905
  */
5894
5906
  CustomAmiId?: string;
5907
+ /**
5908
+ * <p>The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.
5909
+ * Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.</p>
5910
+ * @public
5911
+ */
5912
+ Priority?: number;
5895
5913
  }
5896
5914
  /**
5897
5915
  * <p>This output contains the description of the cluster.</p>
@@ -31,6 +31,7 @@ export interface EbsConfiguration {
31
31
  }
32
32
  export declare const OnDemandProvisioningAllocationStrategy: {
33
33
  readonly LOWEST_PRICE: "lowest-price";
34
+ readonly PRIORITIZED: "prioritized";
34
35
  };
35
36
  export type OnDemandProvisioningAllocationStrategy =
36
37
  (typeof OnDemandProvisioningAllocationStrategy)[keyof typeof OnDemandProvisioningAllocationStrategy];
@@ -56,6 +57,7 @@ export interface OnDemandProvisioningSpecification {
56
57
  }
57
58
  export declare const SpotProvisioningAllocationStrategy: {
58
59
  readonly CAPACITY_OPTIMIZED: "capacity-optimized";
60
+ readonly CAPACITY_OPTIMIZED_PRIORITIZED: "capacity-optimized-prioritized";
59
61
  readonly DIVERSIFIED: "diversified";
60
62
  readonly LOWEST_PRICE: "lowest-price";
61
63
  readonly PRICE_CAPACITY_OPTIMIZED: "price-capacity-optimized";
@@ -1381,6 +1383,7 @@ export interface InstanceTypeConfig {
1381
1383
  EbsConfiguration?: EbsConfiguration;
1382
1384
  Configurations?: Configuration[];
1383
1385
  CustomAmiId?: string;
1386
+ Priority?: number;
1384
1387
  }
1385
1388
  export interface InstanceTypeSpecification {
1386
1389
  InstanceType?: string;
@@ -1391,6 +1394,7 @@ export interface InstanceTypeSpecification {
1391
1394
  EbsBlockDevices?: EbsBlockDevice[];
1392
1395
  EbsOptimized?: boolean;
1393
1396
  CustomAmiId?: string;
1397
+ Priority?: number;
1394
1398
  }
1395
1399
  export interface DescribeClusterOutput {
1396
1400
  Cluster?: Cluster;
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.606.0",
4
+ "version": "3.609.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr",
@@ -20,45 +20,45 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.606.0",
24
- "@aws-sdk/client-sts": "3.606.0",
25
- "@aws-sdk/core": "3.598.0",
26
- "@aws-sdk/credential-provider-node": "3.600.0",
27
- "@aws-sdk/middleware-host-header": "3.598.0",
28
- "@aws-sdk/middleware-logger": "3.598.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.598.0",
30
- "@aws-sdk/middleware-user-agent": "3.598.0",
31
- "@aws-sdk/region-config-resolver": "3.598.0",
32
- "@aws-sdk/types": "3.598.0",
33
- "@aws-sdk/util-endpoints": "3.598.0",
34
- "@aws-sdk/util-user-agent-browser": "3.598.0",
35
- "@aws-sdk/util-user-agent-node": "3.598.0",
36
- "@smithy/config-resolver": "^3.0.2",
37
- "@smithy/core": "^2.2.1",
38
- "@smithy/fetch-http-handler": "^3.0.2",
39
- "@smithy/hash-node": "^3.0.1",
40
- "@smithy/invalid-dependency": "^3.0.1",
41
- "@smithy/middleware-content-length": "^3.0.1",
42
- "@smithy/middleware-endpoint": "^3.0.2",
43
- "@smithy/middleware-retry": "^3.0.4",
44
- "@smithy/middleware-serde": "^3.0.1",
45
- "@smithy/middleware-stack": "^3.0.1",
46
- "@smithy/node-config-provider": "^3.1.1",
47
- "@smithy/node-http-handler": "^3.0.1",
48
- "@smithy/protocol-http": "^4.0.1",
49
- "@smithy/smithy-client": "^3.1.2",
50
- "@smithy/types": "^3.1.0",
51
- "@smithy/url-parser": "^3.0.1",
23
+ "@aws-sdk/client-sso-oidc": "3.609.0",
24
+ "@aws-sdk/client-sts": "3.609.0",
25
+ "@aws-sdk/core": "3.609.0",
26
+ "@aws-sdk/credential-provider-node": "3.609.0",
27
+ "@aws-sdk/middleware-host-header": "3.609.0",
28
+ "@aws-sdk/middleware-logger": "3.609.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.609.0",
30
+ "@aws-sdk/middleware-user-agent": "3.609.0",
31
+ "@aws-sdk/region-config-resolver": "3.609.0",
32
+ "@aws-sdk/types": "3.609.0",
33
+ "@aws-sdk/util-endpoints": "3.609.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.609.0",
35
+ "@aws-sdk/util-user-agent-node": "3.609.0",
36
+ "@smithy/config-resolver": "^3.0.4",
37
+ "@smithy/core": "^2.2.4",
38
+ "@smithy/fetch-http-handler": "^3.2.0",
39
+ "@smithy/hash-node": "^3.0.3",
40
+ "@smithy/invalid-dependency": "^3.0.3",
41
+ "@smithy/middleware-content-length": "^3.0.3",
42
+ "@smithy/middleware-endpoint": "^3.0.4",
43
+ "@smithy/middleware-retry": "^3.0.7",
44
+ "@smithy/middleware-serde": "^3.0.3",
45
+ "@smithy/middleware-stack": "^3.0.3",
46
+ "@smithy/node-config-provider": "^3.1.3",
47
+ "@smithy/node-http-handler": "^3.1.1",
48
+ "@smithy/protocol-http": "^4.0.3",
49
+ "@smithy/smithy-client": "^3.1.5",
50
+ "@smithy/types": "^3.3.0",
51
+ "@smithy/url-parser": "^3.0.3",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.4",
56
- "@smithy/util-defaults-mode-node": "^3.0.4",
57
- "@smithy/util-endpoints": "^2.0.2",
58
- "@smithy/util-middleware": "^3.0.1",
59
- "@smithy/util-retry": "^3.0.1",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.7",
56
+ "@smithy/util-defaults-mode-node": "^3.0.7",
57
+ "@smithy/util-endpoints": "^2.0.4",
58
+ "@smithy/util-middleware": "^3.0.3",
59
+ "@smithy/util-retry": "^3.0.3",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
- "@smithy/util-waiter": "^3.0.1",
61
+ "@smithy/util-waiter": "^3.1.2",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {