Files
floci/docs/services
Kenshin Okinaka 9b68bd0377 feat(ses): add v2 TagResource / UntagResource / ListTagsForResource (#749)
* feat(ses): add v2 TagResource / UntagResource / ListTagsForResource

Implements the v2 SES tag endpoints at /v2/email/tags. Initial scope
covers ConfigurationSet ARNs only
(arn:aws:ses:<region>:<account>:configuration-set/<name>); other
resource types return NotFoundException so follow-up PRs can extend
coverage to Identity, EmailTemplate, etc.

Behavior aligned with observed AWS responses:

- TagResource enforces ARN/signing region match strictly and rejects
  mismatches with BadRequestException ("Failed to tag resource").
- UntagResource and ListTagsForResource route lookups to the ARN's
  region instead, so a region mismatch surfaces as NotFoundException
  with the resource-specific message (e.g. "No ConfigurationSet
  present with name: <name>").
- TagResource merges by key (existing keys are replaced, others
  retained); UntagResource silently skips keys not present.
- Empty Tags / TagKeys lists are rejected with BadRequestException to
  match AWS validation.
- ARN parsing uses the shared AwsArnUtils helper; missing region or
  account in the ARN is rejected as BadRequest, matching AWS.

Tests:

- New SesTagsV2IntegrationTest for endpoint-focused coverage (lifecycle,
  region-mismatch asymmetry, validation errors).
- Cross-feature round-trip in SesConfigurationSetV2IntegrationTest
  verifying that tags supplied to CreateConfigurationSet are reachable
  via ListTagsForResource.
- New SesTagResourceTest in the Java SDK compatibility suite.

* refactor(ses): drop unused region parameter from list/untag tag service methods

listResourceTags and untagResource route lookups by the ARN's region, so
the request signing region they accepted was never read. Remove it and
stop resolving it in the controller. tagResource still takes region
because it strictly validates it against the ARN.
2026-05-08 19:42:54 -05:00
..
2026-04-30 00:59:04 -05:00
2026-04-30 00:59:04 -05:00
2026-05-07 01:44:19 -05:00