Skip to content

Commit

Permalink
feat(client-emr-serverless): This release adds the capability to run …
Browse files Browse the repository at this point in the history
…interactive workloads using Apache Livy Endpoint.
  • Loading branch information
awstools committed May 23, 2024
1 parent 211cb53 commit 3892b81
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
* remoteWriteUrl: "STRING_VALUE",
* },
* },
* interactiveConfiguration: { // InteractiveConfiguration
* studioEnabled: true || false,
* livyEndpointEnabled: true || false,
* },
* };
* const command = new CreateApplicationCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
* // remoteWriteUrl: "STRING_VALUE",
* // },
* // },
* // interactiveConfiguration: { // InteractiveConfiguration
* // studioEnabled: true || false,
* // livyEndpointEnabled: true || false,
* // },
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
* },
* },
* },
* interactiveConfiguration: { // InteractiveConfiguration
* studioEnabled: true || false,
* livyEndpointEnabled: true || false,
* },
* releaseLabel: "STRING_VALUE",
* runtimeConfiguration: [ // ConfigurationList
* { // Configuration
Expand Down Expand Up @@ -229,6 +233,10 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
* // remoteWriteUrl: "STRING_VALUE",
* // },
* // },
* // interactiveConfiguration: { // InteractiveConfiguration
* // studioEnabled: true || false,
* // livyEndpointEnabled: true || false,
* // },
* // },
* // };
*
Expand Down
38 changes: 38 additions & 0 deletions clients/client-emr-serverless/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@ export interface InitialCapacityConfig {
workerConfiguration?: WorkerResourceConfig;
}

/**
* <p>The configuration to use to enable the different types of interactive use cases in an application.</p>
* @public
*/
export interface InteractiveConfiguration {
/**
* <p>Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook.</p>
* @public
*/
studioEnabled?: boolean;

/**
* <p>Enables an Apache Livy endpoint that you can connect to and run interactive jobs.</p>
* @public
*/
livyEndpointEnabled?: boolean;
}

/**
* <p>The maximum allowed cumulative resources for an application. No new resources will be
* created once the limit is hit.</p>
Expand Down Expand Up @@ -1297,6 +1315,12 @@ export interface Application {
* @public
*/
monitoringConfiguration?: MonitoringConfiguration;

/**
* <p>The interactive configuration object that enables the interactive use cases for an application.</p>
* @public
*/
interactiveConfiguration?: InteractiveConfiguration;
}

/**
Expand Down Expand Up @@ -1424,6 +1448,13 @@ export interface CreateApplicationRequest {
* @public
*/
monitoringConfiguration?: MonitoringConfiguration;

/**
* <p>The interactive configuration object that enables the interactive use cases
* to use when running an application.</p>
* @public
*/
interactiveConfiguration?: InteractiveConfiguration;
}

/**
Expand Down Expand Up @@ -1502,6 +1533,13 @@ export interface UpdateApplicationRequest {
*/
workerTypeSpecifications?: Record<string, WorkerTypeSpecificationInput>;

/**
* <p>The interactive configuration object that contains new interactive use cases
* when the application is updated.</p>
* @public
*/
interactiveConfiguration?: InteractiveConfiguration;

/**
* <p>The Amazon EMR release label for the application. You can change the release
* label to use a different release of Amazon EMR.</p>
Expand Down
8 changes: 8 additions & 0 deletions clients/client-emr-serverless/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import {
Hive,
ImageConfigurationInput,
InitialCapacityConfig,
InteractiveConfiguration,
InternalServerException,
JobDriver,
JobRun,
Expand Down Expand Up @@ -124,6 +125,7 @@ export const se_CreateApplicationCommand = async (
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
imageConfiguration: (_) => _json(_),
initialCapacity: (_) => _json(_),
interactiveConfiguration: (_) => _json(_),
maximumCapacity: (_) => _json(_),
monitoringConfiguration: (_) => _json(_),
name: [],
Expand Down Expand Up @@ -392,6 +394,7 @@ export const se_UpdateApplicationCommand = async (
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
imageConfiguration: (_) => _json(_),
initialCapacity: (_) => _json(_),
interactiveConfiguration: (_) => _json(_),
maximumCapacity: (_) => _json(_),
monitoringConfiguration: (_) => _json(_),
networkConfiguration: (_) => _json(_),
Expand Down Expand Up @@ -884,6 +887,8 @@ const se_ConfigurationOverrides = (input: ConfigurationOverrides, context: __Ser

// se_InitialCapacityConfigMap omitted.

// se_InteractiveConfiguration omitted.

// se_JobDriver omitted.

// se_LogTypeList omitted.
Expand Down Expand Up @@ -931,6 +936,7 @@ const de_Application = (output: any, context: __SerdeContext): Application => {
createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
imageConfiguration: _json,
initialCapacity: _json,
interactiveConfiguration: _json,
maximumCapacity: _json,
monitoringConfiguration: _json,
name: __expectString,
Expand Down Expand Up @@ -1025,6 +1031,8 @@ const de_ConfigurationOverrides = (output: any, context: __SerdeContext): Config

// de_InitialCapacityConfigMap omitted.

// de_InteractiveConfiguration omitted.

// de_JobDriver omitted.

/**
Expand Down

0 comments on commit 3892b81

Please sign in to comment.