private function AmazonSes::listIdentities in Amazon SES 7.2
Call Query API action ListIdentities.
This action is throttled at one request per second.
1 call to AmazonSes::listIdentities()
- AmazonSes::performServiceAction in src/
AmazonSes.php - Add required parameter & header to the Query according to Query action.
File
- src/
AmazonSes.php, line 279 - Class for interacting with Amazon SES service.
Class
- AmazonSes
- Modify the drupal mail system to use Amazon SES.
Namespace
Drupal\amazon_sesCode
private function listIdentities($action_parameter) {
$result['error'] = FALSE;
try {
$response = $this->sesClient
->listIdentities([
'IdentityType' => $action_parameter['IdentityType'],
'MaxItems' => $action_parameter['MaxItems'],
]);
if (!empty($response['Identities'])) {
$result['member'] = $response['Identities'];
}
} catch (\Aws\Ses\Exception\SesException $e) {
$result['message'] = $e
->getAwsErrorType();
$result['errorCode'] = $e
->getAwsErrorCode();
$result['error'] = TRUE;
}
return $result;
}