Skip to content

Commit f1f82e1

Browse files
author
awstools
committed
feat(client-emr): Added APIs for managing Application UIs: Access Persistent (serverless) UIs via CreatePersistentAppUI DescribePersistentAppUI & GetPersistentAppUIPresignedURL, and Cluster-based UIs through GetOnClusterAppUIPresignedURL. Supports Yarn, Spark History, and TEZ interfaces.
1 parent ab547b0 commit f1f82e1

File tree

11 files changed

+1559
-0
lines changed

11 files changed

+1559
-0
lines changed

clients/client-emr/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ CancelSteps
244244

245245
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/CancelStepsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/CancelStepsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/CancelStepsCommandOutput/)
246246

247+
</details>
248+
<details>
249+
<summary>
250+
CreatePersistentAppUI
251+
</summary>
252+
253+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/CreatePersistentAppUICommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/CreatePersistentAppUICommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/CreatePersistentAppUICommandOutput/)
254+
247255
</details>
248256
<details>
249257
<summary>
@@ -316,6 +324,14 @@ DescribeNotebookExecution
316324

317325
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/DescribeNotebookExecutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/DescribeNotebookExecutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/DescribeNotebookExecutionCommandOutput/)
318326

327+
</details>
328+
<details>
329+
<summary>
330+
DescribePersistentAppUI
331+
</summary>
332+
333+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/DescribePersistentAppUICommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/DescribePersistentAppUICommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/DescribePersistentAppUICommandOutput/)
334+
319335
</details>
320336
<details>
321337
<summary>
@@ -380,6 +396,22 @@ GetManagedScalingPolicy
380396

381397
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/GetManagedScalingPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetManagedScalingPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetManagedScalingPolicyCommandOutput/)
382398

399+
</details>
400+
<details>
401+
<summary>
402+
GetOnClusterAppUIPresignedURL
403+
</summary>
404+
405+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/GetOnClusterAppUIPresignedURLCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetOnClusterAppUIPresignedURLCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetOnClusterAppUIPresignedURLCommandOutput/)
406+
407+
</details>
408+
<details>
409+
<summary>
410+
GetPersistentAppUIPresignedURL
411+
</summary>
412+
413+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/GetPersistentAppUIPresignedURLCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetPersistentAppUIPresignedURLCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetPersistentAppUIPresignedURLCommandOutput/)
414+
383415
</details>
384416
<details>
385417
<summary>

