anchor.diff:      end
     rescue AWS::SimpleEmailService::Errors::InvalidClientTokenId => e
       $evm.log('error', "CreateSES: Exception caught when creating instance: #{e.message}")
  -    send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
       exit
     rescue AWS::RDS::Errors::InvalidParameterValue => e
       $evm.log('error', "CreateSES: Invalid parameter exception caught: #{e.message}")
  -    send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
       exit
     rescue AWS::RDS::Errors => e
       $evm.log('error', "CreateSES: Exception caught: #{e.message}")
  -    send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
       exit
     rescue StandardError => e
       $evm.log('error', "CreateSES: Exception caught #{e.message}")
  -    send_order_status(host, headers, 'CRITICAL', order_id, info, "#{e.message}")
  +    send_order_status(endpoint, headers, 'CRITICAL', info, "#{e.message}")
       exit
     end
   end
  
positive.code: require 'net/http'
  require 'uri/http'
  
  def send_order_status(referer, headers, status, order_id, information, message = '')
    path = "/order_items/#{order_id}/provision_update"
    host = URI.parse(referer).host
    url = "http://#{host}#{path}"
    uri = URI.parse(url)
  
    information = information.merge('provision_status' => status.downcase)
    $evm.log('info', "send_order_status: Information: #{information}")
  
negative.code: secret_access_key = product_hash['secret_access_key']
  region = product_hash['region']
  email = product_hash['email']
  endpoint = $evm.root['dialog_referer']
  headers = [$evm.root['dialog_email'], $evm.root['dialog_token']]
  
  # Setup the SES Region if region was chosen
  