The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::AWS::SES::Response - Perl class that represents a response from AWS SES

SYNPOSIS

    # see Net::AWS::SES

DESCRIPTION

This class is not meant to be used directly, but through Net::AWS::SES. First you should be familiar with Net::AWS::SES and only then come back to this class for new information

METHODS

message_id()

Returns a message id for successfully sent e-mails. Only valid for successful requests.

result()

Returns parsed contents of the response. This is usually the contents of *Result element. Exception is the error response, in which case it returns the ontents of Error element.

result_as_json()

Same as result(), except converts the data into JSON notation

raw_content()

This is the raw (unparsed) by decoded HTTP content as returned from the AWS SES. Usually you do not need it. If you think you need it just knock yourself out!

is_success()

is_error()

This is the first thing you should check after each request().

http_code()

Since all the api request/response happens using HTTP Query actions, this code returns the HTTP response code. For all successfull response it returns 200, errors usually return 400. This is here just in case

error_code()

Returns an error code from AWS SES. Unlik http_code(), this is a short error message, as documented in AWS SES API reference

error_message()

Returns more descriptive error message from AWS SES

error_type()

Returns the type of the error. Most of the time in my experience it returns Sender.

request_id()

Returns an ID of the request. All response, including the ones resulting in error, contain a RequestId.

dkim_attributes()

The same as

    $response->result->{DkimAttributes}

Only meaning for get_dkim_attributes() api call

SEE ALSO

Net::AWS::SES

AUTHOR

Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Talibro LLC

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.