clients/client-emr/src/EMR.ts

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ import {
1919
} from "./commands/AddJobFlowStepsCommand";
2020
import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
2121
import { CancelStepsCommand, CancelStepsCommandInput, CancelStepsCommandOutput } from "./commands/CancelStepsCommand";
22+
import {
23+
CreatePersistentAppUICommand,
24+
CreatePersistentAppUICommandInput,
25+
CreatePersistentAppUICommandOutput,
26+
} from "./commands/CreatePersistentAppUICommand";
2227
import {
2328
CreateSecurityConfigurationCommand,
2429
CreateSecurityConfigurationCommandInput,
@@ -64,6 +69,11 @@ import {
6469
DescribeNotebookExecutionCommandInput,
6570
DescribeNotebookExecutionCommandOutput,
6671
} from "./commands/DescribeNotebookExecutionCommand";
72+
import {
73+
DescribePersistentAppUICommand,
74+
DescribePersistentAppUICommandInput,
75+
DescribePersistentAppUICommandOutput,
76+
} from "./commands/DescribePersistentAppUICommand";
6777
import {
6878
DescribeReleaseLabelCommand,
6979
DescribeReleaseLabelCommandInput,
@@ -104,6 +114,16 @@ import {
104114
GetManagedScalingPolicyCommandInput,
105115
GetManagedScalingPolicyCommandOutput,
106116
} from "./commands/GetManagedScalingPolicyCommand";
117+
import {
118+
GetOnClusterAppUIPresignedURLCommand,
119+
GetOnClusterAppUIPresignedURLCommandInput,
120+
GetOnClusterAppUIPresignedURLCommandOutput,
121+
} from "./commands/GetOnClusterAppUIPresignedURLCommand";
122+
import {
123+
GetPersistentAppUIPresignedURLCommand,
124+
GetPersistentAppUIPresignedURLCommandInput,
125+
GetPersistentAppUIPresignedURLCommandOutput,
126+
} from "./commands/GetPersistentAppUIPresignedURLCommand";
107127
import {
108128
GetStudioSessionMappingCommand,
109129
GetStudioSessionMappingCommandInput,
@@ -266,6 +286,7 @@ const commands = {
266286
AddJobFlowStepsCommand,
267287
AddTagsCommand,
268288
CancelStepsCommand,
289+
CreatePersistentAppUICommand,
269290
CreateSecurityConfigurationCommand,
270291
CreateStudioCommand,
271292
CreateStudioSessionMappingCommand,
@@ -275,6 +296,7 @@ const commands = {
275296
DescribeClusterCommand,
276297
DescribeJobFlowsCommand,
277298
DescribeNotebookExecutionCommand,
299+
DescribePersistentAppUICommand,
278300
DescribeReleaseLabelCommand,
279301
DescribeSecurityConfigurationCommand,
280302
DescribeStepCommand,
@@ -283,6 +305,8 @@ const commands = {
283305
GetBlockPublicAccessConfigurationCommand,
284306
GetClusterSessionCredentialsCommand,
285307
GetManagedScalingPolicyCommand,
308+
GetOnClusterAppUIPresignedURLCommand,
309+
GetPersistentAppUIPresignedURLCommand,
286310
GetStudioSessionMappingCommand,
287311
ListBootstrapActionsCommand,
288312
ListClustersCommand,
@@ -390,6 +414,23 @@ export interface EMR {
390414
cb: (err: any, data?: CancelStepsCommandOutput) => void
391415
): void;
392416

417+
/**
418+
* @see {@link CreatePersistentAppUICommand}
419+
*/
420+
createPersistentAppUI(
421+
args: CreatePersistentAppUICommandInput,
422+
options?: __HttpHandlerOptions
423+
): Promise<CreatePersistentAppUICommandOutput>;
424+
createPersistentAppUI(
425+
args: CreatePersistentAppUICommandInput,
426+
cb: (err: any, data?: CreatePersistentAppUICommandOutput) => void
427+
): void;
428+
createPersistentAppUI(
429+
args: CreatePersistentAppUICommandInput,
430+
options: __HttpHandlerOptions,
431+
cb: (err: any, data?: CreatePersistentAppUICommandOutput) => void
432+
): void;
433+
393434
/**
394435
* @see {@link CreateSecurityConfigurationCommand}
395436
*/
@@ -529,6 +570,23 @@ export interface EMR {
529570
cb: (err: any, data?: DescribeNotebookExecutionCommandOutput) => void
530571
): void;
531572

573+
/**
574+
* @see {@link DescribePersistentAppUICommand}
575+
*/
576+
describePersistentAppUI(
577+
args: DescribePersistentAppUICommandInput,
578+
options?: __HttpHandlerOptions
579+
): Promise<DescribePersistentAppUICommandOutput>;
580+
describePersistentAppUI(
581+
args: DescribePersistentAppUICommandInput,
582+
cb: (err: any, data?: DescribePersistentAppUICommandOutput) => void
583+
): void;
584+
describePersistentAppUI(
585+
args: DescribePersistentAppUICommandInput,
586+
options: __HttpHandlerOptions,
587+
cb: (err: any, data?: DescribePersistentAppUICommandOutput) => void
588+
): void;
589+
532590
/**
533591
* @see {@link DescribeReleaseLabelCommand}
534592
*/
@@ -658,6 +716,40 @@ export interface EMR {
658716
cb: (err: any, data?: GetManagedScalingPolicyCommandOutput) => void
659717
): void;
660718

719+
/**
720+
* @see {@link GetOnClusterAppUIPresignedURLCommand}
721+
*/
722+
getOnClusterAppUIPresignedURL(
723+
args: GetOnClusterAppUIPresignedURLCommandInput,
724+
options?: __HttpHandlerOptions
725+
): Promise<GetOnClusterAppUIPresignedURLCommandOutput>;
726+
getOnClusterAppUIPresignedURL(
727+
args: GetOnClusterAppUIPresignedURLCommandInput,
728+
cb: (err: any, data?: GetOnClusterAppUIPresignedURLCommandOutput) => void
729+
): void;
730+
getOnClusterAppUIPresignedURL(
731+
args: GetOnClusterAppUIPresignedURLCommandInput,
732+
options: __HttpHandlerOptions,
733+
cb: (err: any, data?: GetOnClusterAppUIPresignedURLCommandOutput) => void
734+
): void;
735+
736+
/**
737+
* @see {@link GetPersistentAppUIPresignedURLCommand}
738+
*/
739+
getPersistentAppUIPresignedURL(
740+
args: GetPersistentAppUIPresignedURLCommandInput,
741+
options?: __HttpHandlerOptions
742+
): Promise<GetPersistentAppUIPresignedURLCommandOutput>;
743+
getPersistentAppUIPresignedURL(
744+
args: GetPersistentAppUIPresignedURLCommandInput,
745+
cb: (err: any, data?: GetPersistentAppUIPresignedURLCommandOutput) => void
746+
): void;
747+
getPersistentAppUIPresignedURL(
748+
args: GetPersistentAppUIPresignedURLCommandInput,
749+
options: __HttpHandlerOptions,
750+
cb: (err: any, data?: GetPersistentAppUIPresignedURLCommandOutput) => void
751+
): void;
752+
661753
/**
662754
* @see {@link GetStudioSessionMappingCommand}
663755
*/

clients/client-emr/src/EMRClient.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ import { AddInstanceGroupsCommandInput, AddInstanceGroupsCommandOutput } from ".
5858
import { AddJobFlowStepsCommandInput, AddJobFlowStepsCommandOutput } from "./commands/AddJobFlowStepsCommand";
5959
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
6060
import { CancelStepsCommandInput, CancelStepsCommandOutput } from "./commands/CancelStepsCommand";
61+
import {
62+
CreatePersistentAppUICommandInput,
63+
CreatePersistentAppUICommandOutput,
64+
} from "./commands/CreatePersistentAppUICommand";
6165
import {
6266
CreateSecurityConfigurationCommandInput,
6367
CreateSecurityConfigurationCommandOutput,
@@ -82,6 +86,10 @@ import {
8286
DescribeNotebookExecutionCommandInput,
8387
DescribeNotebookExecutionCommandOutput,
8488
} from "./commands/DescribeNotebookExecutionCommand";
89+
import {
90+
DescribePersistentAppUICommandInput,
91+
DescribePersistentAppUICommandOutput,
92+
} from "./commands/DescribePersistentAppUICommand";
8593
import {
8694
DescribeReleaseLabelCommandInput,
8795
DescribeReleaseLabelCommandOutput,
@@ -108,6 +116,14 @@ import {
108116
GetManagedScalingPolicyCommandInput,
109117
GetManagedScalingPolicyCommandOutput,
110118
} from "./commands/GetManagedScalingPolicyCommand";
119+
import {
120+
GetOnClusterAppUIPresignedURLCommandInput,
121+
GetOnClusterAppUIPresignedURLCommandOutput,
122+
} from "./commands/GetOnClusterAppUIPresignedURLCommand";
123+
import {
124+
GetPersistentAppUIPresignedURLCommandInput,
125+
GetPersistentAppUIPresignedURLCommandOutput,
126+
} from "./commands/GetPersistentAppUIPresignedURLCommand";
111127
import {
112128
GetStudioSessionMappingCommandInput,
113129
GetStudioSessionMappingCommandOutput,
@@ -228,6 +244,7 @@ export type ServiceInputTypes =
228244
| AddJobFlowStepsCommandInput
229245
| AddTagsCommandInput
230246
| CancelStepsCommandInput
247+
| CreatePersistentAppUICommandInput
231248
| CreateSecurityConfigurationCommandInput
232249
| CreateStudioCommandInput
233250
| CreateStudioSessionMappingCommandInput
@@ -237,6 +254,7 @@ export type ServiceInputTypes =
237254
| DescribeClusterCommandInput
238255
| DescribeJobFlowsCommandInput
239256
| DescribeNotebookExecutionCommandInput
257+
| DescribePersistentAppUICommandInput
240258
| DescribeReleaseLabelCommandInput
241259
| DescribeSecurityConfigurationCommandInput
242260
| DescribeStepCommandInput
@@ -245,6 +263,8 @@ export type ServiceInputTypes =
245263
| GetBlockPublicAccessConfigurationCommandInput
246264
| GetClusterSessionCredentialsCommandInput
247265
| GetManagedScalingPolicyCommandInput
266+
| GetOnClusterAppUIPresignedURLCommandInput
267+
| GetPersistentAppUIPresignedURLCommandInput
248268
| GetStudioSessionMappingCommandInput
249269
| ListBootstrapActionsCommandInput
250270
| ListClustersCommandInput
@@ -289,6 +309,7 @@ export type ServiceOutputTypes =
289309
| AddJobFlowStepsCommandOutput
290310
| AddTagsCommandOutput
291311
| CancelStepsCommandOutput
312+
| CreatePersistentAppUICommandOutput
292313
| CreateSecurityConfigurationCommandOutput
293314
| CreateStudioCommandOutput
294315
| CreateStudioSessionMappingCommandOutput
@@ -298,6 +319,7 @@ export type ServiceOutputTypes =
298319
| DescribeClusterCommandOutput
299320
| DescribeJobFlowsCommandOutput
300321
| DescribeNotebookExecutionCommandOutput
322+
| DescribePersistentAppUICommandOutput
301323
| DescribeReleaseLabelCommandOutput
302324
| DescribeSecurityConfigurationCommandOutput
303325
| DescribeStepCommandOutput
@@ -306,6 +328,8 @@ export type ServiceOutputTypes =
306328
| GetBlockPublicAccessConfigurationCommandOutput
307329
| GetClusterSessionCredentialsCommandOutput
308330
| GetManagedScalingPolicyCommandOutput
331+
| GetOnClusterAppUIPresignedURLCommandOutput
332+
| GetPersistentAppUIPresignedURLCommandOutput
309333
| GetStudioSessionMappingCommandOutput
310334
| ListBootstrapActionsCommandOutput
311335
| ListClustersCommandOutput

0 commit comments

Comments
 (0)