import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandInput extends CreateApplicationRequest { } /** * @public * * The output of {@link CreateApplicationCommand}. */ export interface CreateApplicationCommandOutput extends CreateApplicationResponse, __MetadataBearer { } declare const CreateApplicationCommand_base: { new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateApplicationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EMRServerlessClient, CreateApplicationCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import * // const { EMRServerlessClient, CreateApplicationCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless"; * const config = {}; // type is EMRServerlessClientConfig * const client = new EMRServerlessClient(config); * const input = { // CreateApplicationRequest * name: "STRING_VALUE", * releaseLabel: "STRING_VALUE", // required * type: "STRING_VALUE", // required * clientToken: "STRING_VALUE", // required * initialCapacity: { // InitialCapacityConfigMap * "": { // InitialCapacityConfig * workerCount: Number("long"), // required * workerConfiguration: { // WorkerResourceConfig * cpu: "STRING_VALUE", // required * memory: "STRING_VALUE", // required * disk: "STRING_VALUE", * diskType: "STRING_VALUE", * }, * }, * }, * maximumCapacity: { // MaximumAllowedResources * cpu: "STRING_VALUE", // required * memory: "STRING_VALUE", // required * disk: "STRING_VALUE", * }, * tags: { // TagMap * "": "STRING_VALUE", * }, * autoStartConfiguration: { // AutoStartConfig * enabled: true || false, * }, * autoStopConfiguration: { // AutoStopConfig * enabled: true || false, * idleTimeoutMinutes: Number("int"), * }, * networkConfiguration: { // NetworkConfiguration * subnetIds: [ // SubnetIds * "STRING_VALUE", * ], * securityGroupIds: [ // SecurityGroupIds * "STRING_VALUE", * ], * }, * architecture: "STRING_VALUE", * imageConfiguration: { // ImageConfigurationInput * imageUri: "STRING_VALUE", * applicationLevelDigestResolution: true || false, * }, * workerTypeSpecifications: { // WorkerTypeSpecificationInputMap * "": { // WorkerTypeSpecificationInput * imageConfiguration: { * imageUri: "STRING_VALUE", * applicationLevelDigestResolution: true || false, * }, * }, * }, * runtimeConfiguration: [ // ConfigurationList * { // Configuration * classification: "STRING_VALUE", // required * properties: { // SensitivePropertiesMap * "": "STRING_VALUE", * }, * configurations: [ * { * classification: "STRING_VALUE", // required * properties: { * "": "STRING_VALUE", * }, * configurations: "", * }, * ], * }, * ], * monitoringConfiguration: { // MonitoringConfiguration * s3MonitoringConfiguration: { // S3MonitoringConfiguration * logUri: "STRING_VALUE", * encryptionKeyArn: "STRING_VALUE", * }, * managedPersistenceMonitoringConfiguration: { // ManagedPersistenceMonitoringConfiguration * enabled: true || false, * encryptionKeyArn: "STRING_VALUE", * }, * cloudWatchLoggingConfiguration: { // CloudWatchLoggingConfiguration * enabled: true || false, // required * logGroupName: "STRING_VALUE", * logStreamNamePrefix: "STRING_VALUE", * encryptionKeyArn: "STRING_VALUE", * logTypes: { // LogTypeMap * "": [ // LogTypeList * "STRING_VALUE", * ], * }, * }, * prometheusMonitoringConfiguration: { // PrometheusMonitoringConfiguration * remoteWriteUrl: "STRING_VALUE", * }, * }, * diskEncryptionConfiguration: { // DiskEncryptionConfiguration * encryptionContext: { // EncryptionContext * "": "STRING_VALUE", * }, * encryptionKeyArn: "STRING_VALUE", * }, * interactiveConfiguration: { // InteractiveConfiguration * studioEnabled: true || false, * livyEndpointEnabled: true || false, * sessionEnabled: true || false, * }, * schedulerConfiguration: { // SchedulerConfiguration * queueTimeoutMinutes: Number("int"), * maxConcurrentRuns: Number("int"), * }, * identityCenterConfiguration: { // IdentityCenterConfigurationInput * identityCenterInstanceArn: "STRING_VALUE", * userBackgroundSessionsEnabled: true || false, * }, * jobLevelCostAllocationConfiguration: { // JobLevelCostAllocationConfiguration * enabled: true || false, * }, * }; * const command = new CreateApplicationCommand(input); * const response = await client.send(command); * // { // CreateApplicationResponse * // applicationId: "STRING_VALUE", // required * // name: "STRING_VALUE", * // arn: "STRING_VALUE", // required * // }; * * ``` * * @param CreateApplicationCommandInput - {@link CreateApplicationCommandInput} * @returns {@link CreateApplicationCommandOutput} * @see {@link CreateApplicationCommandInput} for command's `input` shape. * @see {@link CreateApplicationCommandOutput} for command's `response` shape. * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request could not be processed because of conflict in the current state of the resource.

* * @throws {@link InternalServerException} (server fault) *

Request processing failed because of an error or failure with the service.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource was not found.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by an Amazon Web Services service.

* * @throws {@link EMRServerlessServiceException} *

Base exception class for all service exceptions from EMRServerless service.

* * * @public */ export declare class CreateApplicationCommand extends CreateApplicationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationRequest; output: CreateApplicationResponse; }; sdk: { input: CreateApplicationCommandInput; output: CreateApplicationCommandOutput; }; }; }