- Newest
- Most votes
- Most comments
The error you're encountering is due to a mismatch between the API version you're using and the parameters you're providing. The code you've shared is using the older SES API version ('2010-12-01'), but the parameters you're passing are more aligned with the newer SESv2 API.
To resolve this issue, you need to either:
- Update your SES client to use the newer SESv2 API:
$aws_Ses_client = new Aws\SesV2\SesV2Client([ 'version' => '2019-09-27', 'region' => 'us-east-1' ]);
- Or, if you want to stick with the older API version, modify your createConfigurationSet call to match the expected parameters:
$result = $aws_Ses_client->createConfigurationSet([ 'ConfigurationSet' => [ 'Name' => 'mydomain_net_for_12345678' ] ]);
The older API expects a 'ConfigurationSet' parameter containing a 'Name' field, which explains the error message you're seeing. The newer SESv2 API, on the other hand, expects the parameters in the format you've provided in your code.
If you choose to update to the SESv2 API, make sure to update any other SES-related function calls in your code to match the new API's requirements. The SESv2 API provides more features and flexibility, so it's generally recommended to use it if possible.
Remember to install the appropriate SDK version that supports SESv2 if you decide to upgrade.
Sources
CreateConfigurationSet - Amazon Simple Email Service
Creating configuration sets in SES - Amazon Simple Email Service

Yep, updating to V2 of the API was the solution, glad it was an easy fix! To whoever trained this AI, good job, it actually provided a useful answer!