@aws-sdk/client-emr-serverless 3.654.0 → 3.658.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 +7 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +4 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +4 -0
- package/dist-types/commands/GetJobRunCommand.d.ts +3 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +48 -2
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -354,6 +354,7 @@ var JobRunState = {
|
|
|
354
354
|
CANCELLING: "CANCELLING",
|
|
355
355
|
FAILED: "FAILED",
|
|
356
356
|
PENDING: "PENDING",
|
|
357
|
+
QUEUED: "QUEUED",
|
|
357
358
|
RUNNING: "RUNNING",
|
|
358
359
|
SCHEDULED: "SCHEDULED",
|
|
359
360
|
SUBMITTED: "SUBMITTED",
|
|
@@ -470,6 +471,7 @@ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
470
471
|
networkConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
471
472
|
releaseLabel: [],
|
|
472
473
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
474
|
+
schedulerConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
473
475
|
tags: (_) => (0, import_smithy_client._json)(_),
|
|
474
476
|
type: [],
|
|
475
477
|
workerTypeSpecifications: (_) => (0, import_smithy_client._json)(_)
|
|
@@ -670,6 +672,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
670
672
|
networkConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
671
673
|
releaseLabel: [],
|
|
672
674
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
675
|
+
schedulerConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
673
676
|
workerTypeSpecifications: (_) => (0, import_smithy_client._json)(_)
|
|
674
677
|
})
|
|
675
678
|
);
|
|
@@ -1020,6 +1023,7 @@ var de_Application = /* @__PURE__ */ __name((output, context) => {
|
|
|
1020
1023
|
networkConfiguration: import_smithy_client._json,
|
|
1021
1024
|
releaseLabel: import_smithy_client.expectString,
|
|
1022
1025
|
runtimeConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1026
|
+
schedulerConfiguration: import_smithy_client._json,
|
|
1023
1027
|
state: import_smithy_client.expectString,
|
|
1024
1028
|
stateDetails: import_smithy_client.expectString,
|
|
1025
1029
|
tags: import_smithy_client._json,
|
|
@@ -1078,6 +1082,7 @@ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
|
|
|
1078
1082
|
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
1079
1083
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1080
1084
|
createdBy: import_smithy_client.expectString,
|
|
1085
|
+
endedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1081
1086
|
executionRole: import_smithy_client.expectString,
|
|
1082
1087
|
executionTimeoutMinutes: import_smithy_client.expectLong,
|
|
1083
1088
|
jobDriver: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
@@ -1085,8 +1090,10 @@ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
|
|
|
1085
1090
|
mode: import_smithy_client.expectString,
|
|
1086
1091
|
name: import_smithy_client.expectString,
|
|
1087
1092
|
networkConfiguration: import_smithy_client._json,
|
|
1093
|
+
queuedDurationMilliseconds: import_smithy_client.expectLong,
|
|
1088
1094
|
releaseLabel: import_smithy_client.expectString,
|
|
1089
1095
|
retryPolicy: import_smithy_client._json,
|
|
1096
|
+
startedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1090
1097
|
state: import_smithy_client.expectString,
|
|
1091
1098
|
stateDetails: import_smithy_client.expectString,
|
|
1092
1099
|
tags: import_smithy_client._json,
|
|
@@ -35,6 +35,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
35
35
|
networkConfiguration: (_) => _json(_),
|
|
36
36
|
releaseLabel: [],
|
|
37
37
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
38
|
+
schedulerConfiguration: (_) => _json(_),
|
|
38
39
|
tags: (_) => _json(_),
|
|
39
40
|
type: [],
|
|
40
41
|
workerTypeSpecifications: (_) => _json(_),
|
|
@@ -229,6 +230,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
229
230
|
networkConfiguration: (_) => _json(_),
|
|
230
231
|
releaseLabel: [],
|
|
231
232
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
233
|
+
schedulerConfiguration: (_) => _json(_),
|
|
232
234
|
workerTypeSpecifications: (_) => _json(_),
|
|
233
235
|
}));
|
|
234
236
|
b.m("PATCH").h(headers).b(body);
|
|
@@ -580,6 +582,7 @@ const de_Application = (output, context) => {
|
|
|
580
582
|
networkConfiguration: _json,
|
|
581
583
|
releaseLabel: __expectString,
|
|
582
584
|
runtimeConfiguration: (_) => de_ConfigurationList(_, context),
|
|
585
|
+
schedulerConfiguration: _json,
|
|
583
586
|
state: __expectString,
|
|
584
587
|
stateDetails: __expectString,
|
|
585
588
|
tags: _json,
|
|
@@ -642,6 +645,7 @@ const de_JobRun = (output, context) => {
|
|
|
642
645
|
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
643
646
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
644
647
|
createdBy: __expectString,
|
|
648
|
+
endedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
645
649
|
executionRole: __expectString,
|
|
646
650
|
executionTimeoutMinutes: __expectLong,
|
|
647
651
|
jobDriver: (_) => _json(__expectUnion(_)),
|
|
@@ -649,8 +653,10 @@ const de_JobRun = (output, context) => {
|
|
|
649
653
|
mode: __expectString,
|
|
650
654
|
name: __expectString,
|
|
651
655
|
networkConfiguration: _json,
|
|
656
|
+
queuedDurationMilliseconds: __expectLong,
|
|
652
657
|
releaseLabel: __expectString,
|
|
653
658
|
retryPolicy: _json,
|
|
659
|
+
startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
654
660
|
state: __expectString,
|
|
655
661
|
stateDetails: __expectString,
|
|
656
662
|
tags: _json,
|
|
@@ -129,6 +129,10 @@ declare const CreateApplicationCommand_base: {
|
|
|
129
129
|
* studioEnabled: true || false,
|
|
130
130
|
* livyEndpointEnabled: true || false,
|
|
131
131
|
* },
|
|
132
|
+
* schedulerConfiguration: { // SchedulerConfiguration
|
|
133
|
+
* queueTimeoutMinutes: Number("int"),
|
|
134
|
+
* maxConcurrentRuns: Number("int"),
|
|
135
|
+
* },
|
|
132
136
|
* };
|
|
133
137
|
* const command = new CreateApplicationCommand(input);
|
|
134
138
|
* const response = await client.send(command);
|
|
@@ -142,6 +142,10 @@ declare const GetApplicationCommand_base: {
|
|
|
142
142
|
* // studioEnabled: true || false,
|
|
143
143
|
* // livyEndpointEnabled: true || false,
|
|
144
144
|
* // },
|
|
145
|
+
* // schedulerConfiguration: { // SchedulerConfiguration
|
|
146
|
+
* // queueTimeoutMinutes: Number("int"),
|
|
147
|
+
* // maxConcurrentRuns: Number("int"),
|
|
148
|
+
* // },
|
|
145
149
|
* // },
|
|
146
150
|
* // };
|
|
147
151
|
*
|
|
@@ -142,6 +142,9 @@ declare const GetJobRunCommand_base: {
|
|
|
142
142
|
* // attempt: Number("int"),
|
|
143
143
|
* // attemptCreatedAt: new Date("TIMESTAMP"),
|
|
144
144
|
* // attemptUpdatedAt: new Date("TIMESTAMP"),
|
|
145
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
146
|
+
* // endedAt: new Date("TIMESTAMP"),
|
|
147
|
+
* // queuedDurationMilliseconds: Number("long"),
|
|
145
148
|
* // },
|
|
146
149
|
* // };
|
|
147
150
|
*
|
|
@@ -126,6 +126,10 @@ declare const UpdateApplicationCommand_base: {
|
|
|
126
126
|
* remoteWriteUrl: "STRING_VALUE",
|
|
127
127
|
* },
|
|
128
128
|
* },
|
|
129
|
+
* schedulerConfiguration: { // SchedulerConfiguration
|
|
130
|
+
* queueTimeoutMinutes: Number("int"),
|
|
131
|
+
* maxConcurrentRuns: Number("int"),
|
|
132
|
+
* },
|
|
129
133
|
* };
|
|
130
134
|
* const command = new UpdateApplicationCommand(input);
|
|
131
135
|
* const response = await client.send(command);
|
|
@@ -232,6 +236,10 @@ declare const UpdateApplicationCommand_base: {
|
|
|
232
236
|
* // studioEnabled: true || false,
|
|
233
237
|
* // livyEndpointEnabled: true || false,
|
|
234
238
|
* // },
|
|
239
|
+
* // schedulerConfiguration: { // SchedulerConfiguration
|
|
240
|
+
* // queueTimeoutMinutes: Number("int"),
|
|
241
|
+
* // maxConcurrentRuns: Number("int"),
|
|
242
|
+
* // },
|
|
235
243
|
* // },
|
|
236
244
|
* // };
|
|
237
245
|
*
|
|
@@ -121,8 +121,7 @@ export interface InteractiveConfiguration {
|
|
|
121
121
|
livyEndpointEnabled?: boolean;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* <p>The maximum allowed cumulative resources for an application. No new resources will be
|
|
125
|
-
* created once the limit is hit.</p>
|
|
124
|
+
* <p>The maximum allowed cumulative resources for an application. No new resources will be created once the limit is hit.</p>
|
|
126
125
|
* @public
|
|
127
126
|
*/
|
|
128
127
|
export interface MaximumAllowedResources {
|
|
@@ -283,6 +282,22 @@ export interface NetworkConfiguration {
|
|
|
283
282
|
*/
|
|
284
283
|
securityGroupIds?: string[];
|
|
285
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* <p>The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.</p>
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
export interface SchedulerConfiguration {
|
|
290
|
+
/**
|
|
291
|
+
* <p>The maximum duration in minutes for the job in QUEUED state. If scheduler configuration is enabled on your application, the default value is 360 minutes (6 hours). The valid range is from 15 to 720.</p>
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
queueTimeoutMinutes?: number;
|
|
295
|
+
/**
|
|
296
|
+
* <p>The maximum concurrent job runs on this application. If scheduler configuration is enabled on your application, the default value is 15. The valid range is 1 to 1000.</p>
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
maxConcurrentRuns?: number;
|
|
300
|
+
}
|
|
286
301
|
/**
|
|
287
302
|
* @public
|
|
288
303
|
* @enum
|
|
@@ -792,6 +807,7 @@ export declare const JobRunState: {
|
|
|
792
807
|
readonly CANCELLING: "CANCELLING";
|
|
793
808
|
readonly FAILED: "FAILED";
|
|
794
809
|
readonly PENDING: "PENDING";
|
|
810
|
+
readonly QUEUED: "QUEUED";
|
|
795
811
|
readonly RUNNING: "RUNNING";
|
|
796
812
|
readonly SCHEDULED: "SCHEDULED";
|
|
797
813
|
readonly SUBMITTED: "SUBMITTED";
|
|
@@ -1319,6 +1335,11 @@ export interface Application {
|
|
|
1319
1335
|
* @public
|
|
1320
1336
|
*/
|
|
1321
1337
|
interactiveConfiguration?: InteractiveConfiguration;
|
|
1338
|
+
/**
|
|
1339
|
+
* <p>The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.</p>
|
|
1340
|
+
* @public
|
|
1341
|
+
*/
|
|
1342
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
1322
1343
|
}
|
|
1323
1344
|
/**
|
|
1324
1345
|
* <p>A configuration specification to be used to override existing configurations.</p>
|
|
@@ -1435,6 +1456,11 @@ export interface CreateApplicationRequest {
|
|
|
1435
1456
|
* @public
|
|
1436
1457
|
*/
|
|
1437
1458
|
interactiveConfiguration?: InteractiveConfiguration;
|
|
1459
|
+
/**
|
|
1460
|
+
* <p>The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.</p>
|
|
1461
|
+
* @public
|
|
1462
|
+
*/
|
|
1463
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
1438
1464
|
}
|
|
1439
1465
|
/**
|
|
1440
1466
|
* @public
|
|
@@ -1526,6 +1552,11 @@ export interface UpdateApplicationRequest {
|
|
|
1526
1552
|
* @public
|
|
1527
1553
|
*/
|
|
1528
1554
|
monitoringConfiguration?: MonitoringConfiguration;
|
|
1555
|
+
/**
|
|
1556
|
+
* <p>The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.</p>
|
|
1557
|
+
* @public
|
|
1558
|
+
*/
|
|
1559
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
1529
1560
|
}
|
|
1530
1561
|
/**
|
|
1531
1562
|
* @public
|
|
@@ -1672,6 +1703,21 @@ export interface JobRun {
|
|
|
1672
1703
|
* @public
|
|
1673
1704
|
*/
|
|
1674
1705
|
attemptUpdatedAt?: Date;
|
|
1706
|
+
/**
|
|
1707
|
+
* <p>The date and time when the job moved to the RUNNING state.</p>
|
|
1708
|
+
* @public
|
|
1709
|
+
*/
|
|
1710
|
+
startedAt?: Date;
|
|
1711
|
+
/**
|
|
1712
|
+
* <p>The date and time when the job was terminated.</p>
|
|
1713
|
+
* @public
|
|
1714
|
+
*/
|
|
1715
|
+
endedAt?: Date;
|
|
1716
|
+
/**
|
|
1717
|
+
* <p>The total time for a job in the QUEUED state in milliseconds.</p>
|
|
1718
|
+
* @public
|
|
1719
|
+
*/
|
|
1720
|
+
queuedDurationMilliseconds?: number;
|
|
1675
1721
|
}
|
|
1676
1722
|
/**
|
|
1677
1723
|
* @public
|
|
@@ -63,6 +63,10 @@ export interface NetworkConfiguration {
|
|
|
63
63
|
subnetIds?: string[];
|
|
64
64
|
securityGroupIds?: string[];
|
|
65
65
|
}
|
|
66
|
+
export interface SchedulerConfiguration {
|
|
67
|
+
queueTimeoutMinutes?: number;
|
|
68
|
+
maxConcurrentRuns?: number;
|
|
69
|
+
}
|
|
66
70
|
export declare const ApplicationState: {
|
|
67
71
|
readonly CREATED: "CREATED";
|
|
68
72
|
readonly CREATING: "CREATING";
|
|
@@ -234,6 +238,7 @@ export declare const JobRunState: {
|
|
|
234
238
|
readonly CANCELLING: "CANCELLING";
|
|
235
239
|
readonly FAILED: "FAILED";
|
|
236
240
|
readonly PENDING: "PENDING";
|
|
241
|
+
readonly QUEUED: "QUEUED";
|
|
237
242
|
readonly RUNNING: "RUNNING";
|
|
238
243
|
readonly SCHEDULED: "SCHEDULED";
|
|
239
244
|
readonly SUBMITTED: "SUBMITTED";
|
|
@@ -351,6 +356,7 @@ export interface Application {
|
|
|
351
356
|
runtimeConfiguration?: Configuration[];
|
|
352
357
|
monitoringConfiguration?: MonitoringConfiguration;
|
|
353
358
|
interactiveConfiguration?: InteractiveConfiguration;
|
|
359
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
354
360
|
}
|
|
355
361
|
export interface ConfigurationOverrides {
|
|
356
362
|
applicationConfiguration?: Configuration[];
|
|
@@ -373,6 +379,7 @@ export interface CreateApplicationRequest {
|
|
|
373
379
|
runtimeConfiguration?: Configuration[];
|
|
374
380
|
monitoringConfiguration?: MonitoringConfiguration;
|
|
375
381
|
interactiveConfiguration?: InteractiveConfiguration;
|
|
382
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
376
383
|
}
|
|
377
384
|
export interface UpdateApplicationRequest {
|
|
378
385
|
applicationId: string | undefined;
|
|
@@ -389,6 +396,7 @@ export interface UpdateApplicationRequest {
|
|
|
389
396
|
releaseLabel?: string;
|
|
390
397
|
runtimeConfiguration?: Configuration[];
|
|
391
398
|
monitoringConfiguration?: MonitoringConfiguration;
|
|
399
|
+
schedulerConfiguration?: SchedulerConfiguration;
|
|
392
400
|
}
|
|
393
401
|
export interface GetApplicationResponse {
|
|
394
402
|
application: Application | undefined;
|
|
@@ -418,6 +426,9 @@ export interface JobRun {
|
|
|
418
426
|
attempt?: number;
|
|
419
427
|
attemptCreatedAt?: Date;
|
|
420
428
|
attemptUpdatedAt?: Date;
|
|
429
|
+
startedAt?: Date;
|
|
430
|
+
endedAt?: Date;
|
|
431
|
+
queuedDurationMilliseconds?: number;
|
|
421
432
|
}
|
|
422
433
|
export interface StartJobRunRequest {
|
|
423
434
|
applicationId: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-emr-serverless",
|
|
3
3
|
"description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.658.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-serverless",
|
|
@@ -20,10 +20,10 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.658.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.658.0",
|
|
25
|
+
"@aws-sdk/core": "3.658.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.658.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.654.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.654.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.654.0",
|