@aws-sdk/client-emr-serverless 3.583.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 (30) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +111 -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 +81 -5
  10. package/dist-types/EMRServerless.d.ts +7 -0
  11. package/dist-types/EMRServerlessClient.d.ts +3 -2
  12. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +1 -0
  13. package/dist-types/commands/GetJobRunCommand.d.ts +9 -0
  14. package/dist-types/commands/ListJobRunAttemptsCommand.d.ts +91 -0
  15. package/dist-types/commands/ListJobRunsCommand.d.ts +5 -0
  16. package/dist-types/commands/StartJobRunCommand.d.ts +5 -0
  17. package/dist-types/commands/index.d.ts +1 -0
  18. package/dist-types/models/models_0.d.ts +222 -0
  19. package/dist-types/pagination/ListJobRunAttemptsPaginator.d.ts +7 -0
  20. package/dist-types/pagination/index.d.ts +1 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  22. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  23. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  24. package/dist-types/ts3.4/commands/ListJobRunAttemptsCommand.d.ts +39 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +50 -0
  27. package/dist-types/ts3.4/pagination/ListJobRunAttemptsPaginator.d.ts +11 -0
  28. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  30. package/package.json +18 -18
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import { ListJobRunAttemptsRequest, ListJobRunAttemptsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListJobRunAttemptsCommand}.
13
+ */
14
+ export interface ListJobRunAttemptsCommandInput extends ListJobRunAttemptsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListJobRunAttemptsCommand}.
20
+ */
21
+ export interface ListJobRunAttemptsCommandOutput extends ListJobRunAttemptsResponse, __MetadataBearer {
22
+ }
23
+ declare const ListJobRunAttemptsCommand_base: {
24
+ new (input: ListJobRunAttemptsCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListJobRunAttemptsCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Lists all attempt of a job run.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { EMRServerlessClient, ListJobRunAttemptsCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
34
+ * // const { EMRServerlessClient, ListJobRunAttemptsCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
35
+ * const client = new EMRServerlessClient(config);
36
+ * const input = { // ListJobRunAttemptsRequest
37
+ * applicationId: "STRING_VALUE", // required
38
+ * jobRunId: "STRING_VALUE", // required
39
+ * nextToken: "STRING_VALUE",
40
+ * maxResults: Number("int"),
41
+ * };
42
+ * const command = new ListJobRunAttemptsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListJobRunAttemptsResponse
45
+ * // jobRunAttempts: [ // JobRunAttempts // required
46
+ * // { // JobRunAttemptSummary
47
+ * // applicationId: "STRING_VALUE", // required
48
+ * // id: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE",
50
+ * // mode: "STRING_VALUE",
51
+ * // arn: "STRING_VALUE", // required
52
+ * // createdBy: "STRING_VALUE", // required
53
+ * // jobCreatedAt: new Date("TIMESTAMP"), // required
54
+ * // createdAt: new Date("TIMESTAMP"), // required
55
+ * // updatedAt: new Date("TIMESTAMP"), // required
56
+ * // executionRole: "STRING_VALUE", // required
57
+ * // state: "STRING_VALUE", // required
58
+ * // stateDetails: "STRING_VALUE", // required
59
+ * // releaseLabel: "STRING_VALUE", // required
60
+ * // type: "STRING_VALUE",
61
+ * // attempt: Number("int"),
62
+ * // },
63
+ * // ],
64
+ * // nextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListJobRunAttemptsCommandInput - {@link ListJobRunAttemptsCommandInput}
70
+ * @returns {@link ListJobRunAttemptsCommandOutput}
71
+ * @see {@link ListJobRunAttemptsCommandInput} for command's `input` shape.
72
+ * @see {@link ListJobRunAttemptsCommandOutput} for command's `response` shape.
73
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>Request processing failed because of an error or failure with the service.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource was not found.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
83
+ * service.</p>
84
+ *
85
+ * @throws {@link EMRServerlessServiceException}
86
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class ListJobRunAttemptsCommand extends ListJobRunAttemptsCommand_base {
91
+ }
@@ -42,6 +42,7 @@ declare const ListJobRunsCommand_base: {
42
42
  * states: [ // JobRunStateSet
43
43
  * "STRING_VALUE",
44
44
  * ],
45
+ * mode: "STRING_VALUE",
45
46
  * };
46
47
  * const command = new ListJobRunsCommand(input);
47
48
  * const response = await client.send(command);
@@ -51,6 +52,7 @@ declare const ListJobRunsCommand_base: {
51
52
  * // applicationId: "STRING_VALUE", // required
52
53
  * // id: "STRING_VALUE", // required
53
54
  * // name: "STRING_VALUE",
55
+ * // mode: "STRING_VALUE",
54
56
  * // arn: "STRING_VALUE", // required
55
57
  * // createdBy: "STRING_VALUE", // required
56
58
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -60,6 +62,9 @@ declare const ListJobRunsCommand_base: {
60
62
  * // stateDetails: "STRING_VALUE", // required
61
63
  * // releaseLabel: "STRING_VALUE", // required
62
64
  * // type: "STRING_VALUE",
65
+ * // attempt: Number("int"),
66
+ * // attemptCreatedAt: new Date("TIMESTAMP"),
67
+ * // attemptUpdatedAt: new Date("TIMESTAMP"),
63
68
  * // },
64
69
  * // ],
65
70
  * // nextToken: "STRING_VALUE",
@@ -99,6 +99,11 @@ declare const StartJobRunCommand_base: {
99
99
  * },
100
100
  * executionTimeoutMinutes: Number("long"),
101
101
  * name: "STRING_VALUE",
102
+ * mode: "STRING_VALUE",
103
+ * retryPolicy: { // RetryPolicy
104
+ * maxAttempts: Number("int"),
105
+ * maxFailedAttemptsPerHour: Number("int"),
106
+ * },
102
107
  * };
103
108
  * const command = new StartJobRunCommand(input);
104
109
  * const response = await client.send(command);
@@ -5,6 +5,7 @@ export * from "./GetApplicationCommand";
5
5
  export * from "./GetDashboardForJobRunCommand";
6
6
  export * from "./GetJobRunCommand";
7
7
  export * from "./ListApplicationsCommand";
8
+ export * from "./ListJobRunAttemptsCommand";
8
9
  export * from "./ListJobRunsCommand";
9
10
  export * from "./ListTagsForResourceCommand";
10
11
  export * from "./StartApplicationCommand";
@@ -609,6 +609,12 @@ export interface GetDashboardForJobRunRequest {
609
609
  * @public
610
610
  */
611
611
  jobRunId: string | undefined;
612
+ /**
613
+ * <p>An optimal parameter that indicates the amount of attempts for the job. If not specified,
614
+ * this value defaults to the attempt of the latest job.</p>
615
+ * @public
616
+ */
617
+ attempt?: number;
612
618
  }
613
619
  /**
614
620
  * @public
@@ -634,6 +640,12 @@ export interface GetJobRunRequest {
634
640
  * @public
635
641
  */
636
642
  jobRunId: string | undefined;
643
+ /**
644
+ * <p>An optimal parameter that indicates the amount of attempts for the job. If not specified,
645
+ * this value defaults to the attempt of the latest job.</p>
646
+ * @public
647
+ */
648
+ attempt?: number;
637
649
  }
638
650
  /**
639
651
  * <p>The resource utilization for memory, storage, and vCPU for jobs.</p>
@@ -743,6 +755,34 @@ export declare namespace JobDriver {
743
755
  }
744
756
  const visit: <T>(value: JobDriver, visitor: Visitor<T>) => T;
745
757
  }
758
+ /**
759
+ * @public
760
+ * @enum
761
+ */
762
+ export declare const JobRunMode: {
763
+ readonly BATCH: "BATCH";
764
+ readonly STREAMING: "STREAMING";
765
+ };
766
+ /**
767
+ * @public
768
+ */
769
+ export type JobRunMode = (typeof JobRunMode)[keyof typeof JobRunMode];
770
+ /**
771
+ * <p>The retry policy to use for a job run.</p>
772
+ * @public
773
+ */
774
+ export interface RetryPolicy {
775
+ /**
776
+ * <p>Maximum number of attempts for the job run. This parameter is only applicable for <code>BATCH</code> mode.</p>
777
+ * @public
778
+ */
779
+ maxAttempts?: number;
780
+ /**
781
+ * <p>Maximum number of failed attempts per hour. This [arameter is only applicable for <code>STREAMING</code> mode.</p>
782
+ * @public
783
+ */
784
+ maxFailedAttemptsPerHour?: number;
785
+ }
746
786
  /**
747
787
  * @public
748
788
  * @enum
@@ -786,6 +826,128 @@ export interface TotalResourceUtilization {
786
826
  */
787
827
  storageGBHour?: number;
788
828
  }
829
+ /**
830
+ * @public
831
+ */
832
+ export interface ListJobRunAttemptsRequest {
833
+ /**
834
+ * <p>The ID of the application for which to list job runs.</p>
835
+ * @public
836
+ */
837
+ applicationId: string | undefined;
838
+ /**
839
+ * <p>The ID of the job run to list.</p>
840
+ * @public
841
+ */
842
+ jobRunId: string | undefined;
843
+ /**
844
+ * <p>The token for the next set of job run attempt results.</p>
845
+ * @public
846
+ */
847
+ nextToken?: string;
848
+ /**
849
+ * <p>The maximum number of job run attempts to list.</p>
850
+ * @public
851
+ */
852
+ maxResults?: number;
853
+ }
854
+ /**
855
+ * <p>The summary of attributes associated with a job run attempt.</p>
856
+ * @public
857
+ */
858
+ export interface JobRunAttemptSummary {
859
+ /**
860
+ * <p>The ID of the application the job is running on.</p>
861
+ * @public
862
+ */
863
+ applicationId: string | undefined;
864
+ /**
865
+ * <p>The ID of the job run attempt.</p>
866
+ * @public
867
+ */
868
+ id: string | undefined;
869
+ /**
870
+ * <p>The name of the job run attempt.</p>
871
+ * @public
872
+ */
873
+ name?: string;
874
+ /**
875
+ * <p>The mode of the job run attempt.</p>
876
+ * @public
877
+ */
878
+ mode?: JobRunMode;
879
+ /**
880
+ * <p>The Amazon Resource Name (ARN) of the job run.</p>
881
+ * @public
882
+ */
883
+ arn: string | undefined;
884
+ /**
885
+ * <p>The user who created the job run.</p>
886
+ * @public
887
+ */
888
+ createdBy: string | undefined;
889
+ /**
890
+ * <p>The date and time of when the job run was created.</p>
891
+ * @public
892
+ */
893
+ jobCreatedAt: Date | undefined;
894
+ /**
895
+ * <p>The date and time when the job run attempt was created.</p>
896
+ * @public
897
+ */
898
+ createdAt: Date | undefined;
899
+ /**
900
+ * <p>The date and time of when the job run attempt was last updated.</p>
901
+ * @public
902
+ */
903
+ updatedAt: Date | undefined;
904
+ /**
905
+ * <p>The Amazon Resource Name (ARN) of the execution role of the job run..</p>
906
+ * @public
907
+ */
908
+ executionRole: string | undefined;
909
+ /**
910
+ * <p>The state of the job run attempt.</p>
911
+ * @public
912
+ */
913
+ state: JobRunState | undefined;
914
+ /**
915
+ * <p>The state details of the job run attempt.</p>
916
+ * @public
917
+ */
918
+ stateDetails: string | undefined;
919
+ /**
920
+ * <p>The Amazon EMR release label of the job run attempt.</p>
921
+ * @public
922
+ */
923
+ releaseLabel: string | undefined;
924
+ /**
925
+ * <p>The type of the job run, such as Spark or Hive.</p>
926
+ * @public
927
+ */
928
+ type?: string;
929
+ /**
930
+ * <p>The attempt number of the job run execution.</p>
931
+ * @public
932
+ */
933
+ attempt?: number;
934
+ }
935
+ /**
936
+ * @public
937
+ */
938
+ export interface ListJobRunAttemptsResponse {
939
+ /**
940
+ * <p>The array of the listed job run attempt objects.</p>
941
+ * @public
942
+ */
943
+ jobRunAttempts: JobRunAttemptSummary[] | undefined;
944
+ /**
945
+ * <p>The output displays the token for the next set of application results.
946
+ * This is required for pagination and is available as a response of the previous request.</p>
947
+ * @public
948
+ */
949
+ nextToken?: string;
950
+ }
789
951
  /**
790
952
  * @public
791
953
  */
@@ -821,6 +983,11 @@ export interface ListJobRunsRequest {
821
983
  * @public
822
984
  */
823
985
  states?: JobRunState[];
986
+ /**
987
+ * <p>The mode of the job runs to list.</p>
988
+ * @public
989
+ */
990
+ mode?: JobRunMode;
824
991
  }
825
992
  /**
826
993
  * <p>The summary of attributes associated with a job run.</p>
@@ -842,6 +1009,11 @@ export interface JobRunSummary {
842
1009
  * @public
843
1010
  */
844
1011
  name?: string;
1012
+ /**
1013
+ * <p>The mode of the job run.</p>
1014
+ * @public
1015
+ */
1016
+ mode?: JobRunMode;
845
1017
  /**
846
1018
  * <p>The ARN of the job run.</p>
847
1019
  * @public
@@ -888,6 +1060,21 @@ export interface JobRunSummary {
888
1060
  * @public
889
1061
  */
890
1062
  type?: string;
1063
+ /**
1064
+ * <p>The attempt number of the job run execution.</p>
1065
+ * @public
1066
+ */
1067
+ attempt?: number;
1068
+ /**
1069
+ * <p>The date and time of when the job run attempt was created.</p>
1070
+ * @public
1071
+ */
1072
+ attemptCreatedAt?: Date;
1073
+ /**
1074
+ * <p>The date and time of when the job run attempt was last updated.</p>
1075
+ * @public
1076
+ */
1077
+ attemptUpdatedAt?: Date;
891
1078
  }
892
1079
  /**
893
1080
  * @public
@@ -1460,6 +1647,31 @@ export interface JobRun {
1460
1647
  * @public
1461
1648
  */
1462
1649
  billedResourceUtilization?: ResourceUtilization;
1650
+ /**
1651
+ * <p>The mode of the job run.</p>
1652
+ * @public
1653
+ */
1654
+ mode?: JobRunMode;
1655
+ /**
1656
+ * <p>The retry policy of the job run.</p>
1657
+ * @public
1658
+ */
1659
+ retryPolicy?: RetryPolicy;
1660
+ /**
1661
+ * <p>The attempt of the job run.</p>
1662
+ * @public
1663
+ */
1664
+ attempt?: number;
1665
+ /**
1666
+ * <p>The date and time of when the job run attempt was created.</p>
1667
+ * @public
1668
+ */
1669
+ attemptCreatedAt?: Date;
1670
+ /**
1671
+ * <p>The date and time of when the job run attempt was last updated.</p>
1672
+ * @public
1673
+ */
1674
+ attemptUpdatedAt?: Date;
1463
1675
  }
