-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-emr-serverless): The release adds support for spark struc…
…tured streaming.
- Loading branch information
awstools
committed
May 30, 2024
1 parent
c87de6a
commit 572bc93
Showing
14 changed files
with
4,552 additions
and
3,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
clients/client-emr-serverless/src/commands/ListJobRunAttemptsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ListJobRunAttemptsRequest, ListJobRunAttemptsResponse } from "../models/models_0"; | ||
import { de_ListJobRunAttemptsCommand, se_ListJobRunAttemptsCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListJobRunAttemptsCommand}. | ||
*/ | ||
export interface ListJobRunAttemptsCommandInput extends ListJobRunAttemptsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListJobRunAttemptsCommand}. | ||
*/ | ||
export interface ListJobRunAttemptsCommandOutput extends ListJobRunAttemptsResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists all attempt of a job run.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { EMRServerlessClient, ListJobRunAttemptsCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import | ||
* // const { EMRServerlessClient, ListJobRunAttemptsCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import | ||
* const client = new EMRServerlessClient(config); | ||
* const input = { // ListJobRunAttemptsRequest | ||
* applicationId: "STRING_VALUE", // required | ||
* jobRunId: "STRING_VALUE", // required | ||
* nextToken: "STRING_VALUE", | ||
* maxResults: Number("int"), | ||
* }; | ||
* const command = new ListJobRunAttemptsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListJobRunAttemptsResponse | ||
* // jobRunAttempts: [ // JobRunAttempts // required | ||
* // { // JobRunAttemptSummary | ||
* // applicationId: "STRING_VALUE", // required | ||
* // id: "STRING_VALUE", // required | ||
* // name: "STRING_VALUE", | ||
* // mode: "STRING_VALUE", | ||
* // arn: "STRING_VALUE", // required | ||
* // createdBy: "STRING_VALUE", // required | ||
* // jobCreatedAt: new Date("TIMESTAMP"), // required | ||
* // createdAt: new Date("TIMESTAMP"), // required | ||
* // updatedAt: new Date("TIMESTAMP"), // required | ||
* // executionRole: "STRING_VALUE", // required | ||
* // state: "STRING_VALUE", // required | ||
* // stateDetails: "STRING_VALUE", // required | ||
* // releaseLabel: "STRING_VALUE", // required | ||
* // type: "STRING_VALUE", | ||
* // attempt: Number("int"), | ||
* // }, | ||
* // ], | ||
* // nextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListJobRunAttemptsCommandInput - {@link ListJobRunAttemptsCommandInput} | ||
* @returns {@link ListJobRunAttemptsCommandOutput} | ||
* @see {@link ListJobRunAttemptsCommandInput} for command's `input` shape. | ||
* @see {@link ListJobRunAttemptsCommandOutput} for command's `response` shape. | ||
* @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape. | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>Request processing failed because of an error or failure with the service.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The specified resource was not found.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services | ||
* service.</p> | ||
* | ||
* @throws {@link EMRServerlessServiceException} | ||
* <p>Base exception class for all service exceptions from EMRServerless service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListJobRunAttemptsCommand extends $Command | ||
.classBuilder< | ||
ListJobRunAttemptsCommandInput, | ||
ListJobRunAttemptsCommandOutput, | ||
EMRServerlessClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: EMRServerlessClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AwsToledoWebService", "ListJobRunAttempts", {}) | ||
.n("EMRServerlessClient", "ListJobRunAttemptsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListJobRunAttemptsCommand) | ||
.de(de_ListJobRunAttemptsCommand) | ||
.build() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.