GetApplicationCommand

Displays detailed information about a specified application.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { EMRServerlessClient, GetApplicationCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
// const { EMRServerlessClient, GetApplicationCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
const client = new EMRServerlessClient(config);
const input = { // GetApplicationRequest
  applicationId: "STRING_VALUE", // required
};
const command = new GetApplicationCommand(input);
const response = await client.send(command);
// { // GetApplicationResponse
//   application: { // Application
//     applicationId: "STRING_VALUE", // required
//     name: "STRING_VALUE",
//     arn: "STRING_VALUE", // required
//     releaseLabel: "STRING_VALUE", // required
//     type: "STRING_VALUE", // required
//     state: "STRING_VALUE", // required
//     stateDetails: "STRING_VALUE",
//     initialCapacity: { // InitialCapacityConfigMap
//       "<keys>": { // 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",
//     },
//     createdAt: new Date("TIMESTAMP"), // required
//     updatedAt: new Date("TIMESTAMP"), // required
//     tags: { // TagMap
//       "<keys>": "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: { // ImageConfiguration
//       imageUri: "STRING_VALUE", // required
//       resolvedImageDigest: "STRING_VALUE",
//     },
//     workerTypeSpecifications: { // WorkerTypeSpecificationMap
//       "<keys>": { // WorkerTypeSpecification
//         imageConfiguration: {
//           imageUri: "STRING_VALUE", // required
//           resolvedImageDigest: "STRING_VALUE",
//         },
//       },
//     },
//     runtimeConfiguration: [ // ConfigurationList
//       { // Configuration
//         classification: "STRING_VALUE", // required
//         properties: { // SensitivePropertiesMap
//           "<keys>": "STRING_VALUE",
//         },
//         configurations: [
//           {
//             classification: "STRING_VALUE", // required
//             properties: {
//               "<keys>": "STRING_VALUE",
//             },
//             configurations: "<ConfigurationList>",
//           },
//         ],
//       },
//     ],
//     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
//           "<keys>": [ // LogTypeList
//             "STRING_VALUE",
//           ],
//         },
//       },
//       prometheusMonitoringConfiguration: { // PrometheusMonitoringConfiguration
//         remoteWriteUrl: "STRING_VALUE",
//       },
//     },
//     interactiveConfiguration: { // InteractiveConfiguration
//       studioEnabled: true || false,
//       livyEndpointEnabled: true || false,
//     },
//     schedulerConfiguration: { // SchedulerConfiguration
//       queueTimeoutMinutes: Number("int"),
//       maxConcurrentRuns: Number("int"),
//     },
//   },
// };

GetApplicationCommand Input

See GetApplicationCommandInput for more details

Parameter
Type
Description
applicationId
Required
string | undefined

The ID of the application that will be described.

GetApplicationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
application
Required
Application | undefined

The output displays information about the specified application.

Throws

Name
Fault
Details
InternalServerException
server

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

ResourceNotFoundException
client

The specified resource was not found.

ValidationException
client

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

EMRServerlessServiceException
Base exception class for all service exceptions from EMRServerless service.