1464
1676
  /**
1465
1677
  * @public
@@ -1507,6 +1719,16 @@ export interface StartJobRunRequest {
1507
1719
  * @public
1508
1720
  */
1509
1721
  name?: string;
1722
+ /**
1723
+ * <p>The mode of the job run when it starts.</p>
1724
+ * @public
1725
+ */
1726
+ mode?: JobRunMode;
1727
+ /**
1728
+ * <p>The retry policy when job run starts.</p>
1729
+ * @public
1730
+ */
1731
+ retryPolicy?: RetryPolicy;
1510
1732
  }
1511
1733
  /**
1512
1734
  * @public
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "../commands/ListJobRunAttemptsCommand";
3
+ import { EMRServerlessPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListJobRunAttempts: (config: EMRServerlessPaginationConfiguration, input: ListJobRunAttemptsCommandInput, ...rest: any[]) => 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";
@@ -7,6 +7,7 @@ import { GetApplicationCommandInput, GetApplicationCommandOutput } from "../comm
7
7
  import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "../commands/GetDashboardForJobRunCommand";
8
8
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "../commands/GetJobRunCommand";
9
9
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../commands/ListApplicationsCommand";
10
+ import { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "../commands/ListJobRunAttemptsCommand";
10
11
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "../commands/ListJobRunsCommand";
11
12
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
12
13
  import { StartApplicationCommandInput, StartApplicationCommandOutput } from "../commands/StartApplicationCommand";
@@ -43,6 +44,10 @@ export declare const se_GetJobRunCommand: (input: GetJobRunCommandInput, context
43
44
  * serializeAws_restJson1ListApplicationsCommand
44
45
  */
