Skip to main content

applications

Creates, updates, deletes or gets an application resource or lists applications in a region

Overview

Nameapplications
TypeResource
DescriptionResource schema for AWS::EMRServerless::Application Type
Idaws.emrserverless.applications

Fields

NameDatatypeDescription
architecturestringThe cpu architecture of an application.
namestringUser friendly Application name.
release_labelstringEMR release label.
typestringThe type of the application
initial_capacityarrayInitial capacity initialized when an Application is started.
maximum_capacityobjectMaximum allowed cumulative resources for an Application. No new resources will be created once the limit is hit.
tagsarrayTag map with key and value
auto_start_configurationobjectConfiguration for Auto Start of Application.
auto_stop_configurationobjectConfiguration for Auto Stop of Application.
image_configurationobjectThe image configuration.
monitoring_configurationobjectMonitoring configuration for batch and interactive JobRun.
runtime_configurationarrayRuntime configuration for batch and interactive JobRun.
network_configurationobjectNetwork Configuration for customer VPC connectivity.
arnstringThe Amazon Resource Name (ARN) of the EMR Serverless Application.
application_idstringThe ID of the EMR Serverless Application.
worker_type_specificationsobjectThe key-value pairs that specify worker type to WorkerTypeSpecificationInput. This parameter must contain all valid worker types for a Spark or Hive application. Valid worker types include Driver and Executor for Spark applications and HiveDriver and TezTask for Hive applications. You can either set image details in this parameter for each worker type, or in imageConfiguration for all worker types.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTReleaseLabel, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all applications in a region.

SELECT
region,
architecture,
name,
release_label,
type,
initial_capacity,
maximum_capacity,
tags,
auto_start_configuration,
auto_stop_configuration,
image_configuration,
monitoring_configuration,
runtime_configuration,
network_configuration,
arn,
application_id,
worker_type_specifications
FROM aws.emrserverless.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
architecture,
name,
release_label,
type,
initial_capacity,
maximum_capacity,
tags,
auto_start_configuration,
auto_stop_configuration,
image_configuration,
monitoring_configuration,
runtime_configuration,
network_configuration,
arn,
application_id,
worker_type_specifications
FROM aws.emrserverless.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>';

INSERT example

Use the following StackQL query and manifest file to create a new application resource, using stack-deploy.

/*+ create */
INSERT INTO aws.emrserverless.applications (
ReleaseLabel,
Type,
region
)
SELECT
'{{ ReleaseLabel }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.emrserverless.applications
WHERE data__Identifier = '<ApplicationId>'
AND region = 'us-east-1';

Permissions

To operate on the applications resource, the following permissions are required:

Create

kms:Create*,
kms:Describe*,
kms:Enable*,
kms:List*,
kms:Put*,
kms:Update*,
kms:Revoke*,
kms:Disable*,
kms:Get*,
kms:Delete*,
kms:ScheduleKeyDeletion,
kms:CancelKeyDeletion,
kms:GenerateDataKey,
kms:TagResource,
kms:UntagResource,
kms:Decrypt,
emr-serverless:CreateApplication,
emr-serverless:TagResource,
emr-serverless:GetApplication,
iam:CreateServiceLinkedRole,
ec2:CreateNetworkInterface,
ecr:BatchGetImage,
ecr:DescribeImages,
ecr:GetDownloadUrlForLayer

Read

emr-serverless:GetApplication

Update

emr-serverless:UpdateApplication,
emr-serverless:TagResource,
emr-serverless:UntagResource,
emr-serverless:GetApplication,
ec2:CreateNetworkInterface,
ecr:BatchGetImage,
ecr:DescribeImages,
ecr:GetDownloadUrlForLayer,
kms:Create*,
kms:Describe*,
kms:Enable*,
kms:List*,
kms:Put*,
kms:Update*,
kms:Revoke*,
kms:Disable*,
kms:Get*,
kms:Delete*,
kms:ScheduleKeyDeletion,
kms:CancelKeyDeletion,
kms:GenerateDataKey,
kms:TagResource,
kms:UntagResource,
kms:Decrypt

Delete

emr-serverless:DeleteApplication,
emr-serverless:GetApplication

List

emr-serverless:ListApplications