Implements PUT /v2/email/account/suppression so callers can change the account-level suppression list reasons (BOUNCE / COMPLAINT). Entries are persisted per region in ses-account-suppression.json via a new AccountSuppressionAttributes model. GetAccount's response is extended with a SuppressionAttributes object that carries the stored SuppressedReasons. The setting itself is metadata-only — floci does not synthesise bounce/complaint events so no auto-suppression is triggered; the configuration round-trips for SDK users and tooling that introspects account-level settings. Behaviour aligned with real-AWS verification: - SuppressedReasons accepts BOUNCE / COMPLAINT, validated against the AWS-canonical nested "Member must satisfy constraint: [Member must satisfy enum value set: [BOUNCE, COMPLAINT]]" wording (verbatim match against real AWS). - SuppressedReasons may be omitted (treated as empty list) or supplied as an empty array (clears the reasons) — both return 200. - Non-textual array members (JSON null, numeric, etc.) are rejected with BadRequestException. - Fresh regions report the AWS-default [BOUNCE, COMPLAINT] via GetAccount; an explicit PUT (including an empty list) overrides it. - The optional ValidationAttributes body field is accepted but not parsed (Tier S scope). Tests: - SesV2IntegrationTest gains nine cases covering store-and-list, clear-with-empty-array, missing field defaulting to empty, invalid Reason (with the AWS-canonical nested message asserted), non-array SuppressedReasons, JSON null array member, numeric array member, optional ValidationAttributes, and the default-on-fresh-region assertion in the existing getAccount case. - SesAccountSuppressionTest exercises the Java SDK round trip and an explicit empty list through SesV2Client; @BeforeAll captures the caller's existing SuppressedReasons and @AfterAll restores it with failures surfaced so a real-AWS run cannot silently leave the account with auto-suppression disabled.
5.9 KiB
Services Overview
Floci emulates 45 AWS services on a single port (4566). All services use the real AWS wire protocol, your existing AWS CLI commands and SDK clients work without modification.
This page is the canonical reference for supported service and operation counts. Some services expose separate control-plane and data-plane rows below. Other docs (and the README) should link here rather than duplicating the table.
Service Matrix
Operation counts are exact. For dispatch-table services (Query and JSON 1.1) each count reflects one case per AWS action in the handler. For REST-based services (S3, Lambda, API Gateway v1) the count reflects distinct AWS SDK operations, collapsing routes where one JAX-RS handler fans out via query-string or header markers (e.g. PUT /{bucket}/{key} → PutObject, PutObjectTagging, PutObjectAcl, etc.).
| Service | Endpoint | Protocol | Supported operations |
|---|---|---|---|
| SSM | POST / + X-Amz-Target: AmazonSSM.* |
JSON 1.1 | 12 |
| SQS | POST / with Action= param |
Query / JSON | 20 |
| SNS | POST / with Action= param |
Query / JSON | 17 |
| S3 | /{bucket}/{key} |
REST XML | 58 |
| DynamoDB | POST / + X-Amz-Target: DynamoDB_20120810.* |
JSON 1.1 | 28 |
| DynamoDB Streams | POST / + X-Amz-Target: DynamoDBStreams_20120810.* |
JSON 1.1 | 4 |
| Lambda | /2015-03-31/functions/... |
REST JSON | 30 |
| API Gateway v1 | /restapis/... |
REST JSON | 62 |
| API Gateway v2 | /v2/apis/... |
REST JSON | 48 + data-plane |
| IAM | POST / with Action= param |
Query | 68 |
| STS | POST / with Action= param |
Query | 7 |
| Cognito | POST / + X-Amz-Target: AWSCognitoIdentityProviderService.* |
JSON 1.1 | 43 |
| KMS | POST / + X-Amz-Target: TrentService.* |
JSON 1.1 | 23 |
| Kinesis | POST / + X-Amz-Target: Kinesis_20131202.* |
JSON 1.1 | 24 |
| Secrets Manager | POST / + X-Amz-Target: secretsmanager.* |
JSON 1.1 | 16 |
| Step Functions | POST / + X-Amz-Target: AmazonStatesService.* |
JSON 1.1 | 19 |
| CloudFormation | POST / with Action= param |
Query | 19 |
| EventBridge | POST / + X-Amz-Target: AmazonEventBridge.* |
JSON 1.1 | 16 |
| EventBridge Scheduler | /schedules/*, /schedule-groups/*, /tags/* |
REST JSON | 12 |
| CloudWatch Logs | POST / + X-Amz-Target: Logs.* |
JSON 1.1 | 17 |
| CloudWatch Metrics | POST / with Action= or JSON 1.1 |
Query / JSON | 11 |
| ElastiCache | POST / with Action= param + TCP proxy |
Query + RESP | 8 |
| RDS | POST / with Action= param + TCP proxy |
Query + wire | 14 |
| MSK | /v1/clusters/..., /api/v2/clusters/... + Redpanda broker |
REST JSON + Kafka | 8 |
| Athena | POST / + X-Amz-Target: AmazonAthena.* |
JSON 1.1 | 4 |
| Glue | POST / + X-Amz-Target: AWSGlue.* |
JSON 1.1 | 32 |
| Data Firehose | POST / + X-Amz-Target: Firehose_20150804.* |
JSON 1.1 | 6 |
| ECS | POST / + X-Amz-Target: AmazonEC2ContainerServiceV20141113.* |
JSON 1.1 | 58 |
| EC2 | POST / with Action= param |
EC2 Query | 61 |
| ACM | POST / + X-Amz-Target: CertificateManager.* |
JSON 1.1 | 12 |
| ECR | POST / + X-Amz-Target: AmazonEC2ContainerRegistry_V20150921.* (control plane) and /v2/... (data plane via registry:2) |
JSON 1.1 + OCI Distribution | 17 |
| SES | POST / with Action= param |
Query | 16 |
| SES v2 | /v2/email/* |
REST JSON | 10 |
| OpenSearch | /2021-01-01/opensearch/... |
REST JSON | 24 |
| AppConfig | /applications/..., /deploymentstrategies/... |
REST JSON | 16 |
| AppConfigData | /configurationsessions, /configuration |
REST JSON | 2 |
| Bedrock Runtime | /model/{modelId}/converse, /model/{modelId}/invoke |
REST JSON | 2 (stub; streaming returns 501) |
| EKS | /clusters, /clusters/{name}, /tags/{resourceArn} |
REST JSON | 7 |
| ELB v2 | POST / with Action= param |
Query | 34 |
| Auto Scaling | POST / with Action= param |
Query | 33 |
| CodeBuild | POST / + X-Amz-Target: CodeBuild_20161006.* |
JSON 1.1 | 20 |
| CodeDeploy | POST / + X-Amz-Target: CodeDeploy_20141006.* |
JSON 1.1 | 30 |
| AWS Backup | /backup-vaults/*, /backup/plans/*, /backup-jobs/*, /supported-resource-types |
REST JSON | 20 |
| Route53 | /2013-04-01/hostedzone/*, /2013-04-01/healthcheck/*, /2013-04-01/change/* |
REST XML | 17 |
| Transfer Family | POST / + X-Amz-Target: TransferService.* |
JSON 1.1 | 17 |
Lambda, ElastiCache, RDS, MSK, ECS, EKS, and OpenSearch spin up real Docker containers and support IAM authentication and SigV4 request signing, the same auth flow as production AWS.
ECR runs a shared registry:2 container so the stock docker client can push and pull image bytes against repositories returned by the AWS-shaped control plane. EKS (real mode) starts a k3s container per cluster and exposes the Kubernetes API server on a host port. OpenSearch (real mode) starts an opensearchproject/opensearch container per domain and exposes the data-plane REST API on a host port.
Common Setup
Before calling any service, configure your AWS client to point to Floci:
export AWS_ENDPOINT_URL=http://localhost:4566
export AWS_DEFAULT_REGION=us-east-1
export AWS_ACCESS_KEY_ID=test
export AWS_SECRET_ACCESS_KEY=test
AWS_ENDPOINT_URL is the standard env var recognised by the AWS CLI v2 and AWS SDKs v2+, so no --endpoint-url flag is needed on each command.