@aws-sdk/client-emr-serverless 3.582.0 → 3.587.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.
Files changed (33) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +114 -5
  3. package/dist-es/EMRServerless.js +2 -0
  4. package/dist-es/commands/ListJobRunAttemptsCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +4 -0
  7. package/dist-es/pagination/ListJobRunAttemptsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_restJson1.js +84 -5
  10. package/dist-types/EMRServerless.d.ts +7 -0
  11. package/dist-types/EMRServerlessClient.d.ts +3 -2
  12. package/dist-types/commands/CreateApplicationCommand.d.ts +4 -0
  13. package/dist-types/commands/GetApplicationCommand.d.ts +4 -0
  14. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +1 -0
  15. package/dist-types/commands/GetJobRunCommand.d.ts +9 -0
  16. package/dist-types/commands/ListJobRunAttemptsCommand.d.ts +91 -0
  17. package/dist-types/commands/ListJobRunsCommand.d.ts +5 -0
  18. package/dist-types/commands/StartJobRunCommand.d.ts +5 -0
  19. package/dist-types/commands/UpdateApplicationCommand.d.ts +8 -0
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +255 -0
  22. package/dist-types/pagination/ListJobRunAttemptsPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  25. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  26. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  27. package/dist-types/ts3.4/commands/ListJobRunAttemptsCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +57 -0
  30. package/dist-types/ts3.4/pagination/ListJobRunAttemptsPaginator.d.ts +11 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  33. package/package.json +18 -18
@@ -26,6 +26,10 @@ export interface InitialCapacityConfig {
26
26
  workerCount: number | undefined;
27
27
  workerConfiguration?: WorkerResourceConfig;
28
28
  }
