`), a `CreatedTimestamp`, and `SendingStatus` `ENABLED`. The operations use RPC-style POST subpaths (`/tenants/get`, `/tenants/list`, `/tenants/delete`); `ListTenants` returns the `TenantInfo` subset (no `Tags`/`SendingStatus`). A duplicate name is `AlreadyExistsException`; an unknown tenant on get/delete is `NotFoundException`.
Tenant resource associations link a tenant to email identities, configuration sets, and email templates. Matching real AWS, the wire values for `ResourceType` (in responses and as the `Filter` `RESOURCE_TYPE` value) are the ARN segments `identity` / `configuration-set` / `template`; the SDK's `EMAIL_IDENTITY`-style enum constants are rejected, as AWS itself does. The resource must exist in the same account and region; a duplicate association is `AlreadyExistsException`, and deleting a missing one succeeds silently. Deleting a resource that still has associations is rejected, while `DeleteTenant` cascades its associations away.
diff --git a/src/main/java/io/floci/aws/services/ses/SesAccountController.java b/src/main/java/io/floci/aws/services/ses/SesAccountController.java
index b627bc499e..083f671f83 100644
--- a/src/main/java/io/floci/aws/services/ses/SesAccountController.java
+++ b/src/main/java/io/floci/aws/services/ses/SesAccountController.java
@@ -79,6 +79,9 @@ public class SesAccountController {
result.put("ProductionAccessEnabled", true);
result.put("SendingEnabled", sendingEnabled);
+ result.putObject("DeliveryAttributes")
+ .put("SharedPoolDeliveryMode", accountService.getSharedPoolDeliveryMode(region));
+
ObjectNode sendQuota = result.putObject("SendQuota");
sendQuota.put("Max24HourSend", 200.0);
sendQuota.put("MaxSendRate", 1.0);
@@ -203,6 +206,21 @@ public class SesAccountController {
}
}
+ @POST
+ @Path("/account/delivery")
+ public Response putAccountDeliveryAttributes(@Context HttpHeaders headers, String body) {
+ String region = regionResolver.resolveRegion(headers);
+ try {
+ JsonNode request = readOptionBody(objectMapper, body);
+ String mode = stringMemberOrAbsent(request, "SharedPoolDeliveryMode");
+ accountService.putSharedPoolDeliveryMode(region, mode);
+ LOG.infov("SES V2 PutAccountDeliveryAttributes: region={0}, mode={1}", region, mode);
+ return Response.ok(objectMapper.createObjectNode()).build();
+ } catch (AwsException e) {
+ throw remapV1Exception(e);
+ }
+ }
+
@PUT
@Path("/account/dedicated-ips/warmup")
public Response putAccountDedicatedIpWarmupAttributes(@Context HttpHeaders headers, String body) {
diff --git a/src/main/java/io/floci/aws/services/ses/SesAccountService.java b/src/main/java/io/floci/aws/services/ses/SesAccountService.java
index 6f3098a413..0a42d791c5 100644
--- a/src/main/java/io/floci/aws/services/ses/SesAccountService.java
+++ b/src/main/java/io/floci/aws/services/ses/SesAccountService.java
@@ -24,8 +24,8 @@ import java.util.regex.Pattern;
* split. Reached through the {@code SesService} facade, which delegates here.
*
* Owns the account sending-enabled flag ({@code accountSettingsStore}), the VDM (Virtual
- * Deliverability Manager) attributes ({@code accountVdmStore}), and the provisioning details
- * ({@code accountDetailsStore}). Account suppression is account-level too, but it shares
+ * Deliverability Manager) attributes ({@code accountVdmStore}), the provisioning details
+ * ({@code accountDetailsStore}), and the shared pool delivery mode ({@code accountDeliveryStore}). Account suppression is account-level too, but it shares
* {@code validateSuppressionReason} with the suppression list, so it lives in
* {@link SesSuppressionService} instead.
*/
@@ -37,6 +37,7 @@ public class SesAccountService {
private final StorageBackend accountSettingsStore;
private final StorageBackend accountVdmStore;
private final StorageBackend accountDetailsStore;
+ private final StorageBackend accountDeliveryStore;
@Inject
public SesAccountService(StorageFactory storageFactory) {
@@ -46,14 +47,18 @@ public class SesAccountService {
new TypeReference