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
Idawscc.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.
interactive_configurationobject
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.
scheduler_configurationobjectThe scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.
identity_center_configurationobjectThe IAM IdentityCenter configuration for trusted-identity-propagation on this application. Supported with release labels emr-7.8.0 and above.
regionstringAWS region.

For more information, see AWS::EMRServerless::Application.

Methods

NameResourceAccessible byRequired Params
create_resourceapplicationsINSERTReleaseLabel, Type, region
delete_resourceapplicationsDELETEIdentifier, region
update_resourceapplicationsUPDATEIdentifier, PatchDocument, region
list_resourcesapplications_list_onlySELECTregion
get_resourceapplicationsSELECTIdentifier, region

SELECT examples

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,
interactive_configuration,
network_configuration,
arn,
application_id,
worker_type_specifications,
scheduler_configuration,
identity_center_configuration
FROM awscc.emrserverless.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ application_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.emrserverless.applications
SET PatchDocument = string('{{ {
"Architecture": architecture,
"ReleaseLabel": release_label,
"InitialCapacity": initial_capacity,
"MaximumCapacity": maximum_capacity,
"Tags": tags,
"AutoStartConfiguration": auto_start_configuration,
"AutoStopConfiguration": auto_stop_configuration,
"ImageConfiguration": image_configuration,
"MonitoringConfiguration": monitoring_configuration,
"RuntimeConfiguration": runtime_configuration,
"InteractiveConfiguration": interactive_configuration,
"NetworkConfiguration": network_configuration,
"WorkerTypeSpecifications": worker_type_specifications,
"SchedulerConfiguration": scheduler_configuration,
"IdentityCenterConfiguration": identity_center_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.emrserverless.applications
WHERE
Identifier = '{{ application_id }}' AND
region = 'us-east-1';

Permissions

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

kms:CreateKey,
kms:CreateAlias,
kms:DescribeKey,
kms:EnableKey,
kms:ListGrants,
kms:ListAliases,
kms:ListKeyPolicies,
kms:ListKeys,
kms:PutKeyPolicy,
kms:UpdateKeyDescription,
kms:UpdateAlias,
kms:UpdatePrimaryRegion,
kms:RevokeGrant,
kms:DisableKey,
kms:DisableKeyRotation,
kms:GetKeyPolicy,
kms:GetKeyRotationStatus,
kms:DeleteAlias,
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,
sso:DescribeInstance,
sso:CreateApplication,
sso:DeleteApplication,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationAssignmentConfiguration,
sso:PutApplicationGrant,
sso:PutApplicationAccessScope