29
+ export interface InteractiveConfiguration {
30
+ studioEnabled?: boolean;
31
+ livyEndpointEnabled?: boolean;
32
+ }
29
33
  export interface MaximumAllowedResources {
30
34
  cpu: string | undefined;
31
35
  memory: string | undefined;
@@ -164,6 +168,7 @@ export interface CancelJobRunResponse {
164
168
  export interface GetDashboardForJobRunRequest {
165
169
  applicationId: string | undefined;
166
170
  jobRunId: string | undefined;
171
+ attempt?: number;
167
172
  }
168
173
  export interface GetDashboardForJobRunResponse {
169
174
  url?: string;
@@ -171,6 +176,7 @@ export interface GetDashboardForJobRunResponse {
171
176
  export interface GetJobRunRequest {
172
177
  applicationId: string | undefined;
173
178
  jobRunId: string | undefined;
179
+ attempt?: number;
174
180
  }
175
181
  export interface ResourceUtilization {
176
182
  vCPUHour?: number;
@@ -214,6 +220,15 @@ export declare namespace JobDriver {
214
220
  }
215
221
  const visit: <T>(value: JobDriver, visitor: Visitor<T>) => T;
216
222
  }
223
+ export declare const JobRunMode: {
224
+ readonly BATCH: "BATCH";
225
+ readonly STREAMING: "STREAMING";
226
+ };
227
+ export type JobRunMode = (typeof JobRunMode)[keyof typeof JobRunMode];
228
+ export interface RetryPolicy {
229
+ maxAttempts?: number;
230
+ maxFailedAttemptsPerHour?: number;
231
+ }
217
232
  export declare const JobRunState: {
218
233
  readonly CANCELLED: "CANCELLED";
219
234
  readonly CANCELLING: "CANCELLING";
@@ -230,6 +245,33 @@ export interface TotalResourceUtilization {
230
245
  memoryGBHour?: number;
231
246
  storageGBHour?: number;
232
247
  }
248
+ export interface ListJobRunAttemptsRequest {
249
+ applicationId: string | undefined;
250
+ jobRunId: string | undefined;
251
+ nextToken?: string;
252
+ maxResults?: number;
253
+ }
254
+ export interface JobRunAttemptSummary {
255
+ applicationId: string | undefined;
256
+ id: string | undefined;
257
+ name?: string;
258
+ mode?: JobRunMode;
259
+ arn: string | undefined;
260
+ createdBy: string | undefined;
261
+ jobCreatedAt: Date | undefined;
262
+ createdAt: Date | undefined;
263
+ updatedAt: Date | undefined;
264
+ executionRole: string | undefined;
265
+ state: JobRunState | undefined;
266
+ stateDetails: string | undefined;
267
+ releaseLabel: string | undefined;
268
+ type?: string;
269
+ attempt?: number;
270
+ }
271
+ export interface ListJobRunAttemptsResponse {
272
+ jobRunAttempts: JobRunAttemptSummary[] | undefined;
273
+ nextToken?: string;
274
+ }
233
275
  export interface ListJobRunsRequest {
234
276
  applicationId: string | undefined;
235
277
  nextToken?: string;
@@ -237,11 +279,13 @@ export interface ListJobRunsRequest {
237
279
  createdAtAfter?: Date;
238
280
  createdAtBefore?: Date;
239
281
  states?: JobRunState[];
282
+ mode?: JobRunMode;
240
283
  }
241
284
  export interface JobRunSummary {
242
285
  applicationId: string | undefined;
243
286
  id: string | undefined;
244
287
  name?: string;
288
+ mode?: JobRunMode;
245
289
  arn: string | undefined;
246
290
  createdBy: string | undefined;
247
291
  createdAt: Date | undefined;
@@ -251,6 +295,9 @@ export interface JobRunSummary {
251
295
  stateDetails: string | undefined;
252
296
  releaseLabel: string | undefined;
253
297
  type?: string;
298
+ attempt?: number;
299
+ attemptCreatedAt?: Date;
300
+ attemptUpdatedAt?: Date;
254
301
  }
255
302
  export interface ListJobRunsResponse {
256
303
  jobRuns: JobRunSummary[] | undefined;
@@ -303,6 +350,7 @@ export interface Application {
303
350
  workerTypeSpecifications?: Record<string, WorkerTypeSpecification>;
304
351
  runtimeConfiguration?: Configuration[];
305
352
  monitoringConfiguration?: MonitoringConfiguration;
353
+ interactiveConfiguration?: InteractiveConfiguration;
306
354
  }
307
355
  export interface ConfigurationOverrides {
308
356
  applicationConfiguration?: Configuration[];
@@ -324,6 +372,7 @@ export interface CreateApplicationRequest {
324
372
  workerTypeSpecifications?: Record<string, WorkerTypeSpecificationInput>;
325
373
  runtimeConfiguration?: Configuration[];
326
374
  monitoringConfiguration?: MonitoringConfiguration;
375
+ interactiveConfiguration?: InteractiveConfiguration;
327
376
  }
328
377
  export interface UpdateApplicationRequest {
329
378
  applicationId: string | undefined;
@@ -336,6 +385,7 @@ export interface UpdateApplicationRequest {
336
385
  architecture?: Architecture;
337
386
  imageConfiguration?: ImageConfigurationInput;
338
387
  workerTypeSpecifications?: Record<string, WorkerTypeSpecificationInput>;
388
+ interactiveConfiguration?: InteractiveConfiguration;
339
389
  releaseLabel?: string;
340
390
  runtimeConfiguration?: Configuration[];
341
391
  monitoringConfiguration?: MonitoringConfiguration;
@@ -363,6 +413,11 @@ export interface JobRun {
363
413
  totalExecutionDurationSeconds?: number;
364
414
  executionTimeoutMinutes?: number;
365
415
  billedResourceUtilization?: ResourceUtilization;
416
+ mode?: JobRunMode;
417
+ retryPolicy?: RetryPolicy;
418
+ attempt?: number;
419
+ attemptCreatedAt?: Date;
420
+ attemptUpdatedAt?: Date;
366
421
  }
367
422
  export interface StartJobRunRequest {
368
423
  applicationId: string | undefined;
@@ -373,6 +428,8 @@ export interface StartJobRunRequest {
373
428
  tags?: Record<string, string>;
374
429
  executionTimeoutMinutes?: number;
375
430
  name?: string;
431
+ mode?: JobRunMode;
432
+ retryPolicy?: RetryPolicy;
376
433
  }
377
434
  export interface UpdateApplicationResponse {
378
435
  application: Application | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListJobRunAttemptsCommandInput,
4
+ ListJobRunAttemptsCommandOutput,
5
+ } from "../commands/ListJobRunAttemptsCommand";
6
+ import { EMRServerlessPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListJobRunAttempts: (
8
+ config: EMRServerlessPaginationConfiguration,
9
+ input: ListJobRunAttemptsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListJobRunAttemptsCommandOutput>;
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListApplicationsPaginator";
3
+ export * from "./ListJobRunAttemptsPaginator";
3
4
  export * from "./ListJobRunsPaginator";
@@ -31,6 +31,10 @@ import {
31
31
  ListApplicationsCommandInput,
32
32
  ListApplicationsCommandOutput,
33
33
  } from "../commands/ListApplicationsCommand";
34
+ import {
35
+ ListJobRunAttemptsCommandInput,
36
+ ListJobRunAttemptsCommandOutput,
37
+ } from "../commands/ListJobRunAttemptsCommand";
34
38
  import {
35
39
  ListJobRunsCommandInput,
36
40
  ListJobRunsCommandOutput,
@@ -91,6 +95,10 @@ export declare const se_ListApplicationsCommand: (
91
95
  input: ListApplicationsCommandInput,
92
96
  context: __SerdeContext
93
97
  ) => Promise<__HttpRequest>;
98
+ export declare const se_ListJobRunAttemptsCommand: (
99
+ input: ListJobRunAttemptsCommandInput,
100
+ context: __SerdeContext
101
+ ) => Promise<__HttpRequest>;
94
102
  export declare const se_ListJobRunsCommand: (
95
103
  input: ListJobRunsCommandInput,
96
104
  context: __SerdeContext
@@ -151,6 +159,10 @@ export declare const de_ListApplicationsCommand: (
151
159
  output: __HttpResponse,
152
160
  context: __SerdeContext
153
161
  ) => Promise<ListApplicationsCommandOutput>;
162
+ export declare const de_ListJobRunAttemptsCommand: (
163
+ output: __HttpResponse,
164
+ context: __SerdeContext
165
+ ) => Promise<ListJobRunAttemptsCommandOutput>;
154
166
  export declare const de_ListJobRunsCommand: (
155
167
  output: __HttpResponse,
156
168
  context: __SerdeContext
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.582.0",
4
+ "version": "3.587.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,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.582.0",
24
- "@aws-sdk/client-sts": "3.582.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.582.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.577.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.577.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
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.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-utf8": "^3.0.0",