Commit Graph
5 Commits
Author SHA1 Message Date
Priamo Germosen 1f1e5db1bc feat(emr-serverless): start, get, list and cancel job runs (#6202)
Adds StartJobRun, GetJobRun, ListJobRuns and CancelJobRun under
/applications/{applicationId}/jobruns. Job runs are metadata only, like
Glue's: a run is RUNNING from submission and settles when read. With the
new floci.services.emrserverless.job-run-duration-seconds at its default
of 0, a BATCH run is SUCCESS as soon as it starts; a positive duration
keeps it RUNNING that long, and a run that would outlast its
executionTimeoutMinutes (720 when not given) is CANCELLED at the
timeout. A STREAMING run stays RUNNING until it is cancelled.

A run on a CREATED or STOPPED application starts it, as auto-start
defaults to on; with auto-start off the run is refused. clientToken is
the idempotency token: a retry returns the original run, and the same
token with another request answers ConflictException "Request did not
match the original". CancelJobRun on a finished run answers
ValidationException "Job run is not in a cancellable state". ListJobRuns
returns the newest runs first, filtered by states, creation time and
mode, and its nextToken resumes only the listing it came from. A run
needs a jobDriver that sets exactly one of sparkSubmit and hive, as
GetJobRun's JobRun always carries one, and tags are checked before
auto-start, so a refused run leaves the application as it was.
createdBy is the caller's ARN.

Application createdAt and updatedAt now go out as epoch seconds, the
restJson1 default for the model's Date shape, as job runs do. They were
epoch milliseconds, which the Java SDK reads as the year 58774 and
botocore refuses as out of range. Auto-start rewrites updatedAt, so a
run's own submission reached the bug. Applications persisted with
millisecond timestamps read back at the same instant.

Part of #6046 (part 8).
2026-10-22 07:24:33 -05:00
Jimmy Liu Jia 03f87285a0 fix(emr-serverless): retain deleted applications for waiters (#6103)
* fix(emr-serverless): retain deleted applications for waiters

* fix(emr-serverless): reject tag access after application deletion
2026-10-20 23:48:12 -04:00
Jimmy Liu Jia e14e5433ab fix(emr-serverless): isolate applications by request region (#6078) 2026-10-20 11:50:02 -04:00
David 5aad012e78 feat(emr-serverless): tag, untag and list tags for applications (#4667)
EMR Serverless had no tagging API: no TagHandler was registered for the
emr-serverless ARN service, so TagResource, UntagResource and
ListTagsForResource could not be routed, and a tagged
aws_emrserverless_application could not be planned.

Register an emr-serverless handler with the shared /tags dispatcher,
answering 200 as the model does, over the tags already stored on the
application. Validate keys and values, the user guide's 50 tag limit
and its reserved aws: prefix, refuse job run ARNs as not found, and
synchronize the application mutators so a tag write cannot lose a
concurrent update.

Closes #4662
2026-09-30 09:11:04 -04:00
NAMAN JAIN 8a673fc580 feat(emrserverless): support EMR Serverless applications (#2403)
* feat(emrserverless): add EMR Serverless application management emulator

This adds a full emulator for the EMR Serverless Application management plane,
allowing tools like Terraform to provision and manage EmrServerless applications.
Includes full CRUD operations, route collision handling, and integration tests.

* fix(emrserverless): disambiguate local endpoint routing using SigV4 auth header

* fix(emrserverless): resolve bot feedback on ARNs, idempotency, updates, and list controls

* fix(emrserverless): resolve bot feedback on idempotency races and dropped update fields

* fix(emrserverless): add jobLevelCostAllocationConfiguration to updates

* fix(emrserverless): retain nested configuration fields using dynamic properties

* fix(emrserverless): add required field validation and correct 404 status code

* docs(emrserverless): document unsupported tagging APIs

* fix(emrserverless): increase ListApplications maxResults limit to 100

* test(emrserverless): fix integration test assertions to align with required field validations and correct 404 status code

* fix(emrserverless): revert ListApplications maxResults limit to 50 to match AWS limits

* test(emrserverless): add validation tests for CreateApplication required fields
2026-08-20 00:08:21 -04:00