* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_change_rrset-MX.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// CHANGE RESOURCE RECORD SETS
$route53 = new AmazonRoute53();
// You should replace this with a real Zone ID
$zone_id = 'Z1PA6795UKMFR9';
// Sample request XML: http://docs.amazonwebservices.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html
$change_batch = array('Comment' => 'This change creates an MX record for example.com. (zone apex) with multiple ResourceRecord and Value.', 'Changes' => array(array('Action' => 'CREATE', 'ResourceRecordSet' => array('Name' => 'example.com.', 'Type' => 'MX', 'TTL' => 3600, 'ResourceRecords' => array(array('ResourceRecord' => array('Value' => '10 mx-1.domain.com.')), array('ResourceRecord' => array('Value' => '20 mx-2.domain.com.')), array('ResourceRecord' => array('Value' => '30 mx-3.domain.com.')))))));
// Send request!
$response = $route53->change_rrset($zone_id, $change_batch);
// Display
print_r($response);
	* You already have a valid Amazon Web Services developer account, and are
	  signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>.

	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_create_hosted_zone.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// CREATE HOSTED ZONE
$route53 = new AmazonRoute53();
// Sample request XML: http://docs.amazonwebservices.com/Route53/latest/APIReference/API_CreateHostedZone.html
// Send request!
$response = $route53->create_hosted_zone('example.com.', 'myUniqueIdentifier', array('Comment' => 'This is my first hosted zone.'));
// Display
print_r($response);
	* You already have a valid Amazon Web Services developer account, and are
	  signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>.

	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_delete_hosted_zone.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// DELETE HOSTED ZONE
$route53 = new AmazonRoute53();
// You should replace this with a real Zone ID
$zone_id = 'Z1PA6795UKMFR9';
// Send request!
$response = $route53->delete_hosted_zone($zone_id);
// Display
print_r($response);
	* You already have a valid Amazon Web Services developer account, and are
	  signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>.

	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_get_hosted_zone.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// GET HOSTED ZONE
$route53 = new AmazonRoute53();
// You should replace this with a real Zone ID
$zone_id = 'Z1PA6795UKMFR9';
// Send request!
$response = $route53->get_hosted_zone($zone_id);
// Display
print_r($response);
	  signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>.

	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_list_hosted_zone.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// LIST HOSTED ZONE
$route53 = new AmazonRoute53();
// Possible options. Reference: http://docs.amazonwebservices.com/Route53/latest/APIReference/API_ListHostedZones.html
$opt = array('Marker' => 'Z2EUQ1WTGCTBG2', 'MaxItems' => 10);
// Send request!
$response = $route53->list_hosted_zone();
// Don't pass option
// Display
print_r($response);
	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_list_rrset.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// LIST RESOURCE RECORD SETS
$route53 = new AmazonRoute53();
// You should replace this with a real Zone ID
$zone_id = 'Z1PA6795UKMFR9';
// Possible options. Reference: http://docs.amazonwebservices.com/Route53/latest/APIReference/API_ListResourceRecordSets.html
$opt = array('Name' => 'example.com', 'Type' => 'NS', 'Identifier' => 'SetIdentifier', 'MaxItems' => 10);
// Send request!
$response = $route53->list_rrset($zone_id);
// Pass only the zone ID
// Display
print_r($response);
	* You already have a valid Amazon Web Services developer account, and are
	  signed up to use Amazon Route 53 <http://aws.amazon.com/route53/>.

	* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_get_change_status.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// GET CHANGE STATUS
$route53 = new AmazonRoute53();
// You should replace this with a real Change ID
$change_id = 'C2682N5HXP0BZ4';
// Send request!
$response = $route53->get_change_status($change_id);
// Display
print_r($response);