Skip to content

Commit 3892b81

Browse files
author
awstools
committed
feat(client-emr-serverless): This release adds the capability to run interactive workloads using Apache Livy Endpoint.
1 parent 211cb53 commit 3892b81

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
129129
* remoteWriteUrl: "STRING_VALUE",
130130
* },
131131
* },
132+
* interactiveConfiguration: { // InteractiveConfiguration
133+
* studioEnabled: true || false,
134+
* livyEndpointEnabled: true || false,
135+
* },
132136
* };
133137
* const command = new CreateApplicationCommand(input);
134138
* const response = await client.send(command);

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

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
142142
* // remoteWriteUrl: "STRING_VALUE",
143143
* // },
144144
* // },
145+
* // interactiveConfiguration: { // InteractiveConfiguration
146+
* // studioEnabled: true || false,
147+
* // livyEndpointEnabled: true || false,
148+
* // },
145149
* // },
146150
* // };
147151
*

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

+8
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
8585
* },
8686
* },
8787
* },
88+
* interactiveConfiguration: { // InteractiveConfiguration
89+
* studioEnabled: true || false,
90+
* livyEndpointEnabled: true || false,
91+
* },
8892
* releaseLabel: "STRING_VALUE",
8993
* runtimeConfiguration: [ // ConfigurationList
9094
* { // Configuration
@@ -229,6 +233,10 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
229233
* // remoteWriteUrl: "STRING_VALUE",
230234
* // },
231235
* // },
236+
* // interactiveConfiguration: { // InteractiveConfiguration
237+
* // studioEnabled: true || false,
238+
* // livyEndpointEnabled: true || false,
239+
* // },
232240
* // },
233241
* // };
234242
*

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

+38
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,24 @@ export interface InitialCapacityConfig {
120120
workerConfiguration?: WorkerResourceConfig;
121121
}
122122

123+
/**
124+
* <p>The configuration to use to enable the different types of interactive use cases in an application.</p>
125+
* @public
126+
*/
127+
export interface InteractiveConfiguration {
128+
/**
129+
* <p>Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook.</p>
130+
* @public
131+
*/
132+
studioEnabled?: boolean;
133+
134+
/**
135+
* <p>Enables an Apache Livy endpoint that you can connect to and run interactive jobs.</p>
136+
* @public
137+
*/
138+
livyEndpointEnabled?: boolean;
139+
}
140+
123141
/**
124142
* <p>The maximum allowed cumulative resources for an application. No new resources will be
125143
* created once the limit is hit.</p>
@@ -1297,6 +1315,12 @@ export interface Application {
12971315
* @public
12981316
*/
12991317
monitoringConfiguration?: MonitoringConfiguration;
1318+
1319+
/**
1320+
* <p>The interactive configuration object that enables the interactive use cases for an application.</p>
1321+
* @public
1322+
*/
1323+
interactiveConfiguration?: InteractiveConfiguration;
13001324
}
13011325

13021326
/**
@@ -1424,6 +1448,13 @@ export interface CreateApplicationRequest {
14241448
* @public
14251449
*/
14261450
monitoringConfiguration?: MonitoringConfiguration;
1451+
1452+
/**
1453+
* <p>The interactive configuration object that enables the interactive use cases
1454+
* to use when running an application.</p>
1455+
* @public
1456+
*/
1457+
interactiveConfiguration?: InteractiveConfiguration;
14271458
}
14281459

14291460
/**
@@ -1502,6 +1533,13 @@ export interface UpdateApplicationRequest {
15021533
*/
15031534
workerTypeSpecifications?: Record<string, WorkerTypeSpecificationInput>;
15041535

1536+
/**
1537+
* <p>The interactive configuration object that contains new interactive use cases
1538+
* when the application is updated.</p>
1539+
* @public
1540+
*/
1541+
interactiveConfiguration?: InteractiveConfiguration;
1542+
15051543
/**
15061544
* <p>The Amazon EMR release label for the application. You can change the release
15071545
* label to use a different release of Amazon EMR.</p>

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

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import {
6666
Hive,
6767
ImageConfigurationInput,
6868
InitialCapacityConfig,
69+
InteractiveConfiguration,
6970
InternalServerException,
7071
JobDriver,
7172
JobRun,
@@ -124,6 +125,7 @@ export const se_CreateApplicationCommand = async (
124125
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
125126
imageConfiguration: (_) => _json(_),
126127
initialCapacity: (_) => _json(_),
128+
interactiveConfiguration: (_) => _json(_),
127129
maximumCapacity: (_) => _json(_),
128130
monitoringConfiguration: (_) => _json(_),
129131
name: [],
@@ -392,6 +394,7 @@ export const se_UpdateApplicationCommand = async (
392394
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
393395
imageConfiguration: (_) => _json(_),
394396
initialCapacity: (_) => _json(_),
397+
interactiveConfiguration: (_) => _json(_),
395398
maximumCapacity: (_) => _json(_),
396399
monitoringConfiguration: (_) => _json(_),
397400
networkConfiguration: (_) => _json(_),
@@ -884,6 +887,8 @@ const se_ConfigurationOverrides = (input: ConfigurationOverrides, context: __Ser
884887

885888
// se_InitialCapacityConfigMap omitted.
886889

890+
// se_InteractiveConfiguration omitted.
891+
887892
// se_JobDriver omitted.
888893

889894
// se_LogTypeList omitted.
@@ -931,6 +936,7 @@ const de_Application = (output: any, context: __SerdeContext): Application => {
931936
createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
932937
imageConfiguration: _json,
933938
initialCapacity: _json,
939+
interactiveConfiguration: _json,
934940
maximumCapacity: _json,
935941
monitoringConfiguration: _json,
936942
name: __expectString,
@@ -1025,6 +1031,8 @@ const de_ConfigurationOverrides = (output: any, context: __SerdeContext): Config
10251031

10261032
// de_InitialCapacityConfigMap omitted.
10271033

1034+
// de_InteractiveConfiguration omitted.
1035+
10281036
// de_JobDriver omitted.
10291037

10301038
/**

0 commit comments

Comments
 (0)