45
46
  export declare const se_ListApplicationsCommand: (input: ListApplicationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
47
+ /**
48
+ * serializeAws_restJson1ListJobRunAttemptsCommand
49
+ */
50
+ export declare const se_ListJobRunAttemptsCommand: (input: ListJobRunAttemptsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
46
51
  /**
47
52
  * serializeAws_restJson1ListJobRunsCommand
48
53
  */
@@ -103,6 +108,10 @@ export declare const de_GetJobRunCommand: (output: __HttpResponse, context: __Se
103
108
  * deserializeAws_restJson1ListApplicationsCommand
104
109
  */
105
110
  export declare const de_ListApplicationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListApplicationsCommandOutput>;
111
+ /**
112
+ * deserializeAws_restJson1ListJobRunAttemptsCommand
113
+ */
114
+ export declare const de_ListJobRunAttemptsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListJobRunAttemptsCommandOutput>;
106
115
  /**
107
116
  * deserializeAws_restJson1ListJobRunsCommand
108
117
  */
@@ -27,6 +27,10 @@ import {
27
27
  ListApplicationsCommandInput,
28
28
  ListApplicationsCommandOutput,
29
29
  } from "./commands/ListApplicationsCommand";
30
+ import {
31
+ ListJobRunAttemptsCommandInput,
32
+ ListJobRunAttemptsCommandOutput,
33
+ } from "./commands/ListJobRunAttemptsCommand";
30
34
  import {
31
35
  ListJobRunsCommandInput,
32
36
  ListJobRunsCommandOutput,
@@ -153,6 +157,19 @@ export interface EMRServerless {
153
157
  options: __HttpHandlerOptions,
154
158
  cb: (err: any, data?: ListApplicationsCommandOutput) => void
155
159
  ): void;
160
+ listJobRunAttempts(
161
+ args: ListJobRunAttemptsCommandInput,
162
+ options?: __HttpHandlerOptions
163
+ ): Promise<ListJobRunAttemptsCommandOutput>;
164
+ listJobRunAttempts(
165
+ args: ListJobRunAttemptsCommandInput,
166
+ cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void
167
+ ): void;
168
+ listJobRunAttempts(
169
+ args: ListJobRunAttemptsCommandInput,
170
+ options: __HttpHandlerOptions,
171
+ cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void
172
+ ): void;
156
173
  listJobRuns(
157
174
  args: ListJobRunsCommandInput,
158
175
  options?: __HttpHandlerOptions
@@ -73,6 +73,10 @@ import {
73
73
  ListApplicationsCommandInput,
74
74
  ListApplicationsCommandOutput,
75
75
  } from "./commands/ListApplicationsCommand";
76
+ import {
77
+ ListJobRunAttemptsCommandInput,
78
+ ListJobRunAttemptsCommandOutput,
79
+ } from "./commands/ListJobRunAttemptsCommand";
76
80
  import {
77
81
  ListJobRunsCommandInput,
78
82
  ListJobRunsCommandOutput,
@@ -120,6 +124,7 @@ export type ServiceInputTypes =
120
124
  | GetDashboardForJobRunCommandInput
121
125
  | GetJobRunCommandInput
122
126
  | ListApplicationsCommandInput
127
+ | ListJobRunAttemptsCommandInput
123
128
  | ListJobRunsCommandInput
124
129
  | ListTagsForResourceCommandInput
125
130
  | StartApplicationCommandInput
@@ -136,6 +141,7 @@ export type ServiceOutputTypes =
136
141
  | GetDashboardForJobRunCommandOutput
137
142
  | GetJobRunCommandOutput
138
143
  | ListApplicationsCommandOutput
144
+ | ListJobRunAttemptsCommandOutput
139
145
  | ListJobRunsCommandOutput
140
146
  | ListTagsForResourceCommandOutput
141
147
  | StartApplicationCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ EMRServerlessClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../EMRServerlessClient";
8
+ import {
9
+ ListJobRunAttemptsRequest,
10
+ ListJobRunAttemptsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface ListJobRunAttemptsCommandInput
14
+ extends ListJobRunAttemptsRequest {}
15
+ export interface ListJobRunAttemptsCommandOutput
16
+ extends ListJobRunAttemptsResponse,
17
+ __MetadataBearer {}
18
+ declare const ListJobRunAttemptsCommand_base: {
19
+ new (
20
+ input: ListJobRunAttemptsCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListJobRunAttemptsCommandInput,
23
+ ListJobRunAttemptsCommandOutput,
24
+ EMRServerlessClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: ListJobRunAttemptsCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListJobRunAttemptsCommandInput,
32
+ ListJobRunAttemptsCommandOutput,
33
+ EMRServerlessClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListJobRunAttemptsCommand extends ListJobRunAttemptsCommand_base {}
@@ -5,6 +5,7 @@ export * from "./GetApplicationCommand";
5
5
  export * from "./GetDashboardForJobRunCommand";
6
6
  export * from "./GetJobRunCommand";
7
7
  export * from "./ListApplicationsCommand";
8
+ export * from "./ListJobRunAttemptsCommand";
8
9
  export * from "./ListJobRunsCommand";
9
10
  export * from "./ListTagsForResourceCommand";
10
11
  export * from "./StartApplicationCommand";
@@ -168,6 +168,7 @@ export interface CancelJobRunResponse {
168
168
  export interface GetDashboardForJobRunRequest {
169
169
  applicationId: string | undefined;
170
170
  jobRunId: string | undefined;
171
+ attempt?: number;
171
172
  }
172
173
  export interface GetDashboardForJobRunResponse {
173
174
  url?: string;
@@ -175,6 +176,7 @@ export interface GetDashboardForJobRunResponse {
175
176
  export interface GetJobRunRequest {
176
177
  applicationId: string | undefined;
177
178
  jobRunId: string | undefined;
179
+ attempt?: number;
178
180
  }
179
181
  export interface ResourceUtilization {
180
182
  vCPUHour?: number;
@@ -218,6 +220,15 @@ export declare namespace JobDriver {
218
220
  }
219
221
  const visit: <T>(value: JobDriver, visitor: Visitor<T>) => T;
220
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
+ }
221
232
  export declare const JobRunState: {
222
233
  readonly CANCELLED: "CANCELLED";
223
234
  readonly CANCELLING: "CANCELLING";
@@ -234,6 +245,33 @@ export interface TotalResourceUtilization {
234
245
  memoryGBHour?: number;
235
246
  storageGBHour?: number;
236
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
+ }
237
275
  export interface ListJobRunsRequest {
238
276
  applicationId: string | undefined;
239
277
  nextToken?: string;
@@ -241,11 +279,13 @@ export interface ListJobRunsRequest {
241
279
  createdAtAfter?: Date;
242
280
  createdAtBefore?: Date;
243
281
  states?: JobRunState[];
282
+ mode?: JobRunMode;
244
283
  }
245
284
  export interface JobRunSummary {
246
285
  applicationId: string | undefined;
247
286
  id: string | undefined;
248
287
  name?: string;
288
+ mode?: JobRunMode;
249
289
  arn: string | undefined;
250
290
  createdBy: string | undefined;
251
291
  createdAt: Date | undefined;
@@ -255,6 +295,9 @@ export interface JobRunSummary {
255
295
  stateDetails: string | undefined;
256
296
  releaseLabel: string | undefined;
257
297
  type?: string;
298
+ attempt?: number;
299
+ attemptCreatedAt?: Date;
300
+ attemptUpdatedAt?: Date;
258
301
  }
259
302
  export interface ListJobRunsResponse {
260
303
  jobRuns: JobRunSummary[] | undefined;
@@ -370,6 +413,11 @@ export interface JobRun {
370
413
  totalExecutionDurationSeconds?: number;
371
414
  executionTimeoutMinutes?: number;
372
415
  billedResourceUtilization?: ResourceUtilization;
416
+ mode?: JobRunMode;
417
+ retryPolicy?: RetryPolicy;
418
+ attempt?: number;
419
+ attemptCreatedAt?: Date;
420
+ attemptUpdatedAt?: Date;
373
421
  }
374
422
  export interface StartJobRunRequest {
375
423
  applicationId: string | undefined;
@@ -380,6 +428,8 @@ export interface StartJobRunRequest {
380
428
  tags?: Record<string, string>;
381
429
  executionTimeoutMinutes?: number;
382
430
  name?: string;
431
+ mode?: JobRunMode;
432
+ retryPolicy?: RetryPolicy;
383
433
  }
384
434
  export interface UpdateApplicationResponse {
385
435
  application: Application | undefined;