Skip to content

Commit 572bc93

Browse files
author
awstools
committed
feat(client-emr-serverless): The release adds support for spark structured streaming.
1 parent c87de6a commit 572bc93

14 files changed

+4552
-3644
lines changed

Diff for: clients/client-emr-serverless/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ ListApplications
278278

279279
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/ListApplicationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListApplicationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListApplicationsCommandOutput/)
280280

281+
</details>
282+
<details>
283+
<summary>
284+
ListJobRunAttempts
285+
</summary>
286+
287+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/ListJobRunAttemptsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListJobRunAttemptsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListJobRunAttemptsCommandOutput/)
288+
281289
</details>
282290
<details>
283291
<summary>

Diff for: clients/client-emr-serverless/src/EMRServerless.ts

+23
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ import {
3333
ListApplicationsCommandInput,
3434
ListApplicationsCommandOutput,
3535
} from "./commands/ListApplicationsCommand";
36+
import {
37+
ListJobRunAttemptsCommand,
38+
ListJobRunAttemptsCommandInput,
39+
ListJobRunAttemptsCommandOutput,
40+
} from "./commands/ListJobRunAttemptsCommand";
3641
import { ListJobRunsCommand, ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
3742
import {
3843
ListTagsForResourceCommand,
@@ -71,6 +76,7 @@ const commands = {
7176
GetDashboardForJobRunCommand,
7277
GetJobRunCommand,
7378
ListApplicationsCommand,
79+
ListJobRunAttemptsCommand,
7480
ListJobRunsCommand,
7581
ListTagsForResourceCommand,
7682
StartApplicationCommand,
@@ -187,6 +193,23 @@ export interface EMRServerless {
187193
cb: (err: any, data?: ListApplicationsCommandOutput) => void
188194
): void;
189195

196+
/**
197+
* @see {@link ListJobRunAttemptsCommand}
198+
*/
199+
listJobRunAttempts(
200+
args: ListJobRunAttemptsCommandInput,
201+
options?: __HttpHandlerOptions
202+
): Promise<ListJobRunAttemptsCommandOutput>;
203+
listJobRunAttempts(
204+
args: ListJobRunAttemptsCommandInput,
205+
cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void
206+
): void;
207+
listJobRunAttempts(
208+
args: ListJobRunAttemptsCommandInput,
209+
options: __HttpHandlerOptions,
210+
cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void
211+
): void;
212+
190213
/**
191214
* @see {@link ListJobRunsCommand}
192215
*/

Diff for: clients/client-emr-serverless/src/EMRServerlessClient.ts

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
} from "./commands/GetDashboardForJobRunCommand";
6464
import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
6565
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
66+
import { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "./commands/ListJobRunAttemptsCommand";
6667
import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
6768
import {
6869
ListTagsForResourceCommandInput,
@@ -96,6 +97,7 @@ export type ServiceInputTypes =
9697
| GetDashboardForJobRunCommandInput
9798
| GetJobRunCommandInput
9899
| ListApplicationsCommandInput
100+
| ListJobRunAttemptsCommandInput
99101
| ListJobRunsCommandInput
100102
| ListTagsForResourceCommandInput
101103
| StartApplicationCommandInput
@@ -116,6 +118,7 @@ export type ServiceOutputTypes =
116118
| GetDashboardForJobRunCommandOutput
117119
| GetJobRunCommandOutput
118120
| ListApplicationsCommandOutput
121+
| ListJobRunAttemptsCommandOutput
119122
| ListJobRunsCommandOutput
120123
| ListTagsForResourceCommandOutput
121124
| StartApplicationCommandOutput

Diff for: clients/client-emr-serverless/src/commands/GetDashboardForJobRunCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface GetDashboardForJobRunCommandOutput extends GetDashboardForJobRu
4545
* const input = { // GetDashboardForJobRunRequest
4646
* applicationId: "STRING_VALUE", // required
4747
* jobRunId: "STRING_VALUE", // required
48+
* attempt: Number("int"),
4849
* };
4950
* const command = new GetDashboardForJobRunCommand(input);
5051
* const response = await client.send(command);

Diff for: clients/client-emr-serverless/src/commands/GetJobRunCommand.ts

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
3737
* const input = { // GetJobRunRequest
3838
* applicationId: "STRING_VALUE", // required
3939
* jobRunId: "STRING_VALUE", // required
40+
* attempt: Number("int"),
4041
* };
4142
* const command = new GetJobRunCommand(input);
4243
* const response = await client.send(command);
@@ -133,6 +134,14 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
133134
* // memoryGBHour: Number("double"),
134135
* // storageGBHour: Number("double"),
135136
* // },
137+
* // mode: "STRING_VALUE",
138+
* // retryPolicy: { // RetryPolicy
139+
* // maxAttempts: Number("int"),
140+
* // maxFailedAttemptsPerHour: Number("int"),
141+
* // },
142+
* // attempt: Number("int"),
143+
* // attemptCreatedAt: new Date("TIMESTAMP"),
144+
* // attemptUpdatedAt: new Date("TIMESTAMP"),
136145
* // },
137146
* // };
138147
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
8+
import { commonParams } from "../endpoint/EndpointParameters";
9+
import { ListJobRunAttemptsRequest, ListJobRunAttemptsResponse } from "../models/models_0";
10+
import { de_ListJobRunAttemptsCommand, se_ListJobRunAttemptsCommand } from "../protocols/Aws_restJson1";
11+
12+
/**
13+
* @public
14+
*/
15+
export { __MetadataBearer, $Command };
16+
/**
17+
* @public
18+
*
19+
* The input for {@link ListJobRunAttemptsCommand}.
20+
*/
21+
export interface ListJobRunAttemptsCommandInput extends ListJobRunAttemptsRequest {}
22+
/**
23+
* @public
24+
*
25+
* The output of {@link ListJobRunAttemptsCommand}.
26+
*/
27+
export interface ListJobRunAttemptsCommandOutput extends ListJobRunAttemptsResponse, __MetadataBearer {}
28+
29+
/**
30+
* <p>Lists all attempt of a job run.</p>
31+
* @example
32+
* Use a bare-bones client and the command you need to make an API call.
33+
* ```javascript
34+
* import { EMRServerlessClient, ListJobRunAttemptsCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35+
* // const { EMRServerlessClient, ListJobRunAttemptsCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36+
* const client = new EMRServerlessClient(config);
37+
* const input = { // ListJobRunAttemptsRequest
38+
* applicationId: "STRING_VALUE", // required
39+
* jobRunId: "STRING_VALUE", // required
40+
* nextToken: "STRING_VALUE",
41+
* maxResults: Number("int"),
42+
* };
43+
* const command = new ListJobRunAttemptsCommand(input);
44+
* const response = await client.send(command);
45+
* // { // ListJobRunAttemptsResponse
46+
* // jobRunAttempts: [ // JobRunAttempts // required
47+
* // { // JobRunAttemptSummary
48+
* // applicationId: "STRING_VALUE", // required
49+
* // id: "STRING_VALUE", // required
50+
* // name: "STRING_VALUE",
51+
* // mode: "STRING_VALUE",
52+
* // arn: "STRING_VALUE", // required
53+
* // createdBy: "STRING_VALUE", // required
54+
* // jobCreatedAt: new Date("TIMESTAMP"), // required
55+
* // createdAt: new Date("TIMESTAMP"), // required
56+
* // updatedAt: new Date("TIMESTAMP"), // required
57+
* // executionRole: "STRING_VALUE", // required
58+
* // state: "STRING_VALUE", // required
59+
* // stateDetails: "STRING_VALUE", // required
60+
* // releaseLabel: "STRING_VALUE", // required
61+
* // type: "STRING_VALUE",
62+
* // attempt: Number("int"),
63+
* // },
64+
* // ],
65+
* // nextToken: "STRING_VALUE",
66+
* // };
67+
*
68+
* ```
69+
*
70+
* @param ListJobRunAttemptsCommandInput - {@link ListJobRunAttemptsCommandInput}
71+
* @returns {@link ListJobRunAttemptsCommandOutput}
72+
* @see {@link ListJobRunAttemptsCommandInput} for command's `input` shape.
73+
* @see {@link ListJobRunAttemptsCommandOutput} for command's `response` shape.
74+
* @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
75+
*
76+
* @throws {@link InternalServerException} (server fault)
77+
* <p>Request processing failed because of an error or failure with the service.</p>
78+
*
79+
* @throws {@link ResourceNotFoundException} (client fault)
80+
* <p>The specified resource was not found.</p>
81+
*
82+
* @throws {@link ValidationException} (client fault)
83+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
84+
* service.</p>
85+
*
86+
* @throws {@link EMRServerlessServiceException}
87+
* <p>Base exception class for all service exceptions from EMRServerless service.</p>
88+
*
89+
* @public
90+
*/
91+
export class ListJobRunAttemptsCommand extends $Command
92+
.classBuilder<
93+
ListJobRunAttemptsCommandInput,
94+
ListJobRunAttemptsCommandOutput,
95+
EMRServerlessClientResolvedConfig,
96+
ServiceInputTypes,
97+
ServiceOutputTypes
98+
>()
99+
.ep({
100+
...commonParams,
101+
})
102+
.m(function (this: any, Command: any, cs: any, config: EMRServerlessClientResolvedConfig, o: any) {
103+
return [
104+
getSerdePlugin(config, this.serialize, this.deserialize),
105+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
106+
];
107+
})
108+
.s("AwsToledoWebService", "ListJobRunAttempts", {})
109+
.n("EMRServerlessClient", "ListJobRunAttemptsCommand")
110+
.f(void 0, void 0)
111+
.ser(se_ListJobRunAttemptsCommand)
112+
.de(de_ListJobRunAttemptsCommand)
113+
.build() {}

Diff for: clients/client-emr-serverless/src/commands/ListJobRunsCommand.ts

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface ListJobRunsCommandOutput extends ListJobRunsResponse, __Metadat
4343
* states: [ // JobRunStateSet
4444
* "STRING_VALUE",
4545
* ],
46+
* mode: "STRING_VALUE",
4647
* };
4748
* const command = new ListJobRunsCommand(input);
4849
* const response = await client.send(command);
@@ -52,6 +53,7 @@ export interface ListJobRunsCommandOutput extends ListJobRunsResponse, __Metadat
5253
* // applicationId: "STRING_VALUE", // required
5354
* // id: "STRING_VALUE", // required
5455
* // name: "STRING_VALUE",
56+
* // mode: "STRING_VALUE",
5557
* // arn: "STRING_VALUE", // required
5658
* // createdBy: "STRING_VALUE", // required
5759
* // createdAt: new Date("TIMESTAMP"), // required
@@ -61,6 +63,9 @@ export interface ListJobRunsCommandOutput extends ListJobRunsResponse, __Metadat
6163
* // stateDetails: "STRING_VALUE", // required
6264
* // releaseLabel: "STRING_VALUE", // required
6365
* // type: "STRING_VALUE",
66+
* // attempt: Number("int"),
67+
* // attemptCreatedAt: new Date("TIMESTAMP"),
68+
* // attemptUpdatedAt: new Date("TIMESTAMP"),
6469
* // },
6570
* // ],
6671
* // nextToken: "STRING_VALUE",

Diff for: clients/client-emr-serverless/src/commands/StartJobRunCommand.ts

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ export interface StartJobRunCommandOutput extends StartJobRunResponse, __Metadat
100100
* },
101101
* executionTimeoutMinutes: Number("long"),
102102
* name: "STRING_VALUE",
103+
* mode: "STRING_VALUE",
104+
* retryPolicy: { // RetryPolicy
105+
* maxAttempts: Number("int"),
106+
* maxFailedAttemptsPerHour: Number("int"),
107+
* },
103108
* };
104109
* const command = new StartJobRunCommand(input);
105110
* const response = await client.send(command);

Diff for: clients/client-emr-serverless/src/commands/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export * from "./GetApplicationCommand";
66
export * from "./GetDashboardForJobRunCommand";
77
export * from "./GetJobRunCommand";
88
export * from "./ListApplicationsCommand";
9+
export * from "./ListJobRunAttemptsCommand";
910
export * from "./ListJobRunsCommand";
1011
export * from "./ListTagsForResourceCommand";
1112
export * from "./StartApplicationCommand";

0 commit comments

Comments
 (0)