@aws-sdk/client-emr-serverless 3.1034.0 → 3.1035.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/README.md +42 -0
- package/dist-cjs/index.js +103 -0
- package/dist-cjs/schemas/schemas_0.js +140 -8
- package/dist-es/EMRServerless.js +14 -0
- package/dist-es/commands/GetResourceDashboardCommand.js +16 -0
- package/dist-es/commands/GetSessionCommand.js +16 -0
- package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
- package/dist-es/commands/ListSessionsCommand.js +16 -0
- package/dist-es/commands/StartSessionCommand.js +16 -0
- package/dist-es/commands/TerminateSessionCommand.js +16 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/enums.js +13 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +137 -6
- package/dist-types/EMRServerless.d.ts +49 -0
- package/dist-types/EMRServerlessClient.d.ts +8 -2
- package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +1 -0
- package/dist-types/commands/GetResourceDashboardCommand.d.ts +85 -0
- package/dist-types/commands/GetSessionCommand.d.ts +141 -0
- package/dist-types/commands/GetSessionEndpointCommand.d.ts +88 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +105 -0
- package/dist-types/commands/StartSessionCommand.d.ts +117 -0
- package/dist-types/commands/TerminateSessionCommand.d.ts +85 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/enums.d.ts +29 -0
- package/dist-types/models/models_0.d.ts +429 -1
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +21 -0
- package/dist-types/ts3.4/EMRServerless.d.ts +109 -0
- package/dist-types/ts3.4/EMRServerlessClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetResourceDashboardCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/enums.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +102 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +5 -5
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
Architecture,
|
|
4
4
|
JobRunMode,
|
|
5
5
|
JobRunState,
|
|
6
|
+
ResourceType,
|
|
7
|
+
SessionState,
|
|
6
8
|
} from "./enums";
|
|
7
9
|
export interface AutoStartConfig {
|
|
8
10
|
enabled?: boolean | undefined;
|
|
@@ -37,6 +39,7 @@ export interface InitialCapacityConfig {
|
|
|
37
39
|
export interface InteractiveConfiguration {
|
|
38
40
|
studioEnabled?: boolean | undefined;
|
|
39
41
|
livyEndpointEnabled?: boolean | undefined;
|
|
42
|
+
sessionEnabled?: boolean | undefined;
|
|
40
43
|
}
|
|
41
44
|
export interface JobLevelCostAllocationConfiguration {
|
|
42
45
|
enabled?: boolean | undefined;
|
|
@@ -119,6 +122,14 @@ export interface DeleteApplicationResponse {}
|
|
|
119
122
|
export interface GetApplicationRequest {
|
|
120
123
|
applicationId: string | undefined;
|
|
121
124
|
}
|
|
125
|
+
export interface GetResourceDashboardRequest {
|
|
126
|
+
applicationId: string | undefined;
|
|
127
|
+
resourceId: string | undefined;
|
|
128
|
+
resourceType: ResourceType | undefined;
|
|
129
|
+
}
|
|
130
|
+
export interface GetResourceDashboardResponse {
|
|
131
|
+
url?: string | undefined;
|
|
132
|
+
}
|
|
122
133
|
export interface ListApplicationsRequest {
|
|
123
134
|
nextToken?: string | undefined;
|
|
124
135
|
maxResults?: number | undefined;
|
|
@@ -282,6 +293,59 @@ export interface ListTagsForResourceRequest {
|
|
|
282
293
|
export interface ListTagsForResourceResponse {
|
|
283
294
|
tags?: Record<string, string> | undefined;
|
|
284
295
|
}
|
|
296
|
+
export interface GetSessionRequest {
|
|
297
|
+
applicationId: string | undefined;
|
|
298
|
+
sessionId: string | undefined;
|
|
299
|
+
}
|
|
300
|
+
export interface GetSessionEndpointRequest {
|
|
301
|
+
applicationId: string | undefined;
|
|
302
|
+
sessionId: string | undefined;
|
|
303
|
+
}
|
|
304
|
+
export interface GetSessionEndpointResponse {
|
|
305
|
+
applicationId: string | undefined;
|
|
306
|
+
sessionId: string | undefined;
|
|
307
|
+
endpoint: string | undefined;
|
|
308
|
+
authToken: string | undefined;
|
|
309
|
+
authTokenExpiresAt: Date | undefined;
|
|
310
|
+
}
|
|
311
|
+
export interface ListSessionsRequest {
|
|
312
|
+
applicationId: string | undefined;
|
|
313
|
+
nextToken?: string | undefined;
|
|
314
|
+
maxResults?: number | undefined;
|
|
315
|
+
states?: SessionState[] | undefined;
|
|
316
|
+
createdAtAfter?: Date | undefined;
|
|
317
|
+
createdAtBefore?: Date | undefined;
|
|
318
|
+
}
|
|
319
|
+
export interface SessionSummary {
|
|
320
|
+
applicationId: string | undefined;
|
|
321
|
+
sessionId: string | undefined;
|
|
322
|
+
arn: string | undefined;
|
|
323
|
+
name?: string | undefined;
|
|
324
|
+
state: SessionState | undefined;
|
|
325
|
+
stateDetails: string | undefined;
|
|
326
|
+
releaseLabel: string | undefined;
|
|
327
|
+
executionRoleArn: string | undefined;
|
|
328
|
+
createdBy: string | undefined;
|
|
329
|
+
createdAt: Date | undefined;
|
|
330
|
+
updatedAt: Date | undefined;
|
|
331
|
+
}
|
|
332
|
+
export interface ListSessionsResponse {
|
|
333
|
+
sessions: SessionSummary[] | undefined;
|
|
334
|
+
nextToken?: string | undefined;
|
|
335
|
+
}
|
|
336
|
+
export interface StartSessionResponse {
|
|
337
|
+
applicationId: string | undefined;
|
|
338
|
+
sessionId: string | undefined;
|
|
339
|
+
arn: string | undefined;
|
|
340
|
+
}
|
|
341
|
+
export interface TerminateSessionRequest {
|
|
342
|
+
applicationId: string | undefined;
|
|
343
|
+
sessionId: string | undefined;
|
|
344
|
+
}
|
|
345
|
+
export interface TerminateSessionResponse {
|
|
346
|
+
applicationId: string | undefined;
|
|
347
|
+
sessionId: string | undefined;
|
|
348
|
+
}
|
|
285
349
|
export interface TagResourceRequest {
|
|
286
350
|
resourceArn: string | undefined;
|
|
287
351
|
tags: Record<string, string> | undefined;
|
|
@@ -359,6 +423,9 @@ export interface CreateApplicationRequest {
|
|
|
359
423
|
| JobLevelCostAllocationConfiguration
|
|
360
424
|
| undefined;
|
|
361
425
|
}
|
|
426
|
+
export interface SessionConfigurationOverrides {
|
|
427
|
+
runtimeConfiguration?: Configuration[] | undefined;
|
|
428
|
+
}
|
|
362
429
|
export interface UpdateApplicationRequest {
|
|
363
430
|
applicationId: string | undefined;
|
|
364
431
|
clientToken?: string | undefined;
|
|
@@ -416,6 +483,29 @@ export interface JobRun {
|
|
|
416
483
|
endedAt?: Date | undefined;
|
|
417
484
|
queuedDurationMilliseconds?: number | undefined;
|
|
418
485
|
}
|
|
486
|
+
export interface Session {
|
|
487
|
+
applicationId: string | undefined;
|
|
488
|
+
sessionId: string | undefined;
|
|
489
|
+
arn: string | undefined;
|
|
490
|
+
name?: string | undefined;
|
|
491
|
+
state: SessionState | undefined;
|
|
492
|
+
stateDetails: string | undefined;
|
|
493
|
+
releaseLabel: string | undefined;
|
|
494
|
+
executionRoleArn: string | undefined;
|
|
495
|
+
createdBy: string | undefined;
|
|
496
|
+
createdAt: Date | undefined;
|
|
497
|
+
updatedAt: Date | undefined;
|
|
498
|
+
startedAt?: Date | undefined;
|
|
499
|
+
endedAt?: Date | undefined;
|
|
500
|
+
idleSince?: Date | undefined;
|
|
501
|
+
configurationOverrides?: SessionConfigurationOverrides | undefined;
|
|
502
|
+
networkConfiguration?: NetworkConfiguration | undefined;
|
|
503
|
+
idleTimeoutMinutes?: number | undefined;
|
|
504
|
+
tags?: Record<string, string> | undefined;
|
|
505
|
+
totalResourceUtilization?: TotalResourceUtilization | undefined;
|
|
506
|
+
billedResourceUtilization?: ResourceUtilization | undefined;
|
|
507
|
+
totalExecutionDurationSeconds?: number | undefined;
|
|
508
|
+
}
|
|
419
509
|
export interface StartJobRunRequest {
|
|
420
510
|
applicationId: string | undefined;
|
|
421
511
|
clientToken?: string | undefined;
|
|
@@ -429,9 +519,21 @@ export interface StartJobRunRequest {
|
|
|
429
519
|
mode?: JobRunMode | undefined;
|
|
430
520
|
retryPolicy?: RetryPolicy | undefined;
|
|
431
521
|
}
|
|
522
|
+
export interface StartSessionRequest {
|
|
523
|
+
applicationId: string | undefined;
|
|
524
|
+
clientToken?: string | undefined;
|
|
525
|
+
executionRoleArn: string | undefined;
|
|
526
|
+
configurationOverrides?: SessionConfigurationOverrides | undefined;
|
|
527
|
+
tags?: Record<string, string> | undefined;
|
|
528
|
+
idleTimeoutMinutes?: number | undefined;
|
|
529
|
+
name?: string | undefined;
|
|
530
|
+
}
|
|
432
531
|
export interface UpdateApplicationResponse {
|
|
433
532
|
application: Application | undefined;
|
|
434
533
|
}
|
|
435
534
|
export interface GetJobRunResponse {
|
|
436
535
|
jobRun: JobRun | undefined;
|
|
437
536
|
}
|
|
537
|
+
export interface GetSessionResponse {
|
|
538
|
+
session: Session | undefined;
|
|
539
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListSessionsCommandInput,
|
|
4
|
+
ListSessionsCommandOutput,
|
|
5
|
+
} from "../commands/ListSessionsCommand";
|
|
6
|
+
import { EMRServerlessPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListSessions: (
|
|
8
|
+
config: EMRServerlessPaginationConfiguration,
|
|
9
|
+
input: ListSessionsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListSessionsCommandOutput>;
|
|
@@ -32,6 +32,12 @@ export declare var GetDashboardForJobRunRequest$: StaticStructureSchema;
|
|
|
32
32
|
export declare var GetDashboardForJobRunResponse$: StaticStructureSchema;
|
|
33
33
|
export declare var GetJobRunRequest$: StaticStructureSchema;
|
|
34
34
|
export declare var GetJobRunResponse$: StaticStructureSchema;
|
|
35
|
+
export declare var GetResourceDashboardRequest$: StaticStructureSchema;
|
|
36
|
+
export declare var GetResourceDashboardResponse$: StaticStructureSchema;
|
|
37
|
+
export declare var GetSessionEndpointRequest$: StaticStructureSchema;
|
|
38
|
+
export declare var GetSessionEndpointResponse$: StaticStructureSchema;
|
|
39
|
+
export declare var GetSessionRequest$: StaticStructureSchema;
|
|
40
|
+
export declare var GetSessionResponse$: StaticStructureSchema;
|
|
35
41
|
export declare var Hive$: StaticStructureSchema;
|
|
36
42
|
export declare var IdentityCenterConfiguration$: StaticStructureSchema;
|
|
37
43
|
export declare var IdentityCenterConfigurationInput$: StaticStructureSchema;
|
|
@@ -50,6 +56,8 @@ export declare var ListJobRunAttemptsRequest$: StaticStructureSchema;
|
|
|
50
56
|
export declare var ListJobRunAttemptsResponse$: StaticStructureSchema;
|
|
51
57
|
export declare var ListJobRunsRequest$: StaticStructureSchema;
|
|
52
58
|
export declare var ListJobRunsResponse$: StaticStructureSchema;
|
|
59
|
+
export declare var ListSessionsRequest$: StaticStructureSchema;
|
|
60
|
+
export declare var ListSessionsResponse$: StaticStructureSchema;
|
|
53
61
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
54
62
|
export declare var ListTagsForResourceResponse$: StaticStructureSchema;
|
|
55
63
|
export declare var ManagedPersistenceMonitoringConfiguration$: StaticStructureSchema;
|
|
@@ -61,15 +69,22 @@ export declare var ResourceUtilization$: StaticStructureSchema;
|
|
|
61
69
|
export declare var RetryPolicy$: StaticStructureSchema;
|
|
62
70
|
export declare var S3MonitoringConfiguration$: StaticStructureSchema;
|
|
63
71
|
export declare var SchedulerConfiguration$: StaticStructureSchema;
|
|
72
|
+
export declare var Session$: StaticStructureSchema;
|
|
73
|
+
export declare var SessionConfigurationOverrides$: StaticStructureSchema;
|
|
74
|
+
export declare var SessionSummary$: StaticStructureSchema;
|
|
64
75
|
export declare var SparkSubmit$: StaticStructureSchema;
|
|
65
76
|
export declare var StartApplicationRequest$: StaticStructureSchema;
|
|
66
77
|
export declare var StartApplicationResponse$: StaticStructureSchema;
|
|
67
78
|
export declare var StartJobRunRequest$: StaticStructureSchema;
|
|
68
79
|
export declare var StartJobRunResponse$: StaticStructureSchema;
|
|
80
|
+
export declare var StartSessionRequest$: StaticStructureSchema;
|
|
81
|
+
export declare var StartSessionResponse$: StaticStructureSchema;
|
|
69
82
|
export declare var StopApplicationRequest$: StaticStructureSchema;
|
|
70
83
|
export declare var StopApplicationResponse$: StaticStructureSchema;
|
|
71
84
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
72
85
|
export declare var TagResourceResponse$: StaticStructureSchema;
|
|
86
|
+
export declare var TerminateSessionRequest$: StaticStructureSchema;
|
|
87
|
+
export declare var TerminateSessionResponse$: StaticStructureSchema;
|
|
73
88
|
export declare var TotalResourceUtilization$: StaticStructureSchema;
|
|
74
89
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
75
90
|
export declare var UntagResourceResponse$: StaticStructureSchema;
|
|
@@ -85,13 +100,19 @@ export declare var DeleteApplication$: StaticOperationSchema;
|
|
|
85
100
|
export declare var GetApplication$: StaticOperationSchema;
|
|
86
101
|
export declare var GetDashboardForJobRun$: StaticOperationSchema;
|
|
87
102
|
export declare var GetJobRun$: StaticOperationSchema;
|
|
103
|
+
export declare var GetResourceDashboard$: StaticOperationSchema;
|
|
104
|
+
export declare var GetSession$: StaticOperationSchema;
|
|
105
|
+
export declare var GetSessionEndpoint$: StaticOperationSchema;
|
|
88
106
|
export declare var ListApplications$: StaticOperationSchema;
|
|
89
107
|
export declare var ListJobRunAttempts$: StaticOperationSchema;
|
|
90
108
|
export declare var ListJobRuns$: StaticOperationSchema;
|
|
109
|
+
export declare var ListSessions$: StaticOperationSchema;
|
|
91
110
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
92
111
|
export declare var StartApplication$: StaticOperationSchema;
|
|
93
112
|
export declare var StartJobRun$: StaticOperationSchema;
|
|
113
|
+
export declare var StartSession$: StaticOperationSchema;
|
|
94
114
|
export declare var StopApplication$: StaticOperationSchema;
|
|
95
115
|
export declare var TagResource$: StaticOperationSchema;
|
|
116
|
+
export declare var TerminateSession$: StaticOperationSchema;
|
|
96
117
|
export declare var UntagResource$: StaticOperationSchema;
|
|
97
118
|
export declare var UpdateApplication$: StaticOperationSchema;
|
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.1035.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-serverless",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.974.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.35",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.34",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
31
31
|
"@aws-sdk/types": "^3.973.8",
|
|
32
32
|
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.20",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.17",
|
|
36
36
|
"@smithy/core": "^3.23.16",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.17",
|