You are here

private function AmazonSes::deleteIdentity in Amazon SES 7.2

Call Query API action DeleteIdentity.

Deletes the specified identity (email address or domain) from the list of verified identities. This action is throttled at one request per second.

1 call to AmazonSes::deleteIdentity()
AmazonSes::performServiceAction in src/AmazonSes.php
Add required parameter & header to the Query according to Query action.

File

src/AmazonSes.php, line 81
Class for interacting with Amazon SES service.

Class

AmazonSes
Modify the drupal mail system to use Amazon SES.

Namespace

Drupal\amazon_ses

Code

private function deleteIdentity($action_parameter) {
  $result['error'] = FALSE;
  try {
    $response = $this->sesClient
      ->deleteIdentity([
      'Identity' => $action_parameter['identity'],
    ]);
  } catch (\Aws\Ses\Exception\SesException $e) {
    $result['message'] = $e
      ->getAwsErrorType();
    $result['errorCode'] = $e
      ->getAwsErrorCode();
    $result['error'] = TRUE;
  }
  return $result;
}