BackWPup – WordPress Backup Plugin - Version 1.7.2

Version Description

  • try to disable Cache plugins for working job
  • more dropbox improvements
  • fixed Curl error on WP-Export
  • fixed dashbord wigedt shown for all users
  • bug fixes
Download this release

Release Info

Developer danielhuesken
Plugin Icon 128x128 BackWPup – WordPress Backup Plugin
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

Files changed (38) hide show
  1. app/backwpup_dojob.php +4 -2
  2. app/dropbox-auth.php +0 -30
  3. app/libs/aws/README.md +131 -0
  4. app/libs/aws/lib/requestcore/requestcore.class.php +11 -1
  5. app/libs/aws/sdk.class.php +188 -31
  6. app/libs/aws/services/as.class.php +27 -1
  7. app/libs/aws/services/cloudformation.class.php +8 -1
  8. app/libs/aws/services/cloudfront.class.php +16 -1
  9. app/libs/aws/services/cloudwatch.class.php +11 -1
  10. app/libs/aws/services/ec2.class.php +2385 -1503
  11. app/libs/aws/services/elasticbeanstalk.class.php +29 -1
  12. app/libs/aws/services/elb.class.php +17 -1
  13. app/libs/aws/services/emr.class.php +7 -1
  14. app/libs/aws/services/iam.class.php +72 -41
  15. app/libs/aws/services/importexport.class.php +6 -1
  16. app/libs/aws/services/rds.class.php +29 -1
  17. app/libs/aws/services/s3.class.php +54 -4
  18. app/libs/aws/services/sdb.class.php +11 -1
  19. app/libs/aws/services/ses.class.php +9 -2
  20. app/libs/aws/services/sns.class.php +14 -1
  21. app/libs/aws/services/sqs.class.php +12 -1
  22. app/libs/aws/utilities/array.class.php +55 -3
  23. app/libs/aws/utilities/gzipdecode.class.php +377 -0
  24. app/libs/aws/utilities/json.class.php +104 -0
  25. app/libs/aws/utilities/simplexml.class.php +43 -1
  26. app/libs/aws/utilities/utilities.class.php +15 -1
  27. app/libs/dropbox/dropbox.php +43 -21
  28. app/libs/sugarsync.php +7 -5
  29. app/list-tables.php +1 -8
  30. app/options-edit-job.php +1 -1
  31. app/options-runnow-iframe.php +15 -0
  32. app/options-save.php +34 -3
  33. app/options-settings.php +1 -1
  34. app/php-functions.php +24 -6
  35. app/wp_xml_export.php +3 -1
  36. backwpup.php +2 -2
  37. readme.txt +8 -1
  38. uninstall.php +2 -1
app/backwpup_dojob.php CHANGED
@@ -528,10 +528,12 @@ class backwpup_dojob {
528
 
529
  public function export_wp() {
530
  $this->need_free_memory(1048576); //1MB free memory
 
 
531
  if (function_exists('curl_exec')) {
532
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
533
  $ch = curl_init();
534
- curl_setopt($ch, CURLOPT_URL, plugins_url('wp_xml_export.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&_nonce='.wp_create_nonce('backwpup-xmlexport'));
535
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
536
  curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
537
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
@@ -547,7 +549,7 @@ class backwpup_dojob {
547
  curl_close($ch);
548
  } elseif (ini_get('allow_url_fopen')==true or ini_get('allow_url_fopen')==1 or strtolower(ini_get('allow_url_fopen'))=="on") {
549
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
550
- if (copy(plugins_url('wp_xml_export.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&_nonce='.wp_create_nonce('backwpup-xmlexport'),$this->tempdir.preg_replace( '/[^a-z0-9_\-]/', '', strtolower(get_bloginfo('name')) ).'.wordpress.' . date( 'Y-m-d' ) . '.xml')) {
551
  trigger_error(__('Export to XML done!','backwpup'),E_USER_NOTICE);
552
  } else {
553
  trigger_error(__('Can not Export to XML!','backwpup'),E_USER_ERROR);
528
 
529
  public function export_wp() {
530
  $this->need_free_memory(1048576); //1MB free memory
531
+ $nonce=wp_create_nonce('backwpup-xmlexport');
532
+ update_option('backwpup_nonce',array('nonce'=>$nonce,'timestamp'=>time()));
533
  if (function_exists('curl_exec')) {
534
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
535
  $ch = curl_init();
536
+ curl_setopt($ch, CURLOPT_URL, plugins_url('wp_xml_export.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&_nonce='.$nonce);
537
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
538
  curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
539
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
549
  curl_close($ch);
550
  } elseif (ini_get('allow_url_fopen')==true or ini_get('allow_url_fopen')==1 or strtolower(ini_get('allow_url_fopen'))=="on") {
551
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
552
+ if (copy(plugins_url('wp_xml_export.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&_nonce='.$nonce,$this->tempdir.preg_replace( '/[^a-z0-9_\-]/', '', strtolower(get_bloginfo('name')) ).'.wordpress.' . date( 'Y-m-d' ) . '.xml')) {
553
  trigger_error(__('Export to XML done!','backwpup'),E_USER_NOTICE);
554
  } else {
555
  trigger_error(__('Can not Export to XML!','backwpup'),E_USER_ERROR);
app/dropbox-auth.php DELETED
@@ -1,30 +0,0 @@
1
- <?PHP
2
- if (file_exists(trim($_GET['wpabs']).'wp-load.php')) {
3
- require_once(trim($_GET['wpabs']).'wp-load.php'); /** Setup WordPress environment */
4
- } else {
5
- header("HTTP/1.0 404 Not Found");
6
- die();
7
- }
8
- $reqtoken=get_option('backwpup_dropboxrequest');
9
- if (!is_array($reqtoken)) {
10
- header("HTTP/1.0 404 Not Found");
11
- die();
12
- }
13
- require_once (dirname(__FILE__).'/libs/dropbox/dropbox.php');
14
- $dropbox = new Dropbox(BACKWPUP_DROPBOX_APP_KEY, BACKWPUP_DROPBOX_APP_SECRET);
15
- //for Dropbox oAuth backlink
16
- if ($_GET['uid']>1 and !empty($_GET['oauth_token'])) {
17
- if ($reqtoken['oAuthRequestToken']==$_GET['oauth_token']) {
18
- //Get Access Tokens
19
- $oAuthStuff = $dropbox->oAuthAccessToken($reqtoken['oAuthRequestToken'],$reqtoken['oAuthRequestTokenSecret']);
20
- //Save Tokens
21
- $jobs=get_option('backwpup_jobs');
22
- $jobs[$reqtoken['jobid']]['dropetoken']=$oAuthStuff['oauth_token'];
23
- $jobs[$reqtoken['jobid']]['dropesecret']=$oAuthStuff['oauth_token_secret'];
24
- update_option('backwpup_jobs',$jobs);
25
- delete_option('backwpup_dropboxrequest');
26
- //Go back to jobs page
27
- header("Location: ".get_admin_url().'admin.php?page=BackWPup&subpage=edit&jobid='.$reqtoken['jobid'].'&_wpnonce='.wp_create_nonce('edit-job').'#dropbox');
28
- }
29
- }
30
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/libs/aws/README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AWS SDK for PHP
2
+
3
+ The AWS SDK for PHP enables developers to build solutions for Amazon Simple Storage Service (Amazon S3),
4
+ Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more. With the AWS SDK for PHP, developers
5
+ can get started in minutes with a single, downloadable package.
6
+
7
+ The SDK features:
8
+
9
+ * **AWS PHP Libraries:** Build PHP applications on top of APIs that take the complexity out of coding directly
10
+ against a web service interface. The toolkit provides APIs that hide much of the lower-level implementation.
11
+ * **Code Samples:** Practical examples for how to use the toolkit to build applications.
12
+ * **Documentation:** Complete SDK reference documentation with samples demonstrating how to use the SDK.
13
+ * **PEAR package:** The ability to install the AWS SDK for PHP as a PEAR package.
14
+ * **SDK Compatibility Test:** Includes both an HTML-based and a CLI-based SDK Compatibility Test that you can
15
+ run on your server to determine whether or not your PHP environment meets the minimum requirements.
16
+
17
+ For more information about the AWS SDK for PHP, including a complete list of supported services, see
18
+ [aws.amazon.com/sdkforphp](http://aws.amazon.com/sdkforphp).
19
+
20
+
21
+ ## Signing up for Amazon Web Services
22
+
23
+ Before you can begin, you must sign up for each service you want to use.
24
+
25
+ To sign up for a service:
26
+
27
+ * Go to the home page for the service. You can find a list of services on
28
+ [aws.amazon.com/products](http://aws.amazon.com/products).
29
+ * Click the Sign Up button on the top right corner of the page. If you don't already have an AWS account, you
30
+ are prompted to create one as part of the sign up process.
31
+ * Follow the on-screen instructions.
32
+ * AWS sends you a confirmation e-mail after the sign-up process is complete. At any time, you can view your
33
+ current account activity and manage your account by going to [aws.amazon.com](http://aws.amazon.com) and
34
+ clicking "Your Account".
35
+
36
+
37
+ ## Source
38
+ The source tree for includes the following files and directories:
39
+
40
+ * `_compatibility_test` -- Includes both an HTML-based and a CLI-based SDK Compatibility Test that you can
41
+ run on your server to determine whether or not your PHP environment meets the minimum requirements.
42
+ * `_docs` -- Informational documents, the contents of which should be fairly self-explanatory.
43
+ * `_samples` -- Code samples that you can run out of the box.
44
+ * `lib` -- Contains any third-party libraries that the SDK depends on. The licenses for these projects will
45
+ always be Apache 2.0-compatible.
46
+ * `services` -- Contains the service-specific classes that communicate with AWS. These classes are always
47
+ prefixed with `Amazon`.
48
+ * `utilities` -- Contains any utility-type methods that the SDK uses. Includes extensions to built-in PHP
49
+ classes, as well as new functionality that is entirely custom. These classes are always prefixed with `CF`.
50
+ * `README` -- The document you're reading right now.
51
+ * `config-sample.inc.php` -- A sample configuration file that should be filled out and renamed to `config.inc.php`.
52
+ * `sdk.class.php` -- The SDK loader that you would include in your projects. Contains the base functionality
53
+ that the rest of the SDK depends on.
54
+
55
+
56
+ ## Minimum Requirements in a nutshell
57
+
58
+ * You are at least an intermediate-level PHP developer and have a basic understanding of object-oriented PHP.
59
+ * You have a valid AWS account, and you've already signed up for the services you want to use.
60
+ * The PHP interpreter, version 5.2 or newer. PHP 5.2.17 or 5.3.x is highly recommended for use with the AWS SDK for PHP.
61
+ * The cURL PHP extension (compiled with the [OpenSSL](http://openssl.org) libraries for HTTPS support).
62
+ * The ability to read from and write to the file system via [file_get_contents()](http://php.net/file_get_contents) and [file_put_contents()](http://php.net/file_put_contents).
63
+
64
+ If you're not sure whether your PHP environment meets these requirements, run the
65
+ [SDK Compatibility Test](http://github.com/amazonwebservices/aws-sdk-for-php/tree/master/_compatibility_test/) script
66
+ included in the SDK download.
67
+
68
+
69
+ ## Installation
70
+
71
+ ### Via GitHub
72
+
73
+ [Git](http://git-scm.com) is an extremely fast, efficient, distributed version control system ideal for the
74
+ collaborative development of software. [GitHub](http://github.com/amazonwebservices) is the best way to
75
+ collaborate with others. Fork, send pull requests and manage all your public and private git repositories.
76
+ We believe that GitHub is the ideal service for working collaboratively with the open source PHP community.
77
+
78
+ Git is primarily a command-line tool. GitHub provides instructions for installing Git on
79
+ [Mac OS X](http://help.github.com/mac-git-installation/), [Windows](http://help.github.com/win-git-installation/),
80
+ and [Linux](http://help.github.com/linux-git-installation/). If you're unfamiliar with Git, there are a variety
81
+ of resources on the net that will help you learn more:
82
+
83
+ * [Git Immersion](http://gitimmersion.com) is a guided tour that walks through the fundamentals of Git, inspired
84
+ by the premise that to know a thing is to do it.
85
+ * The [PeepCode screencast on Git](https://peepcode.com/products/git) ($12) will teach you how to install and
86
+ use Git. You'll learn how to create a repository, use branches, and work with remote repositories.
87
+ * [Git Reference](http://gitref.org) is meant to be a quick reference for learning and remembering the most
88
+ important and commonly used Git commands.
89
+ * [Git Ready](http://gitready.com) provides a collection of Git tips and tricks.
90
+ * If you want to dig even further, I've [bookmarked other Git references](http://pinboard.in/u:skyzyx/t:git).
91
+
92
+ If you're comfortable working with Git and/or GitHub, you can pull down the source code as follows:
93
+
94
+ git clone git://github.com/amazonwebservices/aws-sdk-for-php.git AWSSDKforPHP
95
+ cd ./AWSSDKforPHP
96
+
97
+ ### Via PEAR
98
+
99
+ [PEAR](http://pear.php.net) stands for the _PHP Extension and Application Repository_ and is a framework and
100
+ distribution system for reusable PHP components. It is the PHP equivalent to package management software such as
101
+ [MacPorts](http://macports.org) and [Homebrew](https://github.com/mxcl/homebrew) for Mac OS X,
102
+ [Yum](http://fedoraproject.org/wiki/Tools/yum) and [Apt](http://wiki.debian.org/Apt) for GNU/Linux,
103
+ [RubyGems](http://rubygems.org) for Ruby, [Easy Install](http://packages.python.org/distribute/easy_install.html)
104
+ for Python, [Maven](http://maven.apache.org) for Java, and [NPM](http://npm.mape.me) for Node.js.
105
+
106
+ PEAR packages are very easy to install, and are available in your PHP environment path so that they are accessible
107
+ to any PHP project. PEAR packages are not specific to your project, but rather to the machine that they're
108
+ installed on.
109
+
110
+ From the command-line, you can install the SDK with PEAR as follows:
111
+
112
+ pear channel-discover pear.amazonwebservices.com
113
+ pear install aws/sdk
114
+
115
+ You may need to use `sudo` for the above commands.
116
+
117
+ ### Configuration
118
+
119
+ 1. Copy the contents of [config-sample.inc.php](https://github.com/amazonwebservices/aws-sdk-for-php/raw/master/config-sample.inc.php)
120
+ and add your credentials as instructed in the file.
121
+ 2. Move your file to `~/.aws/sdk/config.inc.php`.
122
+ 3. Make sure that `getenv('HOME')` points to your user directory. If not you'll need to set
123
+ `putenv('HOME=<your-user-directory>')`.
124
+
125
+
126
+ ## Additional Information
127
+
128
+ * AWS SDK for PHP: <http://aws.amazon.com/sdkforphp>
129
+ * Documentation: <http://docs.amazonwebservices.com/AWSSDKforPHP/latest/>
130
+ * License: <http://aws.amazon.com/apache2.0/>
131
+ * Discuss: <http://aws.amazon.com/forums>
app/libs/aws/lib/requestcore/requestcore.class.php CHANGED
@@ -81,6 +81,11 @@ class RequestCore
81
  */
82
  public $curlopts = null;
83
 
 
 
 
 
 
84
  /**
85
  * The default class to use for HTTP Requests (defaults to <RequestCore>).
86
  */
@@ -94,7 +99,7 @@ class RequestCore
94
  /**
95
  * Default useragent string to use.
96
  */
97
- public $useragent = 'RequestCore/1.4.1';
98
 
99
  /**
100
  * File to read from while streaming up.
@@ -605,6 +610,11 @@ class RequestCore
605
  curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->useragent);
606
  curl_setopt($curl_handle, CURLOPT_READFUNCTION, array($this, 'streaming_read_callback'));
607
 
 
 
 
 
 
608
  if (!ini_get('safe_mode'))
609
  {
610
  curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, true);
81
  */
82
  public $curlopts = null;
83
 
84
+ /**
85
+ * The state of debug mode.
86
+ */
87
+ public $debug_mode = false;
88
+
89
  /**
90
  * The default class to use for HTTP Requests (defaults to <RequestCore>).
91
  */
99
  /**
100
  * Default useragent string to use.
101
  */
102
+ public $useragent = 'RequestCore/1.4.2';
103
 
104
  /**
105
  * File to read from while streaming up.
610
  curl_setopt($curl_handle, CURLOPT_USERAGENT, $this->useragent);
611
  curl_setopt($curl_handle, CURLOPT_READFUNCTION, array($this, 'streaming_read_callback'));
612
 
613
+ if ($this->debug_mode)
614
+ {
615
+ curl_setopt($curl_handle, CURLOPT_VERBOSE, true);
616
+ }
617
+
618
  if (!ini_get('safe_mode'))
619
  {
620
  curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, true);
app/libs/aws/sdk.class.php CHANGED
@@ -102,9 +102,9 @@ function __aws_sdk_ua_callback()
102
  // INTERMEDIARY CONSTANTS
103
 
104
  define('CFRUNTIME_NAME', 'aws-sdk-php');
105
- define('CFRUNTIME_VERSION', '1.2.6');
106
  // define('CFRUNTIME_BUILD', gmdate('YmdHis', filemtime(__FILE__))); // @todo: Hardcode for release.
107
- define('CFRUNTIME_BUILD', '20110302071252');
108
  define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . php_uname('s') . '/' . php_uname('r') . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback());
109
 
110
 
@@ -115,7 +115,7 @@ define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/'
115
  * Core functionality and default settings shared across all SDK classes. All methods and properties in this
116
  * class are inherited by the service-specific classes.
117
  *
118
- * @version 2011.03.01
119
  * @license See the included NOTICE.md file for more information.
120
  * @copyright See the included NOTICE.md file for more information.
121
  * @link http://aws.amazon.com/php/ PHP Developer Center
@@ -159,6 +159,11 @@ class CFRuntime
159
  */
160
  public $secret_key;
161
 
 
 
 
 
 
162
  /**
163
  * The Amazon Account ID, without hyphens.
164
  */
@@ -184,6 +189,11 @@ class CFRuntime
184
  */
185
  public $api_version = null;
186
 
 
 
 
 
 
187
  /**
188
  * The default class to use for utilities (defaults to <CFUtilities>).
189
  */
@@ -739,6 +749,8 @@ class CFRuntime
739
  }
740
 
741
  $method_arguments = func_get_args();
 
 
742
 
743
  // Use the caching flow to determine if we need to do a round-trip to the server.
744
  if ($this->use_cache_flow)
@@ -767,6 +779,7 @@ class CFRuntime
767
  }
768
 
769
  $return_curl_handle = false;
 
770
 
771
  // Do we have a custom resource prefix?
772
  if ($this->resource_prefix)
@@ -776,12 +789,19 @@ class CFRuntime
776
 
777
  // Determine signing values
778
  $current_time = time() + $this->adjust_offset;
779
- $date = gmdate($this->util->konst($this->util, 'DATE_FORMAT_RFC2616'), $current_time);
780
- $timestamp = gmdate($this->util->konst($this->util, 'DATE_FORMAT_ISO8601'), $current_time);
781
  $nonce = $this->util->generate_guid();
782
 
783
  // Manage the key-value pairs that are used in the query.
784
- $query['Action'] = $action;
 
 
 
 
 
 
 
785
  $query['Version'] = $this->api_version;
786
 
787
  // Only Signature v2
@@ -805,8 +825,22 @@ class CFRuntime
805
  // Do a case-sensitive, natural order sort on the array keys.
806
  uksort($query, 'strcmp');
807
 
808
- // Create the string that needs to be hashed.
809
- $canonical_query_string = $this->util->to_signable_string($query);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
810
 
811
  // Remove the default scheme from the domain.
812
  $domain = str_replace(array('http://', 'https://'), '', $domain);
@@ -827,16 +861,7 @@ class CFRuntime
827
  // Set the proper request URI.
828
  $request_uri = isset($parsed_url['path']) ? $parsed_url['path'] : '/';
829
 
830
- // Handle signing differently between v2 and v3
831
- if ($signature_version === 3)
832
- {
833
- // Prepare the string to sign
834
- $string_to_sign = $date . $nonce;
835
-
836
- // Hash the AWS secret key and generate a signature for the request.
837
- $signature = base64_encode(hash_hmac('sha256', $string_to_sign, $this->secret_key, true));
838
- }
839
- elseif ($signature_version === 2)
840
  {
841
  // Prepare the string to sign
842
  $string_to_sign = "POST\n$host_header\n$request_uri\n$canonical_query_string";
@@ -856,14 +881,31 @@ class CFRuntime
856
  );
857
 
858
  // Compose the request.
859
- $request_url = (($this->use_ssl) ? 'https://' : 'http://') . $domain;
860
  $request_url .= !isset($parsed_url['path']) ? '/' : '';
861
 
862
  // Instantiate the request class
863
  $request = new $this->request_class($request_url, $this->proxy, $helpers);
864
  $request->set_method('POST');
865
- $request->add_header('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');
866
  $request->set_body($querystring);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
867
 
868
  // Pass along registered stream callbacks
869
  if ($this->registered_streaming_read_callback)
@@ -879,11 +921,87 @@ class CFRuntime
879
  // Add authentication headers
880
  if ($signature_version === 3)
881
  {
882
- $request->add_header('Date', $date);
883
- $request->add_header('Content-Length', strlen($querystring));
884
- $request->add_header('Content-MD5', $this->util->hex_to_base64(md5($querystring)));
885
- $request->add_header('x-amz-nonce', $nonce);
886
- $request->add_header('X-Amzn-Authorization', 'AWS3-HTTPS AWSAccessKeyId=' . $this->key . ',Algorithm=HmacSHA256,Signature=' . $signature);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887
  }
888
 
889
  // Update RequestCore settings
@@ -893,7 +1011,7 @@ class CFRuntime
893
  $curlopts = array();
894
 
895
  // Set custom CURLOPT settings
896
- if (isset($opt['curlopts']))
897
  {
898
  $curlopts = $opt['curlopts'];
899
  unset($opt['curlopts']);
@@ -902,7 +1020,7 @@ class CFRuntime
902
  // Debug mode
903
  if ($this->debug_mode)
904
  {
905
- $curlopts[CURLOPT_VERBOSE] = true;
906
  }
907
 
908
  if (count($curlopts))
@@ -927,12 +1045,15 @@ class CFRuntime
927
  // Send!
928
  $request->send_request();
929
 
 
 
930
  // Prepare the response.
931
  $headers = $request->get_response_header();
932
  $headers['x-aws-stringtosign'] = $string_to_sign;
 
933
  $headers['x-aws-body'] = $querystring;
934
 
935
- $data = new $this->response_class($headers, $this->parse_callback($request->get_response_body()), $request->get_response_code());
936
 
937
  // Was it Amazon's fault the request failed? Retry the request until we reach $max_retries.
938
  if ((integer) $request->get_response_code() === 500 || (integer) $request->get_response_code() === 503)
@@ -1048,9 +1169,10 @@ class CFRuntime
1048
  * Parses a response body into a PHP object if appropriate.
1049
  *
1050
  * @param CFResponse|string $response (Required) The <CFResponse> object to parse, or an XML string that would otherwise be a response body.
 
1051
  * @return CFResponse|string A parsed <CFResponse> object, or parsed XML.
1052
  */
1053
- public function parse_callback($response)
1054
  {
1055
  // Shorten this so we have a (mostly) single code path
1056
  if (isset($response->body))
@@ -1073,10 +1195,36 @@ class CFRuntime
1073
  return $response;
1074
  }
1075
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1076
  // Look for XML cues
1077
  if (
1078
- (stripos($body, '<?xml') === 0 || strpos($body, '<Error>') === 0) ||
1079
- preg_match('/^<(\w*) xmlns="http(s?):\/\/(\w*).amazon(aws)?.com/im', $body)
1080
  )
1081
  {
1082
  // Strip the default XML namespace to simplify XPath expressions
@@ -1085,6 +1233,15 @@ class CFRuntime
1085
  // Parse the XML body
1086
  $body = new $this->parser_class($body);
1087
  }
 
 
 
 
 
 
 
 
 
1088
 
1089
  // Put the parsed data back where it goes
1090
  if (isset($response->body))
102
  // INTERMEDIARY CONSTANTS
103
 
104
  define('CFRUNTIME_NAME', 'aws-sdk-php');
105
+ define('CFRUNTIME_VERSION', '1.3.1');
106
  // define('CFRUNTIME_BUILD', gmdate('YmdHis', filemtime(__FILE__))); // @todo: Hardcode for release.
107
+ define('CFRUNTIME_BUILD', '20110325210828');
108
  define('CFRUNTIME_USERAGENT', CFRUNTIME_NAME . '/' . CFRUNTIME_VERSION . ' PHP/' . PHP_VERSION . ' ' . php_uname('s') . '/' . php_uname('r') . ' Arch/' . php_uname('m') . ' SAPI/' . php_sapi_name() . ' Integer/' . PHP_INT_MAX . ' Build/' . CFRUNTIME_BUILD . __aws_sdk_ua_callback());
109
 
110
 
115
  * Core functionality and default settings shared across all SDK classes. All methods and properties in this
116
  * class are inherited by the service-specific classes.
117
  *
118
+ * @version 2011.03.25
119
  * @license See the included NOTICE.md file for more information.
120
  * @copyright See the included NOTICE.md file for more information.
121
  * @link http://aws.amazon.com/php/ PHP Developer Center
159
  */
160
  public $secret_key;
161
 
162
+ /**
163
+ * The Amazon Authentication Token.
164
+ */
165
+ public $auth_token;
166
+
167
  /**
168
  * The Amazon Account ID, without hyphens.
169
  */
189
  */
190
  public $api_version = null;
191
 
192
+ /**
193
+ * The state of whether auth should be handled as AWS Query.
194
+ */
195
+ public $use_aws_query = true;
196
+
197
  /**
198
  * The default class to use for utilities (defaults to <CFUtilities>).
199
  */
749
  }
750
 
751
  $method_arguments = func_get_args();
752
+ $headers = array();
753
+ $signed_headers = array();
754
 
755
  // Use the caching flow to determine if we need to do a round-trip to the server.
756
  if ($this->use_cache_flow)
779
  }
780
 
781
  $return_curl_handle = false;
782
+ $x_amz_target = null;
783
 
784
  // Do we have a custom resource prefix?
785
  if ($this->resource_prefix)
789
 
790
  // Determine signing values
791
  $current_time = time() + $this->adjust_offset;
792
+ $date = gmdate(CFUtilities::DATE_FORMAT_RFC2616, $current_time);
793
+ $timestamp = gmdate(CFUtilities::DATE_FORMAT_ISO8601, $current_time);
794
  $nonce = $this->util->generate_guid();
795
 
796
  // Manage the key-value pairs that are used in the query.
797
+ if (stripos($action, 'x-amz-target') !== false)
798
+ {
799
+ $x_amz_target = trim(str_ireplace('x-amz-target:', '', $action));
800
+ }
801
+ else
802
+ {
803
+ $query['Action'] = $action;
804
+ }
805
  $query['Version'] = $this->api_version;
806
 
807
  // Only Signature v2
825
  // Do a case-sensitive, natural order sort on the array keys.
826
  uksort($query, 'strcmp');
827
 
828
+ // Normalize JSON input
829
+ if (isset($query['body']) && $query['body'] === '[]')
830
+ {
831
+ $query['body'] = '{}';
832
+ }
833
+
834
+ if ($this->use_aws_query)
835
+ {
836
+ // Create the string that needs to be hashed.
837
+ $canonical_query_string = $this->util->to_signable_string($query);
838
+ }
839
+ else
840
+ {
841
+ // Create the string that needs to be hashed.
842
+ $canonical_query_string = $this->util->encode_signature2($query['body']);
843
+ }
844
 
845
  // Remove the default scheme from the domain.
846
  $domain = str_replace(array('http://', 'https://'), '', $domain);
861
  // Set the proper request URI.
862
  $request_uri = isset($parsed_url['path']) ? $parsed_url['path'] : '/';
863
 
864
+ if ($signature_version === 2)
 
 
 
 
 
 
 
 
 
865
  {
866
  // Prepare the string to sign
867
  $string_to_sign = "POST\n$host_header\n$request_uri\n$canonical_query_string";
881
  );
882
 
883
  // Compose the request.
884
+ $request_url = ($this->use_ssl ? 'https://' : 'http://') . $domain;
885
  $request_url .= !isset($parsed_url['path']) ? '/' : '';
886
 
887
  // Instantiate the request class
888
  $request = new $this->request_class($request_url, $this->proxy, $helpers);
889
  $request->set_method('POST');
 
890
  $request->set_body($querystring);
891
+ $headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8';
892
+
893
+ // Do we have an authentication token?
894
+ if ($this->auth_token)
895
+ {
896
+ $headers['X-Amz-Security-Token'] = $this->auth_token;
897
+ }
898
+
899
+ // Signing using X-Amz-Target is handled differently.
900
+ if ($signature_version === 3 && $x_amz_target)
901
+ {
902
+ $headers['X-Amz-Target'] = $x_amz_target;
903
+ $headers['Content-Type'] = 'application/json; amzn-1.0';
904
+ $headers['Content-Encoding'] = 'amz-1.0';
905
+
906
+ $request->set_body($query['body']);
907
+ $querystring = $query['body'];
908
+ }
909
 
910
  // Pass along registered stream callbacks
911
  if ($this->registered_streaming_read_callback)
921
  // Add authentication headers
922
  if ($signature_version === 3)
923
  {
924
+ $headers['X-Amz-Nonce'] = $nonce;
925
+ $headers['Date'] = $date;
926
+ $headers['Content-Length'] = strlen($querystring);
927
+ $headers['Content-MD5'] = $this->util->hex_to_base64(md5($querystring));
928
+ $headers['Host'] = $host_header;
929
+ }
930
+
931
+ // Sort headers
932
+ uksort($headers, 'strnatcasecmp');
933
+
934
+ if ($signature_version === 3 && $this->use_ssl)
935
+ {
936
+ // Prepare the string to sign (HTTPS)
937
+ $string_to_sign = $date . $nonce;
938
+ }
939
+ elseif ($signature_version === 3 && !$this->use_ssl)
940
+ {
941
+ // Prepare the string to sign (HTTP)
942
+ $string_to_sign = "POST\n$request_uri\n\n";
943
+ }
944
+
945
+ // Add headers to request and compute the string to sign
946
+ foreach ($headers as $header_key => $header_value)
947
+ {
948
+ // Strip linebreaks from header values as they're illegal and can allow for security issues
949
+ $header_value = str_replace(array("\r", "\n"), '', $header_value);
950
+
951
+ // Add the header if it has a value
952
+ if ($header_value !== '')
953
+ {
954
+ $request->add_header($header_key, $header_value);
955
+ }
956
+
957
+ // Signature v3 over HTTP
958
+ if ($signature_version === 3 && !$this->use_ssl)
959
+ {
960
+ // Generate the string to sign
961
+ if (
962
+ substr(strtolower($header_key), 0, 8) === 'content-' ||
963
+ strtolower($header_key) === 'date' ||
964
+ strtolower($header_key) === 'expires' ||
965
+ strtolower($header_key) === 'host' ||
966
+ substr(strtolower($header_key), 0, 6) === 'x-amz-'
967
+ )
968
+ {
969
+ $string_to_sign .= strtolower($header_key) . ':' . $header_value . "\n";
970
+ $signed_headers[] = $header_key;
971
+ }
972
+ }
973
+ }
974
+
975
+ if ($signature_version === 3)
976
+ {
977
+ if (!$this->use_ssl)
978
+ {
979
+ $string_to_sign .= "\n";
980
+
981
+ if (isset($query['body']) && $query['body'] !== '')
982
+ {
983
+ $string_to_sign .= $query['body'];
984
+ }
985
+
986
+ // Convert from string-to-sign to bytes-to-sign
987
+ $bytes_to_sign = hash('sha256', $string_to_sign, true);
988
+
989
+ // Hash the AWS secret key and generate a signature for the request.
990
+ $signature = base64_encode(hash_hmac('sha256', $bytes_to_sign, $this->secret_key, true));
991
+ }
992
+ else
993
+ {
994
+ // Hash the AWS secret key and generate a signature for the request.
995
+ $signature = base64_encode(hash_hmac('sha256', $string_to_sign, $this->secret_key, true));
996
+ }
997
+
998
+ $headers['X-Amzn-Authorization'] = 'AWS3' . ($this->use_ssl ? '-HTTPS' : '')
999
+ . ' AWSAccessKeyId=' . $this->key
1000
+ . ',Algorithm=HmacSHA256'
1001
+ . ',SignedHeaders=' . implode(';', $signed_headers)
1002
+ . ',Signature=' . $signature;
1003
+
1004
+ $request->add_header('X-Amzn-Authorization', $headers['X-Amzn-Authorization']);
1005
  }
1006
 
1007
  // Update RequestCore settings
1011
  $curlopts = array();
1012
 
1013
  // Set custom CURLOPT settings
1014
+ if (is_array($opt) && isset($opt['curlopts']))
1015
  {
1016
  $curlopts = $opt['curlopts'];
1017
  unset($opt['curlopts']);
1020
  // Debug mode
1021
  if ($this->debug_mode)
1022
  {
1023
+ $request->debug_mode = $this->debug_mode;
1024
  }
1025
 
1026
  if (count($curlopts))
1045
  // Send!
1046
  $request->send_request();
1047
 
1048
+ $request_headers = $headers;
1049
+
1050
  // Prepare the response.
1051
  $headers = $request->get_response_header();
1052
  $headers['x-aws-stringtosign'] = $string_to_sign;
1053
+ $headers['x-aws-request-headers'] = $request_headers;
1054
  $headers['x-aws-body'] = $querystring;
1055
 
1056
+ $data = new $this->response_class($headers, $this->parse_callback($request->get_response_body(), $headers), $request->get_response_code());
1057
 
1058
  // Was it Amazon's fault the request failed? Retry the request until we reach $max_retries.
1059
  if ((integer) $request->get_response_code() === 500 || (integer) $request->get_response_code() === 503)
1169
  * Parses a response body into a PHP object if appropriate.
1170
  *
1171
  * @param CFResponse|string $response (Required) The <CFResponse> object to parse, or an XML string that would otherwise be a response body.
1172
+ * @param string $content_type (Optional) The content-type to use when determining how to parse the content.
1173
  * @return CFResponse|string A parsed <CFResponse> object, or parsed XML.
1174
  */
1175
+ public function parse_callback($response, $headers = null)
1176
  {
1177
  // Shorten this so we have a (mostly) single code path
1178
  if (isset($response->body))
1195
  return $response;
1196
  }
1197
 
1198
+ // Decompress gzipped content
1199
+ if (isset($headers['content-encoding']))
1200
+ {
1201
+ switch (strtolower(trim($headers['content-encoding'], "\x09\x0A\x0D\x20")))
1202
+ {
1203
+ case 'gzip':
1204
+ case 'x-gzip':
1205
+ $decoder = new CFGzipDecode($body);
1206
+ if ($decoder->parse())
1207
+ {
1208
+ $body = $decoder->data;
1209
+ }
1210
+ break;
1211
+
1212
+ case 'deflate':
1213
+ if (($body = gzuncompress($body)) === false)
1214
+ {
1215
+ if (($body = gzinflate($body)) === false)
1216
+ {
1217
+ continue;
1218
+ }
1219
+ }
1220
+ break;
1221
+ }
1222
+ }
1223
+
1224
  // Look for XML cues
1225
  if (
1226
+ (isset($headers['content-type']) && ($headers['content-type'] === 'text/xml' || $headers['content-type'] === 'application/xml')) || // We know it's XML
1227
+ (!isset($headers['content-type']) && (stripos($body, '<?xml') === 0 || strpos($body, '<Error>') === 0) || preg_match('/^<(\w*) xmlns="http(s?):\/\/(\w*).amazon(aws)?.com/im', $body)) // Sniff for XML
1228
  )
1229
  {
1230
  // Strip the default XML namespace to simplify XPath expressions
1233
  // Parse the XML body
1234
  $body = new $this->parser_class($body);
1235
  }
1236
+ // Look for JSON cues
1237
+ elseif (
1238
+ (isset($headers['content-type']) && $headers['content-type'] === 'application/json') || // We know it's JSON
1239
+ (!isset($headers['content-type']) && $this->util->is_json($body)) // Sniff for JSON
1240
+ )
1241
+ {
1242
+ // Normalize JSON to a CFSimpleXML object
1243
+ $body = CFJSON::to_xml($body);
1244
+ }
1245
 
1246
  // Put the parsed data back where it goes
1247
  if (isset($response->body))
app/libs/aws/services/as.class.php CHANGED
@@ -47,7 +47,7 @@
47
  *
48
  * </ul>
49
  *
50
- * @version Tue Mar 01 17:12:19 PST 2011
51
  * @license See the included NOTICE.md file for complete information.
52
  * @copyright See the included NOTICE.md file for complete information.
53
  * @link http://aws.amazon.com/autoscaling/Amazon Auto-Scaling
@@ -150,6 +150,7 @@ class AmazonAS extends CFRuntime
150
  * <li><code>MinSize</code> - <code>integer</code> - Optional - The minimum size for the new Auto Scaling group. </li>
151
  * <li><code>MaxSize</code> - <code>integer</code> - Optional - The maximum size for the Auto Scaling group. </li>
152
  * <li><code>DesiredCapacity</code> - <code>integer</code> - Optional - The number of EC2 instances that should be running in the group. </li>
 
153
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
154
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
155
  */
@@ -188,6 +189,7 @@ class AmazonAS extends CFRuntime
188
  * @param integer $desired_capacity (Required) The new capacity setting for the AutoScalingGroup.
189
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
190
  * <li><code>HonorCooldown</code> - <code>boolean</code> - Optional - By default, <code>SetDesiredCapacity</code> overrides any cooldown period. Set to True if you want Auto Scaling to reject this request if the Auto Scaling group is in cooldown. </li>
 
191
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
192
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
193
  */
@@ -207,6 +209,7 @@ class AmazonAS extends CFRuntime
207
  * @param string $policy_name (Required) The name or PolicyARN of the policy you want to delete
208
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
209
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the Auto Scaling group. </li>
 
210
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
211
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
212
  */
@@ -225,6 +228,7 @@ class AmazonAS extends CFRuntime
225
  * @param string $scheduled_action_name (Required) The name of the action you want to delete.
226
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
227
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the Auto Scaling group </li>
 
228
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
229
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
230
  */
@@ -246,6 +250,7 @@ class AmazonAS extends CFRuntime
246
  * <li><code>LaunchConfigurationNames</code> - <code>string|array</code> - Optional - A list of launch configuration names. Pass a string for a single value, or an indexed array for multiple values. </li>
247
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
248
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of launch configurations. </li>
 
249
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
250
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
251
  */
@@ -270,6 +275,7 @@ class AmazonAS extends CFRuntime
270
  * Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
271
  *
272
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
273
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
274
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
275
  */
@@ -293,6 +299,7 @@ class AmazonAS extends CFRuntime
293
  * <li><code>AutoScalingGroupNames</code> - <code>string|array</code> - Optional - A list of Auto Scaling group names. Pass a string for a single value, or an indexed array for multiple values. </li>
294
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
295
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to return. </li>
 
296
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
297
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
298
  */
@@ -324,6 +331,7 @@ class AmazonAS extends CFRuntime
324
  * @param string $granularity (Required) The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".
325
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
326
  * <li><code>Metrics</code> - <code>string|array</code> - Optional - The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported: <ul> <li>GroupMinSize</li><li>GroupMaxSize</li><li>GroupDesiredCapacity</li><li>GroupInServiceInstances</li><li>GroupPendingInstances</li><li>GroupTerminatingInstances</li><li>GroupTotalInstances</li> </ul> Pass a string for a single value, or an indexed array for multiple values. </li>
 
327
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
328
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
329
  */
@@ -354,6 +362,7 @@ class AmazonAS extends CFRuntime
354
  * @param string $instance_id (Required) The ID of the EC2 instance to be terminated.
355
  * @param boolean $should_decrement_desired_capacity (Required) Specifies whether (<i>true</i>) or not (<i>false</i>) terminating this instance should also decrement the size of the AutoScalingGroup.
356
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
357
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
358
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
359
  */
@@ -381,6 +390,7 @@ class AmazonAS extends CFRuntime
381
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the AutoScalingGroup. </li>
382
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of scaling activities to return. </li>
383
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results for pagination. </li>
 
384
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
385
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
386
  */
@@ -408,6 +418,7 @@ class AmazonAS extends CFRuntime
408
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
409
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name or ARN of the Auto Scaling Group. </li>
410
  * <li><code>HonorCooldown</code> - <code>boolean</code> - Optional - Set to True if you want Auto Scaling to reject this request if the Auto Scaling group is in cooldown. </li>
 
411
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
412
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
413
  */
@@ -424,6 +435,7 @@ class AmazonAS extends CFRuntime
424
  * Returns a list of metrics and a corresponding list of granularities for each metric.
425
  *
426
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
427
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
428
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
429
  */
@@ -445,6 +457,7 @@ class AmazonAS extends CFRuntime
445
  * <li><code>PolicyNames</code> - <code>string|array</code> - Optional - A list of policy names or policy ARNs to be described. If this list is omitted, all policy names are described. If an auto scaling group name is provided, the results are limited to that group.The list of requested policy names cannot contain more than 50 items. If unknown policy names are requested, they are ignored with no error. Pass a string for a single value, or an indexed array for multiple values. </li>
446
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that is used to mark the start of the next batch of returned results for pagination. </li>
447
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of policies that will be described with each call. </li>
 
448
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
449
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
450
  */
@@ -469,6 +482,7 @@ class AmazonAS extends CFRuntime
469
  * Returns policy adjustment types for use in the PutScalingPolicy action.
470
  *
471
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
472
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
473
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
474
  */
@@ -488,6 +502,7 @@ class AmazonAS extends CFRuntime
488
  *
489
  * @param string $auto_scaling_group_name (Required) The name of the Auto Scaling group.
490
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
491
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
492
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
493
  */
@@ -520,6 +535,7 @@ class AmazonAS extends CFRuntime
520
  * <li><code>HealthCheckGracePeriod</code> - <code>integer</code> - Optional - Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health. </li>
521
  * <li><code>PlacementGroup</code> - <code>string</code> - Optional - Physical location of your cluster placement group created in Amazon EC2. </li>
522
  * <li><code>VPCZoneIdentifier</code> - <code>string</code> - Optional - The subnet identifier of the Virtual Private Cloud. </li>
 
523
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
524
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
525
  */
@@ -560,6 +576,7 @@ class AmazonAS extends CFRuntime
560
  * <li><code>InstanceIds</code> - <code>string|array</code> - Optional - The list of Auto Scaling instances to describe. If this list is omitted, all auto scaling instances are described. The list of requested instances cannot contain more than 50 items. If unknown instances are requested, they are ignored with no error. Pass a string for a single value, or an indexed array for multiple values. </li>
561
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of Auto Scaling instances to be described with each call. </li>
562
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
 
563
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
564
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
565
  */
@@ -588,6 +605,7 @@ class AmazonAS extends CFRuntime
588
  *
589
  * @param string $launch_configuration_name (Required) The name of the launch configuration.
590
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
591
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
592
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
593
  */
@@ -611,6 +629,7 @@ class AmazonAS extends CFRuntime
611
  * @param string $adjustment_type (Required) Specifies whether the <code>ScalingAdjustment</code> is an absolute number or a percentage of the current capacity. Valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>, and <code>PercentChangeInCapacity</code>.
612
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
613
  * <li><code>Cooldown</code> - <code>integer</code> - Optional - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. </li>
 
614
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
615
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
616
  */
@@ -633,6 +652,7 @@ class AmazonAS extends CFRuntime
633
  * @param string $health_status (Required) The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.
634
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
635
  * <li><code>ShouldRespectGracePeriod</code> - <code>boolean</code> - Optional - If True, this call should respect the grace period associated with the group. </li>
 
636
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
637
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
638
  */
@@ -674,6 +694,7 @@ class AmazonAS extends CFRuntime
674
  * <li><code>HealthCheckGracePeriod</code> - <code>integer</code> - Optional - The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service. </li>
675
  * <li><code>PlacementGroup</code> - <code>string</code> - Optional - The name of the cluster placement group, if applicable. For more information, go to Using Cluster Instances in the Amazon EC2 User Guide. </li>
676
  * <li><code>VPCZoneIdentifier</code> - <code>string</code> - Optional - The identifier for the VPC connection, if applicable. </li>
 
677
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
678
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
679
  */
@@ -706,6 +727,7 @@ class AmazonAS extends CFRuntime
706
  * <li><code>EndTime</code> - <code>string</code> - Optional - The latest scheduled start time to return. If scheduled action names are provided, this field will be ignored. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
707
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
708
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of scheduled actions to return. </li>
 
709
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
710
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
711
  */
@@ -752,6 +774,7 @@ class AmazonAS extends CFRuntime
752
  * @param string $auto_scaling_group_name (Required) The name or Amazon Resource Name (ARN) of the Auto Scaling group.
753
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
754
  * <li><code>ScalingProcesses</code> - <code>string|array</code> - Optional - The processes that you want to suspend or resume, which can include one or more of the following: <ul> <li>Launch</li><li>Terminate</li><li>HealthCheck</li><li>ReplaceUnhealthy</li><li>AZRebalance</li><li>AlarmNotifications</li><li>ScheduledActions</li> </ul> To suspend all process types, omit this parameter. Pass a string for a single value, or an indexed array for multiple values. </li>
 
755
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
756
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
757
  */
@@ -779,6 +802,7 @@ class AmazonAS extends CFRuntime
779
  * @param string $auto_scaling_group_name (Required) The name or Amazon Resource Name (ARN) of the Auto Scaling group.
780
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
781
  * <li><code>ScalingProcesses</code> - <code>string|array</code> - Optional - The processes that you want to suspend or resume, which can include one or more of the following: <ul> <li>Launch</li><li>Terminate</li><li>HealthCheck</li><li>ReplaceUnhealthy</li><li>AZRebalance</li><li>AlarmNotifications</li><li>ScheduledActions</li> </ul> To suspend all process types, omit this parameter. Pass a string for a single value, or an indexed array for multiple values. </li>
 
782
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
783
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
784
  */
@@ -827,6 +851,7 @@ class AmazonAS extends CFRuntime
827
  * </ul></li>
828
  * <li><code>InstanceMonitoring</code> - <code>array</code> - Optional - Enables detailed monitoring. <ul>
829
  * <li><code>Enabled</code> - <code>boolean</code> - Optional - If true, instance monitoring is enabled. </li></ul></li>
 
830
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
831
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
832
  */
@@ -875,6 +900,7 @@ class AmazonAS extends CFRuntime
875
  * @param string $auto_scaling_group_name (Required) The name or ARN of the Auto Scaling Group.
876
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
877
  * <li><code>Metrics</code> - <code>string|array</code> - Optional - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported: <ul> <li>GroupMinSize</li><li>GroupMaxSize</li><li>GroupDesiredCapacity</li><li>GroupInServiceInstances</li><li>GroupPendingInstances</li><li>GroupTerminatingInstances</li><li>GroupTotalInstances</li> </ul> Pass a string for a single value, or an indexed array for multiple values. </li>
 
878
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
879
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
880
  */
47
  *
48
  * </ul>
49
  *
50
+ * @version Fri Mar 25 13:12:03 PDT 2011
51
  * @license See the included NOTICE.md file for complete information.
52
  * @copyright See the included NOTICE.md file for complete information.
53
  * @link http://aws.amazon.com/autoscaling/Amazon Auto-Scaling
150
  * <li><code>MinSize</code> - <code>integer</code> - Optional - The minimum size for the new Auto Scaling group. </li>
151
  * <li><code>MaxSize</code> - <code>integer</code> - Optional - The maximum size for the Auto Scaling group. </li>
152
  * <li><code>DesiredCapacity</code> - <code>integer</code> - Optional - The number of EC2 instances that should be running in the group. </li>
153
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
154
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
155
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
156
  */
189
  * @param integer $desired_capacity (Required) The new capacity setting for the AutoScalingGroup.
190
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
191
  * <li><code>HonorCooldown</code> - <code>boolean</code> - Optional - By default, <code>SetDesiredCapacity</code> overrides any cooldown period. Set to True if you want Auto Scaling to reject this request if the Auto Scaling group is in cooldown. </li>
192
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
193
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
194
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
195
  */
209
  * @param string $policy_name (Required) The name or PolicyARN of the policy you want to delete
210
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
211
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the Auto Scaling group. </li>
212
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
213
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
214
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
215
  */
228
  * @param string $scheduled_action_name (Required) The name of the action you want to delete.
229
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
230
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the Auto Scaling group </li>
231
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
232
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
233
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
234
  */
250
  * <li><code>LaunchConfigurationNames</code> - <code>string|array</code> - Optional - A list of launch configuration names. Pass a string for a single value, or an indexed array for multiple values. </li>
251
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
252
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of launch configurations. </li>
253
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
254
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
255
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
256
  */
275
  * Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
276
  *
277
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
278
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
279
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
280
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
281
  */
299
  * <li><code>AutoScalingGroupNames</code> - <code>string|array</code> - Optional - A list of Auto Scaling group names. Pass a string for a single value, or an indexed array for multiple values. </li>
300
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
301
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to return. </li>
302
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
303
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
304
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
305
  */
331
  * @param string $granularity (Required) The granularity to associate with the metrics to collect. Currently, the only legal granularity is "1Minute".
332
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
333
  * <li><code>Metrics</code> - <code>string|array</code> - Optional - The list of metrics to collect. If no metrics are specified, all metrics are enabled. The following metrics are supported: <ul> <li>GroupMinSize</li><li>GroupMaxSize</li><li>GroupDesiredCapacity</li><li>GroupInServiceInstances</li><li>GroupPendingInstances</li><li>GroupTerminatingInstances</li><li>GroupTotalInstances</li> </ul> Pass a string for a single value, or an indexed array for multiple values. </li>
334
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
335
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
336
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
337
  */
362
  * @param string $instance_id (Required) The ID of the EC2 instance to be terminated.
363
  * @param boolean $should_decrement_desired_capacity (Required) Specifies whether (<i>true</i>) or not (<i>false</i>) terminating this instance should also decrement the size of the AutoScalingGroup.
364
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
365
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
366
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
367
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
368
  */
390
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name of the AutoScalingGroup. </li>
391
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of scaling activities to return. </li>
392
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results for pagination. </li>
393
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
394
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
395
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
396
  */
418
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
419
  * <li><code>AutoScalingGroupName</code> - <code>string</code> - Optional - The name or ARN of the Auto Scaling Group. </li>
420
  * <li><code>HonorCooldown</code> - <code>boolean</code> - Optional - Set to True if you want Auto Scaling to reject this request if the Auto Scaling group is in cooldown. </li>
421
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
422
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
423
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
424
  */
435
  * Returns a list of metrics and a corresponding list of granularities for each metric.
436
  *
437
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
438
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
439
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
440
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
441
  */
457
  * <li><code>PolicyNames</code> - <code>string|array</code> - Optional - A list of policy names or policy ARNs to be described. If this list is omitted, all policy names are described. If an auto scaling group name is provided, the results are limited to that group.The list of requested policy names cannot contain more than 50 items. If unknown policy names are requested, they are ignored with no error. Pass a string for a single value, or an indexed array for multiple values. </li>
458
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that is used to mark the start of the next batch of returned results for pagination. </li>
459
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of policies that will be described with each call. </li>
460
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
461
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
462
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
463
  */
482
  * Returns policy adjustment types for use in the PutScalingPolicy action.
483
  *
484
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
485
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
486
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
487
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
488
  */
502
  *
503
  * @param string $auto_scaling_group_name (Required) The name of the Auto Scaling group.
504
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
505
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
506
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
507
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
508
  */
535
  * <li><code>HealthCheckGracePeriod</code> - <code>integer</code> - Optional - Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health. </li>
536
  * <li><code>PlacementGroup</code> - <code>string</code> - Optional - Physical location of your cluster placement group created in Amazon EC2. </li>
537
  * <li><code>VPCZoneIdentifier</code> - <code>string</code> - Optional - The subnet identifier of the Virtual Private Cloud. </li>
538
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
539
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
540
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
541
  */
576
  * <li><code>InstanceIds</code> - <code>string|array</code> - Optional - The list of Auto Scaling instances to describe. If this list is omitted, all auto scaling instances are described. The list of requested instances cannot contain more than 50 items. If unknown instances are requested, they are ignored with no error. Pass a string for a single value, or an indexed array for multiple values. </li>
577
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of Auto Scaling instances to be described with each call. </li>
578
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
579
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
580
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
581
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
582
  */
605
  *
606
  * @param string $launch_configuration_name (Required) The name of the launch configuration.
607
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
608
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
609
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
610
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
611
  */
629
  * @param string $adjustment_type (Required) Specifies whether the <code>ScalingAdjustment</code> is an absolute number or a percentage of the current capacity. Valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>, and <code>PercentChangeInCapacity</code>.
630
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
631
  * <li><code>Cooldown</code> - <code>integer</code> - Optional - The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. </li>
632
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
633
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
634
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
635
  */
652
  * @param string $health_status (Required) The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.
653
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
654
  * <li><code>ShouldRespectGracePeriod</code> - <code>boolean</code> - Optional - If True, this call should respect the grace period associated with the group. </li>
655
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
656
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
657
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
658
  */
694
  * <li><code>HealthCheckGracePeriod</code> - <code>integer</code> - Optional - The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service. </li>
695
  * <li><code>PlacementGroup</code> - <code>string</code> - Optional - The name of the cluster placement group, if applicable. For more information, go to Using Cluster Instances in the Amazon EC2 User Guide. </li>
696
  * <li><code>VPCZoneIdentifier</code> - <code>string</code> - Optional - The identifier for the VPC connection, if applicable. </li>
697
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
698
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
699
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
700
  */
727
  * <li><code>EndTime</code> - <code>string</code> - Optional - The latest scheduled start time to return. If scheduled action names are provided, this field will be ignored. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
728
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string that marks the start of the next batch of returned results. </li>
729
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of scheduled actions to return. </li>
730
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
731
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
732
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
733
  */
774
  * @param string $auto_scaling_group_name (Required) The name or Amazon Resource Name (ARN) of the Auto Scaling group.
775
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
776
  * <li><code>ScalingProcesses</code> - <code>string|array</code> - Optional - The processes that you want to suspend or resume, which can include one or more of the following: <ul> <li>Launch</li><li>Terminate</li><li>HealthCheck</li><li>ReplaceUnhealthy</li><li>AZRebalance</li><li>AlarmNotifications</li><li>ScheduledActions</li> </ul> To suspend all process types, omit this parameter. Pass a string for a single value, or an indexed array for multiple values. </li>
777
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
778
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
779
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
780
  */
802
  * @param string $auto_scaling_group_name (Required) The name or Amazon Resource Name (ARN) of the Auto Scaling group.
803
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
804
  * <li><code>ScalingProcesses</code> - <code>string|array</code> - Optional - The processes that you want to suspend or resume, which can include one or more of the following: <ul> <li>Launch</li><li>Terminate</li><li>HealthCheck</li><li>ReplaceUnhealthy</li><li>AZRebalance</li><li>AlarmNotifications</li><li>ScheduledActions</li> </ul> To suspend all process types, omit this parameter. Pass a string for a single value, or an indexed array for multiple values. </li>
805
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
806
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
807
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
808
  */
851
  * </ul></li>
852
  * <li><code>InstanceMonitoring</code> - <code>array</code> - Optional - Enables detailed monitoring. <ul>
853
  * <li><code>Enabled</code> - <code>boolean</code> - Optional - If true, instance monitoring is enabled. </li></ul></li>
854
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
855
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
856
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
857
  */
900
  * @param string $auto_scaling_group_name (Required) The name or ARN of the Auto Scaling Group.
901
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
902
  * <li><code>Metrics</code> - <code>string|array</code> - Optional - The list of metrics to disable. If no metrics are specified, all metrics are disabled. The following metrics are supported: <ul> <li>GroupMinSize</li><li>GroupMaxSize</li><li>GroupDesiredCapacity</li><li>GroupInServiceInstances</li><li>GroupPendingInstances</li><li>GroupTerminatingInstances</li><li>GroupTotalInstances</li> </ul> Pass a string for a single value, or an indexed array for multiple values. </li>
903
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
904
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
905
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
906
  */
app/libs/aws/services/cloudformation.class.php CHANGED
@@ -33,7 +33,7 @@
33
  * Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS
34
  * product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.
35
  *
36
- * @version Tue Mar 01 17:13:02 PST 2011
37
  * @license See the included NOTICE.md file for complete information.
38
  * @copyright See the included NOTICE.md file for complete information.
39
  * @link http://aws.amazon.com/cloudformation/Amazon CloudFormation
@@ -148,6 +148,7 @@ class AmazonCloudFormation extends CFRuntime
148
  * <li><code>DisableRollback</code> - <code>boolean</code> - Optional - Boolean to enable or disable rollback on stack creation failures. Default: <code>false</code> </li>
149
  * <li><code>TimeoutInMinutes</code> - <code>integer</code> - Optional - If the time limit is exceeded, the stack is marked CREATE_FAILED; if <code>RollbackOnFailure</code> is set, the stack will be rolled back. </li>
150
  * <li><code>NotificationARNs</code> - <code>string|array</code> - Optional - The Simple Notification Service (SNS) topic ARNs to publish stack related events. You can find your SNS topic ARNs using the SNS console or your Command Line Interface (CLI). Pass a string for a single value, or an indexed array for multiple values. </li>
 
151
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
152
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
153
  */
@@ -184,6 +185,7 @@ class AmazonCloudFormation extends CFRuntime
184
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
185
  * <li><code>TemplateBody</code> - <code>string</code> - Optional - Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.) </li>
186
  * <li><code>TemplateURL</code> - <code>string</code> - Optional - Location of file containing the template body. (For more information, go to the AWS CloudFormation User Guide.) </li>
 
187
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
188
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
189
  */
@@ -203,6 +205,7 @@ class AmazonCloudFormation extends CFRuntime
203
  *
204
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
205
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
 
206
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
207
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
208
  */
@@ -226,6 +229,7 @@ class AmazonCloudFormation extends CFRuntime
226
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
227
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
228
  * <li><code>NextToken</code> - <code>string</code> - Optional - String that identifies the start of the next list of events, if there is one. Default: <code>null</code> </li>
 
229
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
230
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
231
  */
@@ -244,6 +248,7 @@ class AmazonCloudFormation extends CFRuntime
244
  *
245
  * @param string $stack_name (Required) The name or the unique identifier associated with the stack.
246
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
247
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
248
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
249
  */
@@ -262,6 +267,7 @@ class AmazonCloudFormation extends CFRuntime
262
  *
263
  * @param string $stack_name (Required) The name or the unique identifier associated with the stack.
264
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
265
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
266
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
267
  */
@@ -289,6 +295,7 @@ class AmazonCloudFormation extends CFRuntime
289
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
290
  * <li><code>LogicalResourceId</code> - <code>string</code> - Optional - The logical name of the resource specified in the template. Default: <code>null</code> </li>
291
  * <li><code>PhysicalResourceId</code> - <code>string</code> - Optional - The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation. For example, for an Amazon Elastic Compute Cloud (EC2) instance, <code>PhysicalResourceId</code> corresponds to the <code>InstanceId</code>. You can pass the EC2 <code>InstanceId</code> to <code>DescribeStackResources</code> to find what stack the instance belongs to and what other resources are part of the stack. Default: <code>null</code> </li>
 
292
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
293
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
294
  */
33
  * Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS
34
  * product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.
35
  *
36
+ * @version Fri Mar 25 13:12:48 PDT 2011
37
  * @license See the included NOTICE.md file for complete information.
38
  * @copyright See the included NOTICE.md file for complete information.
39
  * @link http://aws.amazon.com/cloudformation/Amazon CloudFormation
148
  * <li><code>DisableRollback</code> - <code>boolean</code> - Optional - Boolean to enable or disable rollback on stack creation failures. Default: <code>false</code> </li>
149
  * <li><code>TimeoutInMinutes</code> - <code>integer</code> - Optional - If the time limit is exceeded, the stack is marked CREATE_FAILED; if <code>RollbackOnFailure</code> is set, the stack will be rolled back. </li>
150
  * <li><code>NotificationARNs</code> - <code>string|array</code> - Optional - The Simple Notification Service (SNS) topic ARNs to publish stack related events. You can find your SNS topic ARNs using the SNS console or your Command Line Interface (CLI). Pass a string for a single value, or an indexed array for multiple values. </li>
151
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
152
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
153
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
154
  */
185
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
186
  * <li><code>TemplateBody</code> - <code>string</code> - Optional - Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.) </li>
187
  * <li><code>TemplateURL</code> - <code>string</code> - Optional - Location of file containing the template body. (For more information, go to the AWS CloudFormation User Guide.) </li>
188
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
189
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
190
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
191
  */
205
  *
206
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
207
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
208
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
209
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
210
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
211
  */
229
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
230
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
231
  * <li><code>NextToken</code> - <code>string</code> - Optional - String that identifies the start of the next list of events, if there is one. Default: <code>null</code> </li>
232
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
233
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
234
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
235
  */
248
  *
249
  * @param string $stack_name (Required) The name or the unique identifier associated with the stack.
250
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
251
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
252
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
253
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
254
  */
267
  *
268
  * @param string $stack_name (Required) The name or the unique identifier associated with the stack.
269
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
270
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
271
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
272
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
273
  */
295
  * <li><code>StackName</code> - <code>string</code> - Optional - The name or the unique identifier associated with the stack. Default: <code>null</code> </li>
296
  * <li><code>LogicalResourceId</code> - <code>string</code> - Optional - The logical name of the resource specified in the template. Default: <code>null</code> </li>
297
  * <li><code>PhysicalResourceId</code> - <code>string</code> - Optional - The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation. For example, for an Amazon Elastic Compute Cloud (EC2) instance, <code>PhysicalResourceId</code> corresponds to the <code>InstanceId</code>. You can pass the EC2 <code>InstanceId</code> to <code>DescribeStackResources</code> to find what stack the instance belongs to and what other resources are part of the stack. Default: <code>null</code> </li>
298
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
299
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
300
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
301
  */
app/libs/aws/services/cloudfront.class.php CHANGED
@@ -36,7 +36,7 @@ class CloudFront_Exception extends Exception {}
36
  * seamlessly with the Amazon Simple Storage Service, which durably stores the original, definitive versions
37
  * of your files.
38
  *
39
- * @version 2011.02.24
40
  * @license See the included NOTICE.md file for more information.
41
  * @copyright See the included NOTICE.md file for more information.
42
  * @link http://aws.amazon.com/cloudfront/ Amazon CloudFront
@@ -849,6 +849,7 @@ class AmazonCloudFront extends CFRuntime
849
  * <li><code>OriginProtocolPolicy</code> - <code>string</code> - Optional - The origin protocol policy to apply to your origin. If you specify <code>http-only</code>, CloudFront will use HTTP only to access the origin. If you specify <code>match-viewer</code>, CloudFront will fetch from your origin using HTTP or HTTPS, based on the protocol of the viewer request. [Allowed values: <code>http-only</code>, <code>match-viewer</code>]. The default value is <code>match-viewer</code>. Requires a non-S3 origin.</li>
850
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> creates a streaming distribution. A value of <code>false</code> creates a standard distribution. The default value is <code>false</code>.</li>
851
  * <li><code>TrustedSigners</code> - <code>array</code> - Optional - An array of AWS account numbers for users who are trusted signers. Explicity add the value <code>Self</code> to the array to add your own account as a trusted signer.</li>
 
852
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
853
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
854
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateDistribution.html POST Distribution
@@ -875,6 +876,7 @@ class AmazonCloudFront extends CFRuntime
875
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this setting when paginating results to indicate where in your list of distributions to begin. The results include distributions in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last distribution on that page).</li>
876
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of distributions you want in the response body. Maximum of 100.</li>
877
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
 
878
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
879
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
880
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListDistributions.html GET Distribution List
@@ -908,6 +910,7 @@ class AmazonCloudFront extends CFRuntime
908
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
909
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
910
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
 
911
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
912
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
913
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetDistribution.html GET Distribution
@@ -935,6 +938,7 @@ class AmazonCloudFront extends CFRuntime
935
  * @param string $etag (Required) The <code>ETag</code> header value retrieved from <get_distribution_config()>.
936
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
937
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
 
938
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
939
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
940
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteDistribution.html DELETE Distribution
@@ -959,6 +963,7 @@ class AmazonCloudFront extends CFRuntime
959
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
960
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
961
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
 
962
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
963
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
964
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetConfig.html GET Distribution Config
@@ -985,6 +990,7 @@ class AmazonCloudFront extends CFRuntime
985
  * @param string $etag (Required) The ETag header value retrieved from <get_distribution_config()>.
986
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
987
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
 
988
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
989
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
990
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/PutConfig.html PUT Distribution Config
@@ -1011,6 +1017,7 @@ class AmazonCloudFront extends CFRuntime
1011
  * @param string $caller_reference (Required) A unique identifier for the request. A timestamp-appended string is recommended.
1012
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1013
  * <li><code>Comment</code> - <code>string</code> - Optional - A comment about the OAI.</li>
 
1014
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1015
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1016
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateOAI.html POST Origin Access Identity
@@ -1033,6 +1040,7 @@ class AmazonCloudFront extends CFRuntime
1033
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1034
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this when paginating results to indicate where in your list of distributions to begin. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).</li>
1035
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of distributions you want in the response body. Maximum of 100.</li>
 
1036
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1037
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1038
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListOAIs.html GET Origin Access Identity List
@@ -1061,6 +1069,7 @@ class AmazonCloudFront extends CFRuntime
1061
  *
1062
  * @param string $identity_id (Required) The Identity ID for an existing OAI.
1063
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1064
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1065
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1066
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetOAI.html GET Origin Access Identity
@@ -1083,6 +1092,7 @@ class AmazonCloudFront extends CFRuntime
1083
  * @param string $identity_id (Required) An Identity ID for an existing OAI.
1084
  * @param string $etag (Required) The <code>ETag</code> header value retrieved from a call to <get_oai()>.
1085
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1086
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1087
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1088
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteOAI.html DELETE Origin Access Identity
@@ -1101,6 +1111,7 @@ class AmazonCloudFront extends CFRuntime
1101
  *
1102
  * @param string $identity_id (Required) An Identity ID for an existing OAI.
1103
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1104
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1105
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1106
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetOAIConfig.html GET Origin Access Identity Config
@@ -1127,6 +1138,7 @@ class AmazonCloudFront extends CFRuntime
1127
  * @param string $xml (Required) The configuration XML generated by <generate_oai_xml()>.
1128
  * @param string $etag (Required) The ETag header value retrieved from a call to <get_distribution_config()>.
1129
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1130
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1131
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1132
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/PutOAIConfig.html PUT Origin Access Identity Config
@@ -1151,6 +1163,7 @@ class AmazonCloudFront extends CFRuntime
1151
  * @param string $caller_reference (Required) A unique identifier for the request. A timestamp-appended string is recommended.
1152
  * @param string|array $paths (Required) One or more paths to set for invalidation. Pass a string for a single value, or an indexed array for multiple values. values.
1153
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1154
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1155
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1156
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateInvalidation.html POST Invalidation
@@ -1174,6 +1187,7 @@ class AmazonCloudFront extends CFRuntime
1174
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1175
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this when paginating results to indicate where in the list of invalidations to begin. The results include invalidations in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> parameter to the value of the <code>NextMarker</code> parameter from the current page's response, which is also the ID of the last invalidation on that page.</li>
1176
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of invalidations you want in the response body. A maximum value of 100 can be used.</li>
 
1177
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1178
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1179
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListInvalidation.html GET Invalidation List
@@ -1203,6 +1217,7 @@ class AmazonCloudFront extends CFRuntime
1203
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
1204
  * @param string $invalidation_id (Required) The invalidation ID returned from <create_invalidation()> or <list_invalidations()>.
1205
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1206
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1207
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1208
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetInvalidation.html GET Invalidation
36
  * seamlessly with the Amazon Simple Storage Service, which durably stores the original, definitive versions
37
  * of your files.
38
  *
39
+ * @version 2011.03.11
40
  * @license See the included NOTICE.md file for more information.
41
  * @copyright See the included NOTICE.md file for more information.
42
  * @link http://aws.amazon.com/cloudfront/ Amazon CloudFront
849
  * <li><code>OriginProtocolPolicy</code> - <code>string</code> - Optional - The origin protocol policy to apply to your origin. If you specify <code>http-only</code>, CloudFront will use HTTP only to access the origin. If you specify <code>match-viewer</code>, CloudFront will fetch from your origin using HTTP or HTTPS, based on the protocol of the viewer request. [Allowed values: <code>http-only</code>, <code>match-viewer</code>]. The default value is <code>match-viewer</code>. Requires a non-S3 origin.</li>
850
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> creates a streaming distribution. A value of <code>false</code> creates a standard distribution. The default value is <code>false</code>.</li>
851
  * <li><code>TrustedSigners</code> - <code>array</code> - Optional - An array of AWS account numbers for users who are trusted signers. Explicity add the value <code>Self</code> to the array to add your own account as a trusted signer.</li>
852
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
853
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
854
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
855
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateDistribution.html POST Distribution
876
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this setting when paginating results to indicate where in your list of distributions to begin. The results include distributions in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last distribution on that page).</li>
877
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of distributions you want in the response body. Maximum of 100.</li>
878
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
879
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
880
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
881
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
882
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListDistributions.html GET Distribution List
910
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
911
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
912
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
913
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
914
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
915
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
916
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetDistribution.html GET Distribution
938
  * @param string $etag (Required) The <code>ETag</code> header value retrieved from <get_distribution_config()>.
939
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
940
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
941
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
942
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
943
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
944
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteDistribution.html DELETE Distribution
963
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
964
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
965
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
966
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
967
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
968
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
969
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetConfig.html GET Distribution Config
990
  * @param string $etag (Required) The ETag header value retrieved from <get_distribution_config()>.
991
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
992
  * <li><code>Streaming</code> - <code>boolean</code> - Optional - Whether or not this should be for a streaming distribution. A value of <code>true</code> will create a streaming distribution. A value of <code>false</code> will create a standard distribution. The default value is <code>false</code>.</li>
993
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
994
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
995
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
996
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/PutConfig.html PUT Distribution Config
1017
  * @param string $caller_reference (Required) A unique identifier for the request. A timestamp-appended string is recommended.
1018
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1019
  * <li><code>Comment</code> - <code>string</code> - Optional - A comment about the OAI.</li>
1020
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1021
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1022
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1023
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateOAI.html POST Origin Access Identity
1040
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1041
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this when paginating results to indicate where in your list of distributions to begin. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).</li>
1042
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of distributions you want in the response body. Maximum of 100.</li>
1043
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1044
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1045
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1046
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListOAIs.html GET Origin Access Identity List
1069
  *
1070
  * @param string $identity_id (Required) The Identity ID for an existing OAI.
1071
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1072
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1073
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1074
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1075
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetOAI.html GET Origin Access Identity
1092
  * @param string $identity_id (Required) An Identity ID for an existing OAI.
1093
  * @param string $etag (Required) The <code>ETag</code> header value retrieved from a call to <get_oai()>.
1094
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1095
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1096
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1097
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1098
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteOAI.html DELETE Origin Access Identity
1111
  *
1112
  * @param string $identity_id (Required) An Identity ID for an existing OAI.
1113
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1114
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1115
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1116
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1117
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetOAIConfig.html GET Origin Access Identity Config
1138
  * @param string $xml (Required) The configuration XML generated by <generate_oai_xml()>.
1139
  * @param string $etag (Required) The ETag header value retrieved from a call to <get_distribution_config()>.
1140
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1141
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1142
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1143
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1144
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/PutOAIConfig.html PUT Origin Access Identity Config
1163
  * @param string $caller_reference (Required) A unique identifier for the request. A timestamp-appended string is recommended.
1164
  * @param string|array $paths (Required) One or more paths to set for invalidation. Pass a string for a single value, or an indexed array for multiple values. values.
1165
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1166
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1167
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1168
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1169
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/CreateInvalidation.html POST Invalidation
1187
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1188
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this when paginating results to indicate where in the list of invalidations to begin. The results include invalidations in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> parameter to the value of the <code>NextMarker</code> parameter from the current page's response, which is also the ID of the last invalidation on that page.</li>
1189
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - The maximum number of invalidations you want in the response body. A maximum value of 100 can be used.</li>
1190
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1191
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1192
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1193
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/ListInvalidation.html GET Invalidation List
1217
  * @param string $distribution_id (Required) The distribution ID returned from <create_distribution()> or <list_distributions()>.
1218
  * @param string $invalidation_id (Required) The invalidation ID returned from <create_invalidation()> or <list_invalidations()>.
1219
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1220
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1221
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1222
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1223
  * @link http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/GetInvalidation.html GET Invalidation
app/libs/aws/services/cloudwatch.class.php CHANGED
@@ -31,7 +31,7 @@
31
  * automatically make changes to the resources you are monitoring, based on rules that you define. For example, you can
32
  * create alarms that initiate Auto Scaling and Simple Notification Service actions on your behalf.
33
  *
34
- * @version Tue Mar 01 17:13:39 PST 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/cloudwatch/Amazon CloudWatch
@@ -154,6 +154,7 @@ class AmazonCloudWatch extends CFRuntime
154
  * </ul></li>
155
  * </ul></li>
156
  * <li><code>Unit</code> - <code>string</code> - Optional - The unit for the alarm's associated metric. [Allowed values: <code>Seconds</code>, <code>Microseconds</code>, <code>Milliseconds</code>, <code>Bytes</code>, <code>Kilobytes</code>, <code>Megabytes</code>, <code>Gigabytes</code>, <code>Terabytes</code>, <code>Bits</code>, <code>Kilobits</code>, <code>Megabits</code>, <code>Gigabits</code>, <code>Terabits</code>, <code>Percent</code>, <code>Count</code>, <code>Bytes/Second</code>, <code>Kilobytes/Second</code>, <code>Megabytes/Second</code>, <code>Gigabytes/Second</code>, <code>Terabytes/Second</code>, <code>Bits/Second</code>, <code>Kilobits/Second</code>, <code>Megabits/Second</code>, <code>Gigabits/Second</code>, <code>Terabits/Second</code>, <code>Count/Second</code>, <code>None</code>]</li>
 
157
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
158
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
159
  */
@@ -226,6 +227,7 @@ class AmazonCloudWatch extends CFRuntime
226
  * </ul></li>
227
  * </ul></li>
228
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
 
229
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
230
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
231
  */
@@ -268,6 +270,7 @@ class AmazonCloudWatch extends CFRuntime
268
  * <li><code>Value</code> - <code>string</code> - Required - The value representing the dimension measurement </li>
269
  * </ul></li>
270
  * </ul></li>
 
271
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
272
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
273
  */
@@ -305,6 +308,7 @@ class AmazonCloudWatch extends CFRuntime
305
  *
306
  * @param string|array $alarm_names (Required) The names of the alarms to disable actions for. Pass a string for a single value, or an indexed array for multiple values.
307
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
308
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
309
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
310
  */
@@ -332,6 +336,7 @@ class AmazonCloudWatch extends CFRuntime
332
  * <li><code>ActionPrefix</code> - <code>string</code> - Optional - The action name prefix. </li>
333
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of alarm descriptions to retrieve. </li>
334
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
 
335
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
336
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
337
  */
@@ -367,6 +372,7 @@ class AmazonCloudWatch extends CFRuntime
367
  * </ul></li>
368
  * <li><code>Period</code> - <code>integer</code> - Optional - The period in seconds over which the statistic is applied. </li>
369
  * <li><code>Unit</code> - <code>string</code> - Optional - The unit for the metric. [Allowed values: <code>Seconds</code>, <code>Microseconds</code>, <code>Milliseconds</code>, <code>Bytes</code>, <code>Kilobytes</code>, <code>Megabytes</code>, <code>Gigabytes</code>, <code>Terabytes</code>, <code>Bits</code>, <code>Kilobits</code>, <code>Megabits</code>, <code>Gigabits</code>, <code>Terabits</code>, <code>Percent</code>, <code>Count</code>, <code>Bytes/Second</code>, <code>Kilobytes/Second</code>, <code>Megabytes/Second</code>, <code>Gigabytes/Second</code>, <code>Terabytes/Second</code>, <code>Bits/Second</code>, <code>Kilobits/Second</code>, <code>Megabits/Second</code>, <code>Gigabits/Second</code>, <code>Terabits/Second</code>, <code>Count/Second</code>, <code>None</code>]</li>
 
370
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
371
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
372
  */
@@ -403,6 +409,7 @@ class AmazonCloudWatch extends CFRuntime
403
  * <li><code>EndDate</code> - <code>string</code> - Optional - The ending date to retrieve alarm history. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
404
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of alarm history records to retrieve. </li>
405
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
 
406
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
407
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
408
  */
@@ -431,6 +438,7 @@ class AmazonCloudWatch extends CFRuntime
431
  *
432
  * @param string|array $alarm_names (Required) The names of the alarms to enable actions for. Pass a string for a single value, or an indexed array for multiple values.
433
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
434
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
435
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
436
  */
@@ -452,6 +460,7 @@ class AmazonCloudWatch extends CFRuntime
452
  *
453
  * @param string|array $alarm_names (Required) A list of alarms to be deleted. Pass a string for a single value, or an indexed array for multiple values.
454
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
455
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
456
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
457
  */
@@ -478,6 +487,7 @@ class AmazonCloudWatch extends CFRuntime
478
  * @param string $state_reason (Required) The reason that this alarm is set to this specific state (in human-readable text format)
479
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
480
  * <li><code>StateReasonData</code> - <code>string</code> - Optional - The reason that this alarm is set to this specific state (in machine-readable JSON format) </li>
 
481
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
482
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
483
  */
31
  * automatically make changes to the resources you are monitoring, based on rules that you define. For example, you can
32
  * create alarms that initiate Auto Scaling and Simple Notification Service actions on your behalf.
33
  *
34
+ * @version Fri Mar 25 13:13:27 PDT 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/cloudwatch/Amazon CloudWatch
154
  * </ul></li>
155
  * </ul></li>
156
  * <li><code>Unit</code> - <code>string</code> - Optional - The unit for the alarm's associated metric. [Allowed values: <code>Seconds</code>, <code>Microseconds</code>, <code>Milliseconds</code>, <code>Bytes</code>, <code>Kilobytes</code>, <code>Megabytes</code>, <code>Gigabytes</code>, <code>Terabytes</code>, <code>Bits</code>, <code>Kilobits</code>, <code>Megabits</code>, <code>Gigabits</code>, <code>Terabits</code>, <code>Percent</code>, <code>Count</code>, <code>Bytes/Second</code>, <code>Kilobytes/Second</code>, <code>Megabytes/Second</code>, <code>Gigabytes/Second</code>, <code>Terabytes/Second</code>, <code>Bits/Second</code>, <code>Kilobits/Second</code>, <code>Megabits/Second</code>, <code>Gigabits/Second</code>, <code>Terabits/Second</code>, <code>Count/Second</code>, <code>None</code>]</li>
157
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
158
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
159
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
160
  */
227
  * </ul></li>
228
  * </ul></li>
229
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
230
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
231
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
232
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
233
  */
270
  * <li><code>Value</code> - <code>string</code> - Required - The value representing the dimension measurement </li>
271
  * </ul></li>
272
  * </ul></li>
273
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
274
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
275
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
276
  */
308
  *
309
  * @param string|array $alarm_names (Required) The names of the alarms to disable actions for. Pass a string for a single value, or an indexed array for multiple values.
310
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
311
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
312
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
313
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
314
  */
336
  * <li><code>ActionPrefix</code> - <code>string</code> - Optional - The action name prefix. </li>
337
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of alarm descriptions to retrieve. </li>
338
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
339
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
340
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
341
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
342
  */
372
  * </ul></li>
373
  * <li><code>Period</code> - <code>integer</code> - Optional - The period in seconds over which the statistic is applied. </li>
374
  * <li><code>Unit</code> - <code>string</code> - Optional - The unit for the metric. [Allowed values: <code>Seconds</code>, <code>Microseconds</code>, <code>Milliseconds</code>, <code>Bytes</code>, <code>Kilobytes</code>, <code>Megabytes</code>, <code>Gigabytes</code>, <code>Terabytes</code>, <code>Bits</code>, <code>Kilobits</code>, <code>Megabits</code>, <code>Gigabits</code>, <code>Terabits</code>, <code>Percent</code>, <code>Count</code>, <code>Bytes/Second</code>, <code>Kilobytes/Second</code>, <code>Megabytes/Second</code>, <code>Gigabytes/Second</code>, <code>Terabytes/Second</code>, <code>Bits/Second</code>, <code>Kilobits/Second</code>, <code>Megabits/Second</code>, <code>Gigabits/Second</code>, <code>Terabits/Second</code>, <code>Count/Second</code>, <code>None</code>]</li>
375
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
376
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
377
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
378
  */
409
  * <li><code>EndDate</code> - <code>string</code> - Optional - The ending date to retrieve alarm history. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
410
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of alarm history records to retrieve. </li>
411
  * <li><code>NextToken</code> - <code>string</code> - Optional - The token returned by a previous call to indicate that there is more data available. </li>
412
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
413
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
414
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
415
  */
438
  *
439
  * @param string|array $alarm_names (Required) The names of the alarms to enable actions for. Pass a string for a single value, or an indexed array for multiple values.
440
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
441
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
442
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
443
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
444
  */
460
  *
461
  * @param string|array $alarm_names (Required) A list of alarms to be deleted. Pass a string for a single value, or an indexed array for multiple values.
462
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
463
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
464
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
465
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
466
  */
487
  * @param string $state_reason (Required) The reason that this alarm is set to this specific state (in human-readable text format)
488
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
489
  * <li><code>StateReasonData</code> - <code>string</code> - Optional - The reason that this alarm is set to this specific state (in machine-readable JSON format) </li>
490
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
491
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
492
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
493
  */
app/libs/aws/services/ec2.class.php CHANGED
@@ -28,7 +28,7 @@
28
  *
29
  * Visit <a href="http://aws.amazon.com/ec2/">http://aws.amazon.com/ec2/</a> for more information.
30
  *
31
- * @version Tue Mar 01 17:14:56 PST 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/ec2/Amazon Elastic Compute Cloud
@@ -129,7 +129,7 @@ class AmazonEC2 extends CFRuntime
129
  */
130
  public function __construct($key = null, $secret_key = null)
131
  {
132
- $this->api_version = '2010-08-31';
133
  $this->hostname = self::DEFAULT_URL;
134
 
135
  if (!$key && !defined('AWS_KEY'))
@@ -157,6 +157,7 @@ class AmazonEC2 extends CFRuntime
157
  *
158
  * @param string|array $instance_id (Required) The list of instances to terminate. Pass a string for a single value, or an indexed array for multiple values.
159
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
160
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
161
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
162
  */
@@ -172,164 +173,6 @@ class AmazonEC2 extends CFRuntime
172
  return $this->authenticate('RebootInstances', $opt, $this->hostname);
173
  }
174
 
175
- /**
176
- *
177
- * Returns information about one or more PlacementGroup instances in a user's account.
178
- *
179
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
180
- * <li><code>GroupName</code> - <code>string|array</code> - Optional - The name of the <code>PlacementGroup</code>. Pass a string for a single value, or an indexed array for multiple values. </li>
181
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
182
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
183
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
184
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
185
- * </ul></li>
186
- * </ul></li>
187
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
188
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
189
- */
190
- public function describe_placement_groups($opt = null)
191
- {
192
- if (!$opt) $opt = array();
193
-
194
- // Optional parameter
195
- if (isset($opt['GroupName']))
196
- {
197
- $opt = array_merge($opt, CFComplexType::map(array(
198
- 'GroupName' => (is_array($opt['GroupName']) ? $opt['GroupName'] : array($opt['GroupName']))
199
- )));
200
- unset($opt['GroupName']);
201
- }
202
-
203
- // Optional parameter
204
- if (isset($opt['Filter']))
205
- {
206
- $opt = array_merge($opt, CFComplexType::map(array(
207
- 'Filter' => $opt['Filter']
208
- )));
209
- unset($opt['Filter']);
210
- }
211
-
212
- return $this->authenticate('DescribePlacementGroups', $opt, $this->hostname);
213
- }
214
-
215
- /**
216
- *
217
- * The RunInstances operation launches a specified number of instances.
218
- *
219
- * If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch. If there is insufficient capacity
220
- * to launch the maximum number of AMIs you request, Amazon EC2 launches as many as possible to satisfy the requested
221
- * maximum values.
222
- *
223
- * Every instance is launched in a security group. If you do not specify a security group at launch, the instances start
224
- * in your default security group. For more information on creating security groups, see CreateSecurityGroup.
225
- *
226
- * An optional instance type can be specified. For information about instance types, see Instance Types.
227
- *
228
- * You can provide an optional key pair ID for each image in the launch request (for more information, see CreateKeyPair).
229
- * All instances that are created from images that use this key pair will have access to the associated public key at boot.
230
- * You can use this key to provide secure access to an instance of an image on a per-instance basis. Amazon EC2 public
231
- * images use this feature to provide secure access without passwords.
232
- *
233
- * Launching public images without a key pair ID will leave them inaccessible.
234
- *
235
- * The public key material is made available to the instance at boot time by placing it in the openssh_id.pub file on a
236
- * logical device that is exposed to the instance as /dev/sda2 (the ephemeral store). The format of this file is suitable
237
- * for use as an entry within ~/.ssh/authorized_keys (the OpenSSH format). This can be done at boot (e.g., as part of
238
- * rc.local) allowing for secure access without passwords.
239
- *
240
- * Optional user data can be provided in the launch request. All instances that collectively comprise the launch request
241
- * have access to this data For more information, see Instance Metadata.
242
- *
243
- *
244
- * If any of the AMIs have a product code attached for which the user has not subscribed, the RunInstances call will fail.
245
- *
246
- * We strongly recommend using the 2.6.18 Xen stock kernel with the c1.medium and c1.xlarge instances. Although the
247
- * default Amazon EC2 kernels will work, the new kernels provide greater stability and performance for these instance
248
- * types. For more information about kernels, see Kernels, RAM Disks, and Block Device Mappings.
249
- *
250
- * @param string $image_id (Required) Unique ID of a machine image, returned by a call to DescribeImages.
251
- * @param integer $min_count (Required) Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.
252
- * @param integer $max_count (Required) Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead. Between 1 and the maximum number allowed for your account (default: 20).
253
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
254
- * <li><code>KeyName</code> - <code>string</code> - Optional - The name of the key pair. </li>
255
- * <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - The names of the security groups into which the instances will be launched. Pass a string for a single value, or an indexed array for multiple values. </li>
256
- * <li><code>UserData</code> - <code>string</code> - Optional - Specifies additional information to make available to the instance(s). </li>
257
- * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type for the launched instances. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>cc1.4xlarge</code>, <code>cg1.4xlarge</code>]</li>
258
- * <li><code>Placement</code> - <code>array</code> - Optional - Specifies the placement constraints (Availability Zones) for launching the instances. <ul>
259
- * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs. </li>
260
- * <li><code>GroupName</code> - <code>string</code> - Optional - The name of a PlacementGroup. </li></ul></li>
261
- * <li><code>KernelId</code> - <code>string</code> - Optional - The ID of the kernel with which to launch the instance. </li>
262
- * <li><code>RamdiskId</code> - <code>string</code> - Optional - The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID. </li>
263
- * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - <ul>
264
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
265
- * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
266
- * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., /dev/sdh). </li>
267
- * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
268
- * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
269
- * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
270
- * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
271
- * </ul></li>
272
- * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
273
- * </ul></li>
274
- * </ul></li>
275
- * <li><code>Monitoring.Enabled</code> - <code>boolean</code> - Optional - Enables monitoring for the instance. </li>
276
- * <li><code>SubnetId</code> - <code>string</code> - Optional - Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. </li>
277
- * <li><code>DisableApiTermination</code> - <code>boolean</code> - Optional - Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs. </li>
278
- * <li><code>InstanceInitiatedShutdownBehavior</code> - <code>string</code> - Optional - Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down. </li>
279
- * <li><code>License</code> - <code>array</code> - Optional - Specifies active licenses in use and attached to an Amazon EC2 instance. <ul>
280
- * <li><code>Pool</code> - <code>string</code> - Optional - The license pool from which to take a license when starting Amazon EC2 instances in the associated <code>RunInstances</code> request. </li></ul></li>
281
- * <li><code>PrivateIpAddress</code> - <code>string</code> - Optional - If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet. </li>
282
- * <li><code>ClientToken</code> - <code>string</code> - Optional - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide. </li>
283
- * <li><code>AdditionalInfo</code> - <code>string</code> - Optional - For internal use only. </li>
284
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
285
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
286
- */
287
- public function run_instances($image_id, $min_count, $max_count, $opt = null)
288
- {
289
- if (!$opt) $opt = array();
290
- $opt['ImageId'] = $image_id;
291
- $opt['MinCount'] = $min_count;
292
- $opt['MaxCount'] = $max_count;
293
-
294
- // Optional parameter
295
- if (isset($opt['SecurityGroup']))
296
- {
297
- $opt = array_merge($opt, CFComplexType::map(array(
298
- 'SecurityGroup' => (is_array($opt['SecurityGroup']) ? $opt['SecurityGroup'] : array($opt['SecurityGroup']))
299
- )));
300
- unset($opt['SecurityGroup']);
301
- }
302
-
303
- // Optional parameter
304
- if (isset($opt['Placement']))
305
- {
306
- $opt = array_merge($opt, CFComplexType::map(array(
307
- 'Placement' => $opt['Placement']
308
- )));
309
- unset($opt['Placement']);
310
- }
311
-
312
- // Optional parameter
313
- if (isset($opt['BlockDeviceMapping']))
314
- {
315
- $opt = array_merge($opt, CFComplexType::map(array(
316
- 'BlockDeviceMapping' => $opt['BlockDeviceMapping']
317
- )));
318
- unset($opt['BlockDeviceMapping']);
319
- }
320
-
321
- // Optional parameter
322
- if (isset($opt['License']))
323
- {
324
- $opt = array_merge($opt, CFComplexType::map(array(
325
- 'License' => $opt['License']
326
- )));
327
- unset($opt['License']);
328
- }
329
-
330
- return $this->authenticate('RunInstances', $opt, $this->hostname);
331
- }
332
-
333
  /**
334
  *
335
  * The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.
@@ -342,6 +185,7 @@ class AmazonEC2 extends CFRuntime
342
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
343
  * </ul></li>
344
  * </ul></li>
 
345
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
346
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
347
  */
@@ -370,58 +214,14 @@ class AmazonEC2 extends CFRuntime
370
  return $this->authenticate('DescribeReservedInstances', $opt, $this->hostname);
371
  }
372
 
373
- /**
374
- *
375
- * Gives you information about your subnets. You can filter the results to return information only about subnets that
376
- * match criteria you specify. For example, you could ask to get information about a particular subnet (or all) only if the
377
- * subnet's state is available. You can specify multiple filters (e.g., the subnet is in a particular VPC, and the subnet's
378
- * state is available). The result includes information for a particular subnet only if the subnet matches all your
379
- * filters. If there's no match, no special message is returned; the response is simply empty. The following table shows
380
- * the available filters.
381
- *
382
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
383
- * <li><code>SubnetId</code> - <code>string|array</code> - Optional - A set of one or more subnet IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
384
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
385
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
386
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
387
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
388
- * </ul></li>
389
- * </ul></li>
390
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
391
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
392
- */
393
- public function describe_subnets($opt = null)
394
- {
395
- if (!$opt) $opt = array();
396
-
397
- // Optional parameter
398
- if (isset($opt['SubnetId']))
399
- {
400
- $opt = array_merge($opt, CFComplexType::map(array(
401
- 'SubnetId' => (is_array($opt['SubnetId']) ? $opt['SubnetId'] : array($opt['SubnetId']))
402
- )));
403
- unset($opt['SubnetId']);
404
- }
405
-
406
- // Optional parameter
407
- if (isset($opt['Filter']))
408
- {
409
- $opt = array_merge($opt, CFComplexType::map(array(
410
- 'Filter' => $opt['Filter']
411
- )));
412
- unset($opt['Filter']);
413
- }
414
-
415
- return $this->authenticate('DescribeSubnets', $opt, $this->hostname);
416
- }
417
-
418
  /**
419
  *
420
  * The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and
421
  * their states.
422
  *
423
- * Availability zones are not the same across accounts. The availability zone us-east-1a for account A is not necessarily
424
- * the same as us-east-1a for account B. Zone assignments are mapped independently for each account.
 
425
  *
426
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
427
  * <li><code>ZoneName</code> - <code>string|array</code> - Optional - A list of the availability zone names to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
@@ -431,6 +231,7 @@ class AmazonEC2 extends CFRuntime
431
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
432
  * </ul></li>
433
  * </ul></li>
 
434
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
435
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
436
  */
@@ -468,6 +269,7 @@ class AmazonEC2 extends CFRuntime
468
  * <li><code>InstanceId</code> - <code>string</code> - Optional - The ID of the instance from which to detach the the specified volume. </li>
469
  * <li><code>Device</code> - <code>string</code> - Optional - The device name to which the volume is attached on the specified instance. </li>
470
  * <li><code>Force</code> - <code>boolean</code> - Optional - Forces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures. </li>
 
471
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
472
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
473
  */
@@ -485,6 +287,7 @@ class AmazonEC2 extends CFRuntime
485
  *
486
  * @param string $key_name (Required) The name of the Amazon EC2 key pair to delete.
487
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
488
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
489
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
490
  */
@@ -498,127 +301,1273 @@ class AmazonEC2 extends CFRuntime
498
 
499
  /**
500
  *
501
- * The DescribeInstances operation returns information about instances that you own.
502
- *
503
- * If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify
504
- * instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault
505
- * is returned. If you specify an instance that you do not own, it will not be included in the returned results.
506
- *
507
- * Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
508
  *
 
509
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
510
- * <li><code>InstanceId</code> - <code>string|array</code> - Optional - An optional list of the instances to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
511
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Instances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
512
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
513
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
514
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
515
- * </ul></li>
516
- * </ul></li>
517
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
518
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
519
  */
520
- public function describe_instances($opt = null)
521
  {
522
  if (!$opt) $opt = array();
523
 
524
- // Optional parameter
525
- if (isset($opt['InstanceId']))
526
- {
527
- $opt = array_merge($opt, CFComplexType::map(array(
528
- 'InstanceId' => (is_array($opt['InstanceId']) ? $opt['InstanceId'] : array($opt['InstanceId']))
529
- )));
530
- unset($opt['InstanceId']);
531
- }
532
-
533
- // Optional parameter
534
- if (isset($opt['Filter']))
535
- {
536
- $opt = array_merge($opt, CFComplexType::map(array(
537
- 'Filter' => $opt['Filter']
538
- )));
539
- unset($opt['Filter']);
540
- }
541
 
542
- return $this->authenticate('DescribeInstances', $opt, $this->hostname);
543
  }
544
 
545
  /**
546
  *
547
- * The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user. Information returned
548
- * includes image type, product codes, architecture, and kernel and RAM disk IDs. Images available to the user include
549
- * public images available for any user to launch, private images owned by the user making the request, and private images
550
- * owned by other users for which the user has explicit launch permissions.
551
- *
552
- * Launch permissions fall into three categories:
553
- *
554
- * <ul> <li> Public: The owner of the AMI granted launch permissions for the AMI to the all group. All users have launch
555
- * permissions for these AMIs. </li>
556
  *
557
- * <li> Explicit: The owner of the AMI granted launch permissions to a specific user. </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  *
559
- * <li> Implicit: A user has implicit launch permissions for all AMIs he or she owns. </li>
 
 
560
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  * </ul>
562
  *
563
- * The list of AMIs returned can be modified by specifying AMI IDs, AMI owners, or users with launch permissions. If no
564
- * options are specified, Amazon EC2 returns all AMIs for which the user has launch permissions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
565
  *
566
- * If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. If you specify an invalid AMI
567
- * ID, a fault is returned. If you specify an AMI ID for which you do not have access, it will not be included in the
568
- * returned results.
569
  *
570
- * If you specify one or more AMI owners, only AMIs from the specified owners and for which you have access are returned.
571
- * The results can include the account IDs of the specified owners, amazon for AMIs owned by Amazon or self for AMIs that
572
- * you own.
573
  *
574
- * If you specify a list of executable users, only users that have launch permissions for the AMIs are returned. You can
575
- * specify account IDs (if you own the AMI(s)), self for AMIs for which you own or have explicit permissions, or all for
576
- * public AMIs.
577
  *
578
- * Deregistered images are included in the returned results for an unspecified interval after deregistration.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  *
 
 
580
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
581
- * <li><code>ImageId</code> - <code>string|array</code> - Optional - An optional list of the AMI IDs to describe. If not specified, all AMIs will be described. Pass a string for a single value, or an indexed array for multiple values. </li>
582
- * <li><code>Owner</code> - <code>string|array</code> - Optional - The optional list of owners for the described AMIs. The IDs amazon, self, and explicit can be used to include AMIs owned by Amazon, AMIs owned by the user, and AMIs for which the user has explicit launch permissions, respectively. Pass a string for a single value, or an indexed array for multiple values. </li>
583
- * <li><code>ExecutableBy</code> - <code>string|array</code> - Optional - The optional list of users with explicit launch permissions for the described AMIs. The user ID can be a user's account ID, 'self' to return AMIs for which the sender of the request has explicit launch permissions, or 'all' to return AMIs with public launch permissions. Pass a string for a single value, or an indexed array for multiple values. </li>
584
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Images. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
586
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
587
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
588
  * </ul></li>
589
  * </ul></li>
 
590
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
591
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
592
  */
593
- public function describe_images($opt = null)
594
  {
595
  if (!$opt) $opt = array();
596
 
597
  // Optional parameter
598
- if (isset($opt['ImageId']))
599
  {
600
  $opt = array_merge($opt, CFComplexType::map(array(
601
- 'ImageId' => (is_array($opt['ImageId']) ? $opt['ImageId'] : array($opt['ImageId']))
602
  )));
603
- unset($opt['ImageId']);
604
  }
605
 
606
  // Optional parameter
607
- if (isset($opt['Owner']))
608
  {
609
  $opt = array_merge($opt, CFComplexType::map(array(
610
- 'Owner' => (is_array($opt['Owner']) ? $opt['Owner'] : array($opt['Owner']))
611
  )));
612
- unset($opt['Owner']);
613
  }
614
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
615
  // Optional parameter
616
- if (isset($opt['ExecutableBy']))
617
  {
618
  $opt = array_merge($opt, CFComplexType::map(array(
619
- 'ExecutableBy' => (is_array($opt['ExecutableBy']) ? $opt['ExecutableBy'] : array($opt['ExecutableBy']))
620
  )));
621
- unset($opt['ExecutableBy']);
622
  }
623
 
624
  // Optional parameter
@@ -630,24 +1579,20 @@ class AmazonEC2 extends CFRuntime
630
  unset($opt['Filter']);
631
  }
632
 
633
- return $this->authenticate('DescribeImages', $opt, $this->hostname);
634
  }
635
 
636
  /**
637
  *
638
- * Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their
639
- * root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you
640
- * are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist
641
- * your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
642
- *
643
- * Performing this operation on an instance that uses an instance store as its root device returns an error.
644
  *
645
- * @param string|array $instance_id (Required) The list of Amazon EC2 instances to start. Pass a string for a single value, or an indexed array for multiple values.
646
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
647
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
648
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
649
  */
650
- public function start_instances($instance_id, $opt = null)
651
  {
652
  if (!$opt) $opt = array();
653
 
@@ -656,425 +1601,491 @@ class AmazonEC2 extends CFRuntime
656
  'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
657
  )));
658
 
659
- return $this->authenticate('StartInstances', $opt, $this->hostname);
660
  }
661
 
662
  /**
663
  *
664
- * Disables monitoring for a running instance.
 
 
 
 
 
 
 
665
  *
666
- * @param string|array $instance_id (Required) The list of Amazon EC2 instances on which to disable monitoring. Pass a string for a single value, or an indexed array for multiple values.
667
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
 
 
 
 
 
668
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
669
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
670
  */
671
- public function unmonitor_instances($instance_id, $opt = null)
672
  {
673
  if (!$opt) $opt = array();
674
 
675
- // Required parameter
676
- $opt = array_merge($opt, CFComplexType::map(array(
677
- 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
678
- )));
 
 
 
 
679
 
680
- return $this->authenticate('UnmonitorInstances', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
681
  }
682
 
683
  /**
684
  *
685
- * Attaches a VPN gateway to a VPC. This is the last step required to get your VPC fully connected to your data center
686
- * before launching instances in it. For more information, go to Process for Using Amazon VPC in the Amazon Virtual Private
687
- * Cloud Developer Guide.
 
 
 
 
 
 
 
 
688
  *
689
- * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to attach to the VPC.
690
- * @param string $vpc_id (Required) The ID of the VPC to attach to the VPN gateway.
691
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
 
 
 
 
 
692
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
693
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
694
  */
695
- public function attach_vpn_gateway($vpn_gateway_id, $vpc_id, $opt = null)
696
  {
697
  if (!$opt) $opt = array();
698
- $opt['VpnGatewayId'] = $vpn_gateway_id;
699
- $opt['VpcId'] = $vpc_id;
700
 
701
- return $this->authenticate('AttachVpnGateway', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  }
703
 
704
  /**
705
  *
706
- * Modifies an attribute of an instance.
 
707
  *
708
- * @param string $instance_id (Required) The ID of the instance whose attribute is being modified.
709
- * @param string $attribute (Required) The name of the attribute being modified. Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping
710
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
711
- * <li><code>Value</code> - <code>string</code> - Optional - The new value of the instance attribute being modified. Only valid when kernel, ramdisk, userData disableApiTermination, or instanceInitiateShutdownBehavior is specified as the attribute being modified. </li>
712
- * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - The new block device mappings for the instance whose attributes are being modified. Only valid when blockDeviceMapping is specified as the attribute being modified. <ul>
713
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
714
- * <li><code>DeviceName</code> - <code>string</code> - Optional - The device name (e.g., /dev/sdh) at which the block device is exposed on the instance. </li>
715
- * <li><code>Ebs</code> - <code>array</code> - Optional - The EBS instance block device specification describing the EBS block device to map to the specified device name on a running instance. Takes an associative array of parameters that can have the following keys: <ul>
716
- * <li><code>VolumeId</code> - <code>string</code> - Optional - The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance. </li>
717
- * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  * </ul></li>
719
- * <li><code>VirtualName</code> - <code>string</code> - Optional - The virtual device name. </li>
720
- * <li><code>NoDevice</code> - <code>string</code> - Optional - When set to the empty string, specifies that the device name in this object should not be mapped to any real device. </li>
721
  * </ul></li>
722
  * </ul></li>
 
723
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
724
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
725
  */
726
- public function modify_instance_attribute($instance_id, $attribute, $opt = null)
727
  {
728
  if (!$opt) $opt = array();
729
- $opt['InstanceId'] = $instance_id;
730
- $opt['Attribute'] = $attribute;
731
 
732
  // Optional parameter
733
- if (isset($opt['BlockDeviceMapping']))
734
  {
735
  $opt = array_merge($opt, CFComplexType::map(array(
736
- 'BlockDeviceMapping' => $opt['BlockDeviceMapping']
737
  )));
738
- unset($opt['BlockDeviceMapping']);
739
  }
740
 
741
- return $this->authenticate('ModifyInstanceAttribute', $opt, $this->hostname);
742
  }
743
 
744
  /**
 
745
  *
746
- * Deletes a set of DHCP options that you specify. Amazon VPC returns an error if the set of options you specify is
747
- * currently associated with a VPC. You can disassociate the set of options by associating either a new set of options or
748
- * the default options with the VPC.
749
  *
750
- * @param string $dhcp_options_id (Required) The ID of the DHCP options set to delete.
751
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
752
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
753
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
 
754
  */
755
- public function delete_dhcp_options($dhcp_options_id, $opt = null)
756
  {
757
  if (!$opt) $opt = array();
758
- $opt['DhcpOptionsId'] = $dhcp_options_id;
759
 
760
- return $this->authenticate('DeleteDhcpOptions', $opt, $this->hostname);
 
 
 
 
 
 
 
 
761
  }
762
 
763
  /**
764
  *
765
- * The DeleteSecurityGroup operation deletes a security group.
766
- *
767
- * If you attempt to delete a security group that contains instances, a fault is returned.
768
- *
769
- * If you attempt to delete a security group that is referenced by another security group, a fault is returned. For
770
- * example, if security group B has a rule that allows access from security group A, security group A cannot be deleted
771
- * until the allow rule is removed.
772
  *
773
- * @param string $group_name (Required) The name of the Amazon EC2 security group to delete.
774
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
775
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
776
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
777
  */
778
- public function delete_security_group($group_name, $opt = null)
779
  {
780
  if (!$opt) $opt = array();
781
- $opt['GroupName'] = $group_name;
782
 
783
- return $this->authenticate('DeleteSecurityGroup', $opt, $this->hostname);
784
  }
785
 
786
  /**
787
  *
788
- * Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance. AMIs that use an Amazon EBS root device boot
789
- * faster than AMIs that use instance stores. They can be up to 1 TiB in size, use storage that persists on instance
790
- * failure, and can be stopped and started.
791
  *
792
- * @param string $instance_id (Required) The ID of the instance from which to create the new image.
793
- * @param string $name (Required) The name for the new AMI being created.
794
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
795
- * <li><code>Description</code> - <code>string</code> - Optional - The description for the new AMI being created. </li>
796
- * <li><code>NoReboot</code> - <code>boolean</code> - Optional - By default this property is set to <code>false</code>, which means Amazon EC2 attempts to cleanly shut down the instance before image creation and reboots the instance afterwards. When set to true, Amazon EC2 will not shut down the instance before creating the image. When this option is used, file system integrity on the created image cannot be guaranteed. </li>
 
 
 
 
797
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
798
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
799
  */
800
- public function create_image($instance_id, $name, $opt = null)
801
  {
802
  if (!$opt) $opt = array();
803
- $opt['InstanceId'] = $instance_id;
804
- $opt['Name'] = $name;
805
 
806
- return $this->authenticate('CreateImage', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
807
  }
808
 
809
  /**
810
  *
811
- * The AuthorizeSecurityGroupIngress operation adds permissions to a security group.
 
 
 
 
812
  *
813
- * Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon
814
- * EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).
815
- * When authorizing ICMP, -1 can be used as a wildcard in the type and code fields.
816
  *
817
- * Permission changes are propagated to instances within the security group as quickly as possible. However, depending on
818
- * the number of instances, a small delay might occur.
 
 
819
  *
820
- * @param string $group_name (Required) Name of the group to modify. The name must be valid and belong to the account.
 
 
821
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
822
- * <li><code>SourceSecurityGroupName</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. Name of the security group. Cannot be used when specifying a CIDR IP address. </li>
823
- * <li><code>SourceSecurityGroupOwnerId</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. AWS user ID of an account. Cannot be used when specifying a CIDR IP address. </li>
824
- * <li><code>IpProtocol</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. IP protocol. </li>
825
- * <li><code>FromPort</code> - <code>integer</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number). </li>
826
- * <li><code>ToPort</code> - <code>integer</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code). </li>
827
- * <li><code>CidrIp</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. CIDR range. </li>
828
- * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control. <ul>
829
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
830
- * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: tpc, upd, icmp </li>
831
- * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number). </li>
832
- * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code). </li>
833
- * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
834
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
835
- * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
836
- * <li><code>GroupName</code> - <code>string</code> - Optional - The name of the security group in the specified user's account. </li>
837
- * </ul></li>
838
- * </ul></li>
839
- * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
840
- * </ul></li>
841
- * </ul></li>
842
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
843
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
844
  */
845
- public function authorize_security_group_ingress($group_name, $opt = null)
846
  {
847
  if (!$opt) $opt = array();
848
- $opt['GroupName'] = $group_name;
849
-
850
- // Optional parameter
851
- if (isset($opt['IpPermissions']))
852
- {
853
- $opt = array_merge($opt, CFComplexType::map(array(
854
- 'IpPermissions' => $opt['IpPermissions']
855
- )));
856
- unset($opt['IpPermissions']);
857
- }
858
 
859
- return $this->authenticate('AuthorizeSecurityGroupIngress', $opt, $this->hostname);
860
  }
861
 
862
  /**
863
  *
864
- * Describes Spot Instance requests. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum
865
- * price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available
866
- * Spot Instance capacity and current spot instance requests. For conceptual information about Spot Instances, refer to the
867
- * <a href="http://docs.amazonwebservices.com/AWSEC2/2010-08-31/DeveloperGuide/">Amazon Elastic Compute Cloud Developer
868
- * Guide</a> or <a href="http://docs.amazonwebservices.com/AWSEC2/2010-08-31/UserGuide/">Amazon Elastic Compute Cloud User
869
- * Guide</a>.
870
- *
871
- * You can filter the results to return information only about Spot Instance requests that match criteria you specify. For
872
- * example, you could get information about requests where the Spot Price you specified is a certain value (you can't use
873
- * greater than or less than comparison, but you can use <code>*</code> and <code>?</code> wildcards). You can specify
874
- * multiple values for a filter. A Spot Instance request must match at least one of the specified values for it to be
875
- * included in the results.
876
- *
877
- * You can specify multiple filters (e.g., the Spot Price is equal to a particular value, and the instance type is
878
- * m1.small). The result includes information for a particular request only if it matches all your filters. If there's no
879
- * match, no special message is returned; the response is simply empty.
880
  *
881
- * You can use wildcards with the filter values: <code>*</code> matches zero or more characters, and <code>?</code>
882
- * matches exactly one character. You can escape special characters using a backslash before the character. For example, a
883
- * value of <code>\*amazon\?\\</code> searches for the literal string <code>*amazon?\</code>.
884
  *
 
885
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
886
- * <li><code>SpotInstanceRequestId</code> - <code>string|array</code> - Optional - The ID of the request. Pass a string for a single value, or an indexed array for multiple values. </li>
887
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
888
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
889
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
890
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
891
- * </ul></li>
892
- * </ul></li>
893
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
894
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
895
  */
896
- public function describe_spot_instance_requests($opt = null)
897
  {
898
  if (!$opt) $opt = array();
 
899
 
900
- // Optional parameter
901
- if (isset($opt['SpotInstanceRequestId']))
902
- {
903
- $opt = array_merge($opt, CFComplexType::map(array(
904
- 'SpotInstanceRequestId' => (is_array($opt['SpotInstanceRequestId']) ? $opt['SpotInstanceRequestId'] : array($opt['SpotInstanceRequestId']))
905
- )));
906
- unset($opt['SpotInstanceRequestId']);
907
- }
908
-
909
- // Optional parameter
910
- if (isset($opt['Filter']))
911
- {
912
- $opt = array_merge($opt, CFComplexType::map(array(
913
- 'Filter' => $opt['Filter']
914
- )));
915
- unset($opt['Filter']);
916
- }
917
-
918
- return $this->authenticate('DescribeSpotInstanceRequests', $opt, $this->hostname);
919
  }
920
 
921
  /**
922
  *
923
- * Associates a set of DHCP options (that you've previously created) with the specified VPC. Or, associates the default
924
- * DHCP options with the VPC. The default set consists of the standard EC2 host name, no domain name, no DNS server, no NTP
925
- * server, and no NetBIOS server or node type. After you associate the options with the VPC, any existing instances and all
926
- * new instances that you launch in that VPC use the options. For more information about the supported DHCP options and
927
- * using them with Amazon VPC, go to Using DHCP Options in the Amazon Virtual Private Cloud Developer Guide.
928
  *
929
- * @param string $dhcp_options_id (Required) The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.
930
- * @param string $vpc_id (Required) The ID of the VPC to associate the DHCP options with.
931
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
932
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
933
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
934
  */
935
- public function associate_dhcp_options($dhcp_options_id, $vpc_id, $opt = null)
936
  {
937
  if (!$opt) $opt = array();
938
- $opt['DhcpOptionsId'] = $dhcp_options_id;
939
  $opt['VpcId'] = $vpc_id;
940
 
941
- return $this->authenticate('AssociateDhcpOptions', $opt, $this->hostname);
942
  }
943
 
944
  /**
945
- * Retrieves the encrypted administrator password for the instances running Windows.
946
  *
947
- * The Windows password is only generated the first time an AMI is launched. It is not generated for
948
- * rebundled AMIs or after the password is changed on an instance. The password is encrypted using the
949
- * key pair that you provided.
 
 
950
  *
951
- * @param string $instance_id (Required) The ID of the instance for which you want the Windows administrator password.
 
 
 
952
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
953
- * <li><code>DecryptPasswordWithKey</code> - <code>string</code> - Optional - Enables the decryption of the Administrator password for the given Microsoft Windows instance. Specifies the RSA private key that is associated with the keypair ID which was used to launch the Microsoft Windows instance.</li>
954
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
955
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
956
  */
957
- public function get_password_data($instance_id, $opt = null)
958
  {
959
  if (!$opt) $opt = array();
960
- $opt['InstanceId'] = $instance_id;
961
-
962
- // Unless DecryptPasswordWithKey is set, simply return the response.
963
- if (!isset($opt['DecryptPasswordWithKey']))
964
- {
965
- return $this->authenticate('GetPasswordData', $opt, $this->hostname);
966
- }
967
-
968
- // Otherwise, decrypt the password.
969
- else
970
- {
971
- // Get a resource representing the private key.
972
- $private_key = openssl_pkey_get_private($opt['DecryptPasswordWithKey']);
973
- unset($opt['DecryptPasswordWithKey']);
974
-
975
- // Fetch the encrypted password.
976
- $response = $this->authenticate('GetPasswordData', $opt, $this->hostname);
977
- $data = trim((string) $response->body->passwordData);
978
-
979
- // If it's Base64-encoded...
980
- if ($this->util->is_base64($data))
981
- {
982
- // Base64-decode it, and decrypt it with the private key.
983
- if (openssl_private_decrypt(base64_decode($data), $decrypted, $private_key))
984
- {
985
- // Replace the previous password data with the decrypted value.
986
- $response->body->passwordData = $decrypted;
987
- }
988
- }
989
 
990
- return $response;
991
- }
992
  }
993
 
994
  /**
995
  *
996
- * Creates a VPC with the CIDR block you specify. The smallest VPC you can create uses a /28 netmask (16 IP addresses),
997
- * and the largest uses a /18 netmask (16,384 IP addresses). To help you decide how big to make your VPC, go to the topic
998
- * about creating VPCs in the Amazon Virtual Private Cloud Developer Guide.
 
 
 
 
 
999
  *
1000
- * By default, each instance you launch in the VPC has the default DHCP options (the standard EC2 host name, no domain
1001
- * name, no DNS server, no NTP server, and no NetBIOS server or node type).
1002
  *
1003
- * @param string $cidr_block (Required) A valid CIDR block.
 
 
 
 
 
1004
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1005
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1006
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1007
  */
1008
- public function create_vpc($cidr_block, $opt = null)
1009
  {
1010
  if (!$opt) $opt = array();
1011
- $opt['CidrBlock'] = $cidr_block;
 
 
1012
 
1013
- return $this->authenticate('CreateVpc', $opt, $this->hostname);
1014
  }
1015
 
1016
  /**
1017
  *
1018
- * Stops an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their
1019
- * root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you
1020
- * are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist
1021
- * your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
1022
- *
1023
- * Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not
1024
- * preserve data stored in RAM.
1025
- *
1026
- * Performing this operation on an instance that uses an instance store as its root device returns an error.
1027
  *
1028
- * @param string|array $instance_id (Required) The list of Amazon EC2 instances to stop. Pass a string for a single value, or an indexed array for multiple values.
 
1029
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1030
- * <li><code>Force</code> - <code>boolean</code> - Optional - Forces the instance to stop. The instance will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances. </li>
1031
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1032
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1033
  */
1034
- public function stop_instances($instance_id, $opt = null)
1035
  {
1036
  if (!$opt) $opt = array();
 
 
1037
 
1038
- // Required parameter
1039
- $opt = array_merge($opt, CFComplexType::map(array(
1040
- 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
1041
- )));
1042
-
1043
- return $this->authenticate('StopInstances', $opt, $this->hostname);
1044
  }
1045
 
1046
  /**
1047
  *
1048
- * Gives you information about your customer gateways. You can filter the results to return information only about
1049
- * customer gateways that match criteria you specify. For example, you could ask to get information about a particular
1050
- * customer gateway (or all) only if the gateway's state is pending or available. You can specify multiple filters (e.g.,
1051
- * the customer gateway has a particular IP address for the Internet-routable external interface, and the gateway's state
1052
- * is pending or available). The result includes information for a particular customer gateway only if the gateway matches
1053
- * all your filters. If there's no match, no special message is returned; the response is simply empty. The following table
1054
- * shows the available filters.
 
 
1055
  *
1056
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1057
- * <li><code>CustomerGatewayId</code> - <code>string|array</code> - Optional - A set of one or more customer gateway IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
1058
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
1059
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1060
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1061
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1062
  * </ul></li>
1063
  * </ul></li>
 
1064
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1065
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1066
  */
1067
- public function describe_customer_gateways($opt = null)
1068
  {
1069
  if (!$opt) $opt = array();
1070
 
1071
  // Optional parameter
1072
- if (isset($opt['CustomerGatewayId']))
1073
  {
1074
  $opt = array_merge($opt, CFComplexType::map(array(
1075
- 'CustomerGatewayId' => (is_array($opt['CustomerGatewayId']) ? $opt['CustomerGatewayId'] : array($opt['CustomerGatewayId']))
1076
  )));
1077
- unset($opt['CustomerGatewayId']);
1078
  }
1079
 
1080
  // Optional parameter
@@ -1086,162 +2097,165 @@ class AmazonEC2 extends CFRuntime
1086
  unset($opt['Filter']);
1087
  }
1088
 
1089
- return $this->authenticate('DescribeCustomerGateways', $opt, $this->hostname);
1090
  }
1091
 
1092
  /**
1093
- * Imports the public key from an RSA key pair created with a third-party tool. This operation differs
1094
- * from CreateKeyPair as the private key is never transferred between the caller and AWS servers.
1095
  *
1096
- * RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the <code>ssh-keygen</code>
1097
- * command line tool provided with the standard OpenSSH installation. Standard library support for RSA
1098
- * key pair creation is also available for Java, Ruby, Python, and many other programming languages.
1099
  *
1100
- * The following formats are supported:
 
 
1101
  *
1102
- * <ul>
1103
- * <li>OpenSSH public key format.</li>
1104
- * <li>Base64 encoded DER format.</li>
1105
- * <li>SSH public key file format as specified in <a href="http://tools.ietf.org/html/rfc4716">RFC 4716</a>.</li>
1106
- * </ul>
1107
  *
1108
- * @param string $key_name (Required) The unique name for the key pair.
1109
- * @param string $public_key_material (Required) The public key portion of the key pair being imported.
1110
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1111
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
1112
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1113
- */
1114
- public function import_key_pair($key_name, $public_key_material, $opt = null)
1115
- {
1116
- if (!$opt) $opt = array();
1117
- $opt['KeyName'] = $key_name;
1118
- $opt['PublicKeyMaterial'] = $this->util->is_base64($public_key_material) ? $public_key_material : base64_encode($public_key_material);
1119
-
1120
- return $this->authenticate('ImportKeyPair', $opt, $this->hostname);
1121
- }
1122
-
1123
- /**
1124
  *
1125
- * Describes the Spot Price history.
 
 
 
1126
  *
1127
- * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
1128
- * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
1129
- * spot instance requests.
1130
  *
1131
- * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
1132
- * Elastic Compute Cloud User Guide.
 
 
1133
  *
 
 
 
 
 
 
 
 
 
 
 
 
 
1134
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1135
- * <li><code>StartTime</code> - <code>string</code> - Optional - The start date and time of the Spot Instance price history data. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1136
- * <li><code>EndTime</code> - <code>string</code> - Optional - The end date and time of the Spot Instance price history data. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1137
- * <li><code>InstanceType</code> - <code>string|array</code> - Optional - Specifies the instance type to return. Pass a string for a single value, or an indexed array for multiple values. </li>
1138
- * <li><code>ProductDescription</code> - <code>string|array</code> - Optional - The description of the AMI. Pass a string for a single value, or an indexed array for multiple values. </li>
1139
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
 
 
 
 
 
 
1140
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1141
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1142
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
 
 
 
 
 
 
1143
  * </ul></li>
1144
  * </ul></li>
 
 
 
 
 
 
 
 
 
 
1145
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1146
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1147
  */
1148
- public function describe_spot_price_history($opt = null)
1149
  {
1150
  if (!$opt) $opt = array();
 
 
 
1151
 
1152
  // Optional parameter
1153
- if (isset($opt['StartTime']))
1154
  {
1155
- $opt['StartTime'] = $this->util->convert_date_to_iso8601($opt['StartTime']);
 
 
 
1156
  }
1157
 
1158
  // Optional parameter
1159
- if (isset($opt['EndTime']))
1160
  {
1161
- $opt['EndTime'] = $this->util->convert_date_to_iso8601($opt['EndTime']);
 
 
 
1162
  }
1163
 
1164
  // Optional parameter
1165
- if (isset($opt['InstanceType']))
1166
  {
1167
  $opt = array_merge($opt, CFComplexType::map(array(
1168
- 'InstanceType' => (is_array($opt['InstanceType']) ? $opt['InstanceType'] : array($opt['InstanceType']))
1169
  )));
1170
- unset($opt['InstanceType']);
1171
  }
1172
 
1173
  // Optional parameter
1174
- if (isset($opt['ProductDescription']))
1175
  {
1176
  $opt = array_merge($opt, CFComplexType::map(array(
1177
- 'ProductDescription' => (is_array($opt['ProductDescription']) ? $opt['ProductDescription'] : array($opt['ProductDescription']))
1178
  )));
1179
- unset($opt['ProductDescription']);
1180
  }
1181
 
1182
  // Optional parameter
1183
- if (isset($opt['Filter']))
1184
  {
1185
  $opt = array_merge($opt, CFComplexType::map(array(
1186
- 'Filter' => $opt['Filter']
1187
  )));
1188
- unset($opt['Filter']);
1189
  }
1190
 
1191
- return $this->authenticate('DescribeSpotPriceHistory', $opt, $this->hostname);
1192
- }
1193
-
1194
- /**
1195
- *
1196
- * The CreateSecurityGroup operation creates a new security group.
1197
- *
1198
- * Every instance is launched in a security group. If no security group is specified during launch, the instances are
1199
- * launched in the default security group. Instances within the same security group have unrestricted network access to
1200
- * each other. Instances will reject network access attempts from other instances in a different security group. As the
1201
- * owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and
1202
- * RevokeSecurityGroupIngress operations.
1203
- *
1204
- * @param string $group_name (Required) Name of the security group.
1205
- * @param string $group_description (Required) Description of the group. This is informational only.
1206
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1207
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1208
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1209
- */
1210
- public function create_security_group($group_name, $group_description, $opt = null)
1211
- {
1212
- if (!$opt) $opt = array();
1213
- $opt['GroupName'] = $group_name;
1214
- $opt['GroupDescription'] = $group_description;
1215
-
1216
- return $this->authenticate('CreateSecurityGroup', $opt, $this->hostname);
1217
  }
1218
 
1219
  /**
1220
  *
1221
- * The DescribeRegions operation describes regions zones that are currently available to the account.
1222
  *
1223
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1224
- * <li><code>RegionName</code> - <code>string|array</code> - Optional - The optional list of regions to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
1225
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Regions. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1226
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1227
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1228
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1229
  * </ul></li>
1230
  * </ul></li>
 
1231
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1232
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1233
  */
1234
- public function describe_regions($opt = null)
1235
  {
1236
  if (!$opt) $opt = array();
1237
 
1238
  // Optional parameter
1239
- if (isset($opt['RegionName']))
1240
  {
1241
  $opt = array_merge($opt, CFComplexType::map(array(
1242
- 'RegionName' => (is_array($opt['RegionName']) ? $opt['RegionName'] : array($opt['RegionName']))
1243
  )));
1244
- unset($opt['RegionName']);
1245
  }
1246
 
1247
  // Optional parameter
@@ -1253,85 +2267,69 @@ class AmazonEC2 extends CFRuntime
1253
  unset($opt['Filter']);
1254
  }
1255
 
1256
- return $this->authenticate('DescribeRegions', $opt, $this->hostname);
1257
- }
1258
-
1259
- /**
1260
- *
1261
- * Creates a set of DHCP options that you can then associate with one or more VPCs, causing all existing and new instances
1262
- * that you launch in those VPCs to use the set of DHCP options. The following table lists the individual DHCP options you
1263
- * can specify. For more information about the options, go to http://www.ietf.org/rfc/rfc2132.txt
1264
- *
1265
- * @param array $dhcp_configuration (Required) A set of one or more DHCP configurations. <ul>
1266
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1267
- * <li><code>Key</code> - <code>string</code> - Optional - Contains the name of a DHCP option. </li>
1268
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains a set of values for a DHCP option. Pass a string for a single value, or an indexed array for multiple values. </li>
1269
- * </ul></li>
1270
- * </ul>
1271
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1272
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1273
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1274
- */
1275
- public function create_dhcp_options($dhcp_configuration, $opt = null)
1276
- {
1277
- if (!$opt) $opt = array();
1278
-
1279
- // Required parameter
1280
- $opt = array_merge($opt, CFComplexType::map(array(
1281
- 'DhcpConfiguration' => (is_array($dhcp_configuration) ? $dhcp_configuration : array($dhcp_configuration))
1282
- )));
1283
-
1284
- return $this->authenticate('CreateDhcpOptions', $opt, $this->hostname);
1285
  }
1286
 
1287
  /**
1288
  *
1289
- * Resets permission settings for the specified snapshot.
 
 
 
1290
  *
1291
- * @param string $snapshot_id (Required) The ID of the snapshot whose attribute is being reset.
1292
- * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: createVolumePermission
 
 
 
 
1293
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1294
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1295
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1296
  */
1297
- public function reset_snapshot_attribute($snapshot_id, $attribute, $opt = null)
1298
  {
1299
  if (!$opt) $opt = array();
1300
- $opt['SnapshotId'] = $snapshot_id;
1301
- $opt['Attribute'] = $attribute;
1302
 
1303
- return $this->authenticate('ResetSnapshotAttribute', $opt, $this->hostname);
1304
  }
1305
 
1306
  /**
1307
  *
1308
- * The DescribeSecurityGroups operation returns information about security groups that you own.
1309
  *
1310
- * If you specify security group names, information about those security group is returned. Otherwise, information for all
1311
- * security group is returned. If you specify a group that does not exist, a fault is returned.
 
 
 
1312
  *
1313
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1314
- * <li><code>GroupName</code> - <code>string|array</code> - Optional - The optional list of Amazon EC2 security groups to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
1315
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SecurityGroups. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1316
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1317
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1318
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1319
  * </ul></li>
1320
  * </ul></li>
 
1321
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1322
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1323
  */
1324
- public function describe_security_groups($opt = null)
1325
  {
1326
  if (!$opt) $opt = array();
1327
 
1328
  // Optional parameter
1329
- if (isset($opt['GroupName']))
1330
  {
1331
  $opt = array_merge($opt, CFComplexType::map(array(
1332
- 'GroupName' => (is_array($opt['GroupName']) ? $opt['GroupName'] : array($opt['GroupName']))
1333
  )));
1334
- unset($opt['GroupName']);
1335
  }
1336
 
1337
  // Optional parameter
@@ -1343,238 +2341,316 @@ class AmazonEC2 extends CFRuntime
1343
  unset($opt['Filter']);
1344
  }
1345
 
1346
- return $this->authenticate('DescribeSecurityGroups', $opt, $this->hostname);
1347
  }
1348
 
1349
  /**
1350
  *
1351
- * Creates a Spot Instance request.
 
1352
  *
1353
- * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
1354
- * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
1355
- * spot instance requests.
 
 
 
 
 
 
 
 
 
 
 
 
1356
  *
1357
- * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
1358
- * Elastic Compute Cloud User Guide.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1359
  *
1360
- * @param string $spot_price (Required) Specifies the maximum hourly price for any Spot Instance launched to fulfill the request.
1361
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1362
- * <li><code>InstanceCount</code> - <code>integer</code> - Optional - Specifies the maximum number of Spot Instances to launch. </li>
1363
- * <li><code>Type</code> - <code>string</code> - Optional - Specifies the Spot Instance type. [Allowed values: <code>one-time</code>, <code>persistent</code>]</li>
1364
- * <li><code>ValidFrom</code> - <code>string</code> - Optional - Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1365
- * <li><code>ValidUntil</code> - <code>string</code> - Optional - End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1366
- * <li><code>LaunchGroup</code> - <code>string</code> - Optional - Specifies the instance launch group. Launch groups are Spot Instances that launch and terminate together. </li>
1367
- * <li><code>AvailabilityZoneGroup</code> - <code>string</code> - Optional - Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone. </li>
1368
- * <li><code>LaunchSpecification</code> - <code>array</code> - Optional - Specifies additional launch instance information. <ul>
1369
- * <li><code>ImageId</code> - <code>string</code> - Optional - The AMI ID. </li>
1370
- * <li><code>KeyName</code> - <code>string</code> - Optional - The name of the key pair. </li>
1371
- * <li><code>GroupSet</code> - <code>array</code> - Optional - <ul>
1372
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1373
- * <li><code>GroupId</code> - <code>string</code> - Optional - </li>
1374
- * </ul></li>
1375
- * </ul></li>
1376
- * <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
1377
- * <li><code>UserData</code> - <code>string</code> - Optional - Optional data, specific to a user's application, to provide in the launch request. All instances that collectively comprise the launch request have access to this data. User data is never returned through API responses. </li>
1378
- * <li><code>AddressingType</code> - <code>string</code> - Optional - Deprecated. </li>
1379
- * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>cc1.4xlarge</code>, <code>cg1.4xlarge</code>]</li>
1380
- * <li><code>Placement</code> - <code>array</code> - Optional - Defines a placement item. Takes an associative array of parameters that can have the following keys: <ul>
1381
- * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs. </li>
1382
- * <li><code>GroupName</code> - <code>string</code> - Optional - The name of a PlacementGroup. </li>
1383
- * </ul></li>
1384
- * <li><code>KernelId</code> - <code>string</code> - Optional - Specifies the ID of the kernel to select. </li>
1385
- * <li><code>RamdiskId</code> - <code>string</code> - Optional - Specifies the ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether or not you need to specify a RAM disk and search for the kernel ID. </li>
1386
- * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName. <ul>
1387
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1388
- * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
1389
- * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., /dev/sdh). </li>
1390
- * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
1391
- * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
1392
- * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
1393
- * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
1394
- * </ul></li>
1395
- * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
1396
- * </ul></li>
1397
  * </ul></li>
1398
- * <li><code>Monitoring.Enabled</code> - <code>boolean</code> - Optional - </li>
1399
- * <li><code>SubnetId</code> - <code>string</code> - Optional - Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. </li></ul></li>
1400
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1401
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1402
  */
1403
- public function request_spot_instances($spot_price, $opt = null)
1404
  {
1405
  if (!$opt) $opt = array();
1406
- $opt['SpotPrice'] = $spot_price;
1407
 
1408
  // Optional parameter
1409
- if (isset($opt['ValidFrom']))
1410
  {
1411
- $opt['ValidFrom'] = $this->util->convert_date_to_iso8601($opt['ValidFrom']);
 
 
 
1412
  }
1413
 
1414
  // Optional parameter
1415
- if (isset($opt['ValidUntil']))
1416
  {
1417
- $opt['ValidUntil'] = $this->util->convert_date_to_iso8601($opt['ValidUntil']);
 
 
 
1418
  }
1419
 
1420
  // Optional parameter
1421
- if (isset($opt['LaunchSpecification']))
1422
  {
1423
  $opt = array_merge($opt, CFComplexType::map(array(
1424
- 'LaunchSpecification' => $opt['LaunchSpecification']
1425
  )));
1426
- unset($opt['LaunchSpecification']);
1427
  }
1428
 
1429
- return $this->authenticate('RequestSpotInstances', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
1430
  }
1431
 
1432
  /**
1433
  *
1434
- * Adds or overwrites tags for the specified resources. Each resource can have a maximum of 10 tags. Each tag consists of
1435
- * a key-value pair. Tag keys must be unique per resource.
 
 
1436
  *
1437
- * @param string|array $resource_id (Required) One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc. Pass a string for a single value, or an indexed array for multiple values.
1438
- * @param array $tag (Required) The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair. <ul>
1439
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1440
- * <li><code>Key</code> - <code>string</code> - Optional - The tag's key. </li>
1441
- * <li><code>Value</code> - <code>string</code> - Optional - The tag's value. </li>
1442
- * </ul></li>
1443
- * </ul>
1444
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1445
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1446
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1447
  */
1448
- public function create_tags($resource_id, $tag, $opt = null)
1449
  {
1450
  if (!$opt) $opt = array();
1451
 
1452
  // Required parameter
1453
  $opt = array_merge($opt, CFComplexType::map(array(
1454
- 'ResourceId' => (is_array($resource_id) ? $resource_id : array($resource_id))
1455
- )));
1456
-
1457
- // Required parameter
1458
- $opt = array_merge($opt, CFComplexType::map(array(
1459
- 'Tag' => (is_array($tag) ? $tag : array($tag))
1460
  )));
1461
 
1462
- return $this->authenticate('CreateTags', $opt, $this->hostname);
1463
  }
1464
 
1465
  /**
1466
  *
1467
- * Detaches a VPN gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can
1468
- * confirm a VPN gateway has been completely detached from a VPC by describing the VPN gateway (any attachments to the VPN
1469
- * gateway are also described).
1470
- *
1471
- * You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC
1472
- * to the VPN gateway.
1473
  *
1474
- * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to detach from the VPC.
1475
- * @param string $vpc_id (Required) The ID of the VPC to detach the VPN gateway from.
1476
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1477
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1478
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1479
  */
1480
- public function detach_vpn_gateway($vpn_gateway_id, $vpc_id, $opt = null)
1481
  {
1482
  if (!$opt) $opt = array();
1483
- $opt['VpnGatewayId'] = $vpn_gateway_id;
1484
- $opt['VpcId'] = $vpc_id;
1485
 
1486
- return $this->authenticate('DetachVpnGateway', $opt, $this->hostname);
1487
- }
 
 
 
 
 
 
1488
 
1489
- /**
1490
- *
1491
- * The DeregisterImage operation deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.
1492
- *
1493
- * @param string $image_id (Required) The ID of the AMI to deregister.
1494
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1495
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1496
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1497
- */
1498
- public function deregister_image($image_id, $opt = null)
1499
- {
1500
- if (!$opt) $opt = array();
1501
- $opt['ImageId'] = $image_id;
1502
 
1503
- return $this->authenticate('DeregisterImage', $opt, $this->hostname);
1504
  }
1505
 
1506
  /**
1507
  *
1508
- * Describes the data feed for Spot Instances.
1509
- *
1510
- * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
1511
- * Elastic Compute Cloud User Guide.
1512
  *
 
1513
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1514
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1515
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1516
  */
1517
- public function describe_spot_datafeed_subscription($opt = null)
1518
  {
1519
  if (!$opt) $opt = array();
 
1520
 
1521
- return $this->authenticate('DescribeSpotDatafeedSubscription', $opt, $this->hostname);
1522
  }
1523
 
1524
  /**
1525
  *
1526
- * Deletes tags from the specified Amazon EC2 resources.
 
 
 
 
 
 
 
1527
  *
1528
- * @param string|array $resource_id (Required) A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc. Pass a string for a single value, or an indexed array for multiple values.
1529
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1530
- * <li><code>Tag</code> - <code>array</code> - Optional - The tags to delete from the specified resources. Each tag item consists of a key-value pair. If a tag is specified without a value, the tag and all of its values are deleted. <ul>
 
 
1531
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1532
- * <li><code>Key</code> - <code>string</code> - Optional - The tag's key. </li>
1533
- * <li><code>Value</code> - <code>string</code> - Optional - The tag's value. </li>
 
 
 
 
 
 
 
 
 
1534
  * </ul></li>
1535
  * </ul></li>
 
1536
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1537
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1538
  */
1539
- public function delete_tags($resource_id, $opt = null)
1540
  {
1541
  if (!$opt) $opt = array();
1542
 
1543
- // Required parameter
1544
- $opt = array_merge($opt, CFComplexType::map(array(
1545
- 'ResourceId' => (is_array($resource_id) ? $resource_id : array($resource_id))
1546
- )));
1547
-
1548
  // Optional parameter
1549
- if (isset($opt['Tag']))
1550
  {
1551
  $opt = array_merge($opt, CFComplexType::map(array(
1552
- 'Tag' => $opt['Tag']
1553
  )));
1554
- unset($opt['Tag']);
1555
  }
1556
 
1557
- return $this->authenticate('DeleteTags', $opt, $this->hostname);
1558
  }
1559
 
1560
  /**
1561
  *
1562
- * Describes the tags for the specified resources.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1563
  *
1564
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1565
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for tags. <ul>
 
1566
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1567
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1568
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1569
  * </ul></li>
1570
  * </ul></li>
 
1571
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1572
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1573
  */
1574
- public function describe_tags($opt = null)
1575
  {
1576
  if (!$opt) $opt = array();
1577
 
 
 
 
 
 
 
 
 
 
1578
  // Optional parameter
1579
  if (isset($opt['Filter']))
1580
  {
@@ -1584,88 +2660,142 @@ class AmazonEC2 extends CFRuntime
1584
  unset($opt['Filter']);
1585
  }
1586
 
1587
- return $this->authenticate('DescribeTags', $opt, $this->hostname);
1588
  }
1589
 
1590
  /**
1591
  *
1592
- * Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, otherwise
1593
- * Amazon VPC returns an error.
 
1594
  *
1595
- * @param string $subnet_id (Required) The ID of the subnet you want to delete.
 
 
 
1596
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1597
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1598
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1599
  */
1600
- public function delete_subnet($subnet_id, $opt = null)
1601
  {
1602
  if (!$opt) $opt = array();
1603
- $opt['SubnetId'] = $subnet_id;
1604
 
1605
- return $this->authenticate('DeleteSubnet', $opt, $this->hostname);
1606
  }
1607
 
1608
  /**
1609
  *
1610
- * Creates a new VPN gateway. A VPN gateway is the VPC-side endpoint for your VPN connection. You can create a VPN gateway
1611
- * before creating the VPC itself.
 
 
 
 
 
1612
  *
1613
- * @param string $type (Required) The type of VPN connection this VPN gateway supports.
1614
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1615
- * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone in which to create the VPN gateway. </li>
 
 
 
 
 
 
 
1616
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1617
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1618
  */
1619
- public function create_vpn_gateway($type, $opt = null)
1620
  {
1621
  if (!$opt) $opt = array();
1622
- $opt['Type'] = $type;
1623
 
1624
- return $this->authenticate('CreateVpnGateway', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1625
  }
1626
 
1627
  /**
1628
  *
1629
- * CancelBundleTask operation cancels a pending or in-progress bundling task. This is an asynchronous call and it make
1630
- * take a while for the task to be canceled. If a task is canceled while it is storing items, there may be parts of the
1631
- * incomplete AMI stored in S3. It is up to the caller to clean up these parts from S3.
1632
  *
1633
- * @param string $bundle_id (Required) The ID of the bundle task to cancel.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1634
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
1635
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1636
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1637
  */
1638
- public function cancel_bundle_task($bundle_id, $opt = null)
1639
  {
1640
  if (!$opt) $opt = array();
1641
- $opt['BundleId'] = $bundle_id;
 
1642
 
1643
- return $this->authenticate('CancelBundleTask', $opt, $this->hostname);
1644
  }
1645
 
1646
  /**
1647
  *
1648
- * Deletes a VPN gateway. Use this when you want to delete a VPC and all its associated components because you no longer
1649
- * need them. We recommend that before you delete a VPN gateway, you detach it from the VPC and delete the VPN connection.
1650
- * Note that you don't need to delete the VPN gateway if you just want to delete and re-create the VPN connection between
1651
- * your VPC and data center.
1652
  *
1653
- * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to delete.
1654
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1655
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1656
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1657
  */
1658
- public function delete_vpn_gateway($vpn_gateway_id, $opt = null)
1659
  {
1660
  if (!$opt) $opt = array();
1661
- $opt['VpnGatewayId'] = $vpn_gateway_id;
1662
 
1663
- return $this->authenticate('DeleteVpnGateway', $opt, $this->hostname);
1664
  }
1665
 
1666
  /**
1667
  *
1668
- * Cancels one or more Spot Instance requests.
1669
  *
1670
  * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
1671
  * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
@@ -1674,184 +2804,150 @@ class AmazonEC2 extends CFRuntime
1674
  * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
1675
  * Elastic Compute Cloud User Guide.
1676
  *
1677
- * @param string|array $spot_instance_request_id (Required) Specifies the ID of the Spot Instance request. Pass a string for a single value, or an indexed array for multiple values.
1678
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1679
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1680
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1681
- */
1682
- public function cancel_spot_instance_requests($spot_instance_request_id, $opt = null)
1683
- {
1684
- if (!$opt) $opt = array();
1685
-
1686
- // Required parameter
1687
- $opt = array_merge($opt, CFComplexType::map(array(
1688
- 'SpotInstanceRequestId' => (is_array($spot_instance_request_id) ? $spot_instance_request_id : array($spot_instance_request_id))
1689
- )));
1690
-
1691
- return $this->authenticate('CancelSpotInstanceRequests', $opt, $this->hostname);
1692
- }
1693
-
1694
- /**
1695
- *
1696
- * Attach a previously created volume to a running instance.
1697
- *
1698
- * @param string $volume_id (Required) The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.
1699
- * @param string $instance_id (Required) The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.
1700
- * @param string $device (Required) Specifies how the device is exposed to the instance (e.g., /dev/sdh).
1701
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1702
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1703
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1704
- */
1705
- public function attach_volume($volume_id, $instance_id, $device, $opt = null)
1706
- {
1707
- if (!$opt) $opt = array();
1708
- $opt['VolumeId'] = $volume_id;
1709
- $opt['InstanceId'] = $instance_id;
1710
- $opt['Device'] = $device;
1711
-
1712
- return $this->authenticate('AttachVolume', $opt, $this->hostname);
1713
- }
1714
-
1715
- /**
1716
- *
1717
- * Provides details of a user's registered licenses. Zero or more IDs may be specified on the call. When one or more
1718
- * license IDs are specified, only data for the specified IDs are returned.
1719
- *
1720
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1721
- * <li><code>LicenseId</code> - <code>string|array</code> - Optional - Specifies the license registration for which details are to be returned. Pass a string for a single value, or an indexed array for multiple values. </li>
1722
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Licenses. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1723
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1724
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1725
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
 
 
 
 
 
 
 
 
 
 
1726
  * </ul></li>
1727
- * </ul></li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1728
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1729
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1730
  */
1731
- public function describe_licenses($opt = null)
1732
  {
1733
  if (!$opt) $opt = array();
 
1734
 
1735
  // Optional parameter
1736
- if (isset($opt['LicenseId']))
1737
  {
1738
- $opt = array_merge($opt, CFComplexType::map(array(
1739
- 'LicenseId' => (is_array($opt['LicenseId']) ? $opt['LicenseId'] : array($opt['LicenseId']))
1740
- )));
1741
- unset($opt['LicenseId']);
1742
  }
1743
 
1744
  // Optional parameter
1745
- if (isset($opt['Filter']))
 
 
 
 
 
 
1746
  {
1747
  $opt = array_merge($opt, CFComplexType::map(array(
1748
- 'Filter' => $opt['Filter']
1749
  )));
1750
- unset($opt['Filter']);
1751
  }
1752
 
1753
- return $this->authenticate('DescribeLicenses', $opt, $this->hostname);
1754
- }
1755
-
1756
- /**
1757
- *
1758
- * The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon
1759
- * EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting
1760
- * insufficient capacity errors) and pay a lower usage rate for the actual time used.
1761
- *
1762
- * @param string $reserved_instances_offering_id (Required) The unique ID of the Reserved Instances offering being purchased.
1763
- * @param integer $instance_count (Required) The number of Reserved Instances to purchase.
1764
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1765
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1766
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1767
- */
1768
- public function purchase_reserved_instances_offering($reserved_instances_offering_id, $instance_count, $opt = null)
1769
- {
1770
- if (!$opt) $opt = array();
1771
- $opt['ReservedInstancesOfferingId'] = $reserved_instances_offering_id;
1772
- $opt['InstanceCount'] = $instance_count;
1773
-
1774
- return $this->authenticate('PurchaseReservedInstancesOffering', $opt, $this->hostname);
1775
  }
1776
 
1777
  /**
1778
  *
1779
- * Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.
 
1780
  *
1781
- * @param string $license_id (Required) Specifies the ID for the specific license to activate against.
1782
- * @param integer $capacity (Required) Specifies the additional number of licenses to activate.
 
 
 
 
 
1783
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1784
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1785
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1786
  */
1787
- public function activate_license($license_id, $capacity, $opt = null)
1788
  {
1789
  if (!$opt) $opt = array();
1790
- $opt['LicenseId'] = $license_id;
1791
- $opt['Capacity'] = $capacity;
1792
 
1793
- return $this->authenticate('ActivateLicense', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
1794
  }
1795
 
1796
  /**
1797
  *
1798
- * The ResetImageAttribute operation resets an attribute of an AMI to its default value.
1799
- *
1800
- * The productCodes attribute cannot be reset.
1801
  *
1802
- * @param string $image_id (Required) The ID of the AMI whose attribute is being reset.
1803
- * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: launchPermission
1804
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
1805
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1806
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1807
  */
1808
- public function reset_image_attribute($image_id, $attribute, $opt = null)
1809
  {
1810
  if (!$opt) $opt = array();
1811
- $opt['ImageId'] = $image_id;
1812
- $opt['Attribute'] = $attribute;
1813
 
1814
- return $this->authenticate('ResetImageAttribute', $opt, $this->hostname);
1815
  }
1816
 
1817
  /**
1818
  *
1819
- * Gives you information about your VPN connections.
1820
- *
1821
- * We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic
1822
- * information for configuring your customer gateway.
1823
- *
1824
- * You can filter the results to return information only about VPN connections that match criteria you specify. For
1825
- * example, you could ask to get information about a particular VPN connection (or all) only if the VPN's state is pending
1826
- * or available. You can specify multiple filters (e.g., the VPN connection is associated with a particular VPN gateway,
1827
- * and the gateway's state is pending or available). The result includes information for a particular VPN connection only
1828
- * if the VPN connection matches all your filters. If there's no match, no special message is returned; the response is
1829
- * simply empty. The following table shows the available filters.
1830
  *
1831
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1832
- * <li><code>VpnConnectionId</code> - <code>string|array</code> - Optional - A VPN connection ID. More than one may be specified per request. Pass a string for a single value, or an indexed array for multiple values. </li>
1833
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
1834
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1835
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1836
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1837
  * </ul></li>
1838
  * </ul></li>
 
1839
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1840
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1841
  */
1842
- public function describe_vpn_connections($opt = null)
1843
  {
1844
  if (!$opt) $opt = array();
1845
 
1846
- // Optional parameter
1847
- if (isset($opt['VpnConnectionId']))
1848
- {
1849
- $opt = array_merge($opt, CFComplexType::map(array(
1850
- 'VpnConnectionId' => (is_array($opt['VpnConnectionId']) ? $opt['VpnConnectionId'] : array($opt['VpnConnectionId']))
1851
- )));
1852
- unset($opt['VpnConnectionId']);
1853
- }
1854
-
1855
  // Optional parameter
1856
  if (isset($opt['Filter']))
1857
  {
@@ -1861,49 +2957,78 @@ class AmazonEC2 extends CFRuntime
1861
  unset($opt['Filter']);
1862
  }
1863
 
1864
- return $this->authenticate('DescribeVpnConnections', $opt, $this->hostname);
1865
  }
1866
 
1867
  /**
1868
  *
1869
- * Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot
1870
- * is taken.
 
1871
  *
1872
- * Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot
1873
- * of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of
1874
- * the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until
1875
- * the create snapshot status has returned.
 
 
 
 
 
 
 
 
 
 
 
1876
  *
1877
- * @param string $volume_id (Required) The ID of the volume from which to create the snapshot.
1878
- * @param string $description (Required) The description for the new snapshot.
 
 
 
 
 
 
 
 
1879
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1880
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1881
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1882
  */
1883
- public function create_snapshot($volume_id, $description, $opt = null)
1884
  {
1885
  if (!$opt) $opt = array();
1886
- $opt['VolumeId'] = $volume_id;
1887
- $opt['Description'] = $description;
1888
 
1889
- return $this->authenticate('CreateSnapshot', $opt, $this->hostname);
 
 
 
 
 
1890
  }
1891
 
1892
  /**
1893
  *
1894
- * Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.
 
 
1895
  *
1896
- * @param string $volume_id (Required) The ID of the EBS volume to delete.
 
1897
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1898
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1899
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1900
  */
1901
- public function delete_volume($volume_id, $opt = null)
1902
  {
1903
  if (!$opt) $opt = array();
1904
- $opt['VolumeId'] = $volume_id;
 
1905
 
1906
- return $this->authenticate('DeleteVolume', $opt, $this->hostname);
1907
  }
1908
 
1909
  /**
@@ -1911,11 +3036,12 @@ class AmazonEC2 extends CFRuntime
1911
  * Adds or remove permission settings for the specified snapshot.
1912
  *
1913
  * @param string $snapshot_id (Required) The ID of the EBS snapshot whose attributes are being modified.
1914
- * @param string $attribute (Required) The name of the attribute being modified. Available attribute names: createVolumePermission
1915
- * @param string $operation_type (Required) The operation to perform on the attribute. Available operation names: add, remove
1916
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1917
- * <li><code>UserId</code> - <code>string|array</code> - Optional - The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the createVolumePermission attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
1918
  * <li><code>UserGroup</code> - <code>string|array</code> - Optional - The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the <code>createVolumePermission</code> attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
 
1919
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1920
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1921
  */
@@ -1956,6 +3082,7 @@ class AmazonEC2 extends CFRuntime
1956
  *
1957
  * @param string|array $instance_id (Required) The list of instances to terminate. Pass a string for a single value, or an indexed array for multiple values.
1958
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1959
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1960
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1961
  */
@@ -1979,6 +3106,7 @@ class AmazonEC2 extends CFRuntime
1979
  * Elastic Compute Cloud User Guide.
1980
  *
1981
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1982
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1983
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1984
  */
@@ -1991,89 +3119,47 @@ class AmazonEC2 extends CFRuntime
1991
 
1992
  /**
1993
  *
1994
- * Gives you information about your VPCs. You can filter the results to return information only about VPCs that match
1995
- * criteria you specify. For example, you could ask to get information about a particular VPC or VPCs (or all your VPCs)
1996
- * only if the VPC's state is available. You can specify multiple filters (e.g., the VPC uses one of several sets of DHCP
1997
- * options, and the VPC's state is available). The result includes information for a particular VPC only if the VPC matches
1998
- * all your filters. If there's no match, no special message is returned; the response is simply empty. The following table
1999
- * shows the available filters.
2000
  *
 
2001
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2002
- * <li><code>VpcId</code> - <code>string|array</code> - Optional - A set of one or more IDs of VPCs to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
2003
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
2004
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2005
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2006
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2007
- * </ul></li>
2008
- * </ul></li>
2009
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2010
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2011
  */
2012
- public function describe_vpcs($opt = null)
2013
  {
2014
  if (!$opt) $opt = array();
 
2015
 
2016
- // Optional parameter
2017
- if (isset($opt['VpcId']))
2018
- {
2019
- $opt = array_merge($opt, CFComplexType::map(array(
2020
- 'VpcId' => (is_array($opt['VpcId']) ? $opt['VpcId'] : array($opt['VpcId']))
2021
- )));
2022
- unset($opt['VpcId']);
2023
- }
2024
-
2025
- // Optional parameter
2026
- if (isset($opt['Filter']))
2027
- {
2028
- $opt = array_merge($opt, CFComplexType::map(array(
2029
- 'Filter' => $opt['Filter']
2030
- )));
2031
- unset($opt['Filter']);
2032
- }
2033
-
2034
- return $this->authenticate('DescribeVpcs', $opt, $this->hostname);
2035
  }
2036
 
2037
  /**
2038
  *
2039
- * The AssociateAddress operation associates an elastic IP address with an instance.
2040
- *
2041
- * If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an
2042
- * idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
2043
- *
2044
- * @param string $instance_id (Required) The instance to associate with the IP address.
2045
- * @param string $public_ip (Required) IP address that you are assigning to the instance.
2046
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2047
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2048
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2049
- */
2050
- public function associate_address($instance_id, $public_ip, $opt = null)
2051
- {
2052
- if (!$opt) $opt = array();
2053
- $opt['InstanceId'] = $instance_id;
2054
- $opt['PublicIp'] = $public_ip;
2055
-
2056
- return $this->authenticate('AssociateAddress', $opt, $this->hostname);
2057
- }
2058
-
2059
- /**
2060
  *
2061
- * Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have
2062
- * persisted for at least a 90-day period.
2063
  *
2064
- * @param string $license_id (Required) Specifies the ID for the specific license to deactivate against.
2065
- * @param integer $capacity (Required) Specifies the amount of capacity to deactivate against the license.
2066
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2067
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2068
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2069
  */
2070
- public function deactivate_license($license_id, $capacity, $opt = null)
2071
  {
2072
  if (!$opt) $opt = array();
2073
- $opt['LicenseId'] = $license_id;
2074
- $opt['Capacity'] = $capacity;
2075
 
2076
- return $this->authenticate('DeactivateLicense', $opt, $this->hostname);
2077
  }
2078
 
2079
  /**
@@ -2083,6 +3169,7 @@ class AmazonEC2 extends CFRuntime
2083
  * @param string $snapshot_id (Required) The ID of the EBS snapshot whose attribute is being described.
2084
  * @param string $attribute (Required) The name of the EBS attribute to describe. Available attribute names: createVolumePermission
2085
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2086
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2087
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2088
  */
@@ -2095,26 +3182,6 @@ class AmazonEC2 extends CFRuntime
2095
  return $this->authenticate('DescribeSnapshotAttribute', $opt, $this->hostname);
2096
  }
2097
 
2098
- /**
2099
- *
2100
- * Deletes a customer gateway. You must delete the VPN connection before deleting the customer gateway.
2101
- *
2102
- * You can have a single active customer gateway per AWS account (active means that you've created a VPN connection with
2103
- * that customer gateway). AWS might delete any customer gateway you leave inactive for an extended period of time.
2104
- *
2105
- * @param string $customer_gateway_id (Required) The ID of the customer gateway to delete.
2106
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2107
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2108
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2109
- */
2110
- public function delete_customer_gateway($customer_gateway_id, $opt = null)
2111
- {
2112
- if (!$opt) $opt = array();
2113
- $opt['CustomerGatewayId'] = $customer_gateway_id;
2114
-
2115
- return $this->authenticate('DeleteCustomerGateway', $opt, $this->hostname);
2116
- }
2117
-
2118
  /**
2119
  *
2120
  * The DescribeAddresses operation lists elastic IP addresses assigned to your account.
@@ -2127,6 +3194,8 @@ class AmazonEC2 extends CFRuntime
2127
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2128
  * </ul></li>
2129
  * </ul></li>
 
 
2130
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2131
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2132
  */
@@ -2152,6 +3221,15 @@ class AmazonEC2 extends CFRuntime
2152
  unset($opt['Filter']);
2153
  }
2154
 
 
 
 
 
 
 
 
 
 
2155
  return $this->authenticate('DescribeAddresses', $opt, $this->hostname);
2156
  }
2157
 
@@ -2168,6 +3246,7 @@ class AmazonEC2 extends CFRuntime
2168
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2169
  * </ul></li>
2170
  * </ul></li>
 
2171
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2172
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2173
  */
@@ -2202,8 +3281,9 @@ class AmazonEC2 extends CFRuntime
2202
  * specified per call.
2203
  *
2204
  * @param string $image_id (Required) The ID of the AMI whose attribute is to be described.
2205
- * @param string $attribute (Required) The name of the attribute to describe. Available attribute names: productCodes, kernel, ramdisk, launchPermisson, blockDeviceMapping
2206
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2207
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2208
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2209
  */
@@ -2216,6 +3296,29 @@ class AmazonEC2 extends CFRuntime
2216
  return $this->authenticate('DescribeImageAttribute', $opt, $this->hostname);
2217
  }
2218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2219
  /**
2220
  *
2221
  * The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance.
@@ -2227,6 +3330,7 @@ class AmazonEC2 extends CFRuntime
2227
  * @param string $product_code (Required) The product code to confirm.
2228
  * @param string $instance_id (Required) The ID of the instance to confirm.
2229
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2230
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2231
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2232
  */
@@ -2236,7 +3340,83 @@ class AmazonEC2 extends CFRuntime
2236
  $opt['ProductCode'] = $product_code;
2237
  $opt['InstanceId'] = $instance_id;
2238
 
2239
- return $this->authenticate('ConfirmProductInstance', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2240
  }
2241
 
2242
  /**
@@ -2247,6 +3427,7 @@ class AmazonEC2 extends CFRuntime
2247
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2248
  * <li><code>Size</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot. </li>
2249
  * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which to create the new volume. </li>
 
2250
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2251
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2252
  */
@@ -2261,20 +3442,24 @@ class AmazonEC2 extends CFRuntime
2261
  /**
2262
  *
2263
  * Gives you information about your VPN gateways. You can filter the results to return information only about VPN gateways
2264
- * that match criteria you specify. For example, you could ask to get information about a particular VPN gateway (or all)
2265
- * only if the gateway's state is pending or available. You can specify multiple filters (e.g., the VPN gateway is in a
2266
- * particular Availability Zone and the gateway's state is pending or available). The result includes information for a
2267
- * particular VPN gateway only if the gateway matches all your filters. If there's no match, no special message is
2268
- * returned; the response is simply empty. The following table shows the available filters.
 
 
 
2269
  *
2270
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2271
- * <li><code>VpnGatewayId</code> - <code>string|array</code> - Optional - A set of one or more VPN Gateway IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
2272
- * <li><code>Filter</code> - <code>array</code> - Optional - <ul>
2273
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2274
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2275
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2276
  * </ul></li>
2277
  * </ul></li>
 
2278
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2279
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2280
  */
@@ -2310,8 +3495,8 @@ class AmazonEC2 extends CFRuntime
2310
  * VPC ID and the CIDR block you want for the subnet. Once you create a subnet, you can't change its CIDR block. The
2311
  * subnet's CIDR block can be the same as the VPC's CIDR block (assuming you want only a single subnet in the VPC), or a
2312
  * subset of the VPC's CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap.
2313
- * The smallest subnet (and VPC) you can create uses a /28 netmask (16 IP addresses), and the largest uses a /18 netmask
2314
- * (16,384 IP addresses).
2315
  *
2316
  * AWS reserves both the first four and the last IP address in each subnet's CIDR block. They're not available for use.
2317
  *
@@ -2319,6 +3504,7 @@ class AmazonEC2 extends CFRuntime
2319
  * @param string $cidr_block (Required) The CIDR block the subnet is to cover.
2320
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2321
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone to create the subnet in. </li>
 
2322
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2323
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2324
  */
@@ -2348,6 +3534,7 @@ class AmazonEC2 extends CFRuntime
2348
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2349
  * </ul></li>
2350
  * </ul></li>
 
2351
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2352
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2353
  */
@@ -2378,51 +3565,11 @@ class AmazonEC2 extends CFRuntime
2378
 
2379
  /**
2380
  *
2381
- * Describes the status of the indicated or, in lieu of any specified, all volumes belonging to the caller. Volumes that
2382
- * have been deleted are not described.
2383
- *
2384
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2385
- * <li><code>VolumeId</code> - <code>string|array</code> - Optional - The optional list of EBS volumes to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
2386
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Volumes. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2387
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2388
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2389
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2390
- * </ul></li>
2391
- * </ul></li>
2392
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2393
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2394
- */
2395
- public function describe_volumes($opt = null)
2396
- {
2397
- if (!$opt) $opt = array();
2398
-
2399
- // Optional parameter
2400
- if (isset($opt['VolumeId']))
2401
- {
2402
- $opt = array_merge($opt, CFComplexType::map(array(
2403
- 'VolumeId' => (is_array($opt['VolumeId']) ? $opt['VolumeId'] : array($opt['VolumeId']))
2404
- )));
2405
- unset($opt['VolumeId']);
2406
- }
2407
-
2408
- // Optional parameter
2409
- if (isset($opt['Filter']))
2410
- {
2411
- $opt = array_merge($opt, CFComplexType::map(array(
2412
- 'Filter' => $opt['Filter']
2413
- )));
2414
- unset($opt['Filter']);
2415
- }
2416
-
2417
- return $this->authenticate('DescribeVolumes', $opt, $this->hostname);
2418
- }
2419
-
2420
- /**
2421
- *
2422
- * Deletes the snapshot identified by snapshotId.
2423
  *
2424
  * @param string $snapshot_id (Required) The ID of the snapshot to delete.
2425
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2426
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2427
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2428
  */
@@ -2436,70 +3583,24 @@ class AmazonEC2 extends CFRuntime
2436
 
2437
  /**
2438
  *
2439
- * Gives you information about one or more sets of DHCP options. You can specify one or more DHCP options set IDs, or no
2440
- * IDs (to describe all your sets of DHCP options). The returned information consists of:
2441
- *
2442
- * <ul> <li> The DHCP options set ID </li>
2443
- *
2444
- * <li> The options </li>
2445
- *
2446
- * </ul>
2447
- *
2448
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2449
- * <li><code>DhcpOptionsId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
2450
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for DhcpOptions. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2451
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2452
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2453
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2454
- * </ul></li>
2455
- * </ul></li>
2456
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2457
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2458
- */
2459
- public function describe_dhcp_options($opt = null)
2460
- {
2461
- if (!$opt) $opt = array();
2462
-
2463
- // Optional parameter
2464
- if (isset($opt['DhcpOptionsId']))
2465
- {
2466
- $opt = array_merge($opt, CFComplexType::map(array(
2467
- 'DhcpOptionsId' => (is_array($opt['DhcpOptionsId']) ? $opt['DhcpOptionsId'] : array($opt['DhcpOptionsId']))
2468
- )));
2469
- unset($opt['DhcpOptionsId']);
2470
- }
2471
-
2472
- // Optional parameter
2473
- if (isset($opt['Filter']))
2474
- {
2475
- $opt = array_merge($opt, CFComplexType::map(array(
2476
- 'Filter' => $opt['Filter']
2477
- )));
2478
- unset($opt['Filter']);
2479
- }
2480
-
2481
- return $this->authenticate('DescribeDhcpOptions', $opt, $this->hostname);
2482
- }
2483
-
2484
- /**
2485
- *
2486
- * Enables monitoring for a running instance.
2487
  *
2488
- * @param string|array $instance_id (Required) The list of Amazon EC2 instances on which to enable monitoring. Pass a string for a single value, or an indexed array for multiple values.
 
2489
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2490
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2491
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2492
  */
2493
- public function monitor_instances($instance_id, $opt = null)
2494
  {
2495
  if (!$opt) $opt = array();
 
 
2496
 
2497
- // Required parameter
2498
- $opt = array_merge($opt, CFComplexType::map(array(
2499
- 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
2500
- )));
2501
-
2502
- return $this->authenticate('MonitorInstances', $opt, $this->hostname);
2503
  }
2504
 
2505
  /**
@@ -2509,6 +3610,8 @@ class AmazonEC2 extends CFRuntime
2509
  *
2510
  * @param string $public_ip (Required) The elastic IP address that you are disassociating from the instance.
2511
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
2512
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2513
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2514
  */
@@ -2517,338 +3620,140 @@ class AmazonEC2 extends CFRuntime
2517
  if (!$opt) $opt = array();
2518
  $opt['PublicIp'] = $public_ip;
2519
 
2520
- return $this->authenticate('DisassociateAddress', $opt, $this->hostname);
2521
- }
2522
-
2523
- /**
2524
- *
2525
- * Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name
2526
- * unique within the scope of the user account.
2527
- *
2528
- * @param string $group_name (Required) The name of the <code>PlacementGroup</code>.
2529
- * @param string $strategy (Required) The <code>PlacementGroup</code> strategy. [Allowed values: <code>cluster</code>]
2530
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2531
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2532
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2533
- */
2534
- public function create_placement_group($group_name, $strategy, $opt = null)
2535
- {
2536
- if (!$opt) $opt = array();
2537
- $opt['GroupName'] = $group_name;
2538
- $opt['Strategy'] = $strategy;
2539
-
2540
- return $this->authenticate('CreatePlacementGroup', $opt, $this->hostname);
2541
- }
2542
-
2543
- /**
2544
- *
2545
- * The DescribeBundleTasks operation describes in-progress and recent bundle tasks. Complete and failed tasks are removed
2546
- * from the list a short time after completion. If no bundle ids are given, all bundle tasks are returned.
2547
- *
2548
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2549
- * <li><code>BundleId</code> - <code>string|array</code> - Optional - The list of bundle task IDs to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
2550
- * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for BundleTasks. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2551
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2552
- * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2553
- * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2554
- * </ul></li>
2555
- * </ul></li>
2556
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2557
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2558
- */
2559
- public function describe_bundle_tasks($opt = null)
2560
- {
2561
- if (!$opt) $opt = array();
2562
-
2563
- // Optional parameter
2564
- if (isset($opt['BundleId']))
2565
- {
2566
- $opt = array_merge($opt, CFComplexType::map(array(
2567
- 'BundleId' => (is_array($opt['BundleId']) ? $opt['BundleId'] : array($opt['BundleId']))
2568
- )));
2569
- unset($opt['BundleId']);
2570
- }
2571
-
2572
- // Optional parameter
2573
- if (isset($opt['Filter']))
2574
- {
2575
- $opt = array_merge($opt, CFComplexType::map(array(
2576
- 'Filter' => $opt['Filter']
2577
- )));
2578
- unset($opt['Filter']);
2579
- }
2580
-
2581
- return $this->authenticate('DescribeBundleTasks', $opt, $this->hostname);
2582
- }
2583
-
2584
- /**
2585
- * The BundleInstance operation request that an instance is bundled the next time it boots. The
2586
- * bundling process creates a new image from a running instance and stores the AMI data in S3. Once
2587
- * bundled, the image must be registered in the normal way using the RegisterImage API.
2588
- *
2589
- * @param string $instance_id (Required) The ID of the instance to bundle.
2590
- * @param array $policy (Required) The details of S3 storage for bundling a Windows instance. Takes an associative array of parameters that can have the following keys: <ul>
2591
- * <li><code>Bucket</code> - <code>string</code> - Optional - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.</li>
2592
- * <li><code>Prefix</code> - <code>string</code> - Optional - The prefix to use when storing the AMI in S3.</li>
2593
- * <li><code>AWSAccessKeyId</code> - <code>string</code> - Optional - The Access Key ID of the owner of the Amazon S3 bucket. Use the <CFPolicy::get_key()> method of a <CFPolicy> instance.</li>
2594
- * <li><code>UploadPolicy</code> - <code>string</code> - Optional - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on the user's behalf. Use the <CFPolicy::get_policy()> method of a <CFPolicy> instance.</li>
2595
- * <li><code>UploadPolicySignature</code> - <code>string</code> - Optional - The signature of the Base64 encoded JSON document. Use the <CFPolicy::get_policy_signature()> method of a <CFPolicy> instance.</li></ul>
2596
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2597
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
2598
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2599
- */
2600
- public function bundle_instance($instance_id, $policy, $opt = null)
2601
- {
2602
- if (!$opt) $opt = array();
2603
- $opt['InstanceId'] = $instance_id;
2604
-
2605
- $opt = array_merge($opt, CFComplexType::map(array(
2606
- 'Storage.S3' => $policy
2607
- )));
2608
-
2609
- return $this->authenticate('BundleInstance', $opt, $this->hostname);
2610
- }
2611
-
2612
- /**
2613
- *
2614
- * Deletes a PlacementGroup from a user's account. Terminate all Amazon EC2 instances in the placement group before
2615
- * deletion.
2616
- *
2617
- * @param string $group_name (Required) The name of the <code>PlacementGroup</code> to delete.
2618
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2619
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2620
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2621
- */
2622
- public function delete_placement_group($group_name, $opt = null)
2623
- {
2624
- if (!$opt) $opt = array();
2625
- $opt['GroupName'] = $group_name;
2626
-
2627
- return $this->authenticate('DeletePlacementGroup', $opt, $this->hostname);
2628
- }
2629
-
2630
- /**
2631
- *
2632
- * The RevokeSecurityGroupIngress operation revokes permissions from a security group. The permissions used to revoke must
2633
- * be specified using the same values used to grant the permissions.
2634
- *
2635
- * Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2
2636
- * user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).
2637
- *
2638
- * Permission changes are quickly propagated to instances within the security group. However, depending on the number of
2639
- * instances in the group, a small delay might occur.
2640
- *
2641
- * @param string $group_name (Required) The name of the security group from which to remove permissions.
2642
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2643
- * <li><code>SourceSecurityGroupName</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. Name of the source security group. Cannot be used when specifying a CIDR IP address. </li>
2644
- * <li><code>SourceSecurityGroupOwnerId</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. AWS user ID of an account. Cannot be used when specifying a CIDR IP address. </li>
2645
- * <li><code>IpProtocol</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. IP protocol. Valid values: tcp, udp, icmp </li>
2646
- * <li><code>FromPort</code> - <code>integer</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number). </li>
2647
- * <li><code>ToPort</code> - <code>integer</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code). </li>
2648
- * <li><code>CidrIp</code> - <code>string</code> - Optional - Deprecated - use the list of IP permissions to specify this information instead. CIDR range. </li>
2649
- * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to revoke on the specified security group. For an IP permission to be removed, it must exactly match one of the IP permissions you specify in this list. Specifying permissions through IP permissions is the preferred way of revoking permissions since it offers more flexibility and control. <ul>
2650
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2651
- * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: tpc, upd, icmp </li>
2652
- * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number). </li>
2653
- * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code). </li>
2654
- * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
2655
- * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2656
- * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
2657
- * <li><code>GroupName</code> - <code>string</code> - Optional - The name of the security group in the specified user's account. </li>
2658
- * </ul></li>
2659
- * </ul></li>
2660
- * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
2661
- * </ul></li>
2662
- * </ul></li>
2663
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2664
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2665
- */
2666
- public function revoke_security_group_ingress($group_name, $opt = null)
2667
- {
2668
- if (!$opt) $opt = array();
2669
- $opt['GroupName'] = $group_name;
2670
-
2671
- // Optional parameter
2672
- if (isset($opt['IpPermissions']))
2673
- {
2674
- $opt = array_merge($opt, CFComplexType::map(array(
2675
- 'IpPermissions' => $opt['IpPermissions']
2676
- )));
2677
- unset($opt['IpPermissions']);
2678
- }
2679
-
2680
- return $this->authenticate('RevokeSecurityGroupIngress', $opt, $this->hostname);
2681
  }
2682
 
2683
  /**
2684
  *
2685
- * Deletes a VPC. You must terminate all running instances and delete all subnets before deleting the VPC, otherwise
2686
- * Amazon VPC returns an error.
2687
  *
2688
- * @param string $vpc_id (Required)
 
2689
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2690
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2691
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2692
  */
2693
- public function delete_vpc($vpc_id, $opt = null)
2694
  {
2695
  if (!$opt) $opt = array();
2696
- $opt['VpcId'] = $vpc_id;
 
2697
 
2698
- return $this->authenticate('DeleteVpc', $opt, $this->hostname);
2699
  }
2700
 
2701
  /**
2702
- * The GetConsoleOutput operation retrieves console output for the specified instance.
2703
- *
2704
- * Instance console output is buffered and posted shortly after instance boot, reboot, and
2705
- * termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least
2706
- * one hour after the most recent post.
2707
  *
2708
- * @param string $instance_id (Required) The ID of the instance for which you want console output.
 
 
 
 
 
 
2709
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2710
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
2711
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response. The value of <code>output</code> is automatically Base64-decoded.
2712
  */
2713
- public function get_console_output($instance_id, $opt = null)
2714
  {
2715
  if (!$opt) $opt = array();
2716
  $opt['InstanceId'] = $instance_id;
2717
 
2718
- $response = $this->authenticate('GetConsoleOutput', $opt, $this->hostname);
2719
-
2720
- // Automatically Base64-decode the <output> value.
2721
- if ($this->util->is_base64((string) $response->body->output))
2722
- {
2723
- $response->body->output = base64_decode($response->body->output);
2724
- }
2725
 
2726
- return $response;
2727
  }
2728
 
2729
  /**
2730
  *
2731
- * The AllocateAddress operation acquires an elastic IP address for use with your account.
 
2732
  *
 
2733
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2734
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2735
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2736
  */
2737
- public function allocate_address($opt = null)
2738
  {
2739
  if (!$opt) $opt = array();
 
2740
 
2741
- return $this->authenticate('AllocateAddress', $opt, $this->hostname);
2742
  }
2743
 
2744
  /**
2745
  *
2746
- * The ModifyImageAttribute operation modifies an attribute of an AMI.
 
 
2747
  *
2748
- * @param string $image_id (Required) The ID of the AMI whose attribute you want to modify.
2749
- * @param string $attribute (Required) The name of the AMI attribute you want to modify. Available attributes: launchPermission, productCodes
2750
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2751
- * <li><code>OperationType</code> - <code>string</code> - Optional - The type of operation being requested. Available operation types: add, remove </li>
2752
- * <li><code>UserId</code> - <code>string|array</code> - Optional - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
2753
- * <li><code>UserGroup</code> - <code>string|array</code> - Optional - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified. Available user groups: all Pass a string for a single value, or an indexed array for multiple values. </li>
2754
- * <li><code>ProductCode</code> - <code>string|array</code> - Optional - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
2755
- * <li><code>Value</code> - <code>string</code> - Optional - The value of the attribute being modified. Only valid when the description attribute is being modified. </li>
2756
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2757
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2758
  */
2759
- public function modify_image_attribute($image_id, $attribute, $opt = null)
2760
  {
2761
  if (!$opt) $opt = array();
2762
- $opt['ImageId'] = $image_id;
2763
- $opt['Attribute'] = $attribute;
2764
-
2765
- // Optional parameter
2766
- if (isset($opt['UserId']))
2767
- {
2768
- $opt = array_merge($opt, CFComplexType::map(array(
2769
- 'UserId' => (is_array($opt['UserId']) ? $opt['UserId'] : array($opt['UserId']))
2770
- )));
2771
- unset($opt['UserId']);
2772
- }
2773
-
2774
- // Optional parameter
2775
- if (isset($opt['UserGroup']))
2776
- {
2777
- $opt = array_merge($opt, CFComplexType::map(array(
2778
- 'UserGroup' => (is_array($opt['UserGroup']) ? $opt['UserGroup'] : array($opt['UserGroup']))
2779
- )));
2780
- unset($opt['UserGroup']);
2781
- }
2782
-
2783
- // Optional parameter
2784
- if (isset($opt['ProductCode']))
2785
- {
2786
- $opt = array_merge($opt, CFComplexType::map(array(
2787
- 'ProductCode' => (is_array($opt['ProductCode']) ? $opt['ProductCode'] : array($opt['ProductCode']))
2788
- )));
2789
- unset($opt['ProductCode']);
2790
- }
2791
 
2792
- return $this->authenticate('ModifyImageAttribute', $opt, $this->hostname);
2793
  }
2794
 
2795
  /**
2796
  *
2797
- * The ReleaseAddress operation releases an elastic IP address associated with your account.
2798
- *
2799
- * Releasing an IP address automatically disassociates it from any instance with which it is associated. For more
2800
- * information, see DisassociateAddress.
2801
- *
2802
- * After releasing an elastic IP address, it is released to the IP address pool and might no longer be available to your
2803
- * account. Make sure to update your DNS records and any servers or devices that communicate with the address.
2804
- *
2805
- * If you run this operation on an elastic IP address that is already released, the address might be assigned to another
2806
- * account which will cause Amazon EC2 to return an error.
2807
  *
2808
- * @param string $public_ip (Required) The elastic IP address that you are releasing from your account.
2809
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
2810
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2811
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2812
  */
2813
- public function release_address($public_ip, $opt = null)
2814
  {
2815
  if (!$opt) $opt = array();
2816
- $opt['PublicIp'] = $public_ip;
2817
 
2818
- return $this->authenticate('ReleaseAddress', $opt, $this->hostname);
2819
  }
2820
 
2821
  /**
2822
  *
2823
- * Provides information to AWS about your customer gateway device. The customer gateway is the appliance at your end of
2824
- * the VPN connection (compared to the VPN gateway, which is the device at the AWS side of the VPN connection). You can
2825
- * have a single active customer gateway per AWS account (active means that you've created a VPN connection to use with the
2826
- * customer gateway). AWS might delete any customer gateway that you create with this operation if you leave it inactive
2827
- * for an extended period of time.
2828
  *
2829
- * You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be
2830
- * static.
2831
  *
2832
- * You must also provide the device's Border Gateway Protocol (BGP) Autonomous System Number (ASN). You can use an
2833
- * existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534
2834
- * range). For more information about ASNs, go to <a
2835
- * .wikipedia.org/wiki/Autonomous_system_%28Internet%29">http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29</a>.
 
2836
  *
2837
- * @param string $type (Required) The type of VPN connection this customer gateway supports.
2838
- * @param string $ip_address (Required) The Internet-routable IP address for the customer gateway's outside interface. The address must be static
2839
- * @param integer $bgp_asn (Required) The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
2840
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
2841
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2842
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2843
  */
2844
- public function create_customer_gateway($type, $ip_address, $bgp_asn, $opt = null)
2845
  {
2846
  if (!$opt) $opt = array();
2847
- $opt['Type'] = $type;
2848
- $opt['IpAddress'] = $ip_address;
2849
- $opt['BgpAsn'] = $bgp_asn;
2850
 
2851
- return $this->authenticate('CreateCustomerGateway', $opt, $this->hostname);
2852
  }
2853
 
2854
  /**
@@ -2856,8 +3761,9 @@ class AmazonEC2 extends CFRuntime
2856
  * Resets an attribute of an instance to its default value.
2857
  *
2858
  * @param string $instance_id (Required) The ID of the Amazon EC2 instance whose attribute is being reset.
2859
- * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: kernel, ramdisk
2860
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2861
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2862
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2863
  */
@@ -2872,42 +3778,74 @@ class AmazonEC2 extends CFRuntime
2872
 
2873
  /**
2874
  *
2875
- * Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed
2876
- * per account.
2877
- *
2878
- * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
2879
- * Elastic Compute Cloud User Guide.
2880
  *
2881
- * @param string $bucket (Required) The Amazon S3 bucket in which to store the Spot Instance datafeed.
2882
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2883
- * <li><code>Prefix</code> - <code>string</code> - Optional - The prefix that is prepended to datafeed files. </li>
2884
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2885
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2886
  */
2887
- public function create_spot_datafeed_subscription($bucket, $opt = null)
2888
  {
2889
  if (!$opt) $opt = array();
2890
- $opt['Bucket'] = $bucket;
2891
 
2892
- return $this->authenticate('CreateSpotDatafeedSubscription', $opt, $this->hostname);
2893
  }
2894
 
2895
  /**
2896
  *
2897
- * The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference
2898
- * this key pair when launching new instances. For more information, see RunInstances.
2899
  *
2900
- * @param string $key_name (Required) The unique name for the new key pair.
 
 
 
 
 
2901
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
 
 
 
 
 
 
2902
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2903
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2904
  */
2905
- public function create_key_pair($key_name, $opt = null)
2906
  {
2907
  if (!$opt) $opt = array();
2908
- $opt['KeyName'] = $key_name;
 
 
 
 
 
2909
 
2910
- return $this->authenticate('CreateKeyPair', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2911
  }
2912
 
2913
  /**
@@ -2926,6 +3864,7 @@ class AmazonEC2 extends CFRuntime
2926
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2927
  * </ul></li>
2928
  * </ul></li>
 
2929
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2930
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2931
  */
@@ -2972,6 +3911,26 @@ class AmazonEC2 extends CFRuntime
2972
  return $this->authenticate('DescribeSnapshots', $opt, $this->hostname);
2973
  }
2974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2975
  /**
2976
  *
2977
  * The RegisterImage operation registers an AMI with Amazon EC2. Images must be registered before they can be launched.
@@ -2985,18 +3944,18 @@ class AmazonEC2 extends CFRuntime
2985
  * invalidates this registration. If you make changes to an image, deregister the previous image and register the new
2986
  * image. For more information, see DeregisterImage.
2987
  *
2988
- * @param string $image_location (Required) The full path to your AMI manifest in Amazon S3 storage.
2989
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2990
- * <li><code>Name</code> - <code>string</code> - Optional - The name to give the new Amazon Machine Image. Constraints: 3-128 alphanumeric characters, parenthesis (()), commas (,), slashes (/), dashes (-), or underscores(_) </li>
 
2991
  * <li><code>Description</code> - <code>string</code> - Optional - The description describing the new AMI. </li>
2992
- * <li><code>Architecture</code> - <code>string</code> - Optional - The architecture of the image. Valid Values: i386, x86_64 </li>
2993
  * <li><code>KernelId</code> - <code>string</code> - Optional - The optional ID of a specific kernel to register with the new AMI. </li>
2994
  * <li><code>RamdiskId</code> - <code>string</code> - Optional - The optional ID of a specific ramdisk to register with the new AMI. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. </li>
2995
- * <li><code>RootDeviceName</code> - <code>string</code> - Optional - The root device name (e.g., /dev/sda1). </li>
2996
  * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. <ul>
2997
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2998
  * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
2999
- * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., /dev/sdh). </li>
3000
  * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
3001
  * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
3002
  * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
@@ -3005,13 +3964,13 @@ class AmazonEC2 extends CFRuntime
3005
  * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
3006
  * </ul></li>
3007
  * </ul></li>
 
3008
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3009
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3010
  */
3011
- public function register_image($image_location, $opt = null)
3012
  {
3013
  if (!$opt) $opt = array();
3014
- $opt['ImageLocation'] = $image_location;
3015
 
3016
  // Optional parameter
3017
  if (isset($opt['BlockDeviceMapping']))
@@ -3024,83 +3983,6 @@ class AmazonEC2 extends CFRuntime
3024
 
3025
  return $this->authenticate('RegisterImage', $opt, $this->hostname);
3026
  }
3027
-
3028
- /**
3029
- *
3030
- * Deletes a VPN connection. Use this if you want to delete a VPC and all its associated components. Another reason to use
3031
- * this operation is if you believe the tunnel credentials for your VPN connection have been compromised. In that
3032
- * situation, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC
3033
- * or VPN gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new
3034
- * configuration information returned with the new VPN connection ID.
3035
- *
3036
- * If you're deleting the VPC and all its associated parts, we recommend you detach the VPN gateway from the VPC and
3037
- * delete the VPC before deleting the VPN connection.
3038
- *
3039
- * @param string $vpn_connection_id (Required) The ID of the VPN connection to delete
3040
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3041
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3042
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3043
- */
3044
- public function delete_vpn_connection($vpn_connection_id, $opt = null)
3045
- {
3046
- if (!$opt) $opt = array();
3047
- $opt['VpnConnectionId'] = $vpn_connection_id;
3048
-
3049
- return $this->authenticate('DeleteVpnConnection', $opt, $this->hostname);
3050
- }
3051
-
3052
- /**
3053
- *
3054
- * Creates a new VPN connection between an existing VPN gateway and customer gateway. The only supported connection type
3055
- * is ipsec.1.
3056
- *
3057
- * The response includes information that you need to configure your customer gateway, in XML format. We recommend you use
3058
- * the command line version of this operation (ec2-create-vpn-connection), which takes an -f option (for format) and
3059
- * returns configuration information formatted as expected by the vendor you specified, or in a generic, human readable
3060
- * format. For information about the command, go to ec2-create-vpn-connection in the Amazon Virtual Private Cloud Command
3061
- * Line Reference.
3062
- *
3063
- * We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic
3064
- * information for configuring your customer gateway.
3065
- *
3066
- * If you decide to shut down your VPN connection for any reason and then create a new one, you must re-configure your
3067
- * customer gateway with the new information returned from this call.
3068
- *
3069
- * @param string $type (Required) The type of VPN connection.
3070
- * @param string $customer_gateway_id (Required) The ID of the customer gateway.
3071
- * @param string $vpn_gateway_id (Required) The ID of the VPN gateway.
3072
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3073
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3074
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3075
- */
3076
- public function create_vpn_connection($type, $customer_gateway_id, $vpn_gateway_id, $opt = null)
3077
- {
3078
- if (!$opt) $opt = array();
3079
- $opt['Type'] = $type;
3080
- $opt['CustomerGatewayId'] = $customer_gateway_id;
3081
- $opt['VpnGatewayId'] = $vpn_gateway_id;
3082
-
3083
- return $this->authenticate('CreateVpnConnection', $opt, $this->hostname);
3084
- }
3085
-
3086
- /**
3087
- *
3088
- * Returns information about an attribute of an instance. Only one attribute can be specified per call.
3089
- *
3090
- * @param string $instance_id (Required) The ID of the instance whose instance attribute is being described.
3091
- * @param string $attribute (Required) The name of the attribute to describe. Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping
3092
- * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3093
- * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3094
- * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3095
- */
3096
- public function describe_instance_attribute($instance_id, $attribute, $opt = null)
3097
- {
3098
- if (!$opt) $opt = array();
3099
- $opt['InstanceId'] = $instance_id;
3100
- $opt['Attribute'] = $attribute;
3101
-
3102
- return $this->authenticate('DescribeInstanceAttribute', $opt, $this->hostname);
3103
- }
3104
  }
3105
 
3106
 
28
  *
29
  * Visit <a href="http://aws.amazon.com/ec2/">http://aws.amazon.com/ec2/</a> for more information.
30
  *
31
+ * @version Fri Mar 25 13:14:50 PDT 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/ec2/Amazon Elastic Compute Cloud
129
  */
130
  public function __construct($key = null, $secret_key = null)
131
  {
132
+ $this->api_version = '2011-01-01';
133
  $this->hostname = self::DEFAULT_URL;
134
 
135
  if (!$key && !defined('AWS_KEY'))
157
  *
158
  * @param string|array $instance_id (Required) The list of instances to terminate. Pass a string for a single value, or an indexed array for multiple values.
159
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
160
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
161
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
162
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
163
  */
173
  return $this->authenticate('RebootInstances', $opt, $this->hostname);
174
  }
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  /**
177
  *
178
  * The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.
185
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
186
  * </ul></li>
187
  * </ul></li>
188
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
189
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
190
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
191
  */
214
  return $this->authenticate('DescribeReservedInstances', $opt, $this->hostname);
215
  }
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  /**
218
  *
219
  * The DescribeAvailabilityZones operation describes availability zones that are currently available to the account and
220
  * their states.
221
  *
222
+ * Availability zones are not the same across accounts. The availability zone <code>us-east-1a</code> for account A is not
223
+ * necessarily the same as <code>us-east-1a</code> for account B. Zone assignments are mapped independently for each
224
+ * account.
225
  *
226
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
227
  * <li><code>ZoneName</code> - <code>string|array</code> - Optional - A list of the availability zone names to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
231
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
232
  * </ul></li>
233
  * </ul></li>
234
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
235
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
236
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
237
  */
269
  * <li><code>InstanceId</code> - <code>string</code> - Optional - The ID of the instance from which to detach the the specified volume. </li>
270
  * <li><code>Device</code> - <code>string</code> - Optional - The device name to which the volume is attached on the specified instance. </li>
271
  * <li><code>Force</code> - <code>boolean</code> - Optional - Forces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures. </li>
272
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
273
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
274
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
275
  */
287
  *
288
  * @param string $key_name (Required) The name of the Amazon EC2 key pair to delete.
289
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
290
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
291
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
292
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
293
  */
301
 
302
  /**
303
  *
304
+ * Disables monitoring for a running instance.
 
 
 
 
 
 
305
  *
306
+ * @param string|array $instance_id (Required) The list of Amazon EC2 instances on which to disable monitoring. Pass a string for a single value, or an indexed array for multiple values.
307
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
308
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
 
 
 
 
 
 
309
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
310
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
311
  */
312
+ public function unmonitor_instances($instance_id, $opt = null)
313
  {
314
  if (!$opt) $opt = array();
315
 
316
+ // Required parameter
317
+ $opt = array_merge($opt, CFComplexType::map(array(
318
+ 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
319
+ )));
 
 
 
 
 
 
 
 
 
 
 
 
 
320
 
321
+ return $this->authenticate('UnmonitorInstances', $opt, $this->hostname);
322
  }
323
 
324
  /**
325
  *
326
+ * Attaches a VPN gateway to a VPC. This is the last step required to get your VPC fully connected to your data center
327
+ * before launching instances in it. For more information, go to Process for Using Amazon VPC in the Amazon Virtual Private
328
+ * Cloud Developer Guide.
 
 
 
 
 
 
329
  *
330
+ * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to attach to the VPC.
331
+ * @param string $vpc_id (Required) The ID of the VPC to attach to the VPN gateway.
332
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
333
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
334
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
335
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
336
+ */
337
+ public function attach_vpn_gateway($vpn_gateway_id, $vpc_id, $opt = null)
338
+ {
339
+ if (!$opt) $opt = array();
340
+ $opt['VpnGatewayId'] = $vpn_gateway_id;
341
+ $opt['VpcId'] = $vpc_id;
342
+
343
+ return $this->authenticate('AttachVpnGateway', $opt, $this->hostname);
344
+ }
345
+
346
+ /**
347
  *
348
+ * Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance. AMIs that use an Amazon EBS root device boot
349
+ * faster than AMIs that use instance stores. They can be up to 1 TiB in size, use storage that persists on instance
350
+ * failure, and can be stopped and started.
351
  *
352
+ * @param string $instance_id (Required) The ID of the instance from which to create the new image.
353
+ * @param string $name (Required) The name for the new AMI being created.
354
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
355
+ * <li><code>Description</code> - <code>string</code> - Optional - The description for the new AMI being created. </li>
356
+ * <li><code>NoReboot</code> - <code>boolean</code> - Optional - By default this property is set to <code>false</code>, which means Amazon EC2 attempts to cleanly shut down the instance before image creation and reboots the instance afterwards. When set to true, Amazon EC2 will not shut down the instance before creating the image. When this option is used, file system integrity on the created image cannot be guaranteed. </li>
357
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
358
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
359
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
360
+ */
361
+ public function create_image($instance_id, $name, $opt = null)
362
+ {
363
+ if (!$opt) $opt = array();
364
+ $opt['InstanceId'] = $instance_id;
365
+ $opt['Name'] = $name;
366
+
367
+ return $this->authenticate('CreateImage', $opt, $this->hostname);
368
+ }
369
+
370
+ /**
371
+ *
372
+ * The DeleteSecurityGroup operation deletes a security group.
373
+ *
374
+ * If you attempt to delete a security group that contains instances, a fault is returned.
375
+ *
376
+ * If you attempt to delete a security group that is referenced by another security group, a fault is returned. For
377
+ * example, if security group B has a rule that allows access from security group A, security group A cannot be deleted
378
+ * until the allow rule is removed.
379
+ *
380
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
381
+ * <li><code>GroupName</code> - <code>string</code> - Optional - The name of the Amazon EC2 security group to delete. </li>
382
+ * <li><code>GroupId</code> - <code>string</code> - Optional - The ID of the Amazon EC2 security group to delete. </li>
383
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
384
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
385
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
386
+ */
387
+ public function delete_security_group($opt = null)
388
+ {
389
+ if (!$opt) $opt = array();
390
+
391
+ return $this->authenticate('DeleteSecurityGroup', $opt, $this->hostname);
392
+ }
393
+
394
+ /**
395
+ *
396
+ * This action applies only to security groups in a VPC; it's not supported for EC2 security groups. For information about
397
+ * Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide.
398
+ *
399
+ * The action adds one or more egress rules to a VPC security group. Specifically, this permits instances in a security
400
+ * group to send traffic to either one or more destination CIDR IP address ranges, or to one or more destination security
401
+ * groups in the same VPC.
402
+ *
403
+ * Each rule consists of the protocol (e.g., TCP), plus either a CIDR range, or a source group. For the TCP and UDP
404
+ * protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the
405
+ * ICMP type and code. You can use <code>-1</code> as a wildcard for the ICMP type or code.
406
+ *
407
+ * Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might
408
+ * occur.
409
+ *
410
+ * <b>Important: </b> For VPC security groups: You can have up to 50 rules total per group (covering both ingress and
411
+ * egress).
412
+ *
413
+ * @param string $group_id (Required) ID of the VPC security group to modify.
414
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
415
+ * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control. <ul>
416
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
417
+ * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> </li>
418
+ * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of <code>-1</code> indicates a wildcard (i.e., any ICMP type number). </li>
419
+ * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of <code>-1</code> indicates a wildcard (i.e., any ICMP code). </li>
420
+ * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
421
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
422
+ * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
423
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
424
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
425
+ * </ul></li>
426
+ * </ul></li>
427
+ * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
428
+ * </ul></li>
429
+ * </ul></li>
430
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
431
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
432
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
433
+ */
434
+ public function authorize_security_group_egress($group_id, $opt = null)
435
+ {
436
+ if (!$opt) $opt = array();
437
+ $opt['GroupId'] = $group_id;
438
+
439
+ // Optional parameter
440
+ if (isset($opt['IpPermissions']))
441
+ {
442
+ $opt = array_merge($opt, CFComplexType::map(array(
443
+ 'IpPermissions' => $opt['IpPermissions']
444
+ )));
445
+ unset($opt['IpPermissions']);
446
+ }
447
+
448
+ return $this->authenticate('AuthorizeSecurityGroupEgress', $opt, $this->hostname);
449
+ }
450
+
451
+ /**
452
+ * Retrieves the encrypted administrator password for the instances running Windows.
453
+ *
454
+ * The Windows password is only generated the first time an AMI is launched. It is not generated for
455
+ * rebundled AMIs or after the password is changed on an instance. The password is encrypted using the
456
+ * key pair that you provided.
457
+ *
458
+ * @param string $instance_id (Required) The ID of the instance for which you want the Windows administrator password.
459
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
460
+ * <li><code>DecryptPasswordWithKey</code> - <code>string</code> - Optional - Enables the decryption of the Administrator password for the given Microsoft Windows instance. Specifies the RSA private key that is associated with the keypair ID which was used to launch the Microsoft Windows instance.</li>
461
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
462
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
463
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
464
+ */
465
+ public function get_password_data($instance_id, $opt = null)
466
+ {
467
+ if (!$opt) $opt = array();
468
+ $opt['InstanceId'] = $instance_id;
469
+
470
+ // Unless DecryptPasswordWithKey is set, simply return the response.
471
+ if (!isset($opt['DecryptPasswordWithKey']))
472
+ {
473
+ return $this->authenticate('GetPasswordData', $opt, $this->hostname);
474
+ }
475
+
476
+ // Otherwise, decrypt the password.
477
+ else
478
+ {
479
+ // Get a resource representing the private key.
480
+ $private_key = openssl_pkey_get_private($opt['DecryptPasswordWithKey']);
481
+ unset($opt['DecryptPasswordWithKey']);
482
+
483
+ // Fetch the encrypted password.
484
+ $response = $this->authenticate('GetPasswordData', $opt, $this->hostname);
485
+ $data = trim((string) $response->body->passwordData);
486
+
487
+ // If it's Base64-encoded...
488
+ if ($this->util->is_base64($data))
489
+ {
490
+ // Base64-decode it, and decrypt it with the private key.
491
+ if (openssl_private_decrypt(base64_decode($data), $decrypted, $private_key))
492
+ {
493
+ // Replace the previous password data with the decrypted value.
494
+ $response->body->passwordData = $decrypted;
495
+ }
496
+ }
497
+
498
+ return $response;
499
+ }
500
+ }
501
+
502
+ /**
503
+ *
504
+ * Associates a set of DHCP options (that you've previously created) with the specified VPC. Or, associates the default
505
+ * DHCP options with the VPC. The default set consists of the standard EC2 host name, no domain name, no DNS server, no NTP
506
+ * server, and no NetBIOS server or node type. After you associate the options with the VPC, any existing instances and all
507
+ * new instances that you launch in that VPC use the options. For more information about the supported DHCP options and
508
+ * using them with Amazon VPC, go to Using DHCP Options in the Amazon Virtual Private Cloud Developer Guide.
509
+ *
510
+ * @param string $dhcp_options_id (Required) The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.
511
+ * @param string $vpc_id (Required) The ID of the VPC to associate the DHCP options with.
512
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
513
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
514
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
515
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
516
+ */
517
+ public function associate_dhcp_options($dhcp_options_id, $vpc_id, $opt = null)
518
+ {
519
+ if (!$opt) $opt = array();
520
+ $opt['DhcpOptionsId'] = $dhcp_options_id;
521
+ $opt['VpcId'] = $vpc_id;
522
+
523
+ return $this->authenticate('AssociateDhcpOptions', $opt, $this->hostname);
524
+ }
525
+
526
+ /**
527
+ *
528
+ * Stops an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their
529
+ * root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you
530
+ * are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist
531
+ * your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
532
+ *
533
+ * Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not
534
+ * preserve data stored in RAM.
535
+ *
536
+ * Performing this operation on an instance that uses an instance store as its root device returns an error.
537
+ *
538
+ * @param string|array $instance_id (Required) The list of Amazon EC2 instances to stop. Pass a string for a single value, or an indexed array for multiple values.
539
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
540
+ * <li><code>Force</code> - <code>boolean</code> - Optional - Forces the instance to stop. The instance will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances. </li>
541
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
542
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
543
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
544
+ */
545
+ public function stop_instances($instance_id, $opt = null)
546
+ {
547
+ if (!$opt) $opt = array();
548
+
549
+ // Required parameter
550
+ $opt = array_merge($opt, CFComplexType::map(array(
551
+ 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
552
+ )));
553
+
554
+ return $this->authenticate('StopInstances', $opt, $this->hostname);
555
+ }
556
+
557
+ /**
558
+ * Imports the public key from an RSA key pair created with a third-party tool. This operation differs
559
+ * from CreateKeyPair as the private key is never transferred between the caller and AWS servers.
560
+ *
561
+ * RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the <code>ssh-keygen</code>
562
+ * command line tool provided with the standard OpenSSH installation. Standard library support for RSA
563
+ * key pair creation is also available for Java, Ruby, Python, and many other programming languages.
564
+ *
565
+ * The following formats are supported:
566
+ *
567
+ * <ul>
568
+ * <li>OpenSSH public key format.</li>
569
+ * <li>Base64 encoded DER format.</li>
570
+ * <li>SSH public key file format as specified in <a href="http://tools.ietf.org/html/rfc4716">RFC 4716</a>.</li>
571
  * </ul>
572
  *
573
+ * @param string $key_name (Required) The unique name for the key pair.
574
+ * @param string $public_key_material (Required) The public key portion of the key pair being imported.
575
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
576
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
577
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
578
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
579
+ */
580
+ public function import_key_pair($key_name, $public_key_material, $opt = null)
581
+ {
582
+ if (!$opt) $opt = array();
583
+ $opt['KeyName'] = $key_name;
584
+ $opt['PublicKeyMaterial'] = $this->util->is_base64($public_key_material) ? $public_key_material : base64_encode($public_key_material);
585
+
586
+ return $this->authenticate('ImportKeyPair', $opt, $this->hostname);
587
+ }
588
+
589
+ /**
590
+ *
591
+ * The CreateSecurityGroup operation creates a new security group.
592
+ *
593
+ * Every instance is launched in a security group. If no security group is specified during launch, the instances are
594
+ * launched in the default security group. Instances within the same security group have unrestricted network access to
595
+ * each other. Instances will reject network access attempts from other instances in a different security group. As the
596
+ * owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and
597
+ * RevokeSecurityGroupIngress operations.
598
+ *
599
+ * @param string $group_name (Required) Name of the security group.
600
+ * @param string $group_description (Required) Description of the group. This is informational only.
601
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
602
+ * <li><code>VpcId</code> - <code>string</code> - Optional - ID of the VPC. </li>
603
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
604
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
605
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
606
+ */
607
+ public function create_security_group($group_name, $group_description, $opt = null)
608
+ {
609
+ if (!$opt) $opt = array();
610
+ $opt['GroupName'] = $group_name;
611
+ $opt['GroupDescription'] = $group_description;
612
+
613
+ return $this->authenticate('CreateSecurityGroup', $opt, $this->hostname);
614
+ }
615
+
616
+ /**
617
+ *
618
+ * Describes the Spot Price history.
619
+ *
620
+ * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
621
+ * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
622
+ * spot instance requests.
623
+ *
624
+ * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
625
+ * Elastic Compute Cloud User Guide.
626
+ *
627
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
628
+ * <li><code>StartTime</code> - <code>string</code> - Optional - The start date and time of the Spot Instance price history data. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
629
+ * <li><code>EndTime</code> - <code>string</code> - Optional - The end date and time of the Spot Instance price history data. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
630
+ * <li><code>InstanceType</code> - <code>string|array</code> - Optional - Specifies the instance type to return. Pass a string for a single value, or an indexed array for multiple values. </li>
631
+ * <li><code>ProductDescription</code> - <code>string|array</code> - Optional - The description of the AMI. Pass a string for a single value, or an indexed array for multiple values. </li>
632
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SpotPriceHistory. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
633
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
634
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
635
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
636
+ * </ul></li>
637
+ * </ul></li>
638
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
639
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
640
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
641
+ */
642
+ public function describe_spot_price_history($opt = null)
643
+ {
644
+ if (!$opt) $opt = array();
645
+
646
+ // Optional parameter
647
+ if (isset($opt['StartTime']))
648
+ {
649
+ $opt['StartTime'] = $this->util->convert_date_to_iso8601($opt['StartTime']);
650
+ }
651
+
652
+ // Optional parameter
653
+ if (isset($opt['EndTime']))
654
+ {
655
+ $opt['EndTime'] = $this->util->convert_date_to_iso8601($opt['EndTime']);
656
+ }
657
+
658
+ // Optional parameter
659
+ if (isset($opt['InstanceType']))
660
+ {
661
+ $opt = array_merge($opt, CFComplexType::map(array(
662
+ 'InstanceType' => (is_array($opt['InstanceType']) ? $opt['InstanceType'] : array($opt['InstanceType']))
663
+ )));
664
+ unset($opt['InstanceType']);
665
+ }
666
+
667
+ // Optional parameter
668
+ if (isset($opt['ProductDescription']))
669
+ {
670
+ $opt = array_merge($opt, CFComplexType::map(array(
671
+ 'ProductDescription' => (is_array($opt['ProductDescription']) ? $opt['ProductDescription'] : array($opt['ProductDescription']))
672
+ )));
673
+ unset($opt['ProductDescription']);
674
+ }
675
+
676
+ // Optional parameter
677
+ if (isset($opt['Filter']))
678
+ {
679
+ $opt = array_merge($opt, CFComplexType::map(array(
680
+ 'Filter' => $opt['Filter']
681
+ )));
682
+ unset($opt['Filter']);
683
+ }
684
+
685
+ return $this->authenticate('DescribeSpotPriceHistory', $opt, $this->hostname);
686
+ }
687
+
688
+ /**
689
+ *
690
+ * The DescribeRegions operation describes regions zones that are currently available to the account.
691
+ *
692
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
693
+ * <li><code>RegionName</code> - <code>string|array</code> - Optional - The optional list of regions to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
694
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Regions. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
695
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
696
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
697
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
698
+ * </ul></li>
699
+ * </ul></li>
700
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
701
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
702
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
703
+ */
704
+ public function describe_regions($opt = null)
705
+ {
706
+ if (!$opt) $opt = array();
707
+
708
+ // Optional parameter
709
+ if (isset($opt['RegionName']))
710
+ {
711
+ $opt = array_merge($opt, CFComplexType::map(array(
712
+ 'RegionName' => (is_array($opt['RegionName']) ? $opt['RegionName'] : array($opt['RegionName']))
713
+ )));
714
+ unset($opt['RegionName']);
715
+ }
716
+
717
+ // Optional parameter
718
+ if (isset($opt['Filter']))
719
+ {
720
+ $opt = array_merge($opt, CFComplexType::map(array(
721
+ 'Filter' => $opt['Filter']
722
+ )));
723
+ unset($opt['Filter']);
724
+ }
725
+
726
+ return $this->authenticate('DescribeRegions', $opt, $this->hostname);
727
+ }
728
+
729
+ /**
730
+ *
731
+ * Creates a set of DHCP options that you can then associate with one or more VPCs, causing all existing and new instances
732
+ * that you launch in those VPCs to use the set of DHCP options. The following table lists the individual DHCP options you
733
+ * can specify. For more information about the options, go to <a
734
+ * href="http://www.ietf.org/rfc/rfc2132.txt">http://www.ietf.org/rfc/rfc2132.txt</a>
735
+ *
736
+ * @param array $dhcp_configuration (Required) A set of one or more DHCP configurations. <ul>
737
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
738
+ * <li><code>Key</code> - <code>string</code> - Optional - Contains the name of a DHCP option. </li>
739
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains a set of values for a DHCP option. Pass a string for a single value, or an indexed array for multiple values. </li>
740
+ * </ul></li>
741
+ * </ul>
742
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
743
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
744
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
745
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
746
+ */
747
+ public function create_dhcp_options($dhcp_configuration, $opt = null)
748
+ {
749
+ if (!$opt) $opt = array();
750
+
751
+ // Required parameter
752
+ $opt = array_merge($opt, CFComplexType::map(array(
753
+ 'DhcpConfiguration' => (is_array($dhcp_configuration) ? $dhcp_configuration : array($dhcp_configuration))
754
+ )));
755
+
756
+ return $this->authenticate('CreateDhcpOptions', $opt, $this->hostname);
757
+ }
758
+
759
+ /**
760
+ *
761
+ * Resets permission settings for the specified snapshot.
762
+ *
763
+ * @param string $snapshot_id (Required) The ID of the snapshot whose attribute is being reset.
764
+ * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: <code>createVolumePermission</code>
765
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
766
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
767
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
768
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
769
+ */
770
+ public function reset_snapshot_attribute($snapshot_id, $attribute, $opt = null)
771
+ {
772
+ if (!$opt) $opt = array();
773
+ $opt['SnapshotId'] = $snapshot_id;
774
+ $opt['Attribute'] = $attribute;
775
+
776
+ return $this->authenticate('ResetSnapshotAttribute', $opt, $this->hostname);
777
+ }
778
+
779
+ /**
780
+ *
781
+ * Deletes a route from a route table in a VPC. For more information about route tables, go to <a
782
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
783
+ * Virtual Private Cloud User Guide.
784
+ *
785
+ * @param string $route_table_id (Required) The ID of the route table where the route will be deleted.
786
+ * @param string $destination_cidr_block (Required) The CIDR range for the route you want to delete. The value you specify must exactly match the CIDR for the route you want to delete.
787
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
788
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
789
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
790
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
791
+ */
792
+ public function delete_route($route_table_id, $destination_cidr_block, $opt = null)
793
+ {
794
+ if (!$opt) $opt = array();
795
+ $opt['RouteTableId'] = $route_table_id;
796
+ $opt['DestinationCidrBlock'] = $destination_cidr_block;
797
+
798
+ return $this->authenticate('DeleteRoute', $opt, $this->hostname);
799
+ }
800
+
801
+ /**
802
+ *
803
+ * Gives you information about your Internet gateways. You can filter the results to return information only about
804
+ * Internet gateways that match criteria you specify. For example, you could get information only about gateways with
805
+ * particular tags. The Internet gateway must match at least one of the specified values for it to be included in the
806
+ * results.
807
+ *
808
+ * You can specify multiple filters (e.g., the Internet gateway is attached to a particular VPC and is tagged with a
809
+ * particular value). The result includes information for a particular Internet gateway only if the gateway matches all
810
+ * your filters. If there's no match, no special message is returned; the response is simply empty.
811
+ *
812
+ * You can use wildcards with the filter values: an asterisk matches zero or more characters, and <code>?</code> matches
813
+ * exactly one character. You can escape special characters using a backslash before the character. For example, a value of
814
+ * <code>\*amazon\?\\</code> searches for the literal string <code>*amazon?\</code>.
815
+ *
816
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
817
+ * <li><code>InternetGatewayId</code> - <code>string|array</code> - Optional - One or more Internet gateway IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
818
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Internet Gateways. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
819
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
820
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
821
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
822
+ * </ul></li>
823
+ * </ul></li>
824
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
825
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
826
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
827
+ */
828
+ public function describe_internet_gateways($opt = null)
829
+ {
830
+ if (!$opt) $opt = array();
831
+
832
+ // Optional parameter
833
+ if (isset($opt['InternetGatewayId']))
834
+ {
835
+ $opt = array_merge($opt, CFComplexType::map(array(
836
+ 'InternetGatewayId' => (is_array($opt['InternetGatewayId']) ? $opt['InternetGatewayId'] : array($opt['InternetGatewayId']))
837
+ )));
838
+ unset($opt['InternetGatewayId']);
839
+ }
840
+
841
+ // Optional parameter
842
+ if (isset($opt['Filter']))
843
+ {
844
+ $opt = array_merge($opt, CFComplexType::map(array(
845
+ 'Filter' => $opt['Filter']
846
+ )));
847
+ unset($opt['Filter']);
848
+ }
849
+
850
+ return $this->authenticate('DescribeInternetGateways', $opt, $this->hostname);
851
+ }
852
+
853
+ /**
854
+ *
855
+ * The DescribeSecurityGroups operation returns information about security groups that you own.
856
+ *
857
+ * If you specify security group names, information about those security group is returned. Otherwise, information for all
858
+ * security group is returned. If you specify a group that does not exist, a fault is returned.
859
+ *
860
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
861
+ * <li><code>GroupName</code> - <code>string|array</code> - Optional - The optional list of Amazon EC2 security groups to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
862
+ * <li><code>GroupId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
863
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SecurityGroups. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
864
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
865
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
866
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
867
+ * </ul></li>
868
+ * </ul></li>
869
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
870
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
871
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
872
+ */
873
+ public function describe_security_groups($opt = null)
874
+ {
875
+ if (!$opt) $opt = array();
876
+
877
+ // Optional parameter
878
+ if (isset($opt['GroupName']))
879
+ {
880
+ $opt = array_merge($opt, CFComplexType::map(array(
881
+ 'GroupName' => (is_array($opt['GroupName']) ? $opt['GroupName'] : array($opt['GroupName']))
882
+ )));
883
+ unset($opt['GroupName']);
884
+ }
885
+
886
+ // Optional parameter
887
+ if (isset($opt['GroupId']))
888
+ {
889
+ $opt = array_merge($opt, CFComplexType::map(array(
890
+ 'GroupId' => (is_array($opt['GroupId']) ? $opt['GroupId'] : array($opt['GroupId']))
891
+ )));
892
+ unset($opt['GroupId']);
893
+ }
894
+
895
+ // Optional parameter
896
+ if (isset($opt['Filter']))
897
+ {
898
+ $opt = array_merge($opt, CFComplexType::map(array(
899
+ 'Filter' => $opt['Filter']
900
+ )));
901
+ unset($opt['Filter']);
902
+ }
903
+
904
+ return $this->authenticate('DescribeSecurityGroups', $opt, $this->hostname);
905
+ }
906
+
907
+ /**
908
+ *
909
+ * Detaches a VPN gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can
910
+ * confirm a VPN gateway has been completely detached from a VPC by describing the VPN gateway (any attachments to the VPN
911
+ * gateway are also described).
912
+ *
913
+ * You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC
914
+ * to the VPN gateway.
915
+ *
916
+ * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to detach from the VPC.
917
+ * @param string $vpc_id (Required) The ID of the VPC to detach the VPN gateway from.
918
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
919
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
920
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
921
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
922
+ */
923
+ public function detach_vpn_gateway($vpn_gateway_id, $vpc_id, $opt = null)
924
+ {
925
+ if (!$opt) $opt = array();
926
+ $opt['VpnGatewayId'] = $vpn_gateway_id;
927
+ $opt['VpcId'] = $vpc_id;
928
+
929
+ return $this->authenticate('DetachVpnGateway', $opt, $this->hostname);
930
+ }
931
+
932
+ /**
933
+ *
934
+ * The DeregisterImage operation deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.
935
+ *
936
+ * @param string $image_id (Required) The ID of the AMI to deregister.
937
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
938
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
939
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
940
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
941
+ */
942
+ public function deregister_image($image_id, $opt = null)
943
+ {
944
+ if (!$opt) $opt = array();
945
+ $opt['ImageId'] = $image_id;
946
+
947
+ return $this->authenticate('DeregisterImage', $opt, $this->hostname);
948
+ }
949
+
950
+ /**
951
+ *
952
+ * Describes the data feed for Spot Instances.
953
+ *
954
+ * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
955
+ * Elastic Compute Cloud User Guide.
956
+ *
957
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
958
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
959
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
960
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
961
+ */
962
+ public function describe_spot_datafeed_subscription($opt = null)
963
+ {
964
+ if (!$opt) $opt = array();
965
+
966
+ return $this->authenticate('DescribeSpotDatafeedSubscription', $opt, $this->hostname);
967
+ }
968
+
969
+ /**
970
+ *
971
+ * Deletes tags from the specified Amazon EC2 resources.
972
+ *
973
+ * @param string|array $resource_id (Required) A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc. Pass a string for a single value, or an indexed array for multiple values.
974
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
975
+ * <li><code>Tag</code> - <code>array</code> - Optional - The tags to delete from the specified resources. Each tag item consists of a key-value pair. If a tag is specified without a value, the tag and all of its values are deleted. <ul>
976
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
977
+ * <li><code>Key</code> - <code>string</code> - Optional - The tag's key. </li>
978
+ * <li><code>Value</code> - <code>string</code> - Optional - The tag's value. </li>
979
+ * </ul></li>
980
+ * </ul></li>
981
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
982
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
983
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
984
+ */
985
+ public function delete_tags($resource_id, $opt = null)
986
+ {
987
+ if (!$opt) $opt = array();
988
+
989
+ // Required parameter
990
+ $opt = array_merge($opt, CFComplexType::map(array(
991
+ 'ResourceId' => (is_array($resource_id) ? $resource_id : array($resource_id))
992
+ )));
993
+
994
+ // Optional parameter
995
+ if (isset($opt['Tag']))
996
+ {
997
+ $opt = array_merge($opt, CFComplexType::map(array(
998
+ 'Tag' => $opt['Tag']
999
+ )));
1000
+ unset($opt['Tag']);
1001
+ }
1002
+
1003
+ return $this->authenticate('DeleteTags', $opt, $this->hostname);
1004
+ }
1005
+
1006
+ /**
1007
+ *
1008
+ * Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, otherwise
1009
+ * Amazon VPC returns an error.
1010
+ *
1011
+ * @param string $subnet_id (Required) The ID of the subnet you want to delete.
1012
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1013
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1014
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1015
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1016
+ */
1017
+ public function delete_subnet($subnet_id, $opt = null)
1018
+ {
1019
+ if (!$opt) $opt = array();
1020
+ $opt['SubnetId'] = $subnet_id;
1021
+
1022
+ return $this->authenticate('DeleteSubnet', $opt, $this->hostname);
1023
+ }
1024
+
1025
+ /**
1026
+ *
1027
+ * Creates a new VPN gateway. A VPN gateway is the VPC-side endpoint for your VPN connection. You can create a VPN gateway
1028
+ * before creating the VPC itself.
1029
+ *
1030
+ * @param string $type (Required) The type of VPN connection this VPN gateway supports.
1031
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1032
+ * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone in which to create the VPN gateway. </li>
1033
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1034
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1035
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1036
+ */
1037
+ public function create_vpn_gateway($type, $opt = null)
1038
+ {
1039
+ if (!$opt) $opt = array();
1040
+ $opt['Type'] = $type;
1041
+
1042
+ return $this->authenticate('CreateVpnGateway', $opt, $this->hostname);
1043
+ }
1044
+
1045
+ /**
1046
+ *
1047
+ * Deletes a VPN gateway. Use this when you want to delete a VPC and all its associated components because you no longer
1048
+ * need them. We recommend that before you delete a VPN gateway, you detach it from the VPC and delete the VPN connection.
1049
+ * Note that you don't need to delete the VPN gateway if you just want to delete and re-create the VPN connection between
1050
+ * your VPC and data center.
1051
+ *
1052
+ * @param string $vpn_gateway_id (Required) The ID of the VPN gateway to delete.
1053
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1054
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1055
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1056
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1057
+ */
1058
+ public function delete_vpn_gateway($vpn_gateway_id, $opt = null)
1059
+ {
1060
+ if (!$opt) $opt = array();
1061
+ $opt['VpnGatewayId'] = $vpn_gateway_id;
1062
+
1063
+ return $this->authenticate('DeleteVpnGateway', $opt, $this->hostname);
1064
+ }
1065
+
1066
+ /**
1067
+ *
1068
+ * Attach a previously created volume to a running instance.
1069
+ *
1070
+ * @param string $volume_id (Required) The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.
1071
+ * @param string $instance_id (Required) The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.
1072
+ * @param string $device (Required) Specifies how the device is exposed to the instance (e.g., <code>/dev/sdh</code>).
1073
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1074
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1075
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1076
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1077
+ */
1078
+ public function attach_volume($volume_id, $instance_id, $device, $opt = null)
1079
+ {
1080
+ if (!$opt) $opt = array();
1081
+ $opt['VolumeId'] = $volume_id;
1082
+ $opt['InstanceId'] = $instance_id;
1083
+ $opt['Device'] = $device;
1084
+
1085
+ return $this->authenticate('AttachVolume', $opt, $this->hostname);
1086
+ }
1087
+
1088
+ /**
1089
+ *
1090
+ * Provides details of a user's registered licenses. Zero or more IDs may be specified on the call. When one or more
1091
+ * license IDs are specified, only data for the specified IDs are returned.
1092
+ *
1093
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1094
+ * <li><code>LicenseId</code> - <code>string|array</code> - Optional - Specifies the license registration for which details are to be returned. Pass a string for a single value, or an indexed array for multiple values. </li>
1095
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Licenses. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1096
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1097
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1098
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1099
+ * </ul></li>
1100
+ * </ul></li>
1101
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1102
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1103
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1104
+ */
1105
+ public function describe_licenses($opt = null)
1106
+ {
1107
+ if (!$opt) $opt = array();
1108
+
1109
+ // Optional parameter
1110
+ if (isset($opt['LicenseId']))
1111
+ {
1112
+ $opt = array_merge($opt, CFComplexType::map(array(
1113
+ 'LicenseId' => (is_array($opt['LicenseId']) ? $opt['LicenseId'] : array($opt['LicenseId']))
1114
+ )));
1115
+ unset($opt['LicenseId']);
1116
+ }
1117
+
1118
+ // Optional parameter
1119
+ if (isset($opt['Filter']))
1120
+ {
1121
+ $opt = array_merge($opt, CFComplexType::map(array(
1122
+ 'Filter' => $opt['Filter']
1123
+ )));
1124
+ unset($opt['Filter']);
1125
+ }
1126
+
1127
+ return $this->authenticate('DescribeLicenses', $opt, $this->hostname);
1128
+ }
1129
+
1130
+ /**
1131
+ *
1132
+ * Activates a specific number of licenses for a 90-day period. Activations can be done against a specific license ID.
1133
+ *
1134
+ * @param string $license_id (Required) Specifies the ID for the specific license to activate against.
1135
+ * @param integer $capacity (Required) Specifies the additional number of licenses to activate.
1136
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1137
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1138
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1139
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1140
+ */
1141
+ public function activate_license($license_id, $capacity, $opt = null)
1142
+ {
1143
+ if (!$opt) $opt = array();
1144
+ $opt['LicenseId'] = $license_id;
1145
+ $opt['Capacity'] = $capacity;
1146
+
1147
+ return $this->authenticate('ActivateLicense', $opt, $this->hostname);
1148
+ }
1149
+
1150
+ /**
1151
+ *
1152
+ * The ResetImageAttribute operation resets an attribute of an AMI to its default value.
1153
+ *
1154
+ * The productCodes attribute cannot be reset.
1155
+ *
1156
+ * @param string $image_id (Required) The ID of the AMI whose attribute is being reset.
1157
+ * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: <code>launchPermission</code>
1158
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1159
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1160
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1161
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1162
+ */
1163
+ public function reset_image_attribute($image_id, $attribute, $opt = null)
1164
+ {
1165
+ if (!$opt) $opt = array();
1166
+ $opt['ImageId'] = $image_id;
1167
+ $opt['Attribute'] = $attribute;
1168
+
1169
+ return $this->authenticate('ResetImageAttribute', $opt, $this->hostname);
1170
+ }
1171
+
1172
+ /**
1173
+ *
1174
+ * Gives you information about your VPN connections.
1175
+ *
1176
+ * We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic
1177
+ * information for configuring your customer gateway.
1178
+ *
1179
+ * You can filter the results to return information only about VPN connections that match criteria you specify. For
1180
+ * example, you could ask to get information about a particular VPN connection (or all) only if the VPN's state is pending
1181
+ * or available. You can specify multiple filters (e.g., the VPN connection is associated with a particular VPN gateway,
1182
+ * and the gateway's state is pending or available). The result includes information for a particular VPN connection only
1183
+ * if the VPN connection matches all your filters. If there's no match, no special message is returned; the response is
1184
+ * simply empty. The following table shows the available filters.
1185
+ *
1186
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1187
+ * <li><code>VpnConnectionId</code> - <code>string|array</code> - Optional - A VPN connection ID. More than one may be specified per request. Pass a string for a single value, or an indexed array for multiple values. </li>
1188
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for VPN Connections. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1189
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1190
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1191
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1192
+ * </ul></li>
1193
+ * </ul></li>
1194
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1195
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1196
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1197
+ */
1198
+ public function describe_vpn_connections($opt = null)
1199
+ {
1200
+ if (!$opt) $opt = array();
1201
+
1202
+ // Optional parameter
1203
+ if (isset($opt['VpnConnectionId']))
1204
+ {
1205
+ $opt = array_merge($opt, CFComplexType::map(array(
1206
+ 'VpnConnectionId' => (is_array($opt['VpnConnectionId']) ? $opt['VpnConnectionId'] : array($opt['VpnConnectionId']))
1207
+ )));
1208
+ unset($opt['VpnConnectionId']);
1209
+ }
1210
+
1211
+ // Optional parameter
1212
+ if (isset($opt['Filter']))
1213
+ {
1214
+ $opt = array_merge($opt, CFComplexType::map(array(
1215
+ 'Filter' => $opt['Filter']
1216
+ )));
1217
+ unset($opt['Filter']);
1218
+ }
1219
+
1220
+ return $this->authenticate('DescribeVpnConnections', $opt, $this->hostname);
1221
+ }
1222
+
1223
+ /**
1224
+ *
1225
+ * Create a snapshot of the volume identified by volume ID. A volume does not have to be detached at the time the snapshot
1226
+ * is taken.
1227
+ *
1228
+ * Snapshot creation requires that the system is in a consistent state. For instance, this means that if taking a snapshot
1229
+ * of a database, the tables must be read-only locked to ensure that the snapshot will not contain a corrupted version of
1230
+ * the database. Therefore, be careful when using this API to ensure that the system remains in the consistent state until
1231
+ * the create snapshot status has returned.
1232
+ *
1233
+ * @param string $volume_id (Required) The ID of the volume from which to create the snapshot.
1234
+ * @param string $description (Required) The description for the new snapshot.
1235
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1236
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1237
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1238
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1239
+ */
1240
+ public function create_snapshot($volume_id, $description, $opt = null)
1241
+ {
1242
+ if (!$opt) $opt = array();
1243
+ $opt['VolumeId'] = $volume_id;
1244
+ $opt['Description'] = $description;
1245
+
1246
+ return $this->authenticate('CreateSnapshot', $opt, $this->hostname);
1247
+ }
1248
+
1249
+ /**
1250
+ *
1251
+ * Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.
1252
+ *
1253
+ * @param string $volume_id (Required) The ID of the EBS volume to delete.
1254
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1255
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1256
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1257
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1258
+ */
1259
+ public function delete_volume($volume_id, $opt = null)
1260
+ {
1261
+ if (!$opt) $opt = array();
1262
+ $opt['VolumeId'] = $volume_id;
1263
+
1264
+ return $this->authenticate('DeleteVolume', $opt, $this->hostname);
1265
+ }
1266
+
1267
+ /**
1268
+ *
1269
+ * Gives you information about your VPCs. You can filter the results to return information only about VPCs that match
1270
+ * criteria you specify.
1271
+ *
1272
+ * For example, you could ask to get information about a particular VPC or VPCs (or all your VPCs) only if the VPC's state
1273
+ * is available. You can specify multiple filters (e.g., the VPC uses one of several sets of DHCP options, and the VPC's
1274
+ * state is available). The result includes information for a particular VPC only if the VPC matches all your filters.
1275
+ *
1276
+ * If there's no match, no special message is returned; the response is simply empty. The following table shows the
1277
+ * available filters.
1278
+ *
1279
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1280
+ * <li><code>VpcId</code> - <code>string|array</code> - Optional - The ID of a VPC you want information about. Pass a string for a single value, or an indexed array for multiple values. </li>
1281
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for VPCs. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1282
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1283
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1284
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1285
+ * </ul></li>
1286
+ * </ul></li>
1287
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1288
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1289
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1290
+ */
1291
+ public function describe_vpcs($opt = null)
1292
+ {
1293
+ if (!$opt) $opt = array();
1294
+
1295
+ // Optional parameter
1296
+ if (isset($opt['VpcId']))
1297
+ {
1298
+ $opt = array_merge($opt, CFComplexType::map(array(
1299
+ 'VpcId' => (is_array($opt['VpcId']) ? $opt['VpcId'] : array($opt['VpcId']))
1300
+ )));
1301
+ unset($opt['VpcId']);
1302
+ }
1303
+
1304
+ // Optional parameter
1305
+ if (isset($opt['Filter']))
1306
+ {
1307
+ $opt = array_merge($opt, CFComplexType::map(array(
1308
+ 'Filter' => $opt['Filter']
1309
+ )));
1310
+ unset($opt['Filter']);
1311
+ }
1312
+
1313
+ return $this->authenticate('DescribeVpcs', $opt, $this->hostname);
1314
+ }
1315
+
1316
+ /**
1317
+ *
1318
+ * Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have
1319
+ * persisted for at least a 90-day period.
1320
+ *
1321
+ * @param string $license_id (Required) Specifies the ID for the specific license to deactivate against.
1322
+ * @param integer $capacity (Required) Specifies the amount of capacity to deactivate against the license.
1323
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1324
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1325
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1326
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1327
+ */
1328
+ public function deactivate_license($license_id, $capacity, $opt = null)
1329
+ {
1330
+ if (!$opt) $opt = array();
1331
+ $opt['LicenseId'] = $license_id;
1332
+ $opt['Capacity'] = $capacity;
1333
+
1334
+ return $this->authenticate('DeactivateLicense', $opt, $this->hostname);
1335
+ }
1336
+
1337
+ /**
1338
+ *
1339
+ * The AssociateAddress operation associates an elastic IP address with an instance.
1340
+ *
1341
+ * If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an
1342
+ * idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
1343
+ *
1344
+ * @param string $instance_id (Required) The instance to associate with the IP address.
1345
+ * @param string $public_ip (Required) IP address that you are assigning to the instance.
1346
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1347
+ * <li><code>AllocationId</code> - <code>string</code> - Optional - The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC. </li>
1348
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1349
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1350
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1351
+ */
1352
+ public function associate_address($instance_id, $public_ip, $opt = null)
1353
+ {
1354
+ if (!$opt) $opt = array();
1355
+ $opt['InstanceId'] = $instance_id;
1356
+ $opt['PublicIp'] = $public_ip;
1357
+
1358
+ return $this->authenticate('AssociateAddress', $opt, $this->hostname);
1359
+ }
1360
+
1361
+ /**
1362
+ *
1363
+ * Deletes a customer gateway. You must delete the VPN connection before deleting the customer gateway.
1364
+ *
1365
+ * You can have a single active customer gateway per AWS account (active means that you've created a VPN connection with
1366
+ * that customer gateway). AWS might delete any customer gateway you leave inactive for an extended period of time.
1367
+ *
1368
+ * @param string $customer_gateway_id (Required) The ID of the customer gateway to delete.
1369
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1370
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1371
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1372
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1373
+ */
1374
+ public function delete_customer_gateway($customer_gateway_id, $opt = null)
1375
+ {
1376
+ if (!$opt) $opt = array();
1377
+ $opt['CustomerGatewayId'] = $customer_gateway_id;
1378
+
1379
+ return $this->authenticate('DeleteCustomerGateway', $opt, $this->hostname);
1380
+ }
1381
+
1382
+ /**
1383
+ *
1384
+ * Creates an entry (i.e., rule) in a network ACL with a rule number you specify. Each network ACL has a set of numbered
1385
+ * ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out
1386
+ * of a subnet associated with the ACL, Amazon VPC processes the entries in the ACL according to the rule numbers, in
1387
+ * ascending order.
1388
  *
1389
+ * <b>Important: </b> We recommend that you leave room between the rules (e.g., 100, 110, 120, etc.), and not number them
1390
+ * sequentially (101, 102, 103, etc.). This allows you to easily add a new rule between existing ones without having to
1391
+ * renumber the rules.
1392
  *
1393
+ * After you add an entry, you can't modify it; you must either replace it, or create a new entry and delete the old one.
 
 
1394
  *
1395
+ * For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
 
 
1396
  *
1397
+ * @param string $network_acl_id (Required) ID of the ACL where the entry will be created.
1398
+ * @param integer $rule_number (Required) Rule number to assign to the entry (e.g., 100). ACL entries are processed in ascending order by rule number.
1399
+ * @param string $protocol (Required) IP protocol the rule applies to. Valid Values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> or an IP protocol number.
1400
+ * @param string $rule_action (Required) Whether to allow or deny traffic that matches the rule. [Allowed values: <code>allow</code>, <code>deny</code>]
1401
+ * @param boolean $egress (Required) Whether this rule applies to egress traffic from the subnet (<code>true</code>) or ingress traffic to the subnet (<code>false</code>).
1402
+ * @param string $cidr_block (Required) The CIDR range to allow or deny, in CIDR notation (e.g., <code>172.16.0.0/24</code>).
1403
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1404
+ * <li><code>Icmp</code> - <code>array</code> - Optional - ICMP values. <ul>
1405
+ * <li><code>Type</code> - <code>integer</code> - Optional - For the ICMP protocol, the ICMP type. A value of <code>-1</code> is a wildcard meaning all types. Required if specifying <code>icmp</code> for the protocol. </li>
1406
+ * <li><code>Code</code> - <code>integer</code> - Optional - For the ICMP protocol, the ICMP code. A value of <code>-1</code> is a wildcard meaning all codes. Required if specifying <code>icmp</code> for the protocol. </li></ul></li>
1407
+ * <li><code>PortRange</code> - <code>array</code> - Optional - Port ranges. <ul>
1408
+ * <li><code>From</code> - <code>integer</code> - Optional - The first port in the range. Required if specifying <code>tcp</code> or <code>udp</code> for the protocol. </li>
1409
+ * <li><code>To</code> - <code>integer</code> - Optional - The last port in the range. Required if specifying <code>tcp</code> or <code>udp</code> for the protocol. </li></ul></li>
1410
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1411
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1412
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1413
+ */
1414
+ public function create_network_acl_entry($network_acl_id, $rule_number, $protocol, $rule_action, $egress, $cidr_block, $opt = null)
1415
+ {
1416
+ if (!$opt) $opt = array();
1417
+ $opt['NetworkAclId'] = $network_acl_id;
1418
+ $opt['RuleNumber'] = $rule_number;
1419
+ $opt['Protocol'] = $protocol;
1420
+ $opt['RuleAction'] = $rule_action;
1421
+ $opt['Egress'] = $egress;
1422
+ $opt['CidrBlock'] = $cidr_block;
1423
+
1424
+ // Optional parameter
1425
+ if (isset($opt['Icmp']))
1426
+ {
1427
+ $opt = array_merge($opt, CFComplexType::map(array(
1428
+ 'Icmp' => $opt['Icmp']
1429
+ )));
1430
+ unset($opt['Icmp']);
1431
+ }
1432
+
1433
+ // Optional parameter
1434
+ if (isset($opt['PortRange']))
1435
+ {
1436
+ $opt = array_merge($opt, CFComplexType::map(array(
1437
+ 'PortRange' => $opt['PortRange']
1438
+ )));
1439
+ unset($opt['PortRange']);
1440
+ }
1441
+
1442
+ return $this->authenticate('CreateNetworkAclEntry', $opt, $this->hostname);
1443
+ }
1444
+
1445
+ /**
1446
+ *
1447
+ * Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not
1448
+ * contain any running instances with elastic IP addresses. For more information about your VPC and Internet gateway, go to
1449
+ * Amazon Virtual Private Cloud User Guide.
1450
+ *
1451
+ * For more information about Amazon Virtual Private Cloud and Internet gateways, go to the Amazon Virtual Private Cloud
1452
+ * User Guide.
1453
  *
1454
+ * @param string $internet_gateway_id (Required) The ID of the Internet gateway to detach.
1455
+ * @param string $vpc_id (Required) The ID of the VPC.
1456
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1457
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1458
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1459
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1460
+ */
1461
+ public function detach_internet_gateway($internet_gateway_id, $vpc_id, $opt = null)
1462
+ {
1463
+ if (!$opt) $opt = array();
1464
+ $opt['InternetGatewayId'] = $internet_gateway_id;
1465
+ $opt['VpcId'] = $vpc_id;
1466
+
1467
+ return $this->authenticate('DetachInternetGateway', $opt, $this->hostname);
1468
+ }
1469
+
1470
+ /**
1471
+ *
1472
+ * Creates a new route table within a VPC. After you create a new route table, you can add routes and associate the table
1473
+ * with a subnet. For more information about route tables, go to <a
1474
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
1475
+ * Virtual Private Cloud User Guide.
1476
+ *
1477
+ * @param string $vpc_id (Required) The ID of the VPC where the route table will be created.
1478
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1479
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1480
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1481
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1482
+ */
1483
+ public function create_route_table($vpc_id, $opt = null)
1484
+ {
1485
+ if (!$opt) $opt = array();
1486
+ $opt['VpcId'] = $vpc_id;
1487
+
1488
+ return $this->authenticate('CreateRouteTable', $opt, $this->hostname);
1489
+ }
1490
+
1491
+ /**
1492
+ *
1493
+ * Describes the status of the indicated volume or, in lieu of any specified, all volumes belonging to the caller. Volumes
1494
+ * that have been deleted are not described.
1495
+ *
1496
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1497
+ * <li><code>VolumeId</code> - <code>string|array</code> - Optional - The optional list of EBS volumes to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
1498
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Volumes. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1499
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1500
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1501
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1502
  * </ul></li>
1503
  * </ul></li>
1504
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1505
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1506
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1507
  */
1508
+ public function describe_volumes($opt = null)
1509
  {
1510
  if (!$opt) $opt = array();
1511
 
1512
  // Optional parameter
1513
+ if (isset($opt['VolumeId']))
1514
  {
1515
  $opt = array_merge($opt, CFComplexType::map(array(
1516
+ 'VolumeId' => (is_array($opt['VolumeId']) ? $opt['VolumeId'] : array($opt['VolumeId']))
1517
  )));
1518
+ unset($opt['VolumeId']);
1519
  }
1520
 
1521
  // Optional parameter
1522
+ if (isset($opt['Filter']))
1523
  {
1524
  $opt = array_merge($opt, CFComplexType::map(array(
1525
+ 'Filter' => $opt['Filter']
1526
  )));
1527
+ unset($opt['Filter']);
1528
  }
1529
 
1530
+ return $this->authenticate('DescribeVolumes', $opt, $this->hostname);
1531
+ }
1532
+
1533
+ /**
1534
+ *
1535
+ * Gives you information about your route tables. You can filter the results to return information only about tables that
1536
+ * match criteria you specify. For example, you could get information only about a table associated with a particular
1537
+ * subnet. You can specify multiple values for the filter. The table must match at least one of the specified values for it
1538
+ * to be included in the results.
1539
+ *
1540
+ * You can specify multiple filters (e.g., the table has a particular route, and is associated with a particular subnet).
1541
+ * The result includes information for a particular table only if it matches all your filters. If there's no match, no
1542
+ * special message is returned; the response is simply empty.
1543
+ *
1544
+ * You can use wildcards with the filter values: an asterisk matches zero or more characters, and <code>?</code> matches
1545
+ * exactly one character. You can escape special characters using a backslash before the character. For example, a value of
1546
+ * <code>\*amazon\?\\</code> searches for the literal string <code>*amazon?\</code>.
1547
+ *
1548
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1549
+ * <li><code>RouteTableId</code> - <code>string|array</code> - Optional - One or more route table IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
1550
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Route Tables. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1551
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1552
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1553
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1554
+ * </ul></li>
1555
+ * </ul></li>
1556
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1557
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1558
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1559
+ */
1560
+ public function describe_route_tables($opt = null)
1561
+ {
1562
+ if (!$opt) $opt = array();
1563
+
1564
  // Optional parameter
1565
+ if (isset($opt['RouteTableId']))
1566
  {
1567
  $opt = array_merge($opt, CFComplexType::map(array(
1568
+ 'RouteTableId' => (is_array($opt['RouteTableId']) ? $opt['RouteTableId'] : array($opt['RouteTableId']))
1569
  )));
1570
+ unset($opt['RouteTableId']);
1571
  }
1572
 
1573
  // Optional parameter
1579
  unset($opt['Filter']);
1580
  }
1581
 
1582
+ return $this->authenticate('DescribeRouteTables', $opt, $this->hostname);
1583
  }
1584
 
1585
  /**
1586
  *
1587
+ * Enables monitoring for a running instance.
 
 
 
 
 
1588
  *
1589
+ * @param string|array $instance_id (Required) The list of Amazon EC2 instances on which to enable monitoring. Pass a string for a single value, or an indexed array for multiple values.
1590
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1591
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1592
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1593
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1594
  */
1595
+ public function monitor_instances($instance_id, $opt = null)
1596
  {
1597
  if (!$opt) $opt = array();
1598
 
1601
  'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
1602
  )));
1603
 
1604
+ return $this->authenticate('MonitorInstances', $opt, $this->hostname);
1605
  }
1606
 
1607
  /**
1608
  *
1609
+ * Gives you information about one or more sets of DHCP options. You can specify one or more DHCP options set IDs, or no
1610
+ * IDs (to describe all your sets of DHCP options). The returned information consists of:
1611
+ *
1612
+ * <ul> <li> The DHCP options set ID </li>
1613
+ *
1614
+ * <li> The options </li>
1615
+ *
1616
+ * </ul>
1617
  *
 
1618
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1619
+ * <li><code>DhcpOptionsId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
1620
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for DhcpOptions. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1621
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1622
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1623
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1624
+ * </ul></li>
1625
+ * </ul></li>
1626
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1627
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1628
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1629
  */
1630
+ public function describe_dhcp_options($opt = null)
1631
  {
1632
  if (!$opt) $opt = array();
1633
 
1634
+ // Optional parameter
1635
+ if (isset($opt['DhcpOptionsId']))
1636
+ {
1637
+ $opt = array_merge($opt, CFComplexType::map(array(
1638
+ 'DhcpOptionsId' => (is_array($opt['DhcpOptionsId']) ? $opt['DhcpOptionsId'] : array($opt['DhcpOptionsId']))
1639
+ )));
1640
+ unset($opt['DhcpOptionsId']);
1641
+ }
1642
 
1643
+ // Optional parameter
1644
+ if (isset($opt['Filter']))
1645
+ {
1646
+ $opt = array_merge($opt, CFComplexType::map(array(
1647
+ 'Filter' => $opt['Filter']
1648
+ )));
1649
+ unset($opt['Filter']);
1650
+ }
1651
+
1652
+ return $this->authenticate('DescribeDhcpOptions', $opt, $this->hostname);
1653
  }
1654
 
1655
  /**
1656
  *
1657
+ * Gives you information about the network ACLs in your VPC. You can filter the results to return information only about
1658
+ * ACLs that match criteria you specify. For example, you could get information only the ACL associated with a particular
1659
+ * subnet. The ACL must match at least one of the specified values for it to be included in the results.
1660
+ *
1661
+ * You can specify multiple filters (e.g., the ACL is associated with a particular subnet and has an egress entry that
1662
+ * denies traffic to a particular port). The result includes information for a particular ACL only if it matches all your
1663
+ * filters. If there's no match, no special message is returned; the response is simply empty.
1664
+ *
1665
+ * You can use wildcards with the filter values: an asterisk matches zero or more characters, and <code>?</code> matches
1666
+ * exactly one character. You can escape special characters using a backslash before the character. For example, a value of
1667
+ * <code>\*amazon\?\\</code> searches for the literal string <code>*amazon?\</code>.
1668
  *
 
 
1669
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1670
+ * <li><code>NetworkAclId</code> - <code>string|array</code> - Optional - One or more network ACL IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
1671
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Network ACLs. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1672
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1673
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1674
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1675
+ * </ul></li>
1676
+ * </ul></li>
1677
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1678
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1679
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1680
  */
1681
+ public function describe_network_acls($opt = null)
1682
  {
1683
  if (!$opt) $opt = array();
 
 
1684
 
1685
+ // Optional parameter
1686
+ if (isset($opt['NetworkAclId']))
1687
+ {
1688
+ $opt = array_merge($opt, CFComplexType::map(array(
1689
+ 'NetworkAclId' => (is_array($opt['NetworkAclId']) ? $opt['NetworkAclId'] : array($opt['NetworkAclId']))
1690
+ )));
1691
+ unset($opt['NetworkAclId']);
1692
+ }
1693
+
1694
+ // Optional parameter
1695
+ if (isset($opt['Filter']))
1696
+ {
1697
+ $opt = array_merge($opt, CFComplexType::map(array(
1698
+ 'Filter' => $opt['Filter']
1699
+ )));
1700
+ unset($opt['Filter']);
1701
+ }
1702
+
1703
+ return $this->authenticate('DescribeNetworkAcls', $opt, $this->hostname);
1704
  }
1705
 
1706
  /**
1707
  *
1708
+ * The DescribeBundleTasks operation describes in-progress and recent bundle tasks. Complete and failed tasks are removed
1709
+ * from the list a short time after completion. If no bundle ids are given, all bundle tasks are returned.
1710
  *
 
 
1711
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1712
+ * <li><code>BundleId</code> - <code>string|array</code> - Optional - The list of bundle task IDs to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
1713
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for BundleTasks. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
1714
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1715
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
1716
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
1717
+ * </ul></li>
1718
+ * </ul></li>
1719
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1720
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1721
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1722
+ */
1723
+ public function describe_bundle_tasks($opt = null)
1724
+ {
1725
+ if (!$opt) $opt = array();
1726
+
1727
+ // Optional parameter
1728
+ if (isset($opt['BundleId']))
1729
+ {
1730
+ $opt = array_merge($opt, CFComplexType::map(array(
1731
+ 'BundleId' => (is_array($opt['BundleId']) ? $opt['BundleId'] : array($opt['BundleId']))
1732
+ )));
1733
+ unset($opt['BundleId']);
1734
+ }
1735
+
1736
+ // Optional parameter
1737
+ if (isset($opt['Filter']))
1738
+ {
1739
+ $opt = array_merge($opt, CFComplexType::map(array(
1740
+ 'Filter' => $opt['Filter']
1741
+ )));
1742
+ unset($opt['Filter']);
1743
+ }
1744
+
1745
+ return $this->authenticate('DescribeBundleTasks', $opt, $this->hostname);
1746
+ }
1747
+
1748
+ /**
1749
+ *
1750
+ * The RevokeSecurityGroupIngress operation revokes permissions from a security group. The permissions used to revoke must
1751
+ * be specified using the same values used to grant the permissions.
1752
+ *
1753
+ * Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the request (by IP range or an Amazon EC2
1754
+ * user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).
1755
+ *
1756
+ * Permission changes are quickly propagated to instances within the security group. However, depending on the number of
1757
+ * instances in the group, a small delay might occur.
1758
+ *
1759
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1760
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups. </li>
1761
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups. </li>
1762
+ * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to revoke on the specified security group. For an IP permission to be removed, it must exactly match one of the IP permissions you specify in this list. Specifying permissions through IP permissions is the preferred way of revoking permissions since it offers more flexibility and control. <ul>
1763
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1764
+ * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> </li>
1765
+ * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of <code>-1</code> indicates a wildcard (i.e., any ICMP type number). </li>
1766
+ * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of <code>-1</code> indicates a wildcard (i.e., any ICMP code). </li>
1767
+ * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
1768
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
1769
+ * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
1770
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
1771
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
1772
+ * </ul></li>
1773
  * </ul></li>
1774
+ * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
 
1775
  * </ul></li>
1776
  * </ul></li>
1777
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1778
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1779
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1780
  */
1781
+ public function revoke_security_group_ingress($opt = null)
1782
  {
1783
  if (!$opt) $opt = array();
 
 
1784
 
1785
  // Optional parameter
1786
+ if (isset($opt['IpPermissions']))
1787
  {
1788
  $opt = array_merge($opt, CFComplexType::map(array(
1789
+ 'IpPermissions' => $opt['IpPermissions']
1790
  )));
1791
+ unset($opt['IpPermissions']);
1792
  }
1793
 
1794
+ return $this->authenticate('RevokeSecurityGroupIngress', $opt, $this->hostname);
1795
  }
1796
 
1797
  /**
1798
+ * The GetConsoleOutput operation retrieves console output for the specified instance.
1799
  *
1800
+ * Instance console output is buffered and posted shortly after instance boot, reboot, and
1801
+ * termination. Amazon EC2 preserves the most recent 64 KB output which will be available for at least
1802
+ * one hour after the most recent post.
1803
  *
1804
+ * @param string $instance_id (Required) The ID of the instance for which you want console output.
1805
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1806
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1807
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
1808
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response. The value of <code>output</code> is automatically Base64-decoded.
1809
  */
1810
+ public function get_console_output($instance_id, $opt = null)
1811
  {
1812
  if (!$opt) $opt = array();
1813
+ $opt['InstanceId'] = $instance_id;
1814
 
1815
+ $response = $this->authenticate('GetConsoleOutput', $opt, $this->hostname);
1816
+
1817
+ // Automatically Base64-decode the <output> value.
1818
+ if ($this->util->is_base64((string) $response->body->output))
1819
+ {
1820
+ $response->body->output = base64_decode($response->body->output);
1821
+ }
1822
+
1823
+ return $response;
1824
  }
1825
 
1826
  /**
1827
  *
1828
+ * Creates a new Internet gateway in your AWS account. After creating the Internet gateway, you then attach it to a VPC
1829
+ * using <code>AttachInternetGateway</code>. For more information about your VPC and Internet gateway, go to Amazon Virtual
1830
+ * Private Cloud User Guide.
 
 
 
 
1831
  *
 
1832
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1833
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1834
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1835
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1836
  */
1837
+ public function create_internet_gateway($opt = null)
1838
  {
1839
  if (!$opt) $opt = array();
 
1840
 
1841
+ return $this->authenticate('CreateInternetGateway', $opt, $this->hostname);
1842
  }
1843
 
1844
  /**
1845
  *
1846
+ * The ModifyImageAttribute operation modifies an attribute of an AMI.
 
 
1847
  *
1848
+ * @param string $image_id (Required) The ID of the AMI whose attribute you want to modify.
1849
+ * @param string $attribute (Required) The name of the AMI attribute you want to modify. Available attributes: <code>launchPermission</code>, <code>productCodes</code>
1850
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1851
+ * <li><code>OperationType</code> - <code>string</code> - Optional - The type of operation being requested. Available operation types: <code>add</code>, <code>remove</code> </li>
1852
+ * <li><code>UserId</code> - <code>string|array</code> - Optional - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
1853
+ * <li><code>UserGroup</code> - <code>string|array</code> - Optional - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified. Available user groups: <code>all</code> Pass a string for a single value, or an indexed array for multiple values. </li>
1854
+ * <li><code>ProductCode</code> - <code>string|array</code> - Optional - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
1855
+ * <li><code>Value</code> - <code>string</code> - Optional - The value of the attribute being modified. Only valid when the description attribute is being modified. </li>
1856
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1857
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1858
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1859
  */
1860
+ public function modify_image_attribute($image_id, $attribute, $opt = null)
1861
  {
1862
  if (!$opt) $opt = array();
1863
+ $opt['ImageId'] = $image_id;
1864
+ $opt['Attribute'] = $attribute;
1865
 
1866
+ // Optional parameter
1867
+ if (isset($opt['UserId']))
1868
+ {
1869
+ $opt = array_merge($opt, CFComplexType::map(array(
1870
+ 'UserId' => (is_array($opt['UserId']) ? $opt['UserId'] : array($opt['UserId']))
1871
+ )));
1872
+ unset($opt['UserId']);
1873
+ }
1874
+
1875
+ // Optional parameter
1876
+ if (isset($opt['UserGroup']))
1877
+ {
1878
+ $opt = array_merge($opt, CFComplexType::map(array(
1879
+ 'UserGroup' => (is_array($opt['UserGroup']) ? $opt['UserGroup'] : array($opt['UserGroup']))
1880
+ )));
1881
+ unset($opt['UserGroup']);
1882
+ }
1883
+
1884
+ // Optional parameter
1885
+ if (isset($opt['ProductCode']))
1886
+ {
1887
+ $opt = array_merge($opt, CFComplexType::map(array(
1888
+ 'ProductCode' => (is_array($opt['ProductCode']) ? $opt['ProductCode'] : array($opt['ProductCode']))
1889
+ )));
1890
+ unset($opt['ProductCode']);
1891
+ }
1892
+
1893
+ return $this->authenticate('ModifyImageAttribute', $opt, $this->hostname);
1894
  }
1895
 
1896
  /**
1897
  *
1898
+ * Provides information to AWS about your customer gateway device. The customer gateway is the appliance at your end of
1899
+ * the VPN connection (compared to the VPN gateway, which is the device at the AWS side of the VPN connection). You can
1900
+ * have a single active customer gateway per AWS account (active means that you've created a VPN connection to use with the
1901
+ * customer gateway). AWS might delete any customer gateway that you create with this operation if you leave it inactive
1902
+ * for an extended period of time.
1903
  *
1904
+ * You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be
1905
+ * static.
 
1906
  *
1907
+ * You must also provide the device's Border Gateway Protocol (BGP) Autonomous System Number (ASN). You can use an
1908
+ * existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534
1909
+ * range). For more information about ASNs, go to <a
1910
+ * .wikipedia.org/wiki/Autonomous_system_%28Internet%29">http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29</a>.
1911
  *
1912
+ * @param string $type (Required) The type of VPN connection this customer gateway supports.
1913
+ * @param string $ip_address (Required) The Internet-routable IP address for the customer gateway's outside interface. The address must be static
1914
+ * @param integer $bgp_asn (Required) The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
1915
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1916
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1917
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1918
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1919
  */
1920
+ public function create_customer_gateway($type, $ip_address, $bgp_asn, $opt = null)
1921
  {
1922
  if (!$opt) $opt = array();
1923
+ $opt['Type'] = $type;
1924
+ $opt['IpAddress'] = $ip_address;
1925
+ $opt['BgpAsn'] = $bgp_asn;
 
 
 
 
 
 
 
1926
 
1927
+ return $this->authenticate('CreateCustomerGateway', $opt, $this->hostname);
1928
  }
1929
 
1930
  /**
1931
  *
1932
+ * Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed
1933
+ * per account.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1934
  *
1935
+ * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
1936
+ * Elastic Compute Cloud User Guide.
 
1937
  *
1938
+ * @param string $bucket (Required) The Amazon S3 bucket in which to store the Spot Instance datafeed.
1939
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1940
+ * <li><code>Prefix</code> - <code>string</code> - Optional - The prefix that is prepended to datafeed files. </li>
1941
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
 
 
 
 
 
1942
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1943
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1944
  */
1945
+ public function create_spot_datafeed_subscription($bucket, $opt = null)
1946
  {
1947
  if (!$opt) $opt = array();
1948
+ $opt['Bucket'] = $bucket;
1949
 
1950
+ return $this->authenticate('CreateSpotDatafeedSubscription', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1951
  }
1952
 
1953
  /**
1954
  *
1955
+ * Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. For more information
1956
+ * about your VPC and Internet gateway, go to the Amazon Virtual Private Cloud User Guide.
 
 
 
1957
  *
1958
+ * @param string $internet_gateway_id (Required) The ID of the Internet gateway to attach.
1959
+ * @param string $vpc_id (Required) The ID of the VPC.
1960
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1961
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1962
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1963
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1964
  */
1965
+ public function attach_internet_gateway($internet_gateway_id, $vpc_id, $opt = null)
1966
  {
1967
  if (!$opt) $opt = array();
1968
+ $opt['InternetGatewayId'] = $internet_gateway_id;
1969
  $opt['VpcId'] = $vpc_id;
1970
 
1971
+ return $this->authenticate('AttachInternetGateway', $opt, $this->hostname);
1972
  }
1973
 
1974
  /**
 
1975
  *
1976
+ * Deletes a VPN connection. Use this if you want to delete a VPC and all its associated components. Another reason to use
1977
+ * this operation is if you believe the tunnel credentials for your VPN connection have been compromised. In that
1978
+ * situation, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC
1979
+ * or VPN gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new
1980
+ * configuration information returned with the new VPN connection ID.
1981
  *
1982
+ * If you're deleting the VPC and all its associated parts, we recommend you detach the VPN gateway from the VPC and
1983
+ * delete the VPC before deleting the VPN connection.
1984
+ *
1985
+ * @param string $vpn_connection_id (Required) The ID of the VPN connection to delete
1986
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1987
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1988
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1989
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1990
  */
1991
+ public function delete_vpn_connection($vpn_connection_id, $opt = null)
1992
  {
1993
  if (!$opt) $opt = array();
1994
+ $opt['VpnConnectionId'] = $vpn_connection_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1995
 
1996
+ return $this->authenticate('DeleteVpnConnection', $opt, $this->hostname);
 
1997
  }
1998
 
1999
  /**
2000
  *
2001
+ * Creates a new VPN connection between an existing VPN gateway and customer gateway. The only supported connection type
2002
+ * is ipsec.1.
2003
+ *
2004
+ * The response includes information that you need to configure your customer gateway, in XML format. We recommend you use
2005
+ * the command line version of this operation (<code>ec2-create-vpn-connection</code>), which takes an <code>-f</code>
2006
+ * option (for format) and returns configuration information formatted as expected by the vendor you specified, or in a
2007
+ * generic, human readable format. For information about the command, go to <code>ec2-create-vpn-connection</code> in the
2008
+ * Amazon Virtual Private Cloud Command Line Reference.
2009
  *
2010
+ * We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic
2011
+ * information for configuring your customer gateway.
2012
  *
2013
+ * If you decide to shut down your VPN connection for any reason and then create a new one, you must re-configure your
2014
+ * customer gateway with the new information returned from this call.
2015
+ *
2016
+ * @param string $type (Required) The type of VPN connection.
2017
+ * @param string $customer_gateway_id (Required) The ID of the customer gateway.
2018
+ * @param string $vpn_gateway_id (Required) The ID of the VPN gateway.
2019
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2020
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2021
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2022
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2023
  */
2024
+ public function create_vpn_connection($type, $customer_gateway_id, $vpn_gateway_id, $opt = null)
2025
  {
2026
  if (!$opt) $opt = array();
2027
+ $opt['Type'] = $type;
2028
+ $opt['CustomerGatewayId'] = $customer_gateway_id;
2029
+ $opt['VpnGatewayId'] = $vpn_gateway_id;
2030
 
2031
+ return $this->authenticate('CreateVpnConnection', $opt, $this->hostname);
2032
  }
2033
 
2034
  /**
2035
  *
2036
+ * Returns information about an attribute of an instance. Only one attribute can be specified per call.
 
 
 
 
 
 
 
 
2037
  *
2038
+ * @param string $instance_id (Required) The ID of the instance whose instance attribute is being described.
2039
+ * @param string $attribute (Required) The name of the attribute to describe. Available attribute names: <code>instanceType</code>, <code>kernel</code>, <code>ramdisk</code>, <code>userData</code>, <code>disableApiTermination</code>, <code>instanceInitiatedShutdownBehavior</code>, <code>rootDeviceName</code>, <code>blockDeviceMapping</code>
2040
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2041
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2042
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2043
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2044
  */
2045
+ public function describe_instance_attribute($instance_id, $attribute, $opt = null)
2046
  {
2047
  if (!$opt) $opt = array();
2048
+ $opt['InstanceId'] = $instance_id;
2049
+ $opt['Attribute'] = $attribute;
2050
 
2051
+ return $this->authenticate('DescribeInstanceAttribute', $opt, $this->hostname);
 
 
 
 
 
2052
  }
2053
 
2054
  /**
2055
  *
2056
+ * Gives you information about your subnets. You can filter the results to return information only about subnets that
2057
+ * match criteria you specify.
2058
+ *
2059
+ * For example, you could ask to get information about a particular subnet (or all) only if the subnet's state is
2060
+ * available. You can specify multiple filters (e.g., the subnet is in a particular VPC, and the subnet's state is
2061
+ * available).
2062
+ *
2063
+ * The result includes information for a particular subnet only if the subnet matches all your filters. If there's no
2064
+ * match, no special message is returned; the response is simply empty. The following table shows the available filters.
2065
  *
2066
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2067
+ * <li><code>SubnetId</code> - <code>string|array</code> - Optional - A set of one or more subnet IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
2068
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Subnets. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2069
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2070
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2071
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2072
  * </ul></li>
2073
  * </ul></li>
2074
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2075
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2076
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2077
  */
2078
+ public function describe_subnets($opt = null)
2079
  {
2080
  if (!$opt) $opt = array();
2081
 
2082
  // Optional parameter
2083
+ if (isset($opt['SubnetId']))
2084
  {
2085
  $opt = array_merge($opt, CFComplexType::map(array(
2086
+ 'SubnetId' => (is_array($opt['SubnetId']) ? $opt['SubnetId'] : array($opt['SubnetId']))
2087
  )));
2088
+ unset($opt['SubnetId']);
2089
  }
2090
 
2091
  // Optional parameter
2097
  unset($opt['Filter']);
2098
  }
2099
 
2100
+ return $this->authenticate('DescribeSubnets', $opt, $this->hostname);
2101
  }
2102
 
2103
  /**
 
 
2104
  *
2105
+ * The RunInstances operation launches a specified number of instances.
 
 
2106
  *
2107
+ * If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch. If there is insufficient capacity
2108
+ * to launch the maximum number of AMIs you request, Amazon EC2 launches as many as possible to satisfy the requested
2109
+ * maximum values.
2110
  *
2111
+ * Every instance is launched in a security group. If you do not specify a security group at launch, the instances start
2112
+ * in your default security group. For more information on creating security groups, see CreateSecurityGroup.
 
 
 
2113
  *
2114
+ * An optional instance type can be specified. For information about instance types, see Instance Types.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2115
  *
2116
+ * You can provide an optional key pair ID for each image in the launch request (for more information, see CreateKeyPair).
2117
+ * All instances that are created from images that use this key pair will have access to the associated public key at boot.
2118
+ * You can use this key to provide secure access to an instance of an image on a per-instance basis. Amazon EC2 public
2119
+ * images use this feature to provide secure access without passwords.
2120
  *
2121
+ * Launching public images without a key pair ID will leave them inaccessible.
 
 
2122
  *
2123
+ * The public key material is made available to the instance at boot time by placing it in the <code>openssh_id.pub</code>
2124
+ * file on a logical device that is exposed to the instance as <code>/dev/sda2</code> (the ephemeral store). The format of
2125
+ * this file is suitable for use as an entry within <code>~/.ssh/authorized_keys</code> (the OpenSSH format). This can be
2126
+ * done at boot (e.g., as part of <code>rc.local</code>) allowing for secure access without passwords.
2127
  *
2128
+ * Optional user data can be provided in the launch request. All instances that collectively comprise the launch request
2129
+ * have access to this data For more information, see Instance Metadata.
2130
+ *
2131
+ *
2132
+ * If any of the AMIs have a product code attached for which the user has not subscribed, the RunInstances call will fail.
2133
+ *
2134
+ * We strongly recommend using the 2.6.18 Xen stock kernel with the <code>c1.medium</code> and <code>c1.xlarge</code>
2135
+ * instances. Although the default Amazon EC2 kernels will work, the new kernels provide greater stability and performance
2136
+ * for these instance types. For more information about kernels, see Kernels, RAM Disks, and Block Device Mappings.
2137
+ *
2138
+ * @param string $image_id (Required) Unique ID of a machine image, returned by a call to DescribeImages.
2139
+ * @param integer $min_count (Required) Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.
2140
+ * @param integer $max_count (Required) Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead. Between 1 and the maximum number allowed for your account (default: 20).
2141
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2142
+ * <li><code>KeyName</code> - <code>string</code> - Optional - The name of the key pair. </li>
2143
+ * <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - The names of the security groups into which the instances will be launched. Pass a string for a single value, or an indexed array for multiple values. </li>
2144
+ * <li><code>SecurityGroupId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
2145
+ * <li><code>UserData</code> - <code>string</code> - Optional - Specifies additional information to make available to the instance(s). </li>
2146
+ * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type for the launched instances. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>cc1.4xlarge</code>, <code>cg1.4xlarge</code>]</li>
2147
+ * <li><code>Placement</code> - <code>array</code> - Optional - Specifies the placement constraints (Availability Zones) for launching the instances. <ul>
2148
+ * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs. </li>
2149
+ * <li><code>GroupName</code> - <code>string</code> - Optional - The name of a PlacementGroup. </li></ul></li>
2150
+ * <li><code>KernelId</code> - <code>string</code> - Optional - The ID of the kernel with which to launch the instance. </li>
2151
+ * <li><code>RamdiskId</code> - <code>string</code> - Optional - The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID. </li>
2152
+ * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName. <ul>
2153
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2154
+ * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
2155
+ * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., <code>/dev/sdh</code>). </li>
2156
+ * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
2157
+ * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
2158
+ * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
2159
+ * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
2160
+ * </ul></li>
2161
+ * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
2162
  * </ul></li>
2163
  * </ul></li>
2164
+ * <li><code>Monitoring.Enabled</code> - <code>boolean</code> - Optional - Enables monitoring for the instance. </li>
2165
+ * <li><code>SubnetId</code> - <code>string</code> - Optional - Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. </li>
2166
+ * <li><code>DisableApiTermination</code> - <code>boolean</code> - Optional - Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs. </li>
2167
+ * <li><code>InstanceInitiatedShutdownBehavior</code> - <code>string</code> - Optional - Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down. </li>
2168
+ * <li><code>License</code> - <code>array</code> - Optional - Specifies active licenses in use and attached to an Amazon EC2 instance. <ul>
2169
+ * <li><code>Pool</code> - <code>string</code> - Optional - The license pool from which to take a license when starting Amazon EC2 instances in the associated <code>RunInstances</code> request. </li></ul></li>
2170
+ * <li><code>PrivateIpAddress</code> - <code>string</code> - Optional - If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet. </li>
2171
+ * <li><code>ClientToken</code> - <code>string</code> - Optional - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide. </li>
2172
+ * <li><code>AdditionalInfo</code> - <code>string</code> - Optional - </li>
2173
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2174
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2175
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2176
  */
2177
+ public function run_instances($image_id, $min_count, $max_count, $opt = null)
2178
  {
2179
  if (!$opt) $opt = array();
2180
+ $opt['ImageId'] = $image_id;
2181
+ $opt['MinCount'] = $min_count;
2182
+ $opt['MaxCount'] = $max_count;
2183
 
2184
  // Optional parameter
2185
+ if (isset($opt['SecurityGroup']))
2186
  {
2187
+ $opt = array_merge($opt, CFComplexType::map(array(
2188
+ 'SecurityGroup' => (is_array($opt['SecurityGroup']) ? $opt['SecurityGroup'] : array($opt['SecurityGroup']))
2189
+ )));
2190
+ unset($opt['SecurityGroup']);
2191
  }
2192
 
2193
  // Optional parameter
2194
+ if (isset($opt['SecurityGroupId']))
2195
  {
2196
+ $opt = array_merge($opt, CFComplexType::map(array(
2197
+ 'SecurityGroupId' => (is_array($opt['SecurityGroupId']) ? $opt['SecurityGroupId'] : array($opt['SecurityGroupId']))
2198
+ )));
2199
+ unset($opt['SecurityGroupId']);
2200
  }
2201
 
2202
  // Optional parameter
2203
+ if (isset($opt['Placement']))
2204
  {
2205
  $opt = array_merge($opt, CFComplexType::map(array(
2206
+ 'Placement' => $opt['Placement']
2207
  )));
2208
+ unset($opt['Placement']);
2209
  }
2210
 
2211
  // Optional parameter
2212
+ if (isset($opt['BlockDeviceMapping']))
2213
  {
2214
  $opt = array_merge($opt, CFComplexType::map(array(
2215
+ 'BlockDeviceMapping' => $opt['BlockDeviceMapping']
2216
  )));
2217
+ unset($opt['BlockDeviceMapping']);
2218
  }
2219
 
2220
  // Optional parameter
2221
+ if (isset($opt['License']))
2222
  {
2223
  $opt = array_merge($opt, CFComplexType::map(array(
2224
+ 'License' => $opt['License']
2225
  )));
2226
+ unset($opt['License']);
2227
  }
2228
 
2229
+ return $this->authenticate('RunInstances', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2230
  }
2231
 
2232
  /**
2233
  *
2234
+ * Returns information about one or more PlacementGroup instances in a user's account.
2235
  *
2236
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2237
+ * <li><code>GroupName</code> - <code>string|array</code> - Optional - The name of the <code>PlacementGroup</code>. Pass a string for a single value, or an indexed array for multiple values. </li>
2238
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Placement Groups. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2239
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2240
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2241
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2242
  * </ul></li>
2243
  * </ul></li>
2244
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2245
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2246
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2247
  */
2248
+ public function describe_placement_groups($opt = null)
2249
  {
2250
  if (!$opt) $opt = array();
2251
 
2252
  // Optional parameter
2253
+ if (isset($opt['GroupName']))
2254
  {
2255
  $opt = array_merge($opt, CFComplexType::map(array(
2256
+ 'GroupName' => (is_array($opt['GroupName']) ? $opt['GroupName'] : array($opt['GroupName']))
2257
  )));
2258
+ unset($opt['GroupName']);
2259
  }
2260
 
2261
  // Optional parameter
2267
  unset($opt['Filter']);
2268
  }
2269
 
2270
+ return $this->authenticate('DescribePlacementGroups', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2271
  }
2272
 
2273
  /**
2274
  *
2275
+ * Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes
2276
+ * traffic originating from the subnet to be routed according to the routes in the route table. The action returns an
2277
+ * association ID, which you need if you want to disassociate the route table from the subnet later. A route table can be
2278
+ * associated with multiple subnets.
2279
  *
2280
+ * For more information about route tables, go to <a
2281
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
2282
+ * Virtual Private Cloud User Guide.
2283
+ *
2284
+ * @param string $subnet_id (Required) The ID of the subnet.
2285
+ * @param string $route_table_id (Required) The ID of the route table.
2286
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2287
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2288
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2289
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2290
  */
2291
+ public function associate_route_table($subnet_id, $route_table_id, $opt = null)
2292
  {
2293
  if (!$opt) $opt = array();
2294
+ $opt['SubnetId'] = $subnet_id;
2295
+ $opt['RouteTableId'] = $route_table_id;
2296
 
2297
+ return $this->authenticate('AssociateRouteTable', $opt, $this->hostname);
2298
  }
2299
 
2300
  /**
2301
  *
2302
+ * The DescribeInstances operation returns information about instances that you own.
2303
  *
2304
+ * If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify
2305
+ * instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an invalid instance ID, a fault
2306
+ * is returned. If you specify an instance that you do not own, it will not be included in the returned results.
2307
+ *
2308
+ * Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
2309
  *
2310
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2311
+ * <li><code>InstanceId</code> - <code>string|array</code> - Optional - An optional list of the instances to describe. Pass a string for a single value, or an indexed array for multiple values. </li>
2312
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Instances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2313
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2314
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2315
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2316
  * </ul></li>
2317
  * </ul></li>
2318
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2319
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2320
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2321
  */
2322
+ public function describe_instances($opt = null)
2323
  {
2324
  if (!$opt) $opt = array();
2325
 
2326
  // Optional parameter
2327
+ if (isset($opt['InstanceId']))
2328
  {
2329
  $opt = array_merge($opt, CFComplexType::map(array(
2330
+ 'InstanceId' => (is_array($opt['InstanceId']) ? $opt['InstanceId'] : array($opt['InstanceId']))
2331
  )));
2332
+ unset($opt['InstanceId']);
2333
  }
2334
 
2335
  // Optional parameter
2341
  unset($opt['Filter']);
2342
  }
2343
 
2344
+ return $this->authenticate('DescribeInstances', $opt, $this->hostname);
2345
  }
2346
 
2347
  /**
2348
  *
2349
+ * Deletes a network ACL from a VPC. The ACL must not have any subnets associated with it. You can't delete the default
2350
+ * network ACL. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
2351
  *
2352
+ * @param string $network_acl_id (Required) The ID of the network ACL to be deleted.
2353
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2354
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2355
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2356
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2357
+ */
2358
+ public function delete_network_acl($network_acl_id, $opt = null)
2359
+ {
2360
+ if (!$opt) $opt = array();
2361
+ $opt['NetworkAclId'] = $network_acl_id;
2362
+
2363
+ return $this->authenticate('DeleteNetworkAcl', $opt, $this->hostname);
2364
+ }
2365
+
2366
+ /**
2367
  *
2368
+ * The DescribeImages operation returns information about AMIs, AKIs, and ARIs available to the user. Information returned
2369
+ * includes image type, product codes, architecture, and kernel and RAM disk IDs. Images available to the user include
2370
+ * public images available for any user to launch, private images owned by the user making the request, and private images
2371
+ * owned by other users for which the user has explicit launch permissions.
2372
+ *
2373
+ * Launch permissions fall into three categories:
2374
+ *
2375
+ * <ul> <li> <b>Public:</b> The owner of the AMI granted launch permissions for the AMI to the all group. All users have
2376
+ * launch permissions for these AMIs. </li>
2377
+ *
2378
+ * <li> <b>Explicit:</b> The owner of the AMI granted launch permissions to a specific user. </li>
2379
+ *
2380
+ * <li> <b>Implicit:</b> A user has implicit launch permissions for all AMIs he or she owns. </li>
2381
+ *
2382
+ * </ul>
2383
+ *
2384
+ * The list of AMIs returned can be modified by specifying AMI IDs, AMI owners, or users with launch permissions. If no
2385
+ * options are specified, Amazon EC2 returns all AMIs for which the user has launch permissions.
2386
+ *
2387
+ * If you specify one or more AMI IDs, only AMIs that have the specified IDs are returned. If you specify an invalid AMI
2388
+ * ID, a fault is returned. If you specify an AMI ID for which you do not have access, it will not be included in the
2389
+ * returned results.
2390
+ *
2391
+ * If you specify one or more AMI owners, only AMIs from the specified owners and for which you have access are returned.
2392
+ * The results can include the account IDs of the specified owners, amazon for AMIs owned by Amazon or self for AMIs that
2393
+ * you own.
2394
+ *
2395
+ * If you specify a list of executable users, only users that have launch permissions for the AMIs are returned. You can
2396
+ * specify account IDs (if you own the AMI(s)), self for AMIs for which you own or have explicit permissions, or all for
2397
+ * public AMIs.
2398
+ *
2399
+ * Deregistered images are included in the returned results for an unspecified interval after deregistration.
2400
  *
 
2401
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2402
+ * <li><code>ImageId</code> - <code>string|array</code> - Optional - An optional list of the AMI IDs to describe. If not specified, all AMIs will be described. Pass a string for a single value, or an indexed array for multiple values. </li>
2403
+ * <li><code>Owner</code> - <code>string|array</code> - Optional - The optional list of owners for the described AMIs. The IDs amazon, self, and explicit can be used to include AMIs owned by Amazon, AMIs owned by the user, and AMIs for which the user has explicit launch permissions, respectively. Pass a string for a single value, or an indexed array for multiple values. </li>
2404
+ * <li><code>ExecutableBy</code> - <code>string|array</code> - Optional - The optional list of users with explicit launch permissions for the described AMIs. The user ID can be a user's account ID, 'self' to return AMIs for which the sender of the request has explicit launch permissions, or 'all' to return AMIs with public launch permissions. Pass a string for a single value, or an indexed array for multiple values. </li>
2405
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Images. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2406
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2407
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2408
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2409
  * </ul></li>
2410
+ * </ul></li>
2411
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2412
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2413
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2414
  */
2415
+ public function describe_images($opt = null)
2416
  {
2417
  if (!$opt) $opt = array();
 
2418
 
2419
  // Optional parameter
2420
+ if (isset($opt['ImageId']))
2421
  {
2422
+ $opt = array_merge($opt, CFComplexType::map(array(
2423
+ 'ImageId' => (is_array($opt['ImageId']) ? $opt['ImageId'] : array($opt['ImageId']))
2424
+ )));
2425
+ unset($opt['ImageId']);
2426
  }
2427
 
2428
  // Optional parameter
2429
+ if (isset($opt['Owner']))
2430
  {
2431
+ $opt = array_merge($opt, CFComplexType::map(array(
2432
+ 'Owner' => (is_array($opt['Owner']) ? $opt['Owner'] : array($opt['Owner']))
2433
+ )));
2434
+ unset($opt['Owner']);
2435
  }
2436
 
2437
  // Optional parameter
2438
+ if (isset($opt['ExecutableBy']))
2439
  {
2440
  $opt = array_merge($opt, CFComplexType::map(array(
2441
+ 'ExecutableBy' => (is_array($opt['ExecutableBy']) ? $opt['ExecutableBy'] : array($opt['ExecutableBy']))
2442
  )));
2443
+ unset($opt['ExecutableBy']);
2444
  }
2445
 
2446
+ // Optional parameter
2447
+ if (isset($opt['Filter']))
2448
+ {
2449
+ $opt = array_merge($opt, CFComplexType::map(array(
2450
+ 'Filter' => $opt['Filter']
2451
+ )));
2452
+ unset($opt['Filter']);
2453
+ }
2454
+
2455
+ return $this->authenticate('DescribeImages', $opt, $this->hostname);
2456
  }
2457
 
2458
  /**
2459
  *
2460
+ * Starts an instance that uses an Amazon EBS volume as its root device. Instances that use Amazon EBS volumes as their
2461
+ * root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you
2462
+ * are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist
2463
+ * your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time.
2464
  *
2465
+ * Performing this operation on an instance that uses an instance store as its root device returns an error.
2466
+ *
2467
+ * @param string|array $instance_id (Required) The list of Amazon EC2 instances to start. Pass a string for a single value, or an indexed array for multiple values.
 
 
 
 
2468
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2469
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2470
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2471
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2472
  */
2473
+ public function start_instances($instance_id, $opt = null)
2474
  {
2475
  if (!$opt) $opt = array();
2476
 
2477
  // Required parameter
2478
  $opt = array_merge($opt, CFComplexType::map(array(
2479
+ 'InstanceId' => (is_array($instance_id) ? $instance_id : array($instance_id))
 
 
 
 
 
2480
  )));
2481
 
2482
+ return $this->authenticate('StartInstances', $opt, $this->hostname);
2483
  }
2484
 
2485
  /**
2486
  *
2487
+ * Modifies an attribute of an instance.
 
 
 
 
 
2488
  *
2489
+ * @param string $instance_id (Required) The ID of the instance whose attribute is being modified.
2490
+ * @param string $attribute (Required) The name of the attribute being modified. Available attribute names: <code>instanceType</code>, <code>kernel</code>, <code>ramdisk</code>, <code>userData</code>, <code>disableApiTermination</code>, <code>instanceInitiatedShutdownBehavior</code>, <code>rootDevice</code>, <code>blockDeviceMapping</code>
2491
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2492
+ * <li><code>Value</code> - <code>string</code> - Optional - The new value of the instance attribute being modified. Only valid when <code>kernel</code>, <code>ramdisk</code>, <code>userData</code>, <code>disableApiTermination</code> or <code>instanceInitiateShutdownBehavior</code> is specified as the attribute being modified. </li>
2493
+ * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - The new block device mappings for the instance whose attributes are being modified. Only valid when blockDeviceMapping is specified as the attribute being modified. <ul>
2494
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2495
+ * <li><code>DeviceName</code> - <code>string</code> - Optional - The device name (e.g., <code>/dev/sdh</code>) at which the block device is exposed on the instance. </li>
2496
+ * <li><code>Ebs</code> - <code>array</code> - Optional - The EBS instance block device specification describing the EBS block device to map to the specified device name on a running instance. Takes an associative array of parameters that can have the following keys: <ul>
2497
+ * <li><code>VolumeId</code> - <code>string</code> - Optional - The ID of the EBS volume that should be mounted as a block device on an Amazon EC2 instance. </li>
2498
+ * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
2499
+ * </ul></li>
2500
+ * <li><code>VirtualName</code> - <code>string</code> - Optional - The virtual device name. </li>
2501
+ * <li><code>NoDevice</code> - <code>string</code> - Optional - When set to the empty string, specifies that the device name in this object should not be mapped to any real device. </li>
2502
+ * </ul></li>
2503
+ * </ul></li>
2504
+ * <li><code>SourceDestCheck</code> - <code>boolean</code> - Optional - Boolean value </li>
2505
+ * <li><code>GroupId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
2506
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2507
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2508
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2509
  */
2510
+ public function modify_instance_attribute($instance_id, $attribute, $opt = null)
2511
  {
2512
  if (!$opt) $opt = array();
2513
+ $opt['InstanceId'] = $instance_id;
2514
+ $opt['Attribute'] = $attribute;
2515
 
2516
+ // Optional parameter
2517
+ if (isset($opt['BlockDeviceMapping']))
2518
+ {
2519
+ $opt = array_merge($opt, CFComplexType::map(array(
2520
+ 'BlockDeviceMapping' => $opt['BlockDeviceMapping']
2521
+ )));
2522
+ unset($opt['BlockDeviceMapping']);
2523
+ }
2524
 
2525
+ // Optional parameter
2526
+ if (isset($opt['GroupId']))
2527
+ {
2528
+ $opt = array_merge($opt, CFComplexType::map(array(
2529
+ 'GroupId' => (is_array($opt['GroupId']) ? $opt['GroupId'] : array($opt['GroupId']))
2530
+ )));
2531
+ unset($opt['GroupId']);
2532
+ }
 
 
 
 
 
2533
 
2534
+ return $this->authenticate('ModifyInstanceAttribute', $opt, $this->hostname);
2535
  }
2536
 
2537
  /**
2538
  *
2539
+ * Deletes a set of DHCP options that you specify. Amazon VPC returns an error if the set of options you specify is
2540
+ * currently associated with a VPC. You can disassociate the set of options by associating either a new set of options or
2541
+ * the default options with the VPC.
 
2542
  *
2543
+ * @param string $dhcp_options_id (Required) The ID of the DHCP options set to delete.
2544
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2545
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2546
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2547
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2548
  */
2549
+ public function delete_dhcp_options($dhcp_options_id, $opt = null)
2550
  {
2551
  if (!$opt) $opt = array();
2552
+ $opt['DhcpOptionsId'] = $dhcp_options_id;
2553
 
2554
+ return $this->authenticate('DeleteDhcpOptions', $opt, $this->hostname);
2555
  }
2556
 
2557
  /**
2558
  *
2559
+ * The AuthorizeSecurityGroupIngress operation adds permissions to a security group.
2560
+ *
2561
+ * Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon
2562
+ * EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP).
2563
+ * When authorizing ICMP, <code>-1</code> can be used as a wildcard in the type and code fields.
2564
+ *
2565
+ * Permission changes are propagated to instances within the security group as quickly as possible. However, depending on
2566
+ * the number of instances, a small delay might occur.
2567
  *
 
2568
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2569
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups. </li>
2570
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups. </li>
2571
+ * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control. <ul>
2572
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2573
+ * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> </li>
2574
+ * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of <code>-1</code> indicates a wildcard (i.e., any ICMP type number). </li>
2575
+ * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of <code>-1</code> indicates a wildcard (i.e., any ICMP code). </li>
2576
+ * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
2577
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2578
+ * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
2579
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
2580
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
2581
+ * </ul></li>
2582
+ * </ul></li>
2583
+ * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
2584
  * </ul></li>
2585
  * </ul></li>
2586
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2587
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2588
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2589
  */
2590
+ public function authorize_security_group_ingress($opt = null)
2591
  {
2592
  if (!$opt) $opt = array();
2593
 
 
 
 
 
 
2594
  // Optional parameter
2595
+ if (isset($opt['IpPermissions']))
2596
  {
2597
  $opt = array_merge($opt, CFComplexType::map(array(
2598
+ 'IpPermissions' => $opt['IpPermissions']
2599
  )));
2600
+ unset($opt['IpPermissions']);
2601
  }
2602
 
2603
+ return $this->authenticate('AuthorizeSecurityGroupIngress', $opt, $this->hostname);
2604
  }
2605
 
2606
  /**
2607
  *
2608
+ * Describes Spot Instance requests. Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum
2609
+ * price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available
2610
+ * Spot Instance capacity and current spot instance requests. For conceptual information about Spot Instances, refer to the
2611
+ * <a href="http://docs.amazonwebservices.com/AWSEC2/2010-08-31/DeveloperGuide/">Amazon Elastic Compute Cloud Developer
2612
+ * Guide</a> or <a href="http://docs.amazonwebservices.com/AWSEC2/2010-08-31/UserGuide/">Amazon Elastic Compute Cloud User
2613
+ * Guide</a>.
2614
+ *
2615
+ * You can filter the results to return information only about Spot Instance requests that match criteria you specify. For
2616
+ * example, you could get information about requests where the Spot Price you specified is a certain value (you can't use
2617
+ * greater than or less than comparison, but you can use <code>*</code> and <code>?</code> wildcards). You can specify
2618
+ * multiple values for a filter. A Spot Instance request must match at least one of the specified values for it to be
2619
+ * included in the results.
2620
+ *
2621
+ * You can specify multiple filters (e.g., the Spot Price is equal to a particular value, and the instance type is
2622
+ * <code>m1.small</code>). The result includes information for a particular request only if it matches all your filters. If
2623
+ * there's no match, no special message is returned; the response is simply empty.
2624
+ *
2625
+ * You can use wildcards with the filter values: an asterisk matches zero or more characters, and <code>?</code> matches
2626
+ * exactly one character. You can escape special characters using a backslash before the character. For example, a value of
2627
+ * <code>\*amazon\?\\</code> searches for the literal string <code>*amazon?\</code>.
2628
  *
2629
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2630
+ * <li><code>SpotInstanceRequestId</code> - <code>string|array</code> - Optional - The ID of the request. Pass a string for a single value, or an indexed array for multiple values. </li>
2631
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for SpotInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2632
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2633
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2634
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2635
  * </ul></li>
2636
  * </ul></li>
2637
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2638
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2639
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2640
  */
2641
+ public function describe_spot_instance_requests($opt = null)
2642
  {
2643
  if (!$opt) $opt = array();
2644
 
2645
+ // Optional parameter
2646
+ if (isset($opt['SpotInstanceRequestId']))
2647
+ {
2648
+ $opt = array_merge($opt, CFComplexType::map(array(
2649
+ 'SpotInstanceRequestId' => (is_array($opt['SpotInstanceRequestId']) ? $opt['SpotInstanceRequestId'] : array($opt['SpotInstanceRequestId']))
2650
+ )));
2651
+ unset($opt['SpotInstanceRequestId']);
2652
+ }
2653
+
2654
  // Optional parameter
2655
  if (isset($opt['Filter']))
2656
  {
2660
  unset($opt['Filter']);
2661
  }
2662
 
2663
+ return $this->authenticate('DescribeSpotInstanceRequests', $opt, $this->hostname);
2664
  }
2665
 
2666
  /**
2667
  *
2668
+ * Creates a VPC with the CIDR block you specify. The smallest VPC you can create uses a <code>/28</code> netmask (16 IP
2669
+ * addresses), and the largest uses a <code>/18</code> netmask (16,384 IP addresses). To help you decide how big to make
2670
+ * your VPC, go to the topic about creating VPCs in the Amazon Virtual Private Cloud Developer Guide.
2671
  *
2672
+ * By default, each instance you launch in the VPC has the default DHCP options (the standard EC2 host name, no domain
2673
+ * name, no DNS server, no NTP server, and no NetBIOS server or node type).
2674
+ *
2675
+ * @param string $cidr_block (Required) A valid CIDR block.
2676
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2677
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2678
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2679
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2680
  */
2681
+ public function create_vpc($cidr_block, $opt = null)
2682
  {
2683
  if (!$opt) $opt = array();
2684
+ $opt['CidrBlock'] = $cidr_block;
2685
 
2686
+ return $this->authenticate('CreateVpc', $opt, $this->hostname);
2687
  }
2688
 
2689
  /**
2690
  *
2691
+ * Gives you information about your customer gateways. You can filter the results to return information only about
2692
+ * customer gateways that match criteria you specify. For example, you could ask to get information about a particular
2693
+ * customer gateway (or all) only if the gateway's state is pending or available. You can specify multiple filters (e.g.,
2694
+ * the customer gateway has a particular IP address for the Internet-routable external interface, and the gateway's state
2695
+ * is pending or available). The result includes information for a particular customer gateway only if the gateway matches
2696
+ * all your filters. If there's no match, no special message is returned; the response is simply empty. The following table
2697
+ * shows the available filters.
2698
  *
 
2699
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2700
+ * <li><code>CustomerGatewayId</code> - <code>string|array</code> - Optional - A set of one or more customer gateway IDs. Pass a string for a single value, or an indexed array for multiple values. </li>
2701
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for Customer Gateways. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
2702
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2703
+ * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2704
+ * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2705
+ * </ul></li>
2706
+ * </ul></li>
2707
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2708
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2709
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2710
  */
2711
+ public function describe_customer_gateways($opt = null)
2712
  {
2713
  if (!$opt) $opt = array();
 
2714
 
2715
+ // Optional parameter
2716
+ if (isset($opt['CustomerGatewayId']))
2717
+ {
2718
+ $opt = array_merge($opt, CFComplexType::map(array(
2719
+ 'CustomerGatewayId' => (is_array($opt['CustomerGatewayId']) ? $opt['CustomerGatewayId'] : array($opt['CustomerGatewayId']))
2720
+ )));
2721
+ unset($opt['CustomerGatewayId']);
2722
+ }
2723
+
2724
+ // Optional parameter
2725
+ if (isset($opt['Filter']))
2726
+ {
2727
+ $opt = array_merge($opt, CFComplexType::map(array(
2728
+ 'Filter' => $opt['Filter']
2729
+ )));
2730
+ unset($opt['Filter']);
2731
+ }
2732
+
2733
+ return $this->authenticate('DescribeCustomerGateways', $opt, $this->hostname);
2734
  }
2735
 
2736
  /**
2737
  *
2738
+ * Creates a new route in a route table within a VPC. The route's target can be either a gateway attached to the VPC or a
2739
+ * NAT instance in the VPC.
 
2740
  *
2741
+ * When determining how to route traffic, we use the route with the most specific match. For example, let's say the
2742
+ * traffic is destined for <code>192.0.2.3</code>, and the route table includes the following two routes:
2743
+ *
2744
+ * <ul> <li> <code>192.0.2.0/24</code> (goes to some target A) </li>
2745
+ *
2746
+ * <li> <code>192.0.2.0/28</code> (goes to some target B) </li>
2747
+ *
2748
+ * </ul>
2749
+ *
2750
+ * Both routes apply to the traffic destined for <code>192.0.2.3</code>. However, the second route in the list is more
2751
+ * specific, so we use that route to determine where to target the traffic.
2752
+ *
2753
+ * For more information about route tables, go to <a
2754
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
2755
+ * Virtual Private Cloud User Guide.
2756
+ *
2757
+ * @param string $route_table_id (Required) The ID of the route table where the route will be added.
2758
+ * @param string $destination_cidr_block (Required) The CIDR address block used for the destination match. For example: <code>0.0.0.0/0</code>. Routing decisions are based on the most specific match.
2759
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2760
+ * <li><code>GatewayId</code> - <code>string</code> - Optional - The ID of a VPN or Internet gateway attached to your VPC. You must provide either <code>GatewayId</code> or <code>InstanceId</code>, but not both. </li>
2761
+ * <li><code>InstanceId</code> - <code>string</code> - Optional - The ID of a NAT instance in your VPC. You must provide either <code>GatewayId</code> or <code>InstanceId</code>, but not both. </li>
2762
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2763
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2764
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2765
  */
2766
+ public function create_route($route_table_id, $destination_cidr_block, $opt = null)
2767
  {
2768
  if (!$opt) $opt = array();
2769
+ $opt['RouteTableId'] = $route_table_id;
2770
+ $opt['DestinationCidrBlock'] = $destination_cidr_block;
2771
 
2772
+ return $this->authenticate('CreateRoute', $opt, $this->hostname);
2773
  }
2774
 
2775
  /**
2776
  *
2777
+ * Deletes a route table from a VPC. The route table must not be associated with a subnet. You can't delete the main route
2778
+ * table. For more information about route tables, go to <a
2779
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
2780
+ * Virtual Private Cloud User Guide.
2781
  *
2782
+ * @param string $route_table_id (Required) The ID of the route table to be deleted.
2783
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2784
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2785
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2786
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2787
  */
2788
+ public function delete_route_table($route_table_id, $opt = null)
2789
  {
2790
  if (!$opt) $opt = array();
2791
+ $opt['RouteTableId'] = $route_table_id;
2792
 
2793
+ return $this->authenticate('DeleteRouteTable', $opt, $this->hostname);
2794
  }
2795
 
2796
  /**
2797
  *
2798
+ * Creates a Spot Instance request.
2799
  *
2800
  * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
2801
  * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
2804
  * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
2805
  * Elastic Compute Cloud User Guide.
2806
  *
2807
+ * @param string $spot_price (Required) Specifies the maximum hourly price for any Spot Instance launched to fulfill the request.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2808
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2809
+ * <li><code>InstanceCount</code> - <code>integer</code> - Optional - Specifies the maximum number of Spot Instances to launch. </li>
2810
+ * <li><code>Type</code> - <code>string</code> - Optional - Specifies the Spot Instance type. [Allowed values: <code>one-time</code>, <code>persistent</code>]</li>
2811
+ * <li><code>ValidFrom</code> - <code>string</code> - Optional - Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
2812
+ * <li><code>ValidUntil</code> - <code>string</code> - Optional - End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
2813
+ * <li><code>LaunchGroup</code> - <code>string</code> - Optional - Specifies the instance launch group. Launch groups are Spot Instances that launch and terminate together. </li>
2814
+ * <li><code>AvailabilityZoneGroup</code> - <code>string</code> - Optional - Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone. </li>
2815
+ * <li><code>LaunchSpecification</code> - <code>array</code> - Optional - Specifies additional launch instance information. <ul>
2816
+ * <li><code>ImageId</code> - <code>string</code> - Optional - The AMI ID. </li>
2817
+ * <li><code>KeyName</code> - <code>string</code> - Optional - The name of the key pair. </li>
2818
+ * <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
2819
+ * <li><code>UserData</code> - <code>string</code> - Optional - Optional data, specific to a user's application, to provide in the launch request. All instances that collectively comprise the launch request have access to this data. User data is never returned through API responses. </li>
2820
+ * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>cc1.4xlarge</code>, <code>cg1.4xlarge</code>]</li>
2821
+ * <li><code>Placement</code> - <code>array</code> - Optional - Defines a placement item. Takes an associative array of parameters that can have the following keys: <ul>
2822
+ * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs. </li>
2823
+ * <li><code>GroupName</code> - <code>string</code> - Optional - The name of a PlacementGroup. </li>
2824
  * </ul></li>
2825
+ * <li><code>KernelId</code> - <code>string</code> - Optional - Specifies the ID of the kernel to select. </li>
2826
+ * <li><code>RamdiskId</code> - <code>string</code> - Optional - Specifies the ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether or not you need to specify a RAM disk and search for the kernel ID. </li>
2827
+ * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName. <ul>
2828
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2829
+ * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
2830
+ * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., <code>/dev/sdh</code>). </li>
2831
+ * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
2832
+ * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
2833
+ * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
2834
+ * <li><code>DeleteOnTermination</code> - <code>boolean</code> - Optional - Specifies whether the Amazon EBS volume is deleted on instance termination. </li>
2835
+ * </ul></li>
2836
+ * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
2837
+ * </ul></li>
2838
+ * </ul></li>
2839
+ * <li><code>Monitoring.Enabled</code> - <code>boolean</code> - Optional - Enables monitoring for the instance. </li>
2840
+ * <li><code>SubnetId</code> - <code>string</code> - Optional - Specifies the Amazon VPC subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud. </li></ul></li>
2841
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2842
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2843
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2844
  */
2845
+ public function request_spot_instances($spot_price, $opt = null)
2846
  {
2847
  if (!$opt) $opt = array();
2848
+ $opt['SpotPrice'] = $spot_price;
2849
 
2850
  // Optional parameter
2851
+ if (isset($opt['ValidFrom']))
2852
  {
2853
+ $opt['ValidFrom'] = $this->util->convert_date_to_iso8601($opt['ValidFrom']);
 
 
 
2854
  }
2855
 
2856
  // Optional parameter
2857
+ if (isset($opt['ValidUntil']))
2858
+ {
2859
+ $opt['ValidUntil'] = $this->util->convert_date_to_iso8601($opt['ValidUntil']);
2860
+ }
2861
+
2862
+ // Optional parameter
2863
+ if (isset($opt['LaunchSpecification']))
2864
  {
2865
  $opt = array_merge($opt, CFComplexType::map(array(
2866
+ 'LaunchSpecification' => $opt['LaunchSpecification']
2867
  )));
2868
+ unset($opt['LaunchSpecification']);
2869
  }
2870
 
2871
+ return $this->authenticate('RequestSpotInstances', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2872
  }
2873
 
2874
  /**
2875
  *
2876
+ * Adds or overwrites tags for the specified resources. Each resource can have a maximum of 10 tags. Each tag consists of
2877
+ * a key-value pair. Tag keys must be unique per resource.
2878
  *
2879
+ * @param string|array $resource_id (Required) One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc. Pass a string for a single value, or an indexed array for multiple values.
2880
+ * @param array $tag (Required) The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair. <ul>
2881
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2882
+ * <li><code>Key</code> - <code>string</code> - Optional - The tag's key. </li>
2883
+ * <li><code>Value</code> - <code>string</code> - Optional - The tag's value. </li>
2884
+ * </ul></li>
2885
+ * </ul>
2886
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2887
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2888
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2889
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2890
  */
2891
+ public function create_tags($resource_id, $tag, $opt = null)
2892
  {
2893
  if (!$opt) $opt = array();
 
 
2894
 
2895
+ // Required parameter
2896
+ $opt = array_merge($opt, CFComplexType::map(array(
2897
+ 'ResourceId' => (is_array($resource_id) ? $resource_id : array($resource_id))
2898
+ )));
2899
+
2900
+ // Required parameter
2901
+ $opt = array_merge($opt, CFComplexType::map(array(
2902
+ 'Tag' => (is_array($tag) ? $tag : array($tag))
2903
+ )));
2904
+
2905
+ return $this->authenticate('CreateTags', $opt, $this->hostname);
2906
  }
2907
 
2908
  /**
2909
  *
2910
+ * Replaces an existing route within a route table in a VPC. For more information about route tables, go to <a
2911
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
2912
+ * Virtual Private Cloud User Guide.
2913
  *
2914
+ * @param string $route_table_id (Required) The ID of the route table where the route will be replaced.
2915
+ * @param string $destination_cidr_block (Required) The CIDR address block used for the destination match. For example: <code>0.0.0.0/0</code>. The value you provide must match the CIDR of an existing route in the table.
2916
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2917
+ * <li><code>GatewayId</code> - <code>string</code> - Optional - The ID of a VPN or Internet gateway attached to your VPC. </li>
2918
+ * <li><code>InstanceId</code> - <code>string</code> - Optional - The ID of a NAT instance in your VPC. </li>
2919
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2920
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2921
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2922
  */
2923
+ public function replace_route($route_table_id, $destination_cidr_block, $opt = null)
2924
  {
2925
  if (!$opt) $opt = array();
2926
+ $opt['RouteTableId'] = $route_table_id;
2927
+ $opt['DestinationCidrBlock'] = $destination_cidr_block;
2928
 
2929
+ return $this->authenticate('ReplaceRoute', $opt, $this->hostname);
2930
  }
2931
 
2932
  /**
2933
  *
2934
+ * Describes the tags for the specified resources.
 
 
 
 
 
 
 
 
 
 
2935
  *
2936
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2937
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for tags. <ul>
 
2938
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
2939
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
2940
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
2941
  * </ul></li>
2942
  * </ul></li>
2943
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2944
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2945
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2946
  */
2947
+ public function describe_tags($opt = null)
2948
  {
2949
  if (!$opt) $opt = array();
2950
 
 
 
 
 
 
 
 
 
 
2951
  // Optional parameter
2952
  if (isset($opt['Filter']))
2953
  {
2957
  unset($opt['Filter']);
2958
  }
2959
 
2960
+ return $this->authenticate('DescribeTags', $opt, $this->hostname);
2961
  }
2962
 
2963
  /**
2964
  *
2965
+ * CancelBundleTask operation cancels a pending or in-progress bundling task. This is an asynchronous call and it make
2966
+ * take a while for the task to be canceled. If a task is canceled while it is storing items, there may be parts of the
2967
+ * incomplete AMI stored in S3. It is up to the caller to clean up these parts from S3.
2968
  *
2969
+ * @param string $bundle_id (Required) The ID of the bundle task to cancel.
2970
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2971
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2972
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2973
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2974
+ */
2975
+ public function cancel_bundle_task($bundle_id, $opt = null)
2976
+ {
2977
+ if (!$opt) $opt = array();
2978
+ $opt['BundleId'] = $bundle_id;
2979
+
2980
+ return $this->authenticate('CancelBundleTask', $opt, $this->hostname);
2981
+ }
2982
+
2983
+ /**
2984
  *
2985
+ * Cancels one or more Spot Instance requests.
2986
+ *
2987
+ * Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the
2988
+ * current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current
2989
+ * spot instance requests.
2990
+ *
2991
+ * For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon
2992
+ * Elastic Compute Cloud User Guide.
2993
+ *
2994
+ * @param string|array $spot_instance_request_id (Required) Specifies the ID of the Spot Instance request. Pass a string for a single value, or an indexed array for multiple values.
2995
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2996
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2997
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2998
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2999
  */
3000
+ public function cancel_spot_instance_requests($spot_instance_request_id, $opt = null)
3001
  {
3002
  if (!$opt) $opt = array();
 
 
3003
 
3004
+ // Required parameter
3005
+ $opt = array_merge($opt, CFComplexType::map(array(
3006
+ 'SpotInstanceRequestId' => (is_array($spot_instance_request_id) ? $spot_instance_request_id : array($spot_instance_request_id))
3007
+ )));
3008
+
3009
+ return $this->authenticate('CancelSpotInstanceRequests', $opt, $this->hostname);
3010
  }
3011
 
3012
  /**
3013
  *
3014
+ * The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon
3015
+ * EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting
3016
+ * insufficient capacity errors) and pay a lower usage rate for the actual time used.
3017
  *
3018
+ * @param string $reserved_instances_offering_id (Required) The unique ID of the Reserved Instances offering being purchased.
3019
+ * @param integer $instance_count (Required) The number of Reserved Instances to purchase.
3020
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3021
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3022
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3023
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3024
  */
3025
+ public function purchase_reserved_instances_offering($reserved_instances_offering_id, $instance_count, $opt = null)
3026
  {
3027
  if (!$opt) $opt = array();
3028
+ $opt['ReservedInstancesOfferingId'] = $reserved_instances_offering_id;
3029
+ $opt['InstanceCount'] = $instance_count;
3030
 
3031
+ return $this->authenticate('PurchaseReservedInstancesOffering', $opt, $this->hostname);
3032
  }
3033
 
3034
  /**
3036
  * Adds or remove permission settings for the specified snapshot.
3037
  *
3038
  * @param string $snapshot_id (Required) The ID of the EBS snapshot whose attributes are being modified.
3039
+ * @param string $attribute (Required) The name of the attribute being modified. Available attribute names: <code>createVolumePermission</code>
3040
+ * @param string $operation_type (Required) The operation to perform on the attribute. Available operation names: <code>add</code>, <code>remove</code>
3041
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3042
+ * <li><code>UserId</code> - <code>string|array</code> - Optional - The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the <code>createVolumePermission</code> attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
3043
  * <li><code>UserGroup</code> - <code>string|array</code> - Optional - The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the <code>createVolumePermission</code> attribute is being modified. Pass a string for a single value, or an indexed array for multiple values. </li>
3044
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3045
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3046
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3047
  */
3082
  *
3083
  * @param string|array $instance_id (Required) The list of instances to terminate. Pass a string for a single value, or an indexed array for multiple values.
3084
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3085
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3086
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3087
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3088
  */
3106
  * Elastic Compute Cloud User Guide.
3107
  *
3108
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3109
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3110
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3111
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3112
  */
3119
 
3120
  /**
3121
  *
3122
+ * Deletes an Internet gateway from your AWS account. The gateway must not be attached to a VPC. For more information
3123
+ * about your VPC and Internet gateway, go to Amazon Virtual Private Cloud User Guide.
 
 
 
 
3124
  *
3125
+ * @param string $internet_gateway_id (Required) The ID of the Internet gateway to be deleted.
3126
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3127
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
 
 
 
 
 
 
3128
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3129
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3130
  */
3131
+ public function delete_internet_gateway($internet_gateway_id, $opt = null)
3132
  {
3133
  if (!$opt) $opt = array();
3134
+ $opt['InternetGatewayId'] = $internet_gateway_id;
3135
 
3136
+ return $this->authenticate('DeleteInternetGateway', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3137
  }
3138
 
3139
  /**
3140
  *
3141
+ * Changes the route table associated with a given subnet in a VPC. After you execute this action, the subnet uses the
3142
+ * routes in the new route table it's associated with. For more information about route tables, go to <a
3143
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
3144
+ * Virtual Private Cloud User Guide.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3145
  *
3146
+ * You can also use this to change which table is the main route table in the VPC. You just specify the main route table's
3147
+ * association ID and the route table that you want to be the new main route table.
3148
  *
3149
+ * @param string $association_id (Required) The ID representing the current association between the original route table and the subnet.
3150
+ * @param string $route_table_id (Required) The ID of the new route table to associate with the subnet.
3151
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3152
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3153
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3154
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3155
  */
3156
+ public function replace_route_table_association($association_id, $route_table_id, $opt = null)
3157
  {
3158
  if (!$opt) $opt = array();
3159
+ $opt['AssociationId'] = $association_id;
3160
+ $opt['RouteTableId'] = $route_table_id;
3161
 
3162
+ return $this->authenticate('ReplaceRouteTableAssociation', $opt, $this->hostname);
3163
  }
3164
 
3165
  /**
3169
  * @param string $snapshot_id (Required) The ID of the EBS snapshot whose attribute is being described.
3170
  * @param string $attribute (Required) The name of the EBS attribute to describe. Available attribute names: createVolumePermission
3171
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3172
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3173
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3174
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3175
  */
3182
  return $this->authenticate('DescribeSnapshotAttribute', $opt, $this->hostname);
3183
  }
3184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3185
  /**
3186
  *
3187
  * The DescribeAddresses operation lists elastic IP addresses assigned to your account.
3194
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
3195
  * </ul></li>
3196
  * </ul></li>
3197
+ * <li><code>AllocationId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values. </li>
3198
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3199
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3200
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3201
  */
3221
  unset($opt['Filter']);
3222
  }
3223
 
3224
+ // Optional parameter
3225
+ if (isset($opt['AllocationId']))
3226
+ {
3227
+ $opt = array_merge($opt, CFComplexType::map(array(
3228
+ 'AllocationId' => (is_array($opt['AllocationId']) ? $opt['AllocationId'] : array($opt['AllocationId']))
3229
+ )));
3230
+ unset($opt['AllocationId']);
3231
+ }
3232
+
3233
  return $this->authenticate('DescribeAddresses', $opt, $this->hostname);
3234
  }
3235
 
3246
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
3247
  * </ul></li>
3248
  * </ul></li>
3249
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3250
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3251
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3252
  */
3281
  * specified per call.
3282
  *
3283
  * @param string $image_id (Required) The ID of the AMI whose attribute is to be described.
3284
+ * @param string $attribute (Required) The name of the attribute to describe. Available attribute names: <code>productCodes</code>, <code>kernel</code>, <code>ramdisk</code>, <code>launchPermisson</code>, <code>blockDeviceMapping</code>
3285
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3286
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3287
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3288
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3289
  */
3296
  return $this->authenticate('DescribeImageAttribute', $opt, $this->hostname);
3297
  }
3298
 
3299
+ /**
3300
+ *
3301
+ * Disassociates a subnet from a route table.
3302
+ *
3303
+ * After you perform this action, the subnet no longer uses the routes in the route table. Instead it uses the routes in
3304
+ * the VPC's main route table. For more information about route tables, go to <a
3305
+ * href="http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html">Route Tables</a> in the Amazon
3306
+ * Virtual Private Cloud User Guide.
3307
+ *
3308
+ * @param string $association_id (Required) The association ID representing the current association between the route table and subnet.
3309
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3310
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3311
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3312
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3313
+ */
3314
+ public function disassociate_route_table($association_id, $opt = null)
3315
+ {
3316
+ if (!$opt) $opt = array();
3317
+ $opt['AssociationId'] = $association_id;
3318
+
3319
+ return $this->authenticate('DisassociateRouteTable', $opt, $this->hostname);
3320
+ }
3321
+
3322
  /**
3323
  *
3324
  * The ConfirmProductInstance operation returns true if the specified product code is attached to the specified instance.
3330
  * @param string $product_code (Required) The product code to confirm.
3331
  * @param string $instance_id (Required) The ID of the instance to confirm.
3332
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3333
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3334
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3335
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3336
  */
3340
  $opt['ProductCode'] = $product_code;
3341
  $opt['InstanceId'] = $instance_id;
3342
 
3343
+ return $this->authenticate('ConfirmProductInstance', $opt, $this->hostname);
3344
+ }
3345
+
3346
+ /**
3347
+ *
3348
+ * Deletes an ingress or egress entry (i.e., rule) from a network ACL. For more information about network ACLs, go to
3349
+ * Network ACLs in the Amazon Virtual Private Cloud User Guide.
3350
+ *
3351
+ * @param string $network_acl_id (Required) ID of the network ACL.
3352
+ * @param integer $rule_number (Required) Rule number for the entry to delete.
3353
+ * @param boolean $egress (Required) Whether the rule to delete is an egress rule (<code>true</code>) or ingress rule (<code>false</code>).
3354
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3355
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3356
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3357
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3358
+ */
3359
+ public function delete_network_acl_entry($network_acl_id, $rule_number, $egress, $opt = null)
3360
+ {
3361
+ if (!$opt) $opt = array();
3362
+ $opt['NetworkAclId'] = $network_acl_id;
3363
+ $opt['RuleNumber'] = $rule_number;
3364
+ $opt['Egress'] = $egress;
3365
+
3366
+ return $this->authenticate('DeleteNetworkAclEntry', $opt, $this->hostname);
3367
+ }
3368
+
3369
+ /**
3370
+ *
3371
+ * This action applies only to security groups in a VPC. It doesn't work with EC2 security groups. For information about
3372
+ * Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide.
3373
+ *
3374
+ * The action removes one or more egress rules from a VPC security group. The values that you specify in the revoke
3375
+ * request (e.g., ports, etc.) must match the existing rule's values in order for the rule to be revoked.
3376
+ *
3377
+ * Each rule consists of the protocol, and the CIDR range or destination security group. For the TCP and UDP protocols,
3378
+ * you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type
3379
+ * and code.
3380
+ *
3381
+ * Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might
3382
+ * occur.
3383
+ *
3384
+ * @param string $group_id (Required) ID of the VPC security group to modify.
3385
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3386
+ * <li><code>IpPermissions</code> - <code>array</code> - Optional - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control. <ul>
3387
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
3388
+ * <li><code>IpProtocol</code> - <code>string</code> - Optional - The IP protocol of this permission. Valid protocol values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> </li>
3389
+ * <li><code>FromPort</code> - <code>integer</code> - Optional - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of <code>-1</code> indicates a wildcard (i.e., any ICMP type number). </li>
3390
+ * <li><code>ToPort</code> - <code>integer</code> - Optional - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of <code>-1</code> indicates a wildcard (i.e., any ICMP code). </li>
3391
+ * <li><code>Groups</code> - <code>array</code> - Optional - The list of AWS user IDs and groups included in this permission. <ul>
3392
+ * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
3393
+ * <li><code>UserId</code> - <code>string</code> - Optional - The AWS user ID of an account. </li>
3394
+ * <li><code>GroupName</code> - <code>string</code> - Optional - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
3395
+ * <li><code>GroupId</code> - <code>string</code> - Optional - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range. </li>
3396
+ * </ul></li>
3397
+ * </ul></li>
3398
+ * <li><code>IpRanges</code> - <code>string|array</code> - Optional - The list of CIDR IP ranges included in this permission. Pass a string for a single value, or an indexed array for multiple values. </li>
3399
+ * </ul></li>
3400
+ * </ul></li>
3401
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3402
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3403
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3404
+ */
3405
+ public function revoke_security_group_egress($group_id, $opt = null)
3406
+ {
3407
+ if (!$opt) $opt = array();
3408
+ $opt['GroupId'] = $group_id;
3409
+
3410
+ // Optional parameter
3411
+ if (isset($opt['IpPermissions']))
3412
+ {
3413
+ $opt = array_merge($opt, CFComplexType::map(array(
3414
+ 'IpPermissions' => $opt['IpPermissions']
3415
+ )));
3416
+ unset($opt['IpPermissions']);
3417
+ }
3418
+
3419
+ return $this->authenticate('RevokeSecurityGroupEgress', $opt, $this->hostname);
3420
  }
3421
 
3422
  /**
3427
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3428
  * <li><code>Size</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. Required if you are not creating a volume from a snapshot. </li>
3429
  * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which to create the new volume. </li>
3430
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3431
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3432
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3433
  */
3442
  /**
3443
  *
3444
  * Gives you information about your VPN gateways. You can filter the results to return information only about VPN gateways
3445
+ * that match criteria you specify.
3446
+ *
3447
+ * For example, you could ask to get information about a particular VPN gateway (or all) only if the gateway's state is
3448
+ * pending or available. You can specify multiple filters (e.g., the VPN gateway is in a particular Availability Zone and
3449
+ * the gateway's state is pending or available).
3450
+ *
3451
+ * The result includes information for a particular VPN gateway only if the gateway matches all your filters. If there's
3452
+ * no match, no special message is returned; the response is simply empty. The following table shows the available filters.
3453
  *
3454
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3455
+ * <li><code>VpnGatewayId</code> - <code>string|array</code> - Optional - A list of filters used to match properties for VPN Gateways. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. Pass a string for a single value, or an indexed array for multiple values. </li>
3456
+ * <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for VPN Gateways. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference. <ul>
3457
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
3458
  * <li><code>Name</code> - <code>string</code> - Optional - Specifies the name of the filter. </li>
3459
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
3460
  * </ul></li>
3461
  * </ul></li>
3462
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3463
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3464
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3465
  */
3495
  * VPC ID and the CIDR block you want for the subnet. Once you create a subnet, you can't change its CIDR block. The
3496
  * subnet's CIDR block can be the same as the VPC's CIDR block (assuming you want only a single subnet in the VPC), or a
3497
  * subset of the VPC's CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap.
3498
+ * The smallest subnet (and VPC) you can create uses a <code>/28</code> netmask (16 IP addresses), and the largest uses a
3499
+ * <code>/18</code> netmask (16,384 IP addresses).
3500
  *
3501
  * AWS reserves both the first four and the last IP address in each subnet's CIDR block. They're not available for use.
3502
  *
3504
  * @param string $cidr_block (Required) The CIDR block the subnet is to cover.
3505
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3506
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone to create the subnet in. </li>
3507
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3508
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3509
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3510
  */
3534
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
3535
  * </ul></li>
3536
  * </ul></li>
3537
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3538
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3539
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3540
  */
3565
 
3566
  /**
3567
  *
3568
+ * Deletes the snapshot identified by <code>snapshotId</code>.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3569
  *
3570
  * @param string $snapshot_id (Required) The ID of the snapshot to delete.
3571
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3572
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3573
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3574
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3575
  */
3583
 
3584
  /**
3585
  *
3586
+ * Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically
3587
+ * associated with the default network ACL. For more information about network ACLs, go to Network ACLs in the Amazon
3588
+ * Virtual Private Cloud User Guide.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3589
  *
3590
+ * @param string $association_id (Required) The ID representing the current association between the original network ACL and the subnet.
3591
+ * @param string $network_acl_id (Required) The ID of the new ACL to associate with the subnet.
3592
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3593
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3594
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3595
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3596
  */
3597
+ public function replace_network_acl_association($association_id, $network_acl_id, $opt = null)
3598
  {
3599
  if (!$opt) $opt = array();
3600
+ $opt['AssociationId'] = $association_id;
3601
+ $opt['NetworkAclId'] = $network_acl_id;
3602
 
3603
+ return $this->authenticate('ReplaceNetworkAclAssociation', $opt, $this->hostname);
 
 
 
 
 
3604
  }
3605
 
3606
  /**
3610
  *
3611
  * @param string $public_ip (Required) The elastic IP address that you are disassociating from the instance.
3612
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3613
+ * <li><code>AssocationId</code> - <code>string</code> - Optional - Association ID corresponding to the VPC elastic IP address you want to disassociate. </li>
3614
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3615
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3616
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3617
  */
3620
  if (!$opt) $opt = array();
3621
  $opt['PublicIp'] = $public_ip;
3622
 
3623
+ return $this->authenticate('DisassociateAddress', $opt, $this->hostname);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3624
  }
3625
 
3626
  /**
3627
  *
3628
+ * Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name
3629
+ * unique within the scope of the user account.
3630
  *
3631
+ * @param string $group_name (Required) The name of the <code>PlacementGroup</code>.
3632
+ * @param string $strategy (Required) The <code>PlacementGroup</code> strategy. [Allowed values: <code>cluster</code>]
3633
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3634
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3635
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3636
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3637
  */
3638
+ public function create_placement_group($group_name, $strategy, $opt = null)
3639
  {
3640
  if (!$opt) $opt = array();
3641
+ $opt['GroupName'] = $group_name;
3642
+ $opt['Strategy'] = $strategy;
3643
 
3644
+ return $this->authenticate('CreatePlacementGroup', $opt, $this->hostname);
3645
  }
3646
 
3647
  /**
3648
+ * The BundleInstance operation request that an instance is bundled the next time it boots. The
3649
+ * bundling process creates a new image from a running instance and stores the AMI data in S3. Once
3650
+ * bundled, the image must be registered in the normal way using the RegisterImage API.
 
 
3651
  *
3652
+ * @param string $instance_id (Required) The ID of the instance to bundle.
3653
+ * @param array $policy (Required) The details of S3 storage for bundling a Windows instance. Takes an associative array of parameters that can have the following keys: <ul>
3654
+ * <li><code>Bucket</code> - <code>string</code> - Optional - The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.</li>
3655
+ * <li><code>Prefix</code> - <code>string</code> - Optional - The prefix to use when storing the AMI in S3.</li>
3656
+ * <li><code>AWSAccessKeyId</code> - <code>string</code> - Optional - The Access Key ID of the owner of the Amazon S3 bucket. Use the <CFPolicy::get_key()> method of a <CFPolicy> instance.</li>
3657
+ * <li><code>UploadPolicy</code> - <code>string</code> - Optional - A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on the user's behalf. Use the <CFPolicy::get_policy()> method of a <CFPolicy> instance.</li>
3658
+ * <li><code>UploadPolicySignature</code> - <code>string</code> - Optional - The signature of the Base64 encoded JSON document. Use the <CFPolicy::get_policy_signature()> method of a <CFPolicy> instance.</li></ul>
3659
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3660
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3661
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
3662
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3663
  */
3664
+ public function bundle_instance($instance_id, $policy, $opt = null)
3665
  {
3666
  if (!$opt) $opt = array();
3667
  $opt['InstanceId'] = $instance_id;
3668
 
3669
+ $opt = array_merge($opt, CFComplexType::map(array(
3670
+ 'Storage.S3' => $policy
3671
+ )));
 
 
 
 
3672
 
3673
+ return $this->authenticate('BundleInstance', $opt, $this->hostname);
3674
  }
3675
 
3676
  /**
3677
  *
3678
+ * Deletes a PlacementGroup from a user's account. Terminate all Amazon EC2 instances in the placement group before
3679
+ * deletion.
3680
  *
3681
+ * @param string $group_name (Required) The name of the <code>PlacementGroup</code> to delete.
3682
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3683
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3684
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3685
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3686
  */
3687
+ public function delete_placement_group($group_name, $opt = null)
3688
  {
3689
  if (!$opt) $opt = array();
3690
+ $opt['GroupName'] = $group_name;
3691
 
3692
+ return $this->authenticate('DeletePlacementGroup', $opt, $this->hostname);
3693
  }
3694
 
3695
  /**
3696
  *
3697
+ * Deletes a VPC. You must detach or delete all gateways or other objects that are dependent on the VPC first. For
3698
+ * example, you must terminate all running instances, delete all VPC security groups (except the default), delete all the
3699
+ * route tables (except the default), etc.
3700
  *
3701
+ * @param string $vpc_id (Required) The ID of the VPC you want to delete.
 
3702
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3703
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
 
 
 
 
3704
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3705
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3706
  */
3707
+ public function delete_vpc($vpc_id, $opt = null)
3708
  {
3709
  if (!$opt) $opt = array();
3710
+ $opt['VpcId'] = $vpc_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3711
 
3712
+ return $this->authenticate('DeleteVpc', $opt, $this->hostname);
3713
  }
3714
 
3715
  /**
3716
  *
3717
+ * The AllocateAddress operation acquires an elastic IP address for use with your account.
 
 
 
 
 
 
 
 
 
3718
  *
 
3719
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3720
+ * <li><code>Domain</code> - <code>string</code> - Optional - Set to <code>vpc</code> to allocate the address to your VPC. By default, will allocate to EC2. [Allowed values: <code>vpc</code>, <code>standard</code>]</li>
3721
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3722
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3723
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3724
  */
3725
+ public function allocate_address($opt = null)
3726
  {
3727
  if (!$opt) $opt = array();
 
3728
 
3729
+ return $this->authenticate('AllocateAddress', $opt, $this->hostname);
3730
  }
3731
 
3732
  /**
3733
  *
3734
+ * The ReleaseAddress operation releases an elastic IP address associated with your account.
 
 
 
 
3735
  *
3736
+ * Releasing an IP address automatically disassociates it from any instance with which it is associated. For more
3737
+ * information, see DisassociateAddress.
3738
  *
3739
+ * After releasing an elastic IP address, it is released to the IP address pool and might no longer be available to your
3740
+ * account. Make sure to update your DNS records and any servers or devices that communicate with the address.
3741
+ *
3742
+ * If you run this operation on an elastic IP address that is already released, the address might be assigned to another
3743
+ * account which will cause Amazon EC2 to return an error.
3744
  *
 
 
 
3745
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3746
+ * <li><code>PublicIp</code> - <code>string</code> - Optional - The elastic IP address that you are releasing from your account. </li>
3747
+ * <li><code>AllocationId</code> - <code>string</code> - Optional - The allocation ID that AWS provided when you allocated the address for use with Amazon VPC. </li>
3748
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3749
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3750
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3751
  */
3752
+ public function release_address($opt = null)
3753
  {
3754
  if (!$opt) $opt = array();
 
 
 
3755
 
3756
+ return $this->authenticate('ReleaseAddress', $opt, $this->hostname);
3757
  }
3758
 
3759
  /**
3761
  * Resets an attribute of an instance to its default value.
3762
  *
3763
  * @param string $instance_id (Required) The ID of the Amazon EC2 instance whose attribute is being reset.
3764
+ * @param string $attribute (Required) The name of the attribute being reset. Available attribute names: <code>kernel</code>, <code>ramdisk</code>
3765
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3766
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3767
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3768
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3769
  */
3778
 
3779
  /**
3780
  *
3781
+ * The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference
3782
+ * this key pair when launching new instances. For more information, see RunInstances.
 
 
 
3783
  *
3784
+ * @param string $key_name (Required) The unique name for the new key pair.
3785
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3786
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3787
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3788
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3789
  */
3790
+ public function create_key_pair($key_name, $opt = null)
3791
  {
3792
  if (!$opt) $opt = array();
3793
+ $opt['KeyName'] = $key_name;
3794
 
3795
+ return $this->authenticate('CreateKeyPair', $opt, $this->hostname);
3796
  }
3797
 
3798
  /**
3799
  *
3800
+ * Replaces an entry (i.e., rule) in a network ACL. For more information about network ACLs, go to Network ACLs in the
3801
+ * Amazon Virtual Private Cloud User Guide.
3802
  *
3803
+ * @param string $network_acl_id (Required) ID of the ACL where the entry will be replaced.
3804
+ * @param integer $rule_number (Required) Rule number of the entry to replace.
3805
+ * @param string $protocol (Required) IP protocol the rule applies to. Valid Values: <code>tcp</code>, <code>udp</code>, <code>icmp</code> or an IP protocol number.
3806
+ * @param string $rule_action (Required) Whether to allow or deny traffic that matches the rule. [Allowed values: <code>allow</code>, <code>deny</code>]
3807
+ * @param boolean $egress (Required) Whether this rule applies to egress traffic from the subnet (<code>true</code>) or ingress traffic (<code>false</code>).
3808
+ * @param string $cidr_block (Required) The CIDR range to allow or deny, in CIDR notation (e.g., <code>172.16.0.0/24</code>).
3809
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3810
+ * <li><code>Icmp</code> - <code>array</code> - Optional - ICMP values. <ul>
3811
+ * <li><code>Type</code> - <code>integer</code> - Optional - For the ICMP protocol, the ICMP type. A value of <code>-1</code> is a wildcard meaning all types. Required if specifying <code>icmp</code> for the protocol. </li>
3812
+ * <li><code>Code</code> - <code>integer</code> - Optional - For the ICMP protocol, the ICMP code. A value of <code>-1</code> is a wildcard meaning all codes. Required if specifying <code>icmp</code> for the protocol. </li></ul></li>
3813
+ * <li><code>PortRange</code> - <code>array</code> - Optional - Port ranges. <ul>
3814
+ * <li><code>From</code> - <code>integer</code> - Optional - The first port in the range. Required if specifying <code>tcp</code> or <code>udp</code> for the protocol. </li>
3815
+ * <li><code>To</code> - <code>integer</code> - Optional - The last port in the range. Required if specifying <code>tcp</code> or <code>udp</code> for the protocol. </li></ul></li>
3816
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3817
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3818
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3819
  */
3820
+ public function replace_network_acl_entry($network_acl_id, $rule_number, $protocol, $rule_action, $egress, $cidr_block, $opt = null)
3821
  {
3822
  if (!$opt) $opt = array();
3823
+ $opt['NetworkAclId'] = $network_acl_id;
3824
+ $opt['RuleNumber'] = $rule_number;
3825
+ $opt['Protocol'] = $protocol;
3826
+ $opt['RuleAction'] = $rule_action;
3827
+ $opt['Egress'] = $egress;
3828
+ $opt['CidrBlock'] = $cidr_block;
3829
 
3830
+ // Optional parameter
3831
+ if (isset($opt['Icmp']))
3832
+ {
3833
+ $opt = array_merge($opt, CFComplexType::map(array(
3834
+ 'Icmp' => $opt['Icmp']
3835
+ )));
3836
+ unset($opt['Icmp']);
3837
+ }
3838
+
3839
+ // Optional parameter
3840
+ if (isset($opt['PortRange']))
3841
+ {
3842
+ $opt = array_merge($opt, CFComplexType::map(array(
3843
+ 'PortRange' => $opt['PortRange']
3844
+ )));
3845
+ unset($opt['PortRange']);
3846
+ }
3847
+
3848
+ return $this->authenticate('ReplaceNetworkAclEntry', $opt, $this->hostname);
3849
  }
3850
 
3851
  /**
3864
  * <li><code>Value</code> - <code>string|array</code> - Optional - Contains one or more values for the filter. Pass a string for a single value, or an indexed array for multiple values. </li>
3865
  * </ul></li>
3866
  * </ul></li>
3867
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3868
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3869
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3870
  */
3911
  return $this->authenticate('DescribeSnapshots', $opt, $this->hostname);
3912
  }
3913
 
3914
+ /**
3915
+ *
3916
+ * Creates a new network ACL in a VPC. Network ACLs provide an optional layer of security (on top of security groups) for
3917
+ * the instances in your VPC. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private
3918
+ * Cloud User Guide.
3919
+ *
3920
+ * @param string $vpc_id (Required) The ID of the VPC where the network ACL will be created.
3921
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3922
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3923
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3924
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3925
+ */
3926
+ public function create_network_acl($vpc_id, $opt = null)
3927
+ {
3928
+ if (!$opt) $opt = array();
3929
+ $opt['VpcId'] = $vpc_id;
3930
+
3931
+ return $this->authenticate('CreateNetworkAcl', $opt, $this->hostname);
3932
+ }
3933
+
3934
  /**
3935
  *
3936
  * The RegisterImage operation registers an AMI with Amazon EC2. Images must be registered before they can be launched.
3944
  * invalidates this registration. If you make changes to an image, deregister the previous image and register the new
3945
  * image. For more information, see DeregisterImage.
3946
  *
 
3947
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3948
+ * <li><code>ImageLocation</code> - <code>string</code> - Optional - The full path to your AMI manifest in Amazon S3 storage. </li>
3949
+ * <li><code>Name</code> - <code>string</code> - Optional - The name to give the new Amazon Machine Image. Constraints: 3-128 alphanumeric characters, parenthesis (<code>()</code>), commas (<code>,</code>), slashes (<code>/</code>), dashes (<code>-</code>), or underscores(<code>_</code>) </li>
3950
  * <li><code>Description</code> - <code>string</code> - Optional - The description describing the new AMI. </li>
3951
+ * <li><code>Architecture</code> - <code>string</code> - Optional - The architecture of the image. Valid Values: <code>i386</code>, <code>x86_64</code> </li>
3952
  * <li><code>KernelId</code> - <code>string</code> - Optional - The optional ID of a specific kernel to register with the new AMI. </li>
3953
  * <li><code>RamdiskId</code> - <code>string</code> - Optional - The optional ID of a specific ramdisk to register with the new AMI. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. </li>
3954
+ * <li><code>RootDeviceName</code> - <code>string</code> - Optional - The root device name (e.g., <code>/dev/sda1</code>). </li>
3955
  * <li><code>BlockDeviceMapping</code> - <code>array</code> - Optional - The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. <ul>
3956
  * <li><code>x</code> - <code>array</code> - This represents a simple array index. <ul>
3957
  * <li><code>VirtualName</code> - <code>string</code> - Optional - Specifies the virtual device name. </li>
3958
+ * <li><code>DeviceName</code> - <code>string</code> - Optional - Specifies the device name (e.g., <code>/dev/sdh</code>). </li>
3959
  * <li><code>Ebs</code> - <code>array</code> - Optional - Specifies parameters used to automatically setup Amazon EBS volumes when the instance is launched. Takes an associative array of parameters that can have the following keys: <ul>
3960
  * <li><code>SnapshotId</code> - <code>string</code> - Optional - The ID of the snapshot from which the volume will be created. </li>
3961
  * <li><code>VolumeSize</code> - <code>integer</code> - Optional - The size of the volume, in gigabytes. </li>
3964
  * <li><code>NoDevice</code> - <code>string</code> - Optional - Specifies the device name to suppress during instance launch. </li>
3965
  * </ul></li>
3966
  * </ul></li>
3967
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3968
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3969
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3970
  */
3971
+ public function register_image($opt = null)
3972
  {
3973
  if (!$opt) $opt = array();
 
3974
 
3975
  // Optional parameter
3976
  if (isset($opt['BlockDeviceMapping']))
3983
 
3984
  return $this->authenticate('RegisterImage', $opt, $this->hostname);
3985
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3986
  }
3987
 
3988
 
app/libs/aws/services/elasticbeanstalk.class.php CHANGED
@@ -36,7 +36,7 @@
36
  *
37
  * </ul>
38
  *
39
- * @version Tue Mar 01 17:14:17 PST 2011
40
  * @license See the included NOTICE.md file for complete information.
41
  * @copyright See the included NOTICE.md file for complete information.
42
  * @link http://aws.amazon.com/elasticbeanstalk/AWS Elastic Beanstalk
@@ -113,6 +113,7 @@ class AmazonElasticBeanstalk extends CFRuntime
113
  *
114
  * @param string $cname_prefix (Required) The prefix used when this CNAME is reserved.
115
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
116
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
117
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
118
  */
@@ -141,6 +142,7 @@ class AmazonElasticBeanstalk extends CFRuntime
141
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
142
  * </ul></li>
143
  * </ul></li>
 
144
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
145
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
146
  */
@@ -170,6 +172,7 @@ class AmazonElasticBeanstalk extends CFRuntime
170
  * @param string $application_name (Required) The name of the application to delete the configuration template from.
171
  * @param string $template_name (Required) The name of the configuration template to delete.
172
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
173
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
174
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
175
  */
@@ -207,6 +210,7 @@ class AmazonElasticBeanstalk extends CFRuntime
207
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
208
  * </ul></li>
209
  * </ul></li>
 
210
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
211
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
212
  */
@@ -244,6 +248,7 @@ class AmazonElasticBeanstalk extends CFRuntime
244
  * This location is used to store user log files.
245
  *
246
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
247
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
248
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
249
  */
@@ -273,6 +278,7 @@ class AmazonElasticBeanstalk extends CFRuntime
273
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
274
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment of the requested data. If no such environment is found, <code>RequestEnvironmentInfo</code> returns an <code>InvalidParameterValue</code> error. </li>
275
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment of the requested data. If no such environment is found, <code>RequestEnvironmentInfo</code> returns an <code>InvalidParameterValue</code> error. </li>
 
276
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
277
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
278
  */
@@ -300,6 +306,7 @@ class AmazonElasticBeanstalk extends CFRuntime
300
  * <li><code>S3Bucket</code> - <code>string</code> - Optional - The Amazon S3 bucket where the data is located. </li>
301
  * <li><code>S3Key</code> - <code>string</code> - Optional - The Amazon S3 key where the data is located. </li></ul></li>
302
  * <li><code>AutoCreateApplication</code> - <code>boolean</code> - Optional - Determines how the system behaves if the specified application for this version does not already exist: <enumValues> <value name="true"> <code>true</code>: Automatically creates the specified application for this version if it does not already exist. </value> <value name="false"> <code>false</code>: Returns an <code>InvalidParameterValue</code> if the specified application for this version does not already exist. </value> </enumValues> <ul> <li> <code>true</code> : Automatically creates the specified application for this release if it does not already exist. </li><li> <code>false</code> : Throws an <code>InvalidParameterValue</code> if the specified application for this release does not already exist. </li> </ul> Default: <code>false</code> Valid Values: <code>true</code> | <code>false</code> </li>
 
303
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
304
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
305
  */
@@ -331,6 +338,7 @@ class AmazonElasticBeanstalk extends CFRuntime
331
  * @param string $version_label (Required) The label of the version to delete.
332
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
333
  * <li><code>DeleteSourceBundle</code> - <code>boolean</code> - Optional - Indicates whether to delete the associated source bundle from Amazon S3: <ul> <li> <code>true</code>: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation. </li><li> <code>false</code>: No action is taken on the Amazon S3 source bundle specified at time of creation. </li> </ul> Valid Values: <code>true</code> | <code>false</code> </li>
 
334
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
335
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
336
  */
@@ -350,6 +358,7 @@ class AmazonElasticBeanstalk extends CFRuntime
350
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
351
  * <li><code>ApplicationName</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application. </li>
352
  * <li><code>VersionLabels</code> - <code>string|array</code> - Optional - If specified, restricts the returned descriptions to only include ones that have the specified version labels. Pass a string for a single value, or an indexed array for multiple values. </li>
 
353
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
354
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
355
  */
@@ -377,6 +386,7 @@ class AmazonElasticBeanstalk extends CFRuntime
377
  *
378
  * @param string $application_name (Required) The name of the application to delete.
379
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
380
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
381
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
382
  */
@@ -399,6 +409,7 @@ class AmazonElasticBeanstalk extends CFRuntime
399
  * @param string $version_label (Required) The name of the version to update. If no application version is found with this label, <code>UpdateApplication</code> returns an <code>InvalidParameterValue</code> error.
400
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
401
  * <li><code>Description</code> - <code>string</code> - Optional - A new description for this release. </li>
 
402
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
403
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
404
  */
@@ -421,6 +432,7 @@ class AmazonElasticBeanstalk extends CFRuntime
421
  * @param string $application_name (Required) The name of the application. Constraint: This name must be unique within your account. If the specified name already exists, the action returns an <code>InvalidParameterValue</code> error.
422
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
423
  * <li><code>Description</code> - <code>string</code> - Optional - Describes the application. </li>
 
424
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
425
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
426
  */
@@ -462,6 +474,7 @@ class AmazonElasticBeanstalk extends CFRuntime
462
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
463
  * </ul></li>
464
  * </ul></li>
 
465
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
466
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
467
  */
@@ -508,6 +521,7 @@ class AmazonElasticBeanstalk extends CFRuntime
508
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
509
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the data's environment. If no such environment is found, returns an <code>InvalidParameterValue</code> error. </li>
510
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the data's environment. If no such environment is found, returns an <code>InvalidParameterValue</code> error. </li>
 
511
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
512
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
513
  */
@@ -524,6 +538,7 @@ class AmazonElasticBeanstalk extends CFRuntime
524
  * Returns a list of the available solution stack names.
525
  *
526
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
527
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
528
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
529
  */
@@ -544,6 +559,7 @@ class AmazonElasticBeanstalk extends CFRuntime
544
  * @param string $application_name (Required) The name of the application to update. If no such application is found, <code>UpdateApplication</code> returns an <code>InvalidParameterValue</code> error.
545
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
546
  * <li><code>Description</code> - <code>string</code> - Optional - A new description for the application. Default: If not specified, AWS Elastic Beanstalk does not update the description. </li>
 
547
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
548
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
549
  */
@@ -566,6 +582,7 @@ class AmazonElasticBeanstalk extends CFRuntime
566
  * <li><code>EnvironmentNames</code> - <code>string|array</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names. Pass a string for a single value, or an indexed array for multiple values. </li>
567
  * <li><code>IncludeDeleted</code> - <code>boolean</code> - Optional - Indicates whether to include deleted environments: <code>true</code>: Environments that have been deleted after <code>IncludedDeletedBackTo</code> are displayed. <code>false</code>: Do not include deleted environments. </li>
568
  * <li><code>IncludedDeletedBackTo</code> - <code>string</code> - Optional - If specified when <code>IncludeDeleted</code> is set to <code>true</code>, then environments deleted after this date are displayed. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
569
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
570
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
571
  */
@@ -607,6 +624,7 @@ class AmazonElasticBeanstalk extends CFRuntime
607
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
608
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to retrieve AWS resource usage data. </li>
609
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to retrieve AWS resource usage data. </li>
 
610
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
611
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
612
  */
@@ -625,6 +643,7 @@ class AmazonElasticBeanstalk extends CFRuntime
625
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to terminate. </li>
626
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to terminate. </li>
627
  * <li><code>TerminateResources</code> - <code>boolean</code> - Optional - Indicates whether the associated AWS resources should shut down when the environment is terminated: <enumValues> <value name="true"> <code>true</code>: (default) The user AWS resources (for example, the Auto Scaling group, LoadBalancer, etc.) are terminated along with the environment. </value> <value name="false"> <code>false</code>: The environment is removed from the AWS Elastic Beanstalk but the AWS resources continue to operate. </value> </enumValues> <ul> <li> <code>true</code>: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. </li><li> <code>false</code>: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate. </li> </ul> For more information, see the AWS Elastic Beanstalk User Guide. Default: <code>true</code> Valid Values: <code>true</code> | <code>false</code> </li>
 
628
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
629
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
630
  */
@@ -654,6 +673,7 @@ class AmazonElasticBeanstalk extends CFRuntime
654
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
655
  * <li><code>TemplateName</code> - <code>string</code> - Optional - The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name. </li>
656
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to validate the settings against. Condition: You cannot specify both this and a configuration template name. </li>
 
657
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
658
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
659
  */
@@ -677,6 +697,7 @@ class AmazonElasticBeanstalk extends CFRuntime
677
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
678
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to restart the server for. </li>
679
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to restart the server for. </li>
 
680
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
681
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
682
  */
@@ -699,6 +720,7 @@ class AmazonElasticBeanstalk extends CFRuntime
699
  * @param string $application_name (Required) The name of the application the environment is associated with.
700
  * @param string $environment_name (Required) The name of the environment to delete the draft configuration from.
701
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
702
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
703
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
704
  */
@@ -742,6 +764,7 @@ class AmazonElasticBeanstalk extends CFRuntime
742
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
743
  * </ul></li>
744
  * </ul></li>
 
745
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
746
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
747
  */
@@ -802,6 +825,7 @@ class AmazonElasticBeanstalk extends CFRuntime
802
  * <li><code>Value</code> - <code>string</code> - Optional - The current value for the configuration option. </li>
803
  * </ul></li>
804
  * </ul></li>
 
805
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
806
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
807
  */
@@ -851,6 +875,7 @@ class AmazonElasticBeanstalk extends CFRuntime
851
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
852
  * <li><code>TemplateName</code> - <code>string</code> - Optional - The name of the configuration template to describe. </li>
853
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to describe. </li>
 
854
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
855
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
856
  */
@@ -868,6 +893,7 @@ class AmazonElasticBeanstalk extends CFRuntime
868
  *
869
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
870
  * <li><code>ApplicationNames</code> - <code>string|array</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names. Pass a string for a single value, or an indexed array for multiple values. </li>
 
871
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
872
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
873
  */
@@ -895,6 +921,7 @@ class AmazonElasticBeanstalk extends CFRuntime
895
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
896
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to rebuild. </li>
897
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to rebuild. </li>
 
898
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
899
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
900
  */
@@ -922,6 +949,7 @@ class AmazonElasticBeanstalk extends CFRuntime
922
  * <li><code>StartTime</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
923
  * <li><code>EndTime</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the <code>EndTime</code>. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
924
  * <li><code>NextToken</code> - <code>string</code> - Optional - Pagination token. If specified, the events return the next batch of results. </li>
 
925
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
926
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
927
  */
36
  *
37
  * </ul>
38
  *
39
+ * @version Fri Mar 25 13:14:04 PDT 2011
40
  * @license See the included NOTICE.md file for complete information.
41
  * @copyright See the included NOTICE.md file for complete information.
42
  * @link http://aws.amazon.com/elasticbeanstalk/AWS Elastic Beanstalk
113
  *
114
  * @param string $cname_prefix (Required) The prefix used when this CNAME is reserved.
115
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
116
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
117
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
118
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
119
  */
142
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
143
  * </ul></li>
144
  * </ul></li>
145
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
146
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
147
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
148
  */
172
  * @param string $application_name (Required) The name of the application to delete the configuration template from.
173
  * @param string $template_name (Required) The name of the configuration template to delete.
174
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
175
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
176
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
177
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
178
  */
210
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
211
  * </ul></li>
212
  * </ul></li>
213
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
214
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
215
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
216
  */
248
  * This location is used to store user log files.
249
  *
250
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
251
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
252
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
253
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
254
  */
278
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
279
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment of the requested data. If no such environment is found, <code>RequestEnvironmentInfo</code> returns an <code>InvalidParameterValue</code> error. </li>
280
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment of the requested data. If no such environment is found, <code>RequestEnvironmentInfo</code> returns an <code>InvalidParameterValue</code> error. </li>
281
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
282
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
283
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
284
  */
306
  * <li><code>S3Bucket</code> - <code>string</code> - Optional - The Amazon S3 bucket where the data is located. </li>
307
  * <li><code>S3Key</code> - <code>string</code> - Optional - The Amazon S3 key where the data is located. </li></ul></li>
308
  * <li><code>AutoCreateApplication</code> - <code>boolean</code> - Optional - Determines how the system behaves if the specified application for this version does not already exist: <enumValues> <value name="true"> <code>true</code>: Automatically creates the specified application for this version if it does not already exist. </value> <value name="false"> <code>false</code>: Returns an <code>InvalidParameterValue</code> if the specified application for this version does not already exist. </value> </enumValues> <ul> <li> <code>true</code> : Automatically creates the specified application for this release if it does not already exist. </li><li> <code>false</code> : Throws an <code>InvalidParameterValue</code> if the specified application for this release does not already exist. </li> </ul> Default: <code>false</code> Valid Values: <code>true</code> | <code>false</code> </li>
309
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
310
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
311
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
312
  */
338
  * @param string $version_label (Required) The label of the version to delete.
339
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
340
  * <li><code>DeleteSourceBundle</code> - <code>boolean</code> - Optional - Indicates whether to delete the associated source bundle from Amazon S3: <ul> <li> <code>true</code>: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation. </li><li> <code>false</code>: No action is taken on the Amazon S3 source bundle specified at time of creation. </li> </ul> Valid Values: <code>true</code> | <code>false</code> </li>
341
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
342
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
343
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
344
  */
358
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
359
  * <li><code>ApplicationName</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application. </li>
360
  * <li><code>VersionLabels</code> - <code>string|array</code> - Optional - If specified, restricts the returned descriptions to only include ones that have the specified version labels. Pass a string for a single value, or an indexed array for multiple values. </li>
361
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
362
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
363
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
364
  */
386
  *
387
  * @param string $application_name (Required) The name of the application to delete.
388
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
389
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
390
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
391
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
392
  */
409
  * @param string $version_label (Required) The name of the version to update. If no application version is found with this label, <code>UpdateApplication</code> returns an <code>InvalidParameterValue</code> error.
410
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
411
  * <li><code>Description</code> - <code>string</code> - Optional - A new description for this release. </li>
412
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
413
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
414
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
415
  */
432
  * @param string $application_name (Required) The name of the application. Constraint: This name must be unique within your account. If the specified name already exists, the action returns an <code>InvalidParameterValue</code> error.
433
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
434
  * <li><code>Description</code> - <code>string</code> - Optional - Describes the application. </li>
435
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
436
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
437
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
438
  */
474
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
475
  * </ul></li>
476
  * </ul></li>
477
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
478
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
479
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
480
  */
521
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
522
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the data's environment. If no such environment is found, returns an <code>InvalidParameterValue</code> error. </li>
523
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the data's environment. If no such environment is found, returns an <code>InvalidParameterValue</code> error. </li>
524
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
525
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
526
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
527
  */
538
  * Returns a list of the available solution stack names.
539
  *
540
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
541
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
542
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
543
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
544
  */
559
  * @param string $application_name (Required) The name of the application to update. If no such application is found, <code>UpdateApplication</code> returns an <code>InvalidParameterValue</code> error.
560
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
561
  * <li><code>Description</code> - <code>string</code> - Optional - A new description for the application. Default: If not specified, AWS Elastic Beanstalk does not update the description. </li>
562
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
563
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
564
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
565
  */
582
  * <li><code>EnvironmentNames</code> - <code>string|array</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names. Pass a string for a single value, or an indexed array for multiple values. </li>
583
  * <li><code>IncludeDeleted</code> - <code>boolean</code> - Optional - Indicates whether to include deleted environments: <code>true</code>: Environments that have been deleted after <code>IncludedDeletedBackTo</code> are displayed. <code>false</code>: Do not include deleted environments. </li>
584
  * <li><code>IncludedDeletedBackTo</code> - <code>string</code> - Optional - If specified when <code>IncludeDeleted</code> is set to <code>true</code>, then environments deleted after this date are displayed. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
585
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
586
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
587
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
588
  */
624
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
625
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to retrieve AWS resource usage data. </li>
626
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to retrieve AWS resource usage data. </li>
627
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
628
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
629
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
630
  */
643
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to terminate. </li>
644
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to terminate. </li>
645
  * <li><code>TerminateResources</code> - <code>boolean</code> - Optional - Indicates whether the associated AWS resources should shut down when the environment is terminated: <enumValues> <value name="true"> <code>true</code>: (default) The user AWS resources (for example, the Auto Scaling group, LoadBalancer, etc.) are terminated along with the environment. </value> <value name="false"> <code>false</code>: The environment is removed from the AWS Elastic Beanstalk but the AWS resources continue to operate. </value> </enumValues> <ul> <li> <code>true</code>: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated. </li><li> <code>false</code>: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate. </li> </ul> For more information, see the AWS Elastic Beanstalk User Guide. Default: <code>true</code> Valid Values: <code>true</code> | <code>false</code> </li>
646
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
647
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
648
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
649
  */
673
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
674
  * <li><code>TemplateName</code> - <code>string</code> - Optional - The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name. </li>
675
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to validate the settings against. Condition: You cannot specify both this and a configuration template name. </li>
676
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
677
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
678
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
679
  */
697
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
698
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to restart the server for. </li>
699
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to restart the server for. </li>
700
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
701
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
702
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
703
  */
720
  * @param string $application_name (Required) The name of the application the environment is associated with.
721
  * @param string $environment_name (Required) The name of the environment to delete the draft configuration from.
722
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
723
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
724
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
725
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
726
  */
764
  * <li><code>OptionName</code> - <code>string</code> - Optional - The name of the configuration option. </li>
765
  * </ul></li>
766
  * </ul></li>
767
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
768
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
769
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
770
  */
825
  * <li><code>Value</code> - <code>string</code> - Optional - The current value for the configuration option. </li>
826
  * </ul></li>
827
  * </ul></li>
828
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
829
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
830
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
831
  */
875
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
876
  * <li><code>TemplateName</code> - <code>string</code> - Optional - The name of the configuration template to describe. </li>
877
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to describe. </li>
878
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
879
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
880
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
881
  */
893
  *
894
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
895
  * <li><code>ApplicationNames</code> - <code>string|array</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names. Pass a string for a single value, or an indexed array for multiple values. </li>
896
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
897
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
898
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
899
  */
921
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
922
  * <li><code>EnvironmentId</code> - <code>string</code> - Optional - The ID of the environment to rebuild. </li>
923
  * <li><code>EnvironmentName</code> - <code>string</code> - Optional - The name of the environment to rebuild. </li>
924
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
925
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
926
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
927
  */
949
  * <li><code>StartTime</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
950
  * <li><code>EndTime</code> - <code>string</code> - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the <code>EndTime</code>. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
951
  * <li><code>NextToken</code> - <code>string</code> - Optional - Pagination token. If specified, the events return the next batch of results. </li>
952
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
953
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
954
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
955
  */
app/libs/aws/services/elb.class.php CHANGED
@@ -20,7 +20,7 @@
20
  * of your application. It makes it easy for you to distribute application loads between two or more EC2 instances. Elastic
21
  * Load Balancing enables availability through redundancy and supports traffic growth of your application.
22
  *
23
- * @version Tue Mar 01 17:15:42 PST 2011
24
  * @license See the included NOTICE.md file for complete information.
25
  * @copyright See the included NOTICE.md file for complete information.
26
  * @link http://aws.amazon.com/elasticloadbalancing/Amazon Elastic Load Balancing
@@ -127,6 +127,7 @@ class AmazonELB extends CFRuntime
127
  * </ul></li>
128
  * </ul>
129
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
130
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
131
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
132
  */
@@ -160,6 +161,7 @@ class AmazonELB extends CFRuntime
160
  * @param string $policy_name (Required) The name of the policy being created. The name must be unique within the set of policies for this Load Balancer.
161
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
162
  * <li><code>CookieExpirationPeriod</code> - <code>long</code> - Optional - The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the sticky session will last for the duration of the browser session. </li>
 
163
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
164
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
165
  */
@@ -185,6 +187,7 @@ class AmazonELB extends CFRuntime
185
  * <li><code>HealthyThreshold</code> - <code>integer</code> - Required - Specifies the number of consecutive health probe successes required before moving the instance to the <i>Healthy</i> state. </li>
186
  * </ul>
187
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
188
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
189
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
190
  */
@@ -211,6 +214,7 @@ class AmazonELB extends CFRuntime
211
  *
212
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
213
  * <li><code>LoadBalancerNames</code> - <code>string|array</code> - Optional - A list of names associated with the LoadBalancers at creation time. Pass a string for a single value, or an indexed array for multiple values. </li>
 
214
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
215
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
216
  */
@@ -239,6 +243,7 @@ class AmazonELB extends CFRuntime
239
  * @param integer $load_balancer_port (Required) The port that uses the specified SSL certificate.
240
  * @param string $ssl_certificate_id (Required) The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Server Certificates in the AWS Identity and Access Management documentation.
241
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
242
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
243
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
244
  */
@@ -289,6 +294,7 @@ class AmazonELB extends CFRuntime
289
  * </ul>
290
  * @param string|array $availability_zones (Required) A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones. This list can be modified after the creation of the LoadBalancer. Pass a string for a single value, or an indexed array for multiple values.
291
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
292
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
293
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
294
  */
@@ -323,6 +329,7 @@ class AmazonELB extends CFRuntime
323
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
324
  * @param string|array $availability_zones (Required) A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer. Pass a string for a single value, or an indexed array for multiple values.
325
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
326
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
327
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
328
  */
@@ -354,6 +361,7 @@ class AmazonELB extends CFRuntime
354
  * <li><code>InstanceId</code> - <code>string</code> - Optional - Provides an EC2 instance ID. </li>
355
  * </ul></li>
356
  * </ul></li>
 
357
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
358
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
359
  */
@@ -381,6 +389,7 @@ class AmazonELB extends CFRuntime
381
  * @param string $load_balancer_name (Required) The mnemonic name associated with the LoadBalancer. The name must be unique within your AWS account.
382
  * @param string $policy_name (Required) The mnemonic name for the policy being deleted.
383
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
384
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
385
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
386
  */
@@ -409,6 +418,7 @@ class AmazonELB extends CFRuntime
409
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
410
  * @param string|array $availability_zones (Required) A list of Availability Zones to be removed from the LoadBalancer. There must be at least one Availability Zone registered with a LoadBalancer at all times. The client cannot remove all the Availability Zones from a LoadBalancer. Specified Availability Zones must be in the same Region. Pass a string for a single value, or an indexed array for multiple values.
411
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
412
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
413
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
414
  */
@@ -440,6 +450,7 @@ class AmazonELB extends CFRuntime
440
  * </ul></li>
441
  * </ul>
442
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
443
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
444
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
445
  */
@@ -463,6 +474,7 @@ class AmazonELB extends CFRuntime
463
  * @param string $load_balancer_name (Required) The mnemonic name associated with the LoadBalancer.
464
  * @param integer LoadBalancerPorts (Required) The client port number(s) of the LoadBalancerListener(s) to be removed.
465
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
466
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
467
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
468
  */
@@ -495,6 +507,7 @@ class AmazonELB extends CFRuntime
495
  *
496
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
497
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
498
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
499
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
500
  */
@@ -523,6 +536,7 @@ class AmazonELB extends CFRuntime
523
  * @param string $policy_name (Required) The name of the policy being created. The name must be unique within the set of policies for this Load Balancer.
524
  * @param string $cookie_name (Required) Name of the application cookie used for stickiness.
525
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
526
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
527
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
528
  */
@@ -557,6 +571,7 @@ class AmazonELB extends CFRuntime
557
  * </ul></li>
558
  * </ul>
559
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
560
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
561
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
562
  */
@@ -582,6 +597,7 @@ class AmazonELB extends CFRuntime
582
  * @param integer $load_balancer_port (Required) The external port of the LoadBalancer with which this policy has to be associated.
583
  * @param string|array $policy_names (Required) List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener. Pass a string for a single value, or an indexed array for multiple values.
584
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
585
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
586
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
587
  */
20
  * of your application. It makes it easy for you to distribute application loads between two or more EC2 instances. Elastic
21
  * Load Balancing enables availability through redundancy and supports traffic growth of your application.
22
  *
23
+ * @version Fri Mar 25 13:15:34 PDT 2011
24
  * @license See the included NOTICE.md file for complete information.
25
  * @copyright See the included NOTICE.md file for complete information.
26
  * @link http://aws.amazon.com/elasticloadbalancing/Amazon Elastic Load Balancing
127
  * </ul></li>
128
  * </ul>
129
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
130
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
131
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
132
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
133
  */
161
  * @param string $policy_name (Required) The name of the policy being created. The name must be unique within the set of policies for this Load Balancer.
162
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
163
  * <li><code>CookieExpirationPeriod</code> - <code>long</code> - Optional - The time period in seconds after which the cookie should be considered stale. Not specifying this parameter indicates that the sticky session will last for the duration of the browser session. </li>
164
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
165
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
166
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
167
  */
187
  * <li><code>HealthyThreshold</code> - <code>integer</code> - Required - Specifies the number of consecutive health probe successes required before moving the instance to the <i>Healthy</i> state. </li>
188
  * </ul>
189
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
190
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
191
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
192
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
193
  */
214
  *
215
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
216
  * <li><code>LoadBalancerNames</code> - <code>string|array</code> - Optional - A list of names associated with the LoadBalancers at creation time. Pass a string for a single value, or an indexed array for multiple values. </li>
217
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
218
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
219
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
220
  */
243
  * @param integer $load_balancer_port (Required) The port that uses the specified SSL certificate.
244
  * @param string $ssl_certificate_id (Required) The ID of the SSL certificate chain to use. For more information on SSL certificates, see Managing Server Certificates in the AWS Identity and Access Management documentation.
245
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
246
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
247
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
248
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
249
  */
294
  * </ul>
295
  * @param string|array $availability_zones (Required) A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones. This list can be modified after the creation of the LoadBalancer. Pass a string for a single value, or an indexed array for multiple values.
296
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
297
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
298
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
299
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
300
  */
329
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
330
  * @param string|array $availability_zones (Required) A list of new Availability Zones for the LoadBalancer. Each Availability Zone must be in the same Region as the LoadBalancer. Pass a string for a single value, or an indexed array for multiple values.
331
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
332
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
333
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
334
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
335
  */
361
  * <li><code>InstanceId</code> - <code>string</code> - Optional - Provides an EC2 instance ID. </li>
362
  * </ul></li>
363
  * </ul></li>
364
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
365
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
366
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
367
  */
389
  * @param string $load_balancer_name (Required) The mnemonic name associated with the LoadBalancer. The name must be unique within your AWS account.
390
  * @param string $policy_name (Required) The mnemonic name for the policy being deleted.
391
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
392
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
393
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
394
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
395
  */
418
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
419
  * @param string|array $availability_zones (Required) A list of Availability Zones to be removed from the LoadBalancer. There must be at least one Availability Zone registered with a LoadBalancer at all times. The client cannot remove all the Availability Zones from a LoadBalancer. Specified Availability Zones must be in the same Region. Pass a string for a single value, or an indexed array for multiple values.
420
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
421
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
422
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
423
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
424
  */
450
  * </ul></li>
451
  * </ul>
452
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
453
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
454
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
455
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
456
  */
474
  * @param string $load_balancer_name (Required) The mnemonic name associated with the LoadBalancer.
475
  * @param integer LoadBalancerPorts (Required) The client port number(s) of the LoadBalancerListener(s) to be removed.
476
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
477
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
478
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
479
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
480
  */
507
  *
508
  * @param string $load_balancer_name (Required) The name associated with the LoadBalancer. The name must be unique within the client AWS account.
509
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
510
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
511
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
512
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
513
  */
536
  * @param string $policy_name (Required) The name of the policy being created. The name must be unique within the set of policies for this Load Balancer.
537
  * @param string $cookie_name (Required) Name of the application cookie used for stickiness.
538
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
539
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
540
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
541
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
542
  */
571
  * </ul></li>
572
  * </ul>
573
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
574
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
575
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
576
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
577
  */
597
  * @param integer $load_balancer_port (Required) The external port of the LoadBalancer with which this policy has to be associated.
598
  * @param string|array $policy_names (Required) List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener. Pass a string for a single value, or an indexed array for multiple values.
599
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
600
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
601
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
602
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
603
  */
app/libs/aws/services/emr.class.php CHANGED
@@ -19,7 +19,7 @@
19
  * This is the Amazon Elastic MapReduce API Reference Guide. This guide is for programmers who need detailed information
20
  * about the Amazon Elastic MapReduce APIs.
21
  *
22
- * @version Tue Mar 01 17:16:53 PST 2011
23
  * @license See the included NOTICE.md file for complete information.
24
  * @copyright See the included NOTICE.md file for complete information.
25
  * @link http://aws.amazon.com/elasticmapreduce/Amazon Elastic MapReduce
@@ -121,6 +121,7 @@ class AmazonEMR extends CFRuntime
121
  * <li><code>InstanceType</code> - <code>string</code> - Required - The Amazon EC2 instance type for all instances in the instance group.</li>
122
  * <li><code>InstanceCount</code> - <code>integer</code> - Required - Target number of instances for the instance group.</li></ul>
123
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
124
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
125
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
126
  */
@@ -171,6 +172,7 @@ class AmazonEMR extends CFRuntime
171
  * </ul></li>
172
  * </ul>
173
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
174
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
175
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
176
  */
@@ -195,6 +197,7 @@ class AmazonEMR extends CFRuntime
195
  *
196
  * @param string|array $job_flow_ids (Required) A list of job flows to be shutdown. Pass a string for a single value, or an indexed array for multiple values.
197
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
198
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
199
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
200
  */
@@ -233,6 +236,7 @@ class AmazonEMR extends CFRuntime
233
  * <li><code>CreatedBefore</code> - <code>string</code> - Optional - Return only job flows created before this date and time. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
234
  * <li><code>JobFlowIds</code> - <code>string|array</code> - Optional - Return only job flows whose job flow ID is contained in this list. Pass a string for a single value, or an indexed array for multiple values. </li>
235
  * <li><code>JobFlowStates</code> - <code>string|array</code> - Optional - Return only job flows whose state is contained in this list. Pass a string for a single value, or an indexed array for multiple values. </li>
 
236
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
237
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
238
  */
@@ -335,6 +339,7 @@ class AmazonEMR extends CFRuntime
335
  * </ul></li>
336
  * </ul></li>
337
  * </ul></li>
 
338
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
339
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
340
  */
@@ -390,6 +395,7 @@ class AmazonEMR extends CFRuntime
390
  * <li><code>InstanceCount</code> - <code>integer</code> - Required - Target size for the instance group. </li>
391
  * </ul></li>
392
  * </ul></li>
 
393
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
394
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
395
  */
19
  * This is the Amazon Elastic MapReduce API Reference Guide. This guide is for programmers who need detailed information
20
  * about the Amazon Elastic MapReduce APIs.
21
  *
22
+ * @version Fri Mar 25 13:16:39 PDT 2011
23
  * @license See the included NOTICE.md file for complete information.
24
  * @copyright See the included NOTICE.md file for complete information.
25
  * @link http://aws.amazon.com/elasticmapreduce/Amazon Elastic MapReduce
121
  * <li><code>InstanceType</code> - <code>string</code> - Required - The Amazon EC2 instance type for all instances in the instance group.</li>
122
  * <li><code>InstanceCount</code> - <code>integer</code> - Required - Target number of instances for the instance group.</li></ul>
123
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
124
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
125
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
126
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
127
  */
172
  * </ul></li>
173
  * </ul>
174
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
175
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
176
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
177
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
178
  */
197
  *
198
  * @param string|array $job_flow_ids (Required) A list of job flows to be shutdown. Pass a string for a single value, or an indexed array for multiple values.
199
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
200
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
201
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
202
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
203
  */
236
  * <li><code>CreatedBefore</code> - <code>string</code> - Optional - Return only job flows created before this date and time. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
237
  * <li><code>JobFlowIds</code> - <code>string|array</code> - Optional - Return only job flows whose job flow ID is contained in this list. Pass a string for a single value, or an indexed array for multiple values. </li>
238
  * <li><code>JobFlowStates</code> - <code>string|array</code> - Optional - Return only job flows whose state is contained in this list. Pass a string for a single value, or an indexed array for multiple values. </li>
239
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
240
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
241
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
242
  */
339
  * </ul></li>
340
  * </ul></li>
341
  * </ul></li>
342
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
343
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
344
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
345
  */
395
  * <li><code>InstanceCount</code> - <code>integer</code> - Required - Target size for the instance group. </li>
396
  * </ul></li>
397
  * </ul></li>
398
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
399
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
400
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
401
  */
app/libs/aws/services/iam.class.php CHANGED
@@ -17,26 +17,17 @@
17
  /**
18
  *
19
  *
 
 
 
 
20
  * AWS Identity and Access Management (IAM) is a web service that enables Amazon Web Services (AWS) customers to manage
21
  * Users and User permissions under their AWS Account.
22
  *
23
- * This is the AWS Identity and Access Management API Reference. This guide describes who should read this guide and other
24
- * resources related to IAM.
25
- *
26
- * Use of this guide assumes you are familiar with the following:
27
- *
28
- * <ul> <li>Basic understanding of web services (for information, go to W3 Schools Web Services Tutorial at <a
29
- * href="http://www.w3schools.com/webservices/default.asp">http://www.w3schools.com/webservices/default.asp</a>).</li>
30
- *
31
- * <li>XML (for information, go to W3 Schools XML Tutorial at <a
32
- * href="http://www.w3schools.com/xml/default.asp">http://www.w3schools.com/xml/default.asp</a>).</li>
33
- *
34
- * <li>JSON (for information, go to <a href="http://json.org">http://json.org</a>)</li>
35
- *
36
- * <li>The specific AWS products you are using or plan to use (e.g., Amazon Elastic Compute Cloud (Amazon EC2), Amazon
37
- * Simple Storage Service (Amazon S3), and so on.)</li>
38
- *
39
- * </ul>
40
  *
41
  * If you're new to AWS and need additional technical information about a specific AWS product, you can find the product's
42
  * technical documentation at <a href="http://aws.amazon.com/documentation/">http://aws.amazon.com/documentation/</a>.
@@ -44,7 +35,7 @@
44
  * We will refer to Amazon AWS Identity and Access Management using the abbreviated form IAM. All copyrights and legal
45
  * protections still apply.
46
  *
47
- * @version Tue Mar 01 17:17:30 PST 2011
48
  * @license See the included NOTICE.md file for complete information.
49
  * @copyright See the included NOTICE.md file for complete information.
50
  * @link http://aws.amazon.com/iam/Amazon Identity and Access Management Service
@@ -105,6 +96,7 @@ class AmazonIAM extends CFRuntime
105
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/division_abc/subdivision_xyz/</code>, which would get all groups whose path starts with <code>/division_abc/subdivision_xyz/</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. </li>
106
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
107
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of groups you want in the response. If there are additional groups beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
108
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
109
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
110
  */
@@ -126,6 +118,7 @@ class AmazonIAM extends CFRuntime
126
  * @param string $access_key_id (Required) The Access Key ID for the Access Key ID and Secret Access Key you want to delete.
127
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
128
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User whose key you want to delete. </li>
 
129
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
130
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
131
  */
@@ -139,10 +132,13 @@ class AmazonIAM extends CFRuntime
139
 
140
  /**
141
  *
142
- * Deletes the specified account alias.
 
 
143
  *
144
  * @param string $account_alias (Required) Name of the account alias to delete.
145
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
146
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
147
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
148
  */
@@ -170,6 +166,7 @@ class AmazonIAM extends CFRuntime
170
  * <li><code>UserName</code> - <code>string</code> - Optional - The name of the User. </li>
171
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
172
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of certificate IDs you want in the response. If there are additional certificate IDs beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
173
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
174
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
175
  */
@@ -198,6 +195,7 @@ class AmazonIAM extends CFRuntime
198
  * @param string $certificate_body (Required) The contents of the signing certificate.
199
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
200
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate is for. </li>
 
201
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
202
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
203
  */
@@ -216,6 +214,7 @@ class AmazonIAM extends CFRuntime
216
  * @param string $user_name (Required) Name of the User the policy is associated with.
217
  * @param string $policy_name (Required) Name of the policy document to delete.
218
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
219
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
220
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
221
  */
@@ -247,6 +246,7 @@ class AmazonIAM extends CFRuntime
247
  * @param string $policy_name (Required) Name of the policy document.
248
  * @param string $policy_document (Required) The policy document.
249
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
250
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
251
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
252
  */
@@ -270,6 +270,7 @@ class AmazonIAM extends CFRuntime
270
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/company/servercerts</code> would get all server certificates for which the path starts with <code>/company/servercerts</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. </li>
271
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
272
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of server certificates you want in the response. If there are additional server certificates beyond the maximum you specify, the <code>IsTruncated</code> response element will be set to <code>true</code>. </li>
 
273
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
274
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
275
  */
@@ -289,6 +290,7 @@ class AmazonIAM extends CFRuntime
289
  * @param string $user_name (Required) Name of the User who the policy is associated with.
290
  * @param string $policy_name (Required) Name of the policy document to get.
291
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
292
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
293
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
294
  */
@@ -305,13 +307,10 @@ class AmazonIAM extends CFRuntime
305
  *
306
  * Updates the login profile for the specified User. Use this API to change the User's password.
307
  *
308
- * In the full release you will be able to use IAM to access your services through the AWS Management Console. Although
309
- * this feature is not currently available, you can create login profiles for your Users now. Then, when this feature is
310
- * implemented, your Users can use IAM to access your services through the AWS Management Console.
311
- *
312
  * @param string $user_name (Required) Name of the User whose login profile you want to update.
313
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
314
  * <li><code>Password</code> - <code>string</code> - Optional - The new password for the User name. </li>
 
315
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
316
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
317
  */
@@ -341,6 +340,7 @@ class AmazonIAM extends CFRuntime
341
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
342
  * <li><code>NewPath</code> - <code>string</code> - Optional - The new path for the server certificate. Include this only if you are updating the server certificate's path. </li>
343
  * <li><code>NewServerCertificateName</code> - <code>string</code> - Optional - The new name for the server certificate. Include this only if you are updating the server certificate's name. </li>
 
344
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
345
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
346
  */
@@ -370,6 +370,7 @@ class AmazonIAM extends CFRuntime
370
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
371
  * <li><code>NewPath</code> - <code>string</code> - Optional - New path for the User. Include this parameter only if you're changing the User's path. </li>
372
  * <li><code>NewUserName</code> - <code>string</code> - Optional - New name for the User. Include this parameter only if you're changing the User's name. </li>
 
373
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
374
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
375
  */
@@ -390,12 +391,9 @@ class AmazonIAM extends CFRuntime
390
  * API. To prevent all User access you must also either make the access key inactive or delete it. For more information
391
  * about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.
392
  *
393
- * In the full release you will be able to use IAM to access your services through the AWS Management Console. Although
394
- * this feature is not currently available, you can create login profiles for your Users now. Then, when this feature is
395
- * implemented, your Users can use IAM to access your services through the AWS Management Console.
396
- *
397
  * @param string $user_name (Required) Name of the User whose login profile you want to delete.
398
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
399
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
400
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
401
  */
@@ -424,6 +422,7 @@ class AmazonIAM extends CFRuntime
424
  * @param string $status (Required) The status you want to assign to the certificate. <code>Active</code> means the certificate can be used for API calls to AWS, while <code>Inactive</code> means the certificate cannot be used. [Allowed values: <code>Active</code>, <code>Inactive</code>]
425
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
426
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate belongs to. </li>
 
427
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
428
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
429
  */
@@ -443,6 +442,7 @@ class AmazonIAM extends CFRuntime
443
  * @param string $group_name (Required) Name of the group the policy is associated with.
444
  * @param string $policy_name (Required) Name of the policy document to delete.
445
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
446
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
447
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
448
  */
@@ -465,6 +465,7 @@ class AmazonIAM extends CFRuntime
465
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/division_abc/subdivision_xyz/</code>, which would get all User names whose path starts with <code>/division_abc/subdivision_xyz/</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all User names. </li>
466
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
467
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this parameter only when paginating results to indicate the maximum number of User names you want in the response. If there are additional User names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
468
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
469
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
470
  */
@@ -493,6 +494,7 @@ class AmazonIAM extends CFRuntime
493
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
494
  * <li><code>NewPath</code> - <code>string</code> - Optional - New path for the group. Only include this if changing the group's path. </li>
495
  * <li><code>NewGroupName</code> - <code>string</code> - Optional - New name for the group. Only include this if changing the group's name. </li>
 
496
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
497
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
498
  */
@@ -510,6 +512,7 @@ class AmazonIAM extends CFRuntime
510
  *
511
  * @param string $server_certificate_name (Required) The name of the server certificate you want to retrieve information about.
512
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
513
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
514
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
515
  */
@@ -540,6 +543,7 @@ class AmazonIAM extends CFRuntime
540
  * @param string $policy_name (Required) Name of the policy document.
541
  * @param string $policy_document (Required) The policy document.
542
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
543
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
544
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
545
  */
@@ -564,6 +568,7 @@ class AmazonIAM extends CFRuntime
564
  * @param string $user_name (Required) Name of the User to create.
565
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
566
  * <li><code>Path</code> - <code>string</code> - Optional - The path for the User name. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
 
567
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
568
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
569
  */
@@ -586,6 +591,7 @@ class AmazonIAM extends CFRuntime
586
  * @param string $certificate_id (Required) ID of the signing certificate to delete.
587
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
588
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate belongs to. </li>
 
589
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
590
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
591
  */
@@ -599,7 +605,7 @@ class AmazonIAM extends CFRuntime
599
 
600
  /**
601
  *
602
- * Enables the specified MFA device and associates it with the specified User name. Once enabled, the MFA device is
603
  * required for every subsequent login by the User name associated with the device.
604
  *
605
  * @param string $user_name (Required) Name of the User for whom you want to enable the MFA device.
@@ -607,6 +613,7 @@ class AmazonIAM extends CFRuntime
607
  * @param string $authentication_code1 (Required) An authentication code emitted by the device.
608
  * @param string $authentication_code2 (Required) A subsequent authentication code emitted by the device.
609
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
610
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
611
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
612
  */
@@ -631,6 +638,7 @@ class AmazonIAM extends CFRuntime
631
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
632
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
633
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of policy names you want in the response. If there are additional policy names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
634
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
635
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
636
  */
@@ -658,8 +666,9 @@ class AmazonIAM extends CFRuntime
658
  *
659
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
660
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User. </li>
661
- * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
662
- * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of keys you want in the response. If there are additional keys beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
663
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
664
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
665
  */
@@ -674,12 +683,9 @@ class AmazonIAM extends CFRuntime
674
  *
675
  * Retrieves the login profile for the specified User.
676
  *
677
- * In the full release you will be able to use IAM to access your services through the AWS Management Console. Although
678
- * this feature is not currently available, you can create login profiles for your Users now. Then, when this feature is
679
- * implemented, your Users can use IAM to access your services through the AWS Management Console.
680
- *
681
  * @param string $user_name (Required) Name of the User whose login profile you want to retrieve.
682
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
683
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
684
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
685
  */
@@ -701,6 +707,7 @@ class AmazonIAM extends CFRuntime
701
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
702
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
703
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of groups you want in the response. If there are additional groups beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
704
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
705
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
706
  */
@@ -723,6 +730,7 @@ class AmazonIAM extends CFRuntime
723
  * @param string $group_name (Required) Name of the group to create. Do not include the path in this value.
724
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
725
  * <li><code>Path</code> - <code>string</code> - Optional - The path to the group. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
 
726
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
727
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
728
  */
@@ -754,6 +762,7 @@ class AmazonIAM extends CFRuntime
754
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
755
  * <li><code>Path</code> - <code>string</code> - Optional - The path for the server certificate. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
756
  * <li><code>CertificateChain</code> - <code>string</code> - Optional - The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain. </li>
 
757
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
758
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
759
  */
@@ -769,10 +778,13 @@ class AmazonIAM extends CFRuntime
769
 
770
  /**
771
  *
772
- * Creates an account alias.
 
 
773
  *
774
  * @param string $account_alias (Required) Name of the account alias to create
775
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
776
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
777
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
778
  */
@@ -793,6 +805,7 @@ class AmazonIAM extends CFRuntime
793
  * @param string $group_name (Required) Name of the group the policy is associated with.
794
  * @param string $policy_name (Required) Name of the policy document to get.
795
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
796
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
797
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
798
  */
@@ -812,6 +825,7 @@ class AmazonIAM extends CFRuntime
812
  *
813
  * @param string $user_name (Required) Name of the User to delete.
814
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
815
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
816
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
817
  */
@@ -831,6 +845,7 @@ class AmazonIAM extends CFRuntime
831
  * @param string $user_name (Required) Name of the User whose MFA device you want to deactivate.
832
  * @param string $serial_number (Required) The serial number that uniquely identifies the MFA device.
833
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
834
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
835
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
836
  */
@@ -850,6 +865,7 @@ class AmazonIAM extends CFRuntime
850
  * @param string $group_name (Required) Name of the group to update.
851
  * @param string $user_name (Required) Name of the User to remove.
852
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
853
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
854
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
855
  */
@@ -874,6 +890,7 @@ class AmazonIAM extends CFRuntime
874
  *
875
  * @param string $server_certificate_name (Required) The name of the server certificate you want to delete.
876
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
877
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
878
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
879
  */
@@ -896,6 +913,7 @@ class AmazonIAM extends CFRuntime
896
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
897
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
898
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of policy names you want in the response. If there are additional policy names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
899
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
900
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
901
  */
@@ -914,13 +932,10 @@ class AmazonIAM extends CFRuntime
914
  * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/index.html?Using_ManagingLoginsAndMFA.html">Managing Login
915
  * Profiles and MFA Devices</a> in <i>Using AWS Identity and Access Management</i>.
916
  *
917
- * In the full release you will be able to use IAM to access your services through the AWS Management Console. Although
918
- * this feature is not currently available, you can create login profiles for your Users now. Then, when this feature is
919
- * implemented, your Users can use IAM to access your services through the AWS Management Console.
920
- *
921
  * @param string $user_name (Required) Name of the User to create a login profile for.
922
  * @param string $password (Required) The new password for the User name.
923
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
924
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
925
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
926
  */
@@ -952,6 +967,7 @@ class AmazonIAM extends CFRuntime
952
  *
953
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
954
  * <li><code>UserName</code> - <code>string</code> - Optional - The User name that the new key will belong to. </li>
 
955
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
956
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
957
  */
@@ -971,6 +987,7 @@ class AmazonIAM extends CFRuntime
971
  *
972
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
973
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User to get information about. This parameter is optional. If it is not included, it defaults to the User making the request. </li>
 
974
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
975
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
976
  */
@@ -990,6 +1007,7 @@ class AmazonIAM extends CFRuntime
990
  * @param string $authentication_code1 (Required) An authentication code emitted by the device.
991
  * @param string $authentication_code2 (Required) A subsequent authentication code emitted by the device.
992
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
993
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
994
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
995
  */
@@ -1014,6 +1032,7 @@ class AmazonIAM extends CFRuntime
1014
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1015
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1016
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of keys you want in the response. If there are additional keys beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
1017
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1018
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1019
  */
@@ -1042,6 +1061,7 @@ class AmazonIAM extends CFRuntime
1042
  * @param string $status (Required) The status you want to assign to the Secret Access Key. <code>Active</code> means the key can be used for API calls to AWS, while <code>Inactive</code> means the key cannot be used. [Allowed values: <code>Active</code>, <code>Inactive</code>]
1043
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1044
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User whose key you want to update. </li>
 
1045
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1046
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1047
  */
@@ -1056,9 +1076,14 @@ class AmazonIAM extends CFRuntime
1056
 
1057
  /**
1058
  *
1059
- * Retrieves account level information about usage and quota.
 
 
 
 
1060
  *
1061
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1062
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1063
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1064
  */
@@ -1076,6 +1101,7 @@ class AmazonIAM extends CFRuntime
1076
  * @param string $group_name (Required) Name of the group to update.
1077
  * @param string $user_name (Required) Name of the User to add.
1078
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1079
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1080
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1081
  */
@@ -1097,6 +1123,7 @@ class AmazonIAM extends CFRuntime
1097
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1098
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1099
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of User names you want in the response. If there are additional User names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
1100
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1101
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1102
  */
@@ -1110,13 +1137,16 @@ class AmazonIAM extends CFRuntime
1110
 
1111
  /**
1112
  *
1113
- * Lists the account aliases associated with the account.
 
 
1114
  *
1115
  * You can paginate the results using the <code>MaxItems</code> and <code>Marker</code> parameters.
1116
  *
1117
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1118
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1119
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of account aliases you want in the response. If there are additional account aliases beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
 
1120
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1121
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1122
  */
@@ -1133,6 +1163,7 @@ class AmazonIAM extends CFRuntime
1133
  *
1134
  * @param string $group_name (Required) Name of the group to delete.
1135
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1136
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1137
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1138
  */
17
  /**
18
  *
19
  *
20
+ * This is the AWS Identity and Access Management (IAM) API Reference. This guide provides descriptions of the IAM API as
21
+ * well as links to related content in the guide, <a href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/">Using
22
+ * IAM</a>.
23
+ *
24
  * AWS Identity and Access Management (IAM) is a web service that enables Amazon Web Services (AWS) customers to manage
25
  * Users and User permissions under their AWS Account.
26
  *
27
+ * For more information about this product go to <a href="http://aws.amazon.com/iam/">AWS Identity and Access Management
28
+ * (IAM)</a>. For specific information about setting up signatures and authorization through the API, go to <a
29
+ * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
30
+ * Using IAM guide.
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  *
32
  * If you're new to AWS and need additional technical information about a specific AWS product, you can find the product's
33
  * technical documentation at <a href="http://aws.amazon.com/documentation/">http://aws.amazon.com/documentation/</a>.
35
  * We will refer to Amazon AWS Identity and Access Management using the abbreviated form IAM. All copyrights and legal
36
  * protections still apply.
37
  *
38
+ * @version Fri Mar 25 13:17:16 PDT 2011
39
  * @license See the included NOTICE.md file for complete information.
40
  * @copyright See the included NOTICE.md file for complete information.
41
  * @link http://aws.amazon.com/iam/Amazon Identity and Access Management Service
96
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/division_abc/subdivision_xyz/</code>, which would get all groups whose path starts with <code>/division_abc/subdivision_xyz/</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. </li>
97
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
98
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of groups you want in the response. If there are additional groups beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
99
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
100
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
101
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
102
  */
118
  * @param string $access_key_id (Required) The Access Key ID for the Access Key ID and Secret Access Key you want to delete.
119
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
120
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User whose key you want to delete. </li>
121
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
122
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
123
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
124
  */
132
 
133
  /**
134
  *
135
+ * Deletes the specified AWS Account alias. For information about using an AWS Account alias, see <a
136
+ * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/AccountAlias.html">Using an Alias for Your AWS Account
137
+ * ID</a> in <i>Using AWS Identity and Access Management</i>.
138
  *
139
  * @param string $account_alias (Required) Name of the account alias to delete.
140
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
141
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
142
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
143
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
144
  */
166
  * <li><code>UserName</code> - <code>string</code> - Optional - The name of the User. </li>
167
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
168
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of certificate IDs you want in the response. If there are additional certificate IDs beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
169
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
170
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
171
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
172
  */
195
  * @param string $certificate_body (Required) The contents of the signing certificate.
196
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
197
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate is for. </li>
198
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
199
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
200
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
201
  */
214
  * @param string $user_name (Required) Name of the User the policy is associated with.
215
  * @param string $policy_name (Required) Name of the policy document to delete.
216
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
217
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
218
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
219
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
220
  */
246
  * @param string $policy_name (Required) Name of the policy document.
247
  * @param string $policy_document (Required) The policy document.
248
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
249
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
250
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
251
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
252
  */
270
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/company/servercerts</code> would get all server certificates for which the path starts with <code>/company/servercerts</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. </li>
271
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
272
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of server certificates you want in the response. If there are additional server certificates beyond the maximum you specify, the <code>IsTruncated</code> response element will be set to <code>true</code>. </li>
273
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
274
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
275
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
276
  */
290
  * @param string $user_name (Required) Name of the User who the policy is associated with.
291
  * @param string $policy_name (Required) Name of the policy document to get.
292
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
293
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
294
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
295
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
296
  */
307
  *
308
  * Updates the login profile for the specified User. Use this API to change the User's password.
309
  *
 
 
 
 
310
  * @param string $user_name (Required) Name of the User whose login profile you want to update.
311
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
312
  * <li><code>Password</code> - <code>string</code> - Optional - The new password for the User name. </li>
313
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
314
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
315
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
316
  */
340
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
341
  * <li><code>NewPath</code> - <code>string</code> - Optional - The new path for the server certificate. Include this only if you are updating the server certificate's path. </li>
342
  * <li><code>NewServerCertificateName</code> - <code>string</code> - Optional - The new name for the server certificate. Include this only if you are updating the server certificate's name. </li>
343
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
344
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
345
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
346
  */
370
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
371
  * <li><code>NewPath</code> - <code>string</code> - Optional - New path for the User. Include this parameter only if you're changing the User's path. </li>
372
  * <li><code>NewUserName</code> - <code>string</code> - Optional - New name for the User. Include this parameter only if you're changing the User's name. </li>
373
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
374
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
375
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
376
  */
391
  * API. To prevent all User access you must also either make the access key inactive or delete it. For more information
392
  * about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.
393
  *
 
 
 
 
394
  * @param string $user_name (Required) Name of the User whose login profile you want to delete.
395
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
396
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
397
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
398
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
399
  */
422
  * @param string $status (Required) The status you want to assign to the certificate. <code>Active</code> means the certificate can be used for API calls to AWS, while <code>Inactive</code> means the certificate cannot be used. [Allowed values: <code>Active</code>, <code>Inactive</code>]
423
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
424
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate belongs to. </li>
425
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
426
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
427
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
428
  */
442
  * @param string $group_name (Required) Name of the group the policy is associated with.
443
  * @param string $policy_name (Required) Name of the policy document to delete.
444
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
445
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
446
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
447
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
448
  */
465
  * <li><code>PathPrefix</code> - <code>string</code> - Optional - The path prefix for filtering the results. For example: <code>/division_abc/subdivision_xyz/</code>, which would get all User names whose path starts with <code>/division_abc/subdivision_xyz/</code>. This parameter is optional. If it is not included, it defaults to a slash (/), listing all User names. </li>
466
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
467
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this parameter only when paginating results to indicate the maximum number of User names you want in the response. If there are additional User names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
468
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
469
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
470
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
471
  */
494
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
495
  * <li><code>NewPath</code> - <code>string</code> - Optional - New path for the group. Only include this if changing the group's path. </li>
496
  * <li><code>NewGroupName</code> - <code>string</code> - Optional - New name for the group. Only include this if changing the group's name. </li>
497
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
498
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
499
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
500
  */
512
  *
513
  * @param string $server_certificate_name (Required) The name of the server certificate you want to retrieve information about.
514
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
515
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
516
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
517
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
518
  */
543
  * @param string $policy_name (Required) Name of the policy document.
544
  * @param string $policy_document (Required) The policy document.
545
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
546
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
547
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
548
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
549
  */
568
  * @param string $user_name (Required) Name of the User to create.
569
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
570
  * <li><code>Path</code> - <code>string</code> - Optional - The path for the User name. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
571
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
572
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
573
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
574
  */
591
  * @param string $certificate_id (Required) ID of the signing certificate to delete.
592
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
593
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User the signing certificate belongs to. </li>
594
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
595
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
596
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
597
  */
605
 
606
  /**
607
  *
608
+ * Enables the specified MFA device and associates it with the specified User name. When enabled, the MFA device is
609
  * required for every subsequent login by the User name associated with the device.
610
  *
611
  * @param string $user_name (Required) Name of the User for whom you want to enable the MFA device.
613
  * @param string $authentication_code1 (Required) An authentication code emitted by the device.
614
  * @param string $authentication_code2 (Required) A subsequent authentication code emitted by the device.
615
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
616
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
617
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
618
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
619
  */
638
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
639
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
640
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of policy names you want in the response. If there are additional policy names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
641
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
642
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
643
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
644
  */
666
  *
667
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
668
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User. </li>
669
+ * <li><code>Marker</code> - <code>string</code> - Optional - Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
670
+ * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this parameter only when paginating results to indicate the maximum number of keys you want in the response. If there are additional keys beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
671
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
672
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
673
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
674
  */
683
  *
684
  * Retrieves the login profile for the specified User.
685
  *
 
 
 
 
686
  * @param string $user_name (Required) Name of the User whose login profile you want to retrieve.
687
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
688
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
689
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
690
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
691
  */
707
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
708
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
709
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of groups you want in the response. If there are additional groups beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
710
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
711
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
712
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
713
  */
730
  * @param string $group_name (Required) Name of the group to create. Do not include the path in this value.
731
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
732
  * <li><code>Path</code> - <code>string</code> - Optional - The path to the group. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
733
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
734
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
735
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
736
  */
762
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
763
  * <li><code>Path</code> - <code>string</code> - Optional - The path for the server certificate. For more information about paths, see Identifiers for IAM Entities in <i>Using AWS Identity and Access Management</i>. This parameter is optional. If it is not included, it defaults to a slash (/). </li>
764
  * <li><code>CertificateChain</code> - <code>string</code> - Optional - The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain. </li>
765
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
766
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
767
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
768
  */
778
 
779
  /**
780
  *
781
+ * This action creates an alias for your AWS Account. For information about using an AWS Account alias, see <a
782
+ * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/AccountAlias.html">Using an Alias for Your AWS Account
783
+ * ID</a> in <i>Using AWS Identity and Access Management</i>.
784
  *
785
  * @param string $account_alias (Required) Name of the account alias to create
786
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
787
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
788
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
789
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
790
  */
805
  * @param string $group_name (Required) Name of the group the policy is associated with.
806
  * @param string $policy_name (Required) Name of the policy document to get.
807
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
808
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
809
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
810
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
811
  */
825
  *
826
  * @param string $user_name (Required) Name of the User to delete.
827
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
828
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
829
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
830
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
831
  */
845
  * @param string $user_name (Required) Name of the User whose MFA device you want to deactivate.
846
  * @param string $serial_number (Required) The serial number that uniquely identifies the MFA device.
847
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
848
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
849
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
850
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
851
  */
865
  * @param string $group_name (Required) Name of the group to update.
866
  * @param string $user_name (Required) Name of the User to remove.
867
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
868
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
869
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
870
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
871
  */
890
  *
891
  * @param string $server_certificate_name (Required) The name of the server certificate you want to delete.
892
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
893
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
894
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
895
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
896
  */
913
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
914
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
915
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of policy names you want in the response. If there are additional policy names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
916
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
917
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
918
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
919
  */
932
  * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/index.html?Using_ManagingLoginsAndMFA.html">Managing Login
933
  * Profiles and MFA Devices</a> in <i>Using AWS Identity and Access Management</i>.
934
  *
 
 
 
 
935
  * @param string $user_name (Required) Name of the User to create a login profile for.
936
  * @param string $password (Required) The new password for the User name.
937
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
938
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
939
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
940
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
941
  */
967
  *
968
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
969
  * <li><code>UserName</code> - <code>string</code> - Optional - The User name that the new key will belong to. </li>
970
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
971
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
972
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
973
  */
987
  *
988
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
989
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User to get information about. This parameter is optional. If it is not included, it defaults to the User making the request. </li>
990
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
991
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
992
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
993
  */
1007
  * @param string $authentication_code1 (Required) An authentication code emitted by the device.
1008
  * @param string $authentication_code2 (Required) A subsequent authentication code emitted by the device.
1009
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1010
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1011
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1012
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1013
  */
1032
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1033
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1034
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of keys you want in the response. If there are additional keys beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
1035
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1036
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1037
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1038
  */
1061
  * @param string $status (Required) The status you want to assign to the Secret Access Key. <code>Active</code> means the key can be used for API calls to AWS, while <code>Inactive</code> means the key cannot be used. [Allowed values: <code>Active</code>, <code>Inactive</code>]
1062
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1063
  * <li><code>UserName</code> - <code>string</code> - Optional - Name of the User whose key you want to update. </li>
1064
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1065
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1066
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1067
  */
1076
 
1077
  /**
1078
  *
1079
+ * Retrieves account level information about account entity usage and IAM quotas.
1080
+ *
1081
+ * For information about limitations on IAM entities, see <a
1082
+ * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/index.html?LimitationsOnEntities.html">Limitations on IAM
1083
+ * Entities</a> in <i>Using AWS Identity and Access Management</i>.
1084
  *
1085
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1086
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1087
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1088
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1089
  */
1101
  * @param string $group_name (Required) Name of the group to update.
1102
  * @param string $user_name (Required) Name of the User to add.
1103
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1104
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1105
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1106
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1107
  */
1123
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1124
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1125
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of User names you want in the response. If there are additional User names beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
1126
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1127
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1128
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1129
  */
1137
 
1138
  /**
1139
  *
1140
+ * Lists the account aliases associated with the account. For information about using an AWS Account alias, see <a
1141
+ * href="http://docs.amazonwebservices.com/IAM/latest/UserGuide/AccountAlias.html">Using an Alias for Your AWS Account
1142
+ * ID</a> in <i>Using AWS Identity and Access Management</i>.
1143
  *
1144
  * You can paginate the results using the <code>MaxItems</code> and <code>Marker</code> parameters.
1145
  *
1146
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1147
  * <li><code>Marker</code> - <code>string</code> - Optional - Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the <code>Marker</code> element in the response you just received. </li>
1148
  * <li><code>MaxItems</code> - <code>integer</code> - Optional - Use this only when paginating results to indicate the maximum number of account aliases you want in the response. If there are additional account aliases beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>. </li>
1149
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1150
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1151
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1152
  */
1163
  *
1164
  * @param string $group_name (Required) Name of the group to delete.
1165
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1166
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1167
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1168
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1169
  */
app/libs/aws/services/importexport.class.php CHANGED
@@ -22,7 +22,7 @@
22
  * high-speed internal network and bypassing the Internet. For large data sets, AWS Import/Export is often faster than
23
  * Internet transfer and more cost effective than upgrading your connectivity.
24
  *
25
- * @version Tue Mar 01 17:18:09 PST 2011
26
  * @license See the included NOTICE.md file for complete information.
27
  * @copyright See the included NOTICE.md file for complete information.
28
  * @link http://aws.amazon.com/importexport/Amazon Import/Export Service
@@ -85,6 +85,7 @@ class AmazonImportExport extends CFRuntime
85
  * @param boolean $validate_only (Required) Validate the manifest and parameter values in the request but do not actually create a job.
86
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
87
  * <li><code>ManifestAddendum</code> - <code>string</code> - Optional - For internal use only. </li>
 
88
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
89
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
90
  */
@@ -105,6 +106,7 @@ class AmazonImportExport extends CFRuntime
105
  *
106
  * @param string $job_id (Required) A unique identifier which refers to a particular job.
107
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
108
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
109
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
110
  */
@@ -123,6 +125,7 @@ class AmazonImportExport extends CFRuntime
123
  *
124
  * @param string $job_id (Required) A unique identifier which refers to a particular job.
125
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
126
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
127
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
128
  */
@@ -143,6 +146,7 @@ class AmazonImportExport extends CFRuntime
143
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
144
  * <li><code>MaxJobs</code> - <code>integer</code> - Optional - Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker. </li>
145
  * <li><code>Marker</code> - <code>string</code> - Optional - Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs. </li>
 
146
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
147
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
148
  */
@@ -164,6 +168,7 @@ class AmazonImportExport extends CFRuntime
164
  * @param string $job_type (Required) Specifies whether the job to initiate is an import or export job. [Allowed values: <code>Import</code>, <code>Export</code>]
165
  * @param boolean $validate_only (Required) Validate the manifest and parameter values in the request but do not actually create a job.
166
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
167
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
168
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
169
  */
22
  * high-speed internal network and bypassing the Internet. For large data sets, AWS Import/Export is often faster than
23
  * Internet transfer and more cost effective than upgrading your connectivity.
24
  *
25
+ * @version Fri Mar 25 13:17:53 PDT 2011
26
  * @license See the included NOTICE.md file for complete information.
27
  * @copyright See the included NOTICE.md file for complete information.
28
  * @link http://aws.amazon.com/importexport/Amazon Import/Export Service
85
  * @param boolean $validate_only (Required) Validate the manifest and parameter values in the request but do not actually create a job.
86
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
87
  * <li><code>ManifestAddendum</code> - <code>string</code> - Optional - For internal use only. </li>
88
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
89
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
90
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
91
  */
106
  *
107
  * @param string $job_id (Required) A unique identifier which refers to a particular job.
108
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
109
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
110
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
111
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
112
  */
125
  *
126
  * @param string $job_id (Required) A unique identifier which refers to a particular job.
127
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
128
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
129
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
130
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
131
  */
146
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
147
  * <li><code>MaxJobs</code> - <code>integer</code> - Optional - Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker. </li>
148
  * <li><code>Marker</code> - <code>string</code> - Optional - Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs. </li>
149
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
150
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
151
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
152
  */
168
  * @param string $job_type (Required) Specifies whether the job to initiate is an import or export job. [Allowed values: <code>Import</code>, <code>Export</code>]
169
  * @param boolean $validate_only (Required) Validate the manifest and parameter values in the request but do not actually create a job.
170
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
171
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
172
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
173
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
174
  */
app/libs/aws/services/rds.class.php CHANGED
@@ -28,7 +28,7 @@
28
  * flexible: you can scale your database instance's compute resources and storage capacity to meet your application's
29
  * demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.
30
  *
31
- * @version Tue Mar 01 17:18:44 PST 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/rds/Amazon Relational Database Service
@@ -128,6 +128,7 @@ class AmazonRDS extends CFRuntime
128
  *
129
  * @param string $db_parameter_group_name (Required) The name of the DB Parameter Group. Constraints: <ul> <li>Must be the name of an existing DB Parameter Group</li><li>You cannot delete a default DB Parameter Group</li> </ul>
130
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
131
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
132
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
133
  */
@@ -147,6 +148,7 @@ class AmazonRDS extends CFRuntime
147
  *
148
  * @param string $db_snapshot_identifier (Required) The DBSnapshot identifier. Constraints: Must be the name of an existing DB Snapshot in the <code>available</code> state.
149
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
150
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
151
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
152
  */
@@ -180,6 +182,7 @@ class AmazonRDS extends CFRuntime
180
  * </ul></li>
181
  * </ul>
182
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
183
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
184
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
185
  */
@@ -206,6 +209,7 @@ class AmazonRDS extends CFRuntime
206
  * <li><code>CIDRIP</code> - <code>string</code> - Optional - The IP range to revoke access from. Must be a valid CIDR range. If <code>CIDRIP</code> is specified, <code>EC2SecurityGroupName</code> and <code>EC2SecurityGroupOwnerId</code> cannot be provided. </li>
207
  * <li><code>EC2SecurityGroupName</code> - <code>string</code> - Optional - The name of the EC2 Security Group to revoke access from. If <code>EC2SecurityGroupName</code> is specified, <code>EC2SecurityGroupOwnerId</code> must also be provided and <code>CIDRIP</code> cannot be provided. </li>
208
  * <li><code>EC2SecurityGroupOwnerId</code> - <code>string</code> - Optional - The AWS Account Number of the owner of the security group specified in the <code>EC2SecurityGroupName</code> parameter. The AWS Access Key ID is not an acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified <code>EC2SecurityGroupName</code> must also be provided and <code>CIDRIP</code> cannot be provided. </li>
 
209
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
210
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
211
  */
@@ -226,6 +230,7 @@ class AmazonRDS extends CFRuntime
226
  * <li><code>Source</code> - <code>string</code> - Optional - The parameter types to return. Default: All parameter types returned Valid Values: <code>user | system | engine-default</code> </li>
227
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
228
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
229
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
230
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
231
  */
@@ -251,6 +256,7 @@ class AmazonRDS extends CFRuntime
251
  * <li><code>Duration</code> - <code>integer</code> - Optional - The number of minutes to retrieve events for. Default: 60 </li>
252
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
253
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
254
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
255
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
256
  */
@@ -280,6 +286,7 @@ class AmazonRDS extends CFRuntime
280
  * @param string $db_security_group_name (Required) The name for the DB Security Group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default". Example: <code>mysecuritygroup</code>
281
  * @param string $db_security_group_description (Required) The description for the DB Security Group.
282
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
283
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
284
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
285
  */
@@ -300,6 +307,7 @@ class AmazonRDS extends CFRuntime
300
  * <li><code>DBInstanceIdentifier</code> - <code>string</code> - Optional - The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
301
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
302
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code> . </li>
 
303
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
304
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
305
  */
@@ -319,6 +327,7 @@ class AmazonRDS extends CFRuntime
319
  * <li><code>DBParameterGroupName</code> - <code>string</code> - Optional - The name of a specific database parameter group to return details for. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
320
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
321
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
322
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
323
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
324
  */
@@ -336,6 +345,7 @@ class AmazonRDS extends CFRuntime
336
  * @param string $db_snapshot_identifier (Required) The identifier for the DB Snapshot. Constraints: <ul> <li>Cannot be null, empty, or blank</li><li>Must contain from 1 to 255 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> Example: <code>my-snapshot-id</code>
337
  * @param string $db_instance_identifier (Required) The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
338
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
339
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
340
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
341
  */
@@ -359,6 +369,7 @@ class AmazonRDS extends CFRuntime
359
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
360
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
361
  * <li><code>DefaultOnly</code> - <code>boolean</code> - Optional - Indicates that only the default version of the specified engine or engine and major version combination is returned. </li>
 
362
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
363
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
364
  */
@@ -378,6 +389,7 @@ class AmazonRDS extends CFRuntime
378
  *
379
  * @param string $db_instance_identifier (Required) The DB Instance identifier. This parameter is stored as a lowercase string. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
380
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
381
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
382
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
383
  */
@@ -406,6 +418,7 @@ class AmazonRDS extends CFRuntime
406
  * <li><code>CIDRIP</code> - <code>string</code> - Optional - The IP range to authorize. </li>
407
  * <li><code>EC2SecurityGroupName</code> - <code>string</code> - Optional - Name of the EC2 Security Group to authorize. </li>
408
  * <li><code>EC2SecurityGroupOwnerId</code> - <code>string</code> - Optional - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. </li>
 
409
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
410
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
411
  */
@@ -433,6 +446,7 @@ class AmazonRDS extends CFRuntime
433
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The EC2 Availability Zone that the database instance will be created in. Default: A random, system-chosen Availability Zone. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true. Example: <code>us-east-1a</code> </li>
434
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. </li>
435
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
 
436
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
437
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
438
  */
@@ -460,6 +474,7 @@ class AmazonRDS extends CFRuntime
460
  * <li><code>DBSnapshotIdentifier</code> - <code>string</code> - Optional - The DB Instance identifier. This parameter isn't case sensitive. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
461
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
462
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
463
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
464
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
465
  */
@@ -482,6 +497,7 @@ class AmazonRDS extends CFRuntime
482
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter. </li>
483
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
484
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
 
485
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
486
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
487
  */
@@ -500,6 +516,7 @@ class AmazonRDS extends CFRuntime
500
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
501
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
502
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
503
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
504
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
505
  */
@@ -522,6 +539,7 @@ class AmazonRDS extends CFRuntime
522
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
523
  * <li><code>SkipFinalSnapshot</code> - <code>boolean</code> - Optional - Determines whether a final DB Snapshot is created before the DB Instance is deleted. If <code>true</code> is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted. The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is <code>false</code>. Default: <code>false</code> </li>
524
  * <li><code>FinalDBSnapshotIdentifier</code> - <code>string</code> - Optional - The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to <code>false</code>. Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
 
525
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
526
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
527
  */
@@ -545,6 +563,7 @@ class AmazonRDS extends CFRuntime
545
  * <li><code>DBSecurityGroupName</code> - <code>string</code> - Optional - The name of the DB Security Group to return details for. </li>
546
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
547
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
 
548
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
549
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
550
  */
@@ -577,6 +596,7 @@ class AmazonRDS extends CFRuntime
577
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true. </li>
578
  * <li><code>EngineVersion</code> - <code>string</code> - Optional - The version number of the database engine to use. Example: <code>5.1.42</code> </li>
579
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. Default: <code>true</code> </li>
 
580
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
581
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
582
  */
@@ -627,6 +647,7 @@ class AmazonRDS extends CFRuntime
627
  * <li><code>ApplyMethod</code> - <code>string</code> - Optional - Indicates when to apply parameter updates. [Allowed values: <code>immediate</code>, <code>pending-reboot</code>]</li>
628
  * </ul></li>
629
  * </ul></li>
 
630
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
631
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
632
  */
@@ -667,6 +688,7 @@ class AmazonRDS extends CFRuntime
667
  * <li><code>EngineVersion</code> - <code>string</code> - Optional - The version number of the database engine to upgrade to. For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family. Example: <code>5.1.42</code> </li>
668
  * <li><code>AllowMajorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that major version upgrades are allowed. Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version. </li>
669
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
 
670
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
671
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
672
  */
@@ -702,6 +724,7 @@ class AmazonRDS extends CFRuntime
702
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The EC2 Availability Zone that the database instance will be created in. Default: A random, system-chosen Availability Zone. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. Example: <code>us-east-1a</code> </li>
703
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. </li>
704
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
 
705
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
706
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
707
  */
@@ -727,6 +750,7 @@ class AmazonRDS extends CFRuntime
727
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter. </li>
728
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
729
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
 
730
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
731
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
732
  */
@@ -745,6 +769,7 @@ class AmazonRDS extends CFRuntime
745
  * @param string $db_parameter_group_family (Required) The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine compatible with that DB parameter group family and version. Valid Values: <code>MySQL5.1</code> | <code>MySQL5.5</code>
746
  * @param string $description (Required) The description for the DB Parameter Group.
747
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
748
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
749
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
750
  */
@@ -766,6 +791,7 @@ class AmazonRDS extends CFRuntime
766
  *
767
  * @param string $db_security_group_name (Required) The name of the database security group to delete. You cannot delete the default security group. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
768
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
769
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
770
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
771
  */
@@ -794,6 +820,7 @@ class AmazonRDS extends CFRuntime
794
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Amazon EC2 Availability Zone that the Read Replica will be created in. Default: A random, system-chosen Availability Zone in the endpoint's region. Example: <code>us-east-1d</code> </li>
795
  * <li><code>Port</code> - <code>integer</code> - Optional - The port number that the DB Instance uses for connections. Default: Inherits from the source DB Instance Valid Values: <code>1150-65535</code> </li>
796
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window. Default: Inherits from the source DB Instance </li>
 
797
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
798
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
799
  */
@@ -814,6 +841,7 @@ class AmazonRDS extends CFRuntime
814
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
815
  * <li><code>ReservedDBInstanceId</code> - <code>string</code> - Optional - Customer-specified identifier to track this reservation. Example: myreservationID </li>
816
  * <li><code>DBInstanceCount</code> - <code>integer</code> - Optional - The number of instances to reserve. Default: <code>1</code> </li>
 
817
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
818
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
819
  */
28
  * flexible: you can scale your database instance's compute resources and storage capacity to meet your application's
29
  * demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.
30
  *
31
+ * @version Fri Mar 25 13:18:27 PDT 2011
32
  * @license See the included NOTICE.md file for complete information.
33
  * @copyright See the included NOTICE.md file for complete information.
34
  * @link http://aws.amazon.com/rds/Amazon Relational Database Service
128
  *
129
  * @param string $db_parameter_group_name (Required) The name of the DB Parameter Group. Constraints: <ul> <li>Must be the name of an existing DB Parameter Group</li><li>You cannot delete a default DB Parameter Group</li> </ul>
130
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
131
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
132
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
133
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
134
  */
148
  *
149
  * @param string $db_snapshot_identifier (Required) The DBSnapshot identifier. Constraints: Must be the name of an existing DB Snapshot in the <code>available</code> state.
150
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
151
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
152
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
153
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
154
  */
182
  * </ul></li>
183
  * </ul>
184
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
185
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
186
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
187
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
188
  */
209
  * <li><code>CIDRIP</code> - <code>string</code> - Optional - The IP range to revoke access from. Must be a valid CIDR range. If <code>CIDRIP</code> is specified, <code>EC2SecurityGroupName</code> and <code>EC2SecurityGroupOwnerId</code> cannot be provided. </li>
210
  * <li><code>EC2SecurityGroupName</code> - <code>string</code> - Optional - The name of the EC2 Security Group to revoke access from. If <code>EC2SecurityGroupName</code> is specified, <code>EC2SecurityGroupOwnerId</code> must also be provided and <code>CIDRIP</code> cannot be provided. </li>
211
  * <li><code>EC2SecurityGroupOwnerId</code> - <code>string</code> - Optional - The AWS Account Number of the owner of the security group specified in the <code>EC2SecurityGroupName</code> parameter. The AWS Access Key ID is not an acceptable value. If <code>EC2SecurityGroupOwnerId</code> is specified <code>EC2SecurityGroupName</code> must also be provided and <code>CIDRIP</code> cannot be provided. </li>
212
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
213
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
214
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
215
  */
230
  * <li><code>Source</code> - <code>string</code> - Optional - The parameter types to return. Default: All parameter types returned Valid Values: <code>user | system | engine-default</code> </li>
231
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
232
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
233
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
234
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
235
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
236
  */
256
  * <li><code>Duration</code> - <code>integer</code> - Optional - The number of minutes to retrieve events for. Default: 60 </li>
257
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
258
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
259
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
260
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
261
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
262
  */
286
  * @param string $db_security_group_name (Required) The name for the DB Security Group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default". Example: <code>mysecuritygroup</code>
287
  * @param string $db_security_group_description (Required) The description for the DB Security Group.
288
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
289
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
290
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
291
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
292
  */
307
  * <li><code>DBInstanceIdentifier</code> - <code>string</code> - Optional - The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
308
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
309
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code> . </li>
310
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
311
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
312
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
313
  */
327
  * <li><code>DBParameterGroupName</code> - <code>string</code> - Optional - The name of a specific database parameter group to return details for. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
328
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
329
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
330
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
331
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
332
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
333
  */
345
  * @param string $db_snapshot_identifier (Required) The identifier for the DB Snapshot. Constraints: <ul> <li>Cannot be null, empty, or blank</li><li>Must contain from 1 to 255 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> Example: <code>my-snapshot-id</code>
346
  * @param string $db_instance_identifier (Required) The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
347
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
348
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
349
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
350
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
351
  */
369
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
370
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
371
  * <li><code>DefaultOnly</code> - <code>boolean</code> - Optional - Indicates that only the default version of the specified engine or engine and major version combination is returned. </li>
372
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
373
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
374
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
375
  */
389
  *
390
  * @param string $db_instance_identifier (Required) The DB Instance identifier. This parameter is stored as a lowercase string. Constraints: <ul> <li>Must contain from 1 to 63 alphanumeric characters or hyphens</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
391
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
392
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
393
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
394
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
395
  */
418
  * <li><code>CIDRIP</code> - <code>string</code> - Optional - The IP range to authorize. </li>
419
  * <li><code>EC2SecurityGroupName</code> - <code>string</code> - Optional - Name of the EC2 Security Group to authorize. </li>
420
  * <li><code>EC2SecurityGroupOwnerId</code> - <code>string</code> - Optional - AWS Account Number of the owner of the security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. </li>
421
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
422
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
423
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
424
  */
446
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The EC2 Availability Zone that the database instance will be created in. Default: A random, system-chosen Availability Zone. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true. Example: <code>us-east-1a</code> </li>
447
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. </li>
448
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
449
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
450
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
451
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
452
  */
474
  * <li><code>DBSnapshotIdentifier</code> - <code>string</code> - Optional - The DB Instance identifier. This parameter isn't case sensitive. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
475
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
476
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
477
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
478
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
479
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
480
  */
497
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter. </li>
498
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
499
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
500
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
501
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
502
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
503
  */
516
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
517
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
518
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
519
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
520
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
521
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
522
  */
539
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
540
  * <li><code>SkipFinalSnapshot</code> - <code>boolean</code> - Optional - Determines whether a final DB Snapshot is created before the DB Instance is deleted. If <code>true</code> is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted. The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is <code>false</code>. Default: <code>false</code> </li>
541
  * <li><code>FinalDBSnapshotIdentifier</code> - <code>string</code> - Optional - The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to <code>false</code>. Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul> </li>
542
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
543
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
544
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
545
  */
563
  * <li><code>DBSecurityGroupName</code> - <code>string</code> - Optional - The name of the DB Security Group to return details for. </li>
564
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a marker is included in the response so that the remaining results may be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
565
  * <li><code>Marker</code> - <code>string</code> - Optional - An optional marker provided in the previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </li>
566
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
567
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
568
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
569
  */
596
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true. </li>
597
  * <li><code>EngineVersion</code> - <code>string</code> - Optional - The version number of the database engine to use. Example: <code>5.1.42</code> </li>
598
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window. Default: <code>true</code> </li>
599
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
600
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
601
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
602
  */
647
  * <li><code>ApplyMethod</code> - <code>string</code> - Optional - Indicates when to apply parameter updates. [Allowed values: <code>immediate</code>, <code>pending-reboot</code>]</li>
648
  * </ul></li>
649
  * </ul></li>
650
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
651
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
652
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
653
  */
688
  * <li><code>EngineVersion</code> - <code>string</code> - Optional - The version number of the database engine to upgrade to. For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family. Example: <code>5.1.42</code> </li>
689
  * <li><code>AllowMajorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that major version upgrades are allowed. Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version. </li>
690
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
691
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
692
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
693
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
694
  */
724
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The EC2 Availability Zone that the database instance will be created in. Default: A random, system-chosen Availability Zone. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. Example: <code>us-east-1a</code> </li>
725
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - Specifies if the DB Instance is a Multi-AZ deployment. Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to <code>true</code>. </li>
726
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. </li>
727
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
728
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
729
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
730
  */
750
  * <li><code>MultiAZ</code> - <code>boolean</code> - Optional - The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter. </li>
751
  * <li><code>MaxRecords</code> - <code>integer</code> - Optional - The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a marker is included in the response so that the following results can be retrieved. Default: 100 Constraints: minimum 20, maximum 100 </li>
752
  * <li><code>Marker</code> - <code>string</code> - Optional - The marker provided in the previous request. If this parameter is specified, the response includes records beyond the marker only, up to <code>MaxRecords</code>. </li>
753
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
754
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
755
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
756
  */
769
  * @param string $db_parameter_group_family (Required) The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine compatible with that DB parameter group family and version. Valid Values: <code>MySQL5.1</code> | <code>MySQL5.5</code>
770
  * @param string $description (Required) The description for the DB Parameter Group.
771
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
772
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
773
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
774
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
775
  */
791
  *
792
  * @param string $db_security_group_name (Required) The name of the database security group to delete. You cannot delete the default security group. Constraints: <ul> <li>Must be 1 to 255 alphanumeric characters</li><li>First character must be a letter</li><li>Cannot end with a hyphen or contain two consecutive hyphens</li> </ul>
793
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
794
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
795
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
796
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
797
  */
820
  * <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Amazon EC2 Availability Zone that the Read Replica will be created in. Default: A random, system-chosen Availability Zone in the endpoint's region. Example: <code>us-east-1d</code> </li>
821
  * <li><code>Port</code> - <code>integer</code> - Optional - The port number that the DB Instance uses for connections. Default: Inherits from the source DB Instance Valid Values: <code>1150-65535</code> </li>
822
  * <li><code>AutoMinorVersionUpgrade</code> - <code>boolean</code> - Optional - Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window. Default: Inherits from the source DB Instance </li>
823
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
824
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
825
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
826
  */
841
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
842
  * <li><code>ReservedDBInstanceId</code> - <code>string</code> - Optional - Customer-specified identifier to track this reservation. Example: myreservationID </li>
843
  * <li><code>DBInstanceCount</code> - <code>integer</code> - Optional - The number of instances to reserve. Default: <code>1</code> </li>
844
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
845
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
846
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
847
  */
app/libs/aws/services/s3.class.php CHANGED
@@ -49,7 +49,7 @@ class S3_Exception extends Exception {}
49
  *
50
  * Visit <http://aws.amazon.com/s3/> for more information.
51
  *
52
- * @version 2011.03.01
53
  * @license See the included NOTICE.md file for more information.
54
  * @copyright See the included NOTICE.md file for more information.
55
  * @link http://aws.amazon.com/s3/ Amazon Simple Storage Service
@@ -200,6 +200,11 @@ class AmazonS3 extends CFRuntime
200
  */
201
  public $base_acp_xml;
202
 
 
 
 
 
 
203
  /**
204
  * The base XML elements to use for logging methods.
205
  */
@@ -390,7 +395,7 @@ class AmazonS3 extends CFRuntime
390
  }
391
 
392
  // Get the UTC timestamp in RFC 2616 format
393
- $date = gmdate($this->util->konst($this->util, 'DATE_FORMAT_RFC2616'), (time() + (integer) $this->adjust_offset));
394
 
395
  // Storage for request parameters.
396
  $resource = '';
@@ -890,6 +895,7 @@ class AmazonS3 extends CFRuntime
890
  * @param string $region (Required) The preferred geographical location for the bucket. [Allowed values: `AmazonS3::REGION_US_E1 `, `AmazonS3::REGION_US_W1`, `AmazonS3::REGION_EU_W1`, `AmazonS3::REGION_APAC_SE1`, `AmazonS3::REGION_APAC_NE1`]
891
  * @param string $acl (Optional) The ACL settings for the specified bucket. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. The default value is <ACL_PRIVATE>.
892
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
893
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request.</li></ul>
894
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
895
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/UsingBucket.html Working with Amazon S3 Buckets
@@ -983,6 +989,7 @@ class AmazonS3 extends CFRuntime
983
  * @param string $bucket (Required) The name of the bucket to use.
984
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
985
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
986
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
987
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
988
  */
@@ -1000,6 +1007,7 @@ class AmazonS3 extends CFRuntime
1000
  * @param string $bucket (Required) The name of the bucket to use.
1001
  * @param boolean $force (Optional) Whether to force-delete the bucket and all of its contents. The default value is <code>false</code>.
1002
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1003
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1004
  * @return mixed A <CFResponse> object if the bucket was deleted successfully. Returns boolean <code>false</code> if otherwise.
1005
  */
@@ -1031,6 +1039,7 @@ class AmazonS3 extends CFRuntime
1031
  *
1032
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1033
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
1034
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1035
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1036
  */
@@ -1048,6 +1057,7 @@ class AmazonS3 extends CFRuntime
1048
  * @param string $bucket (Required) The name of the bucket to use.
1049
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1050
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
1051
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1052
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1053
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -1069,6 +1079,7 @@ class AmazonS3 extends CFRuntime
1069
  * @param string $bucket (Required) The name of the bucket to use.
1070
  * @param string $acl (Optional) The ACL settings for the specified bucket. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. Alternatively, an array of associative arrays. Each associative array contains an `id` and a `permission` key. The default value is <ACL_PRIVATE>.
1071
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1072
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1073
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1074
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -1129,6 +1140,7 @@ class AmazonS3 extends CFRuntime
1129
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Represented by <code>x-amz-meta-:</code>. Any header starting with this prefix is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
1130
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes within the file/stream to upload from.</li>
1131
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
 
1132
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1133
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1134
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -1198,6 +1210,7 @@ class AmazonS3 extends CFRuntime
1198
  * <li><code>range</code> - <code>string</code> - Optional - The range of bytes to fetch from the object. Specify this parameter when downloading partial bits or completing incomplete object downloads. The specified range must be notated with a hyphen (e.g., 0-10485759). Defaults to the byte range of the complete Amazon S3 object.</li>
1199
  * <li><code>response</code> - <code>array</code> - Optional - Allows adjustments to specific response headers. Pass an associative array where each key is one of the following: <code>cache-control</code>, <code>content-disposition</code>, <code>content-encoding</code>, <code>content-language</code>, <code>content-type</code>, <code>expires</code>. The <code>expires</code> value should use <php:gmdate()> and be formatted with the <code>DATE_RFC2822</code> constant.</li>
1200
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
 
1201
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1202
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1203
  */
@@ -1214,10 +1227,13 @@ class AmazonS3 extends CFRuntime
1214
  $opt['headers'] = array();
1215
  }
1216
 
1217
- // Are we checking for changes?
1218
- if (isset($opt['lastmodified']) && isset($opt['etag']))
1219
  {
1220
  $opt['headers']['If-Modified-Since'] = $opt['lastmodified'];
 
 
 
 
1221
  $opt['headers']['If-None-Match'] = $opt['etag'];
1222
  }
1223
 
@@ -1249,6 +1265,7 @@ class AmazonS3 extends CFRuntime
1249
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1250
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1251
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
1252
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1253
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1254
  */
@@ -1272,6 +1289,7 @@ class AmazonS3 extends CFRuntime
1272
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to delete. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1273
  * <li><code>MFASerial</code> - <code>string</code> - Optional - The serial number on the back of the Gemalto device. <code>MFASerial</code> and <code>MFAToken</code> must both be set for MFA to work.</li>
1274
  * <li><code>MFAToken</code> - <code>string</code> - Optional - The current token displayed on the Gemalto device. <code>MFASerial</code> and <code>MFAToken</code> must both be set for MFA to work.</li>
 
1275
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1276
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1277
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
@@ -1305,6 +1323,7 @@ class AmazonS3 extends CFRuntime
1305
  * <li><code>max-keys</code> - <code>string</code> - Optional - The maximum number of results returned by the method call. The returned list will contain no more results than the specified value, but may return less.</li>
1306
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1307
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to contain results that begin only with the specified prefix.</li>
 
1308
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1309
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1310
  */
@@ -1348,6 +1367,7 @@ class AmazonS3 extends CFRuntime
1348
  * <li><code>headers</code> - <code>array</code> - Optional - Standard HTTP headers to send along in the request.</li>
1349
  * <li><code>meta</code> - <code>array</code> - Optional - Associative array of key-value pairs. Represented by <code>x-amz-meta-:</code> Any header starting with this prefix is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
1350
  * <li><code>metadataDirective</code> - <code>string</code> - Optional - Accepts either COPY or REPLACE. You will likely never need to use this, as it manages itself with no issues.</li>
 
1351
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1352
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1353
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/API/RESTObjectCOPY.html Copying Amazon S3 Objects
@@ -1469,6 +1489,7 @@ class AmazonS3 extends CFRuntime
1469
  * <li><code>acl</code> - <code>string</code> - Optional - The ACL settings for the specified object. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. The default value is <ACL_PRIVATE>.</li>
1470
  * <li><code>headers</code> - <code>array</code> - Optional - The standard HTTP headers to update the Amazon S3 object with.</li>
1471
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Any header with the <code>x-amz-meta-</code> prefix is considered user metadata and is stored with the Amazon S3 object. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
 
1472
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1473
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1474
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/API/RESTObjectCOPY.html Copying Amazon S3 Objects
@@ -1498,6 +1519,7 @@ class AmazonS3 extends CFRuntime
1498
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1499
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1500
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
1501
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1502
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1503
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -1521,6 +1543,7 @@ class AmazonS3 extends CFRuntime
1521
  * @param string $filename (Required) The file name for the object.
1522
  * @param string $acl (Optional) The ACL settings for the specified object. Accepts any of the following constants: [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. Alternatively, an array of associative arrays. Each associative array contains an <code>id</code> and a <code>permission</code> key. The default value is <code>ACL_PRIVATE</code>.
1523
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1524
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1525
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1526
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -1641,6 +1664,7 @@ class AmazonS3 extends CFRuntime
1641
  * @param string $bucket (Required) The name of the bucket to use. Pass a `null` value when using the <set_vhost()> method.
1642
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1643
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
1644
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1645
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1646
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/ServerLogs.html Server Access Logging
@@ -1664,6 +1688,7 @@ class AmazonS3 extends CFRuntime
1664
  * @param string $target_prefix (Required) The prefix to give to the log file names.
1665
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1666
  * <li><code>users</code> - <code>array</code> - Optional - An array of associative arrays specifying any user to give access to. Each associative array contains an <code>id</code> and <code>permission</code> value.</li>
 
1667
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1668
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1669
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/LoggingAPI.html Server Access Logging Configuration API
@@ -1742,6 +1767,7 @@ class AmazonS3 extends CFRuntime
1742
  *
1743
  * @param string $bucket (Required) The name of the bucket to use. Pass `null` if using <set_vhost()>.
1744
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1745
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1746
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1747
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/LoggingAPI.html Server Access Logging Configuration API
@@ -1916,6 +1942,7 @@ class AmazonS3 extends CFRuntime
1916
  * @param string $filename (Required) The file name for the object.
1917
  * @param string $contentType (Required) The content-type to apply to the object.
1918
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1919
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1920
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1921
  */
@@ -1956,6 +1983,7 @@ class AmazonS3 extends CFRuntime
1956
  * @param string $filename (Required) The file name for the object.
1957
  * @param string $storage (Required) The storage setting to apply to the object. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]
1958
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
1959
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1960
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1961
  */
@@ -2022,6 +2050,7 @@ class AmazonS3 extends CFRuntime
2022
  * <li><code>max-keys</code> - <code>string</code> - Optional - The maximum number of results returned by the method call. The returned list will contain no more results than the specified value, but may return less.</li>
2023
  * <li><code>pcre</code> - <code>string</code> - Optional - A Perl-Compatible Regular Expression (PCRE) to filter the names against. This is applied only AFTER any native Amazon S3 filtering from specified <code>prefix</code>, <code>marker</code>, <code>max-keys</code>, or <code>delimiter</code> values are applied.</li>
2024
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to contain results that begin only with the specified prefix.</li>
 
2025
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2026
  * @return array The list of matching object names. If there are no results, the method will return an empty array.
2027
  * @link http://php.net/pcre Regular Expressions (Perl-Compatible)
@@ -2220,6 +2249,7 @@ class AmazonS3 extends CFRuntime
2220
  * @param string $filename (Required) The file name for the Amazon S3 object.
2221
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2222
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
 
2223
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2224
  * @return mixed If the object exists, the method returns the collective metadata for the Amazon S3 object. If the object does not exist, the method returns boolean <code>false</code>.
2225
  */
@@ -2368,6 +2398,7 @@ class AmazonS3 extends CFRuntime
2368
  * <li><code>MFASerial</code> - string (Optional) The serial number on the back of the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2369
  * <li><code>MFAToken</code> - string (Optional) The current token displayed on the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2370
  * <li><code>MFAStatus</code> - string (Optional) The MFA Delete status. Can be <code>Enabled</code> or <code>Disabled</code>. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
 
2371
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2372
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2373
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
@@ -2408,6 +2439,7 @@ class AmazonS3 extends CFRuntime
2408
  * <li><code>MFASerial</code> - <code>string</code> - Optional - The serial number on the back of the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2409
  * <li><code>MFAToken</code> - <code>string</code> - Optional - The current token displayed on the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2410
  * <li><code>MFAStatus</code> - <code>string</code> - Optional - The MFA Delete status. Can be <code>Enabled</code> or <code>Disabled</code>. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
 
2411
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2412
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2413
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
@@ -2446,6 +2478,7 @@ class AmazonS3 extends CFRuntime
2446
  * @param string $bucket (Required) The name of the bucket to use.
2447
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2448
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
2449
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2450
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2451
  */
@@ -2470,6 +2503,7 @@ class AmazonS3 extends CFRuntime
2470
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to only contain results that begin with the specified prefix.</li>
2471
  * <li><code>version-id-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>version-id-marker</code>.</li>
2472
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
 
2473
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2474
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2475
  */
@@ -2508,6 +2542,7 @@ class AmazonS3 extends CFRuntime
2508
  * @param string $bucket (Required) The name of the bucket to use.
2509
  * @param CFPolicy $policy (Required) The JSON policy to use.
2510
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2511
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2512
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2513
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/AccessPolicyLanguage.html Appendix: The Access Policy Language
@@ -2534,6 +2569,7 @@ class AmazonS3 extends CFRuntime
2534
  *
2535
  * @param string $bucket (Required) The name of the bucket to use.
2536
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2537
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2538
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2539
  */
@@ -2553,6 +2589,7 @@ class AmazonS3 extends CFRuntime
2553
  *
2554
  * @param string $bucket (Required) The name of the bucket to use.
2555
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2556
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2557
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response. If you do not have `DeletePolicy` permissions, Amazon S3 returns a `403 Access Denied` error. If you have the correct permissions, but are not the bucket owner, Amazon S3 returns a `405 Method Not Allowed` error. If the bucket doesn't have a policy, Amazon S3 returns a `204 No Content` error.
2558
  */
@@ -2594,6 +2631,7 @@ class AmazonS3 extends CFRuntime
2594
  * @param string $topic_arn (Required) The SNS topic ARN to send notifications to.
2595
  * @param string $event (Required) The event type to listen for.
2596
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2597
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2598
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2599
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
@@ -2633,6 +2671,7 @@ class AmazonS3 extends CFRuntime
2633
  *
2634
  * @param string $bucket (Required) The name of the bucket to use.
2635
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2636
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2637
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2638
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
@@ -2652,6 +2691,7 @@ class AmazonS3 extends CFRuntime
2652
  *
2653
  * @param string $bucket (Required) The name of the bucket to use.
2654
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2655
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2656
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2657
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
@@ -2709,6 +2749,7 @@ class AmazonS3 extends CFRuntime
2709
  * <li><code>headers</code> - <code>array</code> - Optional - The standard HTTP headers to send along in the request.</li>
2710
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Any header starting with <code>x-amz-meta-:</code> is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
2711
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
 
2712
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2713
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2714
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -2784,6 +2825,7 @@ class AmazonS3 extends CFRuntime
2784
  * <li><code>length</code> - <code>integer</code> - Optional - The size of the part in bytes. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13">RFC 2616, section 14.13</a>. The value can also be passed to the <code>header</code> option as <code>Content-Length</code>.</li>
2785
  * <li><code>md5</code> - <code>string</code> - Optional - The base64 encoded 128-bit MD5 digest of the part data. This header can be used as a message integrity check to verify that the part data is the same data that was originally sent. Although it is optional, we recommend using this mechanism as an end-to-end integrity check. For more information, see <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC 1864</a>. The value can also be passed to the <code>header</code> option as <code>Content-MD5</code>.</li>
2786
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes for the piece of the file/stream to upload.</li>
 
2787
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2788
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2789
  */
@@ -2835,6 +2877,7 @@ class AmazonS3 extends CFRuntime
2835
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2836
  * <li><code>max-parts</code> - <code>integer</code> - Optional - The maximum number of parts to return in the response body.</li>
2837
  * <li><code>part-number-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur numerically after the value of the <code>part-number-marker</code>.</li>
 
2838
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2839
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2840
  */
@@ -2868,6 +2911,7 @@ class AmazonS3 extends CFRuntime
2868
  * @param string $filename (Required) The file name for the object.
2869
  * @param string $upload_id (Required) The upload ID identifying the multipart upload whose parts are being listed. The upload ID is retrieved from a call to <initiate_multipart_upload()>.
2870
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2871
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2872
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2873
  */
@@ -2893,6 +2937,7 @@ class AmazonS3 extends CFRuntime
2893
  * @param string $upload_id (Required) The upload ID identifying the multipart upload whose parts are being listed. The upload ID is retrieved from a call to <initiate_multipart_upload()>.
2894
  * @param string|array|SimpleXMLElement|CFResponse $parts (Required) The completion XML document. This document can be provided in multiple ways; as a string of XML, as a <php:SimpleXMLElement> object representing the XML document, as an indexed array of associative arrays where the keys are <code>PartNumber</code> and <code>ETag</code>, or as a <CFResponse> object returned by <list_parts()>.
2895
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
2896
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2897
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2898
  */
@@ -2962,6 +3007,7 @@ class AmazonS3 extends CFRuntime
2962
  * <li><code>delimiter</code> - <code>string</code> - Optional - Keys that contain the same string between the prefix and the first occurrence of the delimiter will be rolled up into a single result element in the CommonPrefixes collection.</li>
2963
  * <li><code>key-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>key-marker</code>. If used in conjunction with <code>upload-id-marker</code>, the results will be filtered to include keys whose upload ID is alphabetically after the value of <code>upload-id-marker</code>.</li>
2964
  * <li><code>upload-id-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>upload-id-marker</code>. Must be used in conjunction with <code>key-marker</code>.</li>
 
2965
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2966
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2967
  */
@@ -3012,6 +3058,7 @@ class AmazonS3 extends CFRuntime
3012
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes for the first piece of the file/stream to upload.</li>
3013
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
3014
  * <li><code>uploadId</code> - <code>string</code> - Optional - An upload ID identifying an existing multipart upload to use. If this option is not set, one will be created automatically.</li>
 
3015
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3016
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3017
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
@@ -3236,6 +3283,7 @@ class AmazonS3 extends CFRuntime
3236
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3237
  * <li><code>indexDocument</code> - <code>string</code> - Optional - The file path to use as the root document. The default value is <code>index.html</code>.</li>
3238
  * <li><code>errorDocument</code> - <code>string</code> - Optional - The file path to use as the error document. The default value is <code>error.html</code>.</li>
 
3239
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3240
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3241
  */
@@ -3268,6 +3316,7 @@ class AmazonS3 extends CFRuntime
3268
  *
3269
  * @param string $bucket (Required) The name of the bucket to use.
3270
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
3271
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3272
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3273
  */
@@ -3289,6 +3338,7 @@ class AmazonS3 extends CFRuntime
3289
  *
3290
  * @param string $bucket (Required) The name of the bucket to use.
3291
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
3292
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3293
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3294
  */
49
  *
50
  * Visit <http://aws.amazon.com/s3/> for more information.
51
  *
52
+ * @version 2011.03.11
53
  * @license See the included NOTICE.md file for more information.
54
  * @copyright See the included NOTICE.md file for more information.
55
  * @link http://aws.amazon.com/s3/ Amazon Simple Storage Service
200
  */
201
  public $base_acp_xml;
202
 
203
+ /**
204
+ * The base XML elements to use for creating buckets in regions.
205
+ */
206
+ public $base_location_constraint;
207
+
208
  /**
209
  * The base XML elements to use for logging methods.
210
  */
395
  }
396
 
397
  // Get the UTC timestamp in RFC 2616 format
398
+ $date = gmdate(CFUtilities::DATE_FORMAT_RFC2616, (time() + (integer) $this->adjust_offset));
399
 
400
  // Storage for request parameters.
401
  $resource = '';
895
  * @param string $region (Required) The preferred geographical location for the bucket. [Allowed values: `AmazonS3::REGION_US_E1 `, `AmazonS3::REGION_US_W1`, `AmazonS3::REGION_EU_W1`, `AmazonS3::REGION_APAC_SE1`, `AmazonS3::REGION_APAC_NE1`]
896
  * @param string $acl (Optional) The ACL settings for the specified bucket. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. The default value is <ACL_PRIVATE>.
897
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
898
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
899
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request.</li></ul>
900
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
901
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/UsingBucket.html Working with Amazon S3 Buckets
989
  * @param string $bucket (Required) The name of the bucket to use.
990
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
991
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
992
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
993
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
994
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
995
  */
1007
  * @param string $bucket (Required) The name of the bucket to use.
1008
  * @param boolean $force (Optional) Whether to force-delete the bucket and all of its contents. The default value is <code>false</code>.
1009
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1010
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1011
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1012
  * @return mixed A <CFResponse> object if the bucket was deleted successfully. Returns boolean <code>false</code> if otherwise.
1013
  */
1039
  *
1040
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1041
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1042
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1043
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1044
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1045
  */
1057
  * @param string $bucket (Required) The name of the bucket to use.
1058
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1059
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1060
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1061
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1062
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1063
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
1079
  * @param string $bucket (Required) The name of the bucket to use.
1080
  * @param string $acl (Optional) The ACL settings for the specified bucket. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. Alternatively, an array of associative arrays. Each associative array contains an `id` and a `permission` key. The default value is <ACL_PRIVATE>.
1081
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1082
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1083
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1084
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1085
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
1140
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Represented by <code>x-amz-meta-:</code>. Any header starting with this prefix is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
1141
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes within the file/stream to upload from.</li>
1142
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
1143
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1144
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1145
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1146
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
1210
  * <li><code>range</code> - <code>string</code> - Optional - The range of bytes to fetch from the object. Specify this parameter when downloading partial bits or completing incomplete object downloads. The specified range must be notated with a hyphen (e.g., 0-10485759). Defaults to the byte range of the complete Amazon S3 object.</li>
1211
  * <li><code>response</code> - <code>array</code> - Optional - Allows adjustments to specific response headers. Pass an associative array where each key is one of the following: <code>cache-control</code>, <code>content-disposition</code>, <code>content-encoding</code>, <code>content-language</code>, <code>content-type</code>, <code>expires</code>. The <code>expires</code> value should use <php:gmdate()> and be formatted with the <code>DATE_RFC2822</code> constant.</li>
1212
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1213
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1214
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1215
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1216
  */
1227
  $opt['headers'] = array();
1228
  }
1229
 
1230
+ if (isset($opt['lastmodified']))
 
1231
  {
1232
  $opt['headers']['If-Modified-Since'] = $opt['lastmodified'];
1233
+ }
1234
+
1235
+ if (isset($opt['etag']))
1236
+ {
1237
  $opt['headers']['If-None-Match'] = $opt['etag'];
1238
  }
1239
 
1265
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1266
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1267
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1268
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1269
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1270
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1271
  */
1289
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to delete. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1290
  * <li><code>MFASerial</code> - <code>string</code> - Optional - The serial number on the back of the Gemalto device. <code>MFASerial</code> and <code>MFAToken</code> must both be set for MFA to work.</li>
1291
  * <li><code>MFAToken</code> - <code>string</code> - Optional - The current token displayed on the Gemalto device. <code>MFASerial</code> and <code>MFAToken</code> must both be set for MFA to work.</li>
1292
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1293
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1294
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1295
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
1323
  * <li><code>max-keys</code> - <code>string</code> - Optional - The maximum number of results returned by the method call. The returned list will contain no more results than the specified value, but may return less.</li>
1324
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1325
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to contain results that begin only with the specified prefix.</li>
1326
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1327
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1328
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1329
  */
1367
  * <li><code>headers</code> - <code>array</code> - Optional - Standard HTTP headers to send along in the request.</li>
1368
  * <li><code>meta</code> - <code>array</code> - Optional - Associative array of key-value pairs. Represented by <code>x-amz-meta-:</code> Any header starting with this prefix is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
1369
  * <li><code>metadataDirective</code> - <code>string</code> - Optional - Accepts either COPY or REPLACE. You will likely never need to use this, as it manages itself with no issues.</li>
1370
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1371
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1372
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1373
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/API/RESTObjectCOPY.html Copying Amazon S3 Objects
1489
  * <li><code>acl</code> - <code>string</code> - Optional - The ACL settings for the specified object. [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. The default value is <ACL_PRIVATE>.</li>
1490
  * <li><code>headers</code> - <code>array</code> - Optional - The standard HTTP headers to update the Amazon S3 object with.</li>
1491
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Any header with the <code>x-amz-meta-</code> prefix is considered user metadata and is stored with the Amazon S3 object. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
1492
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1493
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1494
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1495
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/API/RESTObjectCOPY.html Copying Amazon S3 Objects
1519
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1520
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
1521
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1522
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1523
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1524
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1525
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
1543
  * @param string $filename (Required) The file name for the object.
1544
  * @param string $acl (Optional) The ACL settings for the specified object. Accepts any of the following constants: [Allowed values: <code>AmazonS3::ACL_PRIVATE</code>, <code>AmazonS3::ACL_PUBLIC</code>, <code>AmazonS3::ACL_OPEN</code>, <code>AmazonS3::ACL_AUTH_READ</code>, <code>AmazonS3::ACL_OWNER_READ</code>, <code>AmazonS3::ACL_OWNER_FULL_CONTROL</code>]. Alternatively, an array of associative arrays. Each associative array contains an <code>id</code> and a <code>permission</code> key. The default value is <code>ACL_PRIVATE</code>.
1545
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1546
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1547
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1548
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1549
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
1664
  * @param string $bucket (Required) The name of the bucket to use. Pass a `null` value when using the <set_vhost()> method.
1665
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1666
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
1667
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1668
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1669
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1670
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/ServerLogs.html Server Access Logging
1688
  * @param string $target_prefix (Required) The prefix to give to the log file names.
1689
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1690
  * <li><code>users</code> - <code>array</code> - Optional - An array of associative arrays specifying any user to give access to. Each associative array contains an <code>id</code> and <code>permission</code> value.</li>
1691
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1692
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1693
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1694
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/LoggingAPI.html Server Access Logging Configuration API
1767
  *
1768
  * @param string $bucket (Required) The name of the bucket to use. Pass `null` if using <set_vhost()>.
1769
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1770
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1771
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1772
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1773
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/LoggingAPI.html Server Access Logging Configuration API
1942
  * @param string $filename (Required) The file name for the object.
1943
  * @param string $contentType (Required) The content-type to apply to the object.
1944
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1945
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1946
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1947
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1948
  */
1983
  * @param string $filename (Required) The file name for the object.
1984
  * @param string $storage (Required) The storage setting to apply to the object. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]
1985
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1986
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
1987
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1988
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1989
  */
2050
  * <li><code>max-keys</code> - <code>string</code> - Optional - The maximum number of results returned by the method call. The returned list will contain no more results than the specified value, but may return less.</li>
2051
  * <li><code>pcre</code> - <code>string</code> - Optional - A Perl-Compatible Regular Expression (PCRE) to filter the names against. This is applied only AFTER any native Amazon S3 filtering from specified <code>prefix</code>, <code>marker</code>, <code>max-keys</code>, or <code>delimiter</code> values are applied.</li>
2052
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to contain results that begin only with the specified prefix.</li>
2053
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2054
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2055
  * @return array The list of matching object names. If there are no results, the method will return an empty array.
2056
  * @link http://php.net/pcre Regular Expressions (Perl-Compatible)
2249
  * @param string $filename (Required) The file name for the Amazon S3 object.
2250
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2251
  * <li><code>versionId</code> - <code>string</code> - Optional - The version of the object to retrieve. Version IDs are returned in the <code>x-amz-version-id</code> header of any previous object-related request.</li>
2252
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2253
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2254
  * @return mixed If the object exists, the method returns the collective metadata for the Amazon S3 object. If the object does not exist, the method returns boolean <code>false</code>.
2255
  */
2398
  * <li><code>MFASerial</code> - string (Optional) The serial number on the back of the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2399
  * <li><code>MFAToken</code> - string (Optional) The current token displayed on the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2400
  * <li><code>MFAStatus</code> - string (Optional) The MFA Delete status. Can be <code>Enabled</code> or <code>Disabled</code>. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2401
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2402
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2403
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2404
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
2439
  * <li><code>MFASerial</code> - <code>string</code> - Optional - The serial number on the back of the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2440
  * <li><code>MFAToken</code> - <code>string</code> - Optional - The current token displayed on the Gemalto device. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2441
  * <li><code>MFAStatus</code> - <code>string</code> - Optional - The MFA Delete status. Can be <code>Enabled</code> or <code>Disabled</code>. <code>MFASerial</code>, <code>MFAToken</code> and <code>MFAStatus</code> must all be set for MFA to work.</li>
2442
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2443
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2444
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2445
  * @link http://aws.amazon.com/mfa/ Multi-Factor Authentication
2478
  * @param string $bucket (Required) The name of the bucket to use.
2479
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2480
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
2481
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2482
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2483
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2484
  */
2503
  * <li><code>prefix</code> - <code>string</code> - Optional - Restricts the response to only contain results that begin with the specified prefix.</li>
2504
  * <li><code>version-id-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>version-id-marker</code>.</li>
2505
  * <li><code>preauth</code> - <code>integer|string</code> - Optional - Specifies that a presigned URL for this request should be returned. May be passed as a number of seconds since UNIX Epoch, or any string compatible with <php:strtotime()>.</li>
2506
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2507
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2508
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2509
  */
2542
  * @param string $bucket (Required) The name of the bucket to use.
2543
  * @param CFPolicy $policy (Required) The JSON policy to use.
2544
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2545
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2546
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2547
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2548
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/AccessPolicyLanguage.html Appendix: The Access Policy Language
2569
  *
2570
  * @param string $bucket (Required) The name of the bucket to use.
2571
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2572
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2573
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2574
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2575
  */
2589
  *
2590
  * @param string $bucket (Required) The name of the bucket to use.
2591
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2592
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2593
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2594
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response. If you do not have `DeletePolicy` permissions, Amazon S3 returns a `403 Access Denied` error. If you have the correct permissions, but are not the bucket owner, Amazon S3 returns a `405 Method Not Allowed` error. If the bucket doesn't have a policy, Amazon S3 returns a `204 No Content` error.
2595
  */
2631
  * @param string $topic_arn (Required) The SNS topic ARN to send notifications to.
2632
  * @param string $event (Required) The event type to listen for.
2633
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2634
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2635
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2636
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2637
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
2671
  *
2672
  * @param string $bucket (Required) The name of the bucket to use.
2673
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2674
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2675
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2676
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2677
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
2691
  *
2692
  * @param string $bucket (Required) The name of the bucket to use.
2693
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2694
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2695
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2696
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2697
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/NotificationHowTo.html Setting Up Notification of Bucket Events
2749
  * <li><code>headers</code> - <code>array</code> - Optional - The standard HTTP headers to send along in the request.</li>
2750
  * <li><code>meta</code> - <code>array</code> - Optional - An associative array of key-value pairs. Any header starting with <code>x-amz-meta-:</code> is considered user metadata. It will be stored with the object and returned when you retrieve the object. The total size of the HTTP request, not including the body, must be less than 4 KB.</li>
2751
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
2752
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2753
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2754
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2755
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
2825
  * <li><code>length</code> - <code>integer</code> - Optional - The size of the part in bytes. For more information, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13">RFC 2616, section 14.13</a>. The value can also be passed to the <code>header</code> option as <code>Content-Length</code>.</li>
2826
  * <li><code>md5</code> - <code>string</code> - Optional - The base64 encoded 128-bit MD5 digest of the part data. This header can be used as a message integrity check to verify that the part data is the same data that was originally sent. Although it is optional, we recommend using this mechanism as an end-to-end integrity check. For more information, see <a href="http://www.ietf.org/rfc/rfc1864.txt">RFC 1864</a>. The value can also be passed to the <code>header</code> option as <code>Content-MD5</code>.</li>
2827
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes for the piece of the file/stream to upload.</li>
2828
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2829
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2830
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2831
  */
2877
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2878
  * <li><code>max-parts</code> - <code>integer</code> - Optional - The maximum number of parts to return in the response body.</li>
2879
  * <li><code>part-number-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur numerically after the value of the <code>part-number-marker</code>.</li>
2880
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2881
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2882
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2883
  */
2911
  * @param string $filename (Required) The file name for the object.
2912
  * @param string $upload_id (Required) The upload ID identifying the multipart upload whose parts are being listed. The upload ID is retrieved from a call to <initiate_multipart_upload()>.
2913
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2914
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2915
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2916
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2917
  */
2937
  * @param string $upload_id (Required) The upload ID identifying the multipart upload whose parts are being listed. The upload ID is retrieved from a call to <initiate_multipart_upload()>.
2938
  * @param string|array|SimpleXMLElement|CFResponse $parts (Required) The completion XML document. This document can be provided in multiple ways; as a string of XML, as a <php:SimpleXMLElement> object representing the XML document, as an indexed array of associative arrays where the keys are <code>PartNumber</code> and <code>ETag</code>, or as a <CFResponse> object returned by <list_parts()>.
2939
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
2940
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
2941
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
2942
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
2943
  */
3007
  * <li><code>delimiter</code> - <code>string</code> - Optional - Keys that contain the same string between the prefix and the first occurrence of the delimiter will be rolled up into a single result element in the CommonPrefixes collection.</li>
3008
  * <li><code>key-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>key-marker</code>. If used in conjunction with <code>upload-id-marker</code>, the results will be filtered to include keys whose upload ID is alphabetically after the value of <code>upload-id-marker</code>.</li>
3009
  * <li><code>upload-id-marker</code> - <code>string</code> - Optional - Restricts the response to contain results that only occur alphabetically after the value of the <code>upload-id-marker</code>. Must be used in conjunction with <code>key-marker</code>.</li>
3010
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3011
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3012
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3013
  */
3058
  * <li><code>seekTo</code> - <code>integer</code> - Optional - The starting position in bytes for the first piece of the file/stream to upload.</li>
3059
  * <li><code>storage</code> - <code>string</code> - Optional - Whether to use Standard or Reduced Redundancy storage. [Allowed values: <code>AmazonS3::STORAGE_STANDARD</code>, <code>AmazonS3::STORAGE_REDUCED</code>]. The default value is <code>STORAGE_STANDARD</code>.</li>
3060
  * <li><code>uploadId</code> - <code>string</code> - Optional - An upload ID identifying an existing multipart upload to use. If this option is not set, one will be created automatically.</li>
3061
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <code>curl_setopt()</code>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3062
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3063
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3064
  * @link http://docs.amazonwebservices.com/AmazonS3/latest/dev/RESTAccessPolicy.html REST Access Control Policy
3283
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3284
  * <li><code>indexDocument</code> - <code>string</code> - Optional - The file path to use as the root document. The default value is <code>index.html</code>.</li>
3285
  * <li><code>errorDocument</code> - <code>string</code> - Optional - The file path to use as the error document. The default value is <code>error.html</code>.</li>
3286
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3287
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3288
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3289
  */
3316
  *
3317
  * @param string $bucket (Required) The name of the bucket to use.
3318
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3319
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3320
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3321
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3322
  */
3338
  *
3339
  * @param string $bucket (Required) The name of the bucket to use.
3340
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3341
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
3342
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3343
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3344
  */
app/libs/aws/services/sdb.class.php CHANGED
@@ -31,7 +31,7 @@
31
  *
32
  * Visit <a href="http://aws.amazon.com/simpledb/">http://aws.amazon.com/simpledb/</a> for more information.
33
  *
34
- * @version Tue Mar 01 17:19:23 PST 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/simpledb/Amazon SimpleDB
@@ -258,6 +258,7 @@ class AmazonSDB extends CFRuntime
258
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
259
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string informing Amazon SimpleDB where to start the next list of <code>ItemNames</code>. </li>
260
  * <li><code>ConsistentRead</code> - <code>boolean</code> - Optional - Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read. </li>
 
261
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
262
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
263
  */
@@ -313,6 +314,7 @@ class AmazonSDB extends CFRuntime
313
  * <li><code>Value</code> - <code>string</code> - Optional - The value of an attribute. This value can only be specified when the exists parameter is equal to true.</li>
314
  * <li><code>Exists</code> - <code>string</code> - Optional - True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied.</li>
315
  * </ul></li>
 
316
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
317
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
318
  */
@@ -377,6 +379,7 @@ class AmazonSDB extends CFRuntime
377
  * </ul></li>
378
  * </ul></li>
379
  * </ul></li>
 
380
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
381
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
382
  */
@@ -410,6 +413,7 @@ class AmazonSDB extends CFRuntime
410
  *
411
  * @param string $domain_name (Required) The name of the domain to delete.
412
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
413
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
414
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
415
  */
@@ -437,6 +441,7 @@ class AmazonSDB extends CFRuntime
437
  *
438
  * @param string $domain_name (Required) The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
439
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
440
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
441
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
442
  */
@@ -479,6 +484,7 @@ class AmazonSDB extends CFRuntime
479
  * <li><code>Value</code> - <code>string</code> - Optional - The value of an attribute. This value can only be specified when the exists parameter is equal to true.</li>
480
  * <li><code>Exists</code> - <code>string</code> - Optional - True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied.</li>
481
  * </ul></li>
 
482
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
483
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
484
  */
@@ -517,6 +523,7 @@ class AmazonSDB extends CFRuntime
517
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
518
  * <li><code>MaxNumberOfDomains</code> - <code>integer</code> - Optional - The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100. </li>
519
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string informing Amazon SimpleDB where to start the next list of domain names. </li>
 
520
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
521
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
522
  */
@@ -543,6 +550,7 @@ class AmazonSDB extends CFRuntime
543
  * @param string|array $attribute_name (Optional) The names of the attributes. Pass a string for a single value, or an indexed array for multiple values.
544
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
545
  * <li><code>ConsistentRead</code> - <code>boolean</code> - Optional - True if strong consistency should be enforced when data is read from SimpleDB, meaning that any data previously written to SimpleDB will be returned. Without specifying this parameter, results will be eventually consistent, and you may not see data that was written immediately before your read.</li>
 
546
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
547
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
548
  */
@@ -609,6 +617,7 @@ class AmazonSDB extends CFRuntime
609
  * </ul></li>
610
  * </ul></li>
611
  * </ul></li>
 
612
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
613
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
614
  */
@@ -639,6 +648,7 @@ class AmazonSDB extends CFRuntime
639
  *
640
  * @param string $domain_name (Required) The name of the domain for which to display the metadata of.
641
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
642
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
643
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
644
  */
31
  *
32
  * Visit <a href="http://aws.amazon.com/simpledb/">http://aws.amazon.com/simpledb/</a> for more information.
33
  *
34
+ * @version Fri Mar 25 13:19:04 PDT 2011
35
  * @license See the included NOTICE.md file for complete information.
36
  * @copyright See the included NOTICE.md file for complete information.
37
  * @link http://aws.amazon.com/simpledb/Amazon SimpleDB
258
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
259
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string informing Amazon SimpleDB where to start the next list of <code>ItemNames</code>. </li>
260
  * <li><code>ConsistentRead</code> - <code>boolean</code> - Optional - Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If <code>true</code>, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read. </li>
261
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
262
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
263
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
264
  */
314
  * <li><code>Value</code> - <code>string</code> - Optional - The value of an attribute. This value can only be specified when the exists parameter is equal to true.</li>
315
  * <li><code>Exists</code> - <code>string</code> - Optional - True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied.</li>
316
  * </ul></li>
317
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
318
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
319
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
320
  */
379
  * </ul></li>
380
  * </ul></li>
381
  * </ul></li>
382
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
383
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
384
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
385
  */
413
  *
414
  * @param string $domain_name (Required) The name of the domain to delete.
415
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
416
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
417
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
418
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
419
  */
441
  *
442
  * @param string $domain_name (Required) The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
443
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
444
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
445
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
446
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
447
  */
484
  * <li><code>Value</code> - <code>string</code> - Optional - The value of an attribute. This value can only be specified when the exists parameter is equal to true.</li>
485
  * <li><code>Exists</code> - <code>string</code> - Optional - True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied.</li>
486
  * </ul></li>
487
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
488
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
489
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
490
  */
523
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
524
  * <li><code>MaxNumberOfDomains</code> - <code>integer</code> - Optional - The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100. </li>
525
  * <li><code>NextToken</code> - <code>string</code> - Optional - A string informing Amazon SimpleDB where to start the next list of domain names. </li>
526
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
527
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
528
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
529
  */
550
  * @param string|array $attribute_name (Optional) The names of the attributes. Pass a string for a single value, or an indexed array for multiple values.
551
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
552
  * <li><code>ConsistentRead</code> - <code>boolean</code> - Optional - True if strong consistency should be enforced when data is read from SimpleDB, meaning that any data previously written to SimpleDB will be returned. Without specifying this parameter, results will be eventually consistent, and you may not see data that was written immediately before your read.</li>
553
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
554
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
555
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
556
  */
617
  * </ul></li>
618
  * </ul></li>
619
  * </ul></li>
620
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
621
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This is useful for manually-managed batch requests.</li></ul>
622
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
623
  */
648
  *
649
  * @param string $domain_name (Required) The name of the domain for which to display the metadata of.
650
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
651
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
652
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
653
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
654
  */
app/libs/aws/services/ses.class.php CHANGED
@@ -23,7 +23,7 @@
23
  * For specific details on how to construct a service request, please consult the <a
24
  * href="http://docs.amazonwebservices.com/ses/latest/DeveloperGuide">Amazon SES Developer Guide</a>.
25
  *
26
- * @version Tue Mar 01 17:16:20 PST 2011
27
  * @license See the included NOTICE.md file for complete information.
28
  * @copyright See the included NOTICE.md file for complete information.
29
  * @link http://aws.amazon.com/ses/Amazon Simple Email Service
@@ -109,6 +109,7 @@ class AmazonSES extends CFRuntime
109
  * Returns the user's current activity limits.
110
  *
111
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
112
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
113
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
114
  */
@@ -124,6 +125,7 @@ class AmazonSES extends CFRuntime
124
  * Returns a list containing all of the email addresses that have been verified.
125
  *
126
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
127
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
128
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
129
  */
@@ -142,6 +144,7 @@ class AmazonSES extends CFRuntime
142
  * Each data point in the list contains statistics for a 15-minute interval.
143
  *
144
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
145
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
146
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
147
  */
@@ -161,7 +164,7 @@ class AmazonSES extends CFRuntime
161
  * href="http://docs.amazonwebservices.com/ses/latest/DeveloperGuide">Amazon SES Developer Guide</a>.
162
  *
163
  * @param string $source (Required) The sender's email address.
164
- * @param array $destination (Required) The destination for this email, composed of To:, From:, and CC: fields. <ul>
165
  * <li><code>ToAddresses</code> - <code>string|array</code> - Optional - The To: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
166
  * <li><code>CcAddresses</code> - <code>string|array</code> - Optional - The CC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
167
  * <li><code>BccAddresses</code> - <code>string|array</code> - Optional - The BCC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
@@ -185,6 +188,7 @@ class AmazonSES extends CFRuntime
185
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
186
  * <li><code>ReplyToAddresses</code> - <code>string|array</code> - Optional - The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply. Pass a string for a single value, or an indexed array for multiple values. </li>
187
  * <li><code>ReturnPath</code> - <code>string</code> - Optional - The email address to which bounce notifications are to be forwarded. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. </li>
 
188
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
189
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
190
  */
@@ -245,6 +249,7 @@ class AmazonSES extends CFRuntime
245
  *
246
  * @param string $email_address (Required) An email address to be removed from the list of verified addreses.
247
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
248
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
249
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
250
  */
@@ -262,6 +267,7 @@ class AmazonSES extends CFRuntime
262
  *
263
  * @param string $email_address (Required) The email address to be verified.
264
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
265
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
266
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
267
  */
@@ -289,6 +295,7 @@ class AmazonSES extends CFRuntime
289
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
290
  * <li><code>Source</code> - <code>string</code> - Optional - The sender's email address. </li>
291
  * <li><code>Destinations</code> - <code>string|array</code> - Optional - A list of destinations for the message. Pass a string for a single value, or an indexed array for multiple values. </li>
 
292
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
293
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
294
  */
23
  * For specific details on how to construct a service request, please consult the <a
24
  * href="http://docs.amazonwebservices.com/ses/latest/DeveloperGuide">Amazon SES Developer Guide</a>.
25
  *
26
+ * @version Fri Mar 25 13:16:07 PDT 2011
27
  * @license See the included NOTICE.md file for complete information.
28
  * @copyright See the included NOTICE.md file for complete information.
29
  * @link http://aws.amazon.com/ses/Amazon Simple Email Service
109
  * Returns the user's current activity limits.
110
  *
111
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
112
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
113
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
114
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
115
  */
125
  * Returns a list containing all of the email addresses that have been verified.
126
  *
127
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
128
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
129
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
130
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
131
  */
144
  * Each data point in the list contains statistics for a 15-minute interval.
145
  *
146
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
147
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
148
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
149
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
150
  */
164
  * href="http://docs.amazonwebservices.com/ses/latest/DeveloperGuide">Amazon SES Developer Guide</a>.
165
  *
166
  * @param string $source (Required) The sender's email address.
167
+ * @param array $destination (Required) The destination for this email, composed of To:, CC:, and BCC: fields. <ul>
168
  * <li><code>ToAddresses</code> - <code>string|array</code> - Optional - The To: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
169
  * <li><code>CcAddresses</code> - <code>string|array</code> - Optional - The CC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
170
  * <li><code>BccAddresses</code> - <code>string|array</code> - Optional - The BCC: field(s) of the message. Pass a string for a single value, or an indexed array for multiple values. </li>
188
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
189
  * <li><code>ReplyToAddresses</code> - <code>string|array</code> - Optional - The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply. Pass a string for a single value, or an indexed array for multiple values. </li>
190
  * <li><code>ReturnPath</code> - <code>string</code> - Optional - The email address to which bounce notifications are to be forwarded. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. </li>
191
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
192
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
193
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
194
  */
249
  *
250
  * @param string $email_address (Required) An email address to be removed from the list of verified addreses.
251
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
252
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
253
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
254
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
255
  */
267
  *
268
  * @param string $email_address (Required) The email address to be verified.
269
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
270
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
271
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
272
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
273
  */
295
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
296
  * <li><code>Source</code> - <code>string</code> - Optional - The sender's email address. </li>
297
  * <li><code>Destinations</code> - <code>string|array</code> - Optional - A list of destinations for the message. Pass a string for a single value, or an indexed array for multiple values. </li>
298
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
299
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
300
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
301
  */
app/libs/aws/services/sns.class.php CHANGED
@@ -17,7 +17,7 @@
17
  /**
18
 
19
  *
20
- * @version Tue Mar 01 17:20:00 PST 2011
21
  * @license See the included NOTICE.md file for complete information.
22
  * @copyright See the included NOTICE.md file for complete information.
23
  * @link http://aws.amazon.com/sns/Amazon Simple Notification Service
@@ -148,6 +148,7 @@ class AmazonSNS extends CFRuntime
148
  * @param string $token (Required) Short-lived token sent to an endpoint during the Subscribe action.
149
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
150
  * <li><code>AuthenticateOnUnsubscribe</code> - <code>string</code> - Optional - Indicates that you want to disable unauthenticated unsubsciption of the subscription. If parameter is present in the request, the request has an AWS signature, and the value of this parameter is true, only the topic owner and the subscription owner will be permitted to unsubscribe the endopint, and the Unsubscribe action will require AWS authentication. </li>
 
151
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
152
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
153
  */
@@ -167,6 +168,7 @@ class AmazonSNS extends CFRuntime
167
  *
168
  * @param string $topic_arn (Required) The ARN of the topic whose properties you want to get.
169
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
170
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
171
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
172
  */
@@ -188,6 +190,7 @@ class AmazonSNS extends CFRuntime
188
  * @param string $protocol (Required) The protocol you want to use. Supported protocols include: <ul> <li>http -- delivery of JSON-encoded message via HTTP POST</li><li>https -- delivery of JSON-encoded message via HTTPS POST</li><li>email -- delivery of message via SMTP</li><li>email-json -- delivery of JSON-encoded message via SMTP</li><li>sqs -- delivery of JSON-encoded message to an Amazon SQS queue</li> </ul>
189
  * @param string $endpoint (Required) The endpoint that you want to receive notifications. Endpoints vary by protocol: <ul> <li>For the http protocol, the endpoint is an URL beginning with "http://"</li><li>For the https protocol, the endpoint is a URL beginning with "https://"</li><li>For the email protocol, the endpoint is an e-mail address</li><li>For the email-json protocol, the endpoint is an e-mail address</li><li>For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue</li> </ul>
190
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
191
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
192
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
193
  */
@@ -209,6 +212,7 @@ class AmazonSNS extends CFRuntime
209
  * @param string $attribute_name (Required) The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.
210
  * @param string $attribute_value (Required) The new value for the attribute.
211
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
212
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
213
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
214
  */
@@ -230,6 +234,7 @@ class AmazonSNS extends CFRuntime
230
  *
231
  * @param string $topic_arn (Required) The ARN of the topic you want to delete.
232
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
233
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
234
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
235
  */
@@ -248,6 +253,7 @@ class AmazonSNS extends CFRuntime
248
  * @param string $topic_arn (Required) The ARN of the topic whose access control policy you wish to modify.
249
  * @param string $label (Required) The unique label of the statement you want to remove.
250
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
251
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
252
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
253
  */
@@ -268,6 +274,7 @@ class AmazonSNS extends CFRuntime
268
  *
269
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
270
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListSubscriptions request. </li>
 
271
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
272
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
273
  */
@@ -288,6 +295,7 @@ class AmazonSNS extends CFRuntime
288
  * @param string|array $account_id (Required) The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service. Pass a string for a single value, or an indexed array for multiple values.
289
  * @param string|array $action_name (Required) The action you want to allow for the specified principal(s). Pass a string for a single value, or an indexed array for multiple values.
290
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
291
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
292
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
293
  */
@@ -318,6 +326,7 @@ class AmazonSNS extends CFRuntime
318
  *
319
  * @param string $name (Required) The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.
320
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
321
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
322
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
323
  */
@@ -336,6 +345,7 @@ class AmazonSNS extends CFRuntime
336
  *
337
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
338
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListTopics request. </li>
 
339
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
340
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
341
  */
@@ -356,6 +366,7 @@ class AmazonSNS extends CFRuntime
356
  *
357
  * @param string $subscription_arn (Required) The ARN of the subscription to be deleted.
358
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
359
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
360
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
361
  */
@@ -376,6 +387,7 @@ class AmazonSNS extends CFRuntime
376
  * @param string $topic_arn (Required) The ARN of the topic for which you wish to find subscriptions.
377
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
378
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListSubscriptionsByTopic request. </li>
 
379
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
380
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
381
  */
@@ -397,6 +409,7 @@ class AmazonSNS extends CFRuntime
397
  * @param string $message (Required) The message you want to send to the topic. Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
398
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
399
  * <li><code>Subject</code> - <code>string</code> - Optional - Optional parameter to be used as the "Subject" line of when the message is delivered to e-mail endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long. </li>
 
400
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
401
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
402
  */
17
  /**
18
 
19
  *
20
+ * @version Fri Mar 25 13:19:36 PDT 2011
21
  * @license See the included NOTICE.md file for complete information.
22
  * @copyright See the included NOTICE.md file for complete information.
23
  * @link http://aws.amazon.com/sns/Amazon Simple Notification Service
148
  * @param string $token (Required) Short-lived token sent to an endpoint during the Subscribe action.
149
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
150
  * <li><code>AuthenticateOnUnsubscribe</code> - <code>string</code> - Optional - Indicates that you want to disable unauthenticated unsubsciption of the subscription. If parameter is present in the request, the request has an AWS signature, and the value of this parameter is true, only the topic owner and the subscription owner will be permitted to unsubscribe the endopint, and the Unsubscribe action will require AWS authentication. </li>
151
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
152
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
153
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
154
  */
168
  *
169
  * @param string $topic_arn (Required) The ARN of the topic whose properties you want to get.
170
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
171
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
172
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
173
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
174
  */
190
  * @param string $protocol (Required) The protocol you want to use. Supported protocols include: <ul> <li>http -- delivery of JSON-encoded message via HTTP POST</li><li>https -- delivery of JSON-encoded message via HTTPS POST</li><li>email -- delivery of message via SMTP</li><li>email-json -- delivery of JSON-encoded message via SMTP</li><li>sqs -- delivery of JSON-encoded message to an Amazon SQS queue</li> </ul>
191
  * @param string $endpoint (Required) The endpoint that you want to receive notifications. Endpoints vary by protocol: <ul> <li>For the http protocol, the endpoint is an URL beginning with "http://"</li><li>For the https protocol, the endpoint is a URL beginning with "https://"</li><li>For the email protocol, the endpoint is an e-mail address</li><li>For the email-json protocol, the endpoint is an e-mail address</li><li>For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue</li> </ul>
192
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
193
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
194
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
195
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
196
  */
212
  * @param string $attribute_name (Required) The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.
213
  * @param string $attribute_value (Required) The new value for the attribute.
214
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
215
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
216
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
217
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
218
  */
234
  *
235
  * @param string $topic_arn (Required) The ARN of the topic you want to delete.
236
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
237
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
238
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
239
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
240
  */
253
  * @param string $topic_arn (Required) The ARN of the topic whose access control policy you wish to modify.
254
  * @param string $label (Required) The unique label of the statement you want to remove.
255
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
256
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
257
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
258
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
259
  */
274
  *
275
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
276
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListSubscriptions request. </li>
277
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
278
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
279
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
280
  */
295
  * @param string|array $account_id (Required) The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service. Pass a string for a single value, or an indexed array for multiple values.
296
  * @param string|array $action_name (Required) The action you want to allow for the specified principal(s). Pass a string for a single value, or an indexed array for multiple values.
297
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
298
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
299
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
300
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
301
  */
326
  *
327
  * @param string $name (Required) The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, and hyphens, and must be between 1 and 256 characters long.
328
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
329
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
330
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
331
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
332
  */
345
  *
346
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
347
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListTopics request. </li>
348
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
349
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
350
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
351
  */
366
  *
367
  * @param string $subscription_arn (Required) The ARN of the subscription to be deleted.
368
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
369
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
370
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
371
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
372
  */
387
  * @param string $topic_arn (Required) The ARN of the topic for which you wish to find subscriptions.
388
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
389
  * <li><code>NextToken</code> - <code>string</code> - Optional - Token returned by the previous ListSubscriptionsByTopic request. </li>
390
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
391
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
392
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
393
  */
409
  * @param string $message (Required) The message you want to send to the topic. Constraints: Messages must be UTF-8 encoded strings at most 8 KB in size (8192 bytes, not 8192 characters).
410
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
411
  * <li><code>Subject</code> - <code>string</code> - Optional - Optional parameter to be used as the "Subject" line of when the message is delivered to e-mail endpoints. This field will also be included, if present, in the standard JSON messages delivered to other endpoints. Constraints: Subjects must be ASCII text that begins with a letter, number or punctuation mark; must not include line breaks or control characters; and must be less than 100 characters long. </li>
412
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
413
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
414
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
415
  */
app/libs/aws/services/sqs.class.php CHANGED
@@ -30,7 +30,7 @@
30
  *
31
  * Visit <a href="http://aws.amazon.com/sqs/">http://aws.amazon.com/sqs/</a> for more information.
32
  *
33
- * @version Tue Mar 01 17:20:35 PST 2011
34
  * @license See the included NOTICE.md file for complete information.
35
  * @copyright See the included NOTICE.md file for complete information.
36
  * @link http://aws.amazon.com/sqs/Amazon Simple Queue Service
@@ -191,6 +191,7 @@ class AmazonSQS extends CFRuntime
191
  *
192
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
193
  * <li><code>QueueNamePrefix</code> - <code>string</code> - Optional - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. </li>
 
194
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
195
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
196
  */
@@ -213,6 +214,7 @@ class AmazonSQS extends CFRuntime
213
  * </ul></li>
214
  * </ul>
215
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
216
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
217
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
218
  */
@@ -252,6 +254,7 @@ class AmazonSQS extends CFRuntime
252
  * @param string $receipt_handle (Required) The receipt handle associated with the message whose visibility timeout the client wants to change.
253
  * @param integer $visibility_timeout (Required) The new value (in seconds) for the message's visibility timeout.
254
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
255
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
256
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
257
  */
@@ -277,6 +280,7 @@ class AmazonSQS extends CFRuntime
277
  * @param string $queue_name (Required) The name to use for the created queue.
278
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
279
  * <li><code>DefaultVisibilityTimeout</code> - <code>integer</code> - Optional - The visibility timeout (in seconds) to use for the created queue. </li>
 
280
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
281
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
282
  */
@@ -296,6 +300,7 @@ class AmazonSQS extends CFRuntime
296
  * @param string $queue_url (Required)
297
  * @param string $label (Required) The identfication of the permission to remove. This is the label added with the AddPermission operation.
298
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
299
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
300
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
301
  */
@@ -315,6 +320,7 @@ class AmazonSQS extends CFRuntime
315
  * @param string $queue_url (Required)
316
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
317
  * <li><code>AttributeName</code> - <code>string|array</code> - Optional - A list of attributes to get. Pass a string for a single value, or an indexed array for multiple values. </li>
 
318
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
319
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
320
  */
@@ -348,6 +354,7 @@ class AmazonSQS extends CFRuntime
348
  * @param string|array $account_id (Required) The AWS account number of the principal who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. Pass a string for a single value, or an indexed array for multiple values.
349
  * @param string|array $action_name (Required) The action the client wants to allow for the specified principal. Pass a string for a single value, or an indexed array for multiple values.
350
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
351
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
352
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
353
  */
@@ -376,6 +383,7 @@ class AmazonSQS extends CFRuntime
376
  *
377
  * @param string $queue_url (Required)
378
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
379
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
380
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
381
  */
@@ -394,6 +402,7 @@ class AmazonSQS extends CFRuntime
394
  * @param string $queue_url (Required)
395
  * @param string $receipt_handle (Required) The receipt handle associated with the message to delete.
396
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
397
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
398
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
399
  */
@@ -412,6 +421,7 @@ class AmazonSQS extends CFRuntime
412
  * @param string $queue_url (Required)
413
  * @param string $message_body (Required) The message to send.
414
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
 
415
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
416
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
417
  */
@@ -436,6 +446,7 @@ class AmazonSQS extends CFRuntime
436
  * <li><code>AttributeName</code> - <code>string|array</code> - Optional - A list of attributes to get. Pass a string for a single value, or an indexed array for multiple values. </li>
437
  * <li><code>MaxNumberOfMessages</code> - <code>integer</code> - Optional - The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. All of the messages are not necessarily returned. </li>
438
  * <li><code>VisibilityTimeout</code> - <code>integer</code> - Optional - The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. </li>
 
439
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
440
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
441
  */
30
  *
31
  * Visit <a href="http://aws.amazon.com/sqs/">http://aws.amazon.com/sqs/</a> for more information.
32
  *
33
+ * @version Fri Mar 25 13:20:11 PDT 2011
34
  * @license See the included NOTICE.md file for complete information.
35
  * @copyright See the included NOTICE.md file for complete information.
36
  * @link http://aws.amazon.com/sqs/Amazon Simple Queue Service
191
  *
192
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
193
  * <li><code>QueueNamePrefix</code> - <code>string</code> - Optional - A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned. </li>
194
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
195
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
196
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
197
  */
214
  * </ul></li>
215
  * </ul>
216
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
217
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
218
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
219
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
220
  */
254
  * @param string $receipt_handle (Required) The receipt handle associated with the message whose visibility timeout the client wants to change.
255
  * @param integer $visibility_timeout (Required) The new value (in seconds) for the message's visibility timeout.
256
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
257
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
258
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
259
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
260
  */
280
  * @param string $queue_name (Required) The name to use for the created queue.
281
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
282
  * <li><code>DefaultVisibilityTimeout</code> - <code>integer</code> - Optional - The visibility timeout (in seconds) to use for the created queue. </li>
283
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
284
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
285
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
286
  */
300
  * @param string $queue_url (Required)
301
  * @param string $label (Required) The identfication of the permission to remove. This is the label added with the AddPermission operation.
302
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
303
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
304
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
305
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
306
  */
320
  * @param string $queue_url (Required)
321
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
322
  * <li><code>AttributeName</code> - <code>string|array</code> - Optional - A list of attributes to get. Pass a string for a single value, or an indexed array for multiple values. </li>
323
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
324
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
325
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
326
  */
354
  * @param string|array $account_id (Required) The AWS account number of the principal who will be given permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. Pass a string for a single value, or an indexed array for multiple values.
355
  * @param string|array $action_name (Required) The action the client wants to allow for the specified principal. Pass a string for a single value, or an indexed array for multiple values.
356
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
357
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
358
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
359
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
360
  */
383
  *
384
  * @param string $queue_url (Required)
385
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
386
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
387
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
388
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
389
  */
402
  * @param string $queue_url (Required)
403
  * @param string $receipt_handle (Required) The receipt handle associated with the message to delete.
404
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
405
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
406
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
407
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
408
  */
421
  * @param string $queue_url (Required)
422
  * @param string $message_body (Required) The message to send.
423
  * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
424
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
425
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
426
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
427
  */
446
  * <li><code>AttributeName</code> - <code>string|array</code> - Optional - A list of attributes to get. Pass a string for a single value, or an indexed array for multiple values. </li>
447
  * <li><code>MaxNumberOfMessages</code> - <code>integer</code> - Optional - The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. All of the messages are not necessarily returned. </li>
448
  * <li><code>VisibilityTimeout</code> - <code>integer</code> - Optional - The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. </li>
449
+ * <li><code>curlopts</code> - <code>array</code> - Optional - A set of values to pass directly into <php:curl_setopt()>, where the key is a pre-defined <code>CURLOPT_*</code> constant.</li>
450
  * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
451
  * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
452
  */
app/libs/aws/utilities/array.class.php CHANGED
@@ -32,7 +32,7 @@
32
  class CFArray extends ArrayObject
33
  {
34
  /**
35
- * Constructs a new instance of the class.
36
  *
37
  * @param mixed $input (Optional) The input parameter accepts an array or an Object. The default value is an empty array.
38
  * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>.
@@ -54,6 +54,10 @@ class CFArray extends ArrayObject
54
  return 'Array';
55
  }
56
 
 
 
 
 
57
  /**
58
  * Maps each element in the <CFArray> object as an integer.
59
  *
@@ -88,6 +92,10 @@ class CFArray extends ArrayObject
88
  return $list;
89
  }
90
 
 
 
 
 
91
  /**
92
  * Verifies that _all_ responses were successful. A single failed request will cause <areOK()> to return false. Equivalent to <CFResponse::isOK()>, except it applies to all responses.
93
  *
@@ -109,6 +117,10 @@ class CFArray extends ArrayObject
109
  return (array_search(false, $dlist, true) !== false) ? false : true;
110
  }
111
 
 
 
 
 
112
  /**
113
  * Iterates over a <CFArray> object, and executes a function for each matched element.
114
  *
@@ -151,13 +163,13 @@ class CFArray extends ArrayObject
151
  }
152
 
153
  /**
154
- * Reduces the list of nodes by passing each value in the current <CFArray> object through a function. The node will be removed if the function returns `false`.
155
  *
156
  * @param string|function $callback (Required) The callback function to execute. PHP 5.3 or newer can use an anonymous function.
157
  * @param mixed $bind (Optional) A variable from the calling scope to pass-by-reference into the local scope of the callback function.
158
  * @return CFArray A new <CFArray> object containing the return values.
159
  */
160
- public function reduce($callback, &$bind = null)
161
  {
162
  $items = $this->getArrayCopy();
163
  $max = count($items);
@@ -174,6 +186,22 @@ class CFArray extends ArrayObject
174
  return new CFArray($collect);
175
  }
176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  /**
178
  * Gets the first result in the array.
179
  *
@@ -215,4 +243,28 @@ class CFArray extends ArrayObject
215
  {
216
  return new CFArray(array_values($this->getArrayCopy()));
217
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  }
32
  class CFArray extends ArrayObject
33
  {
34
  /**
35
+ * Constructs a new instance of <CFArray>.
36
  *
37
  * @param mixed $input (Optional) The input parameter accepts an array or an Object. The default value is an empty array.
38
  * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>.
54
  return 'Array';
55
  }
56
 
57
+
58
+ /*%******************************************************************************************%*/
59
+ // REFORMATTING
60
+
61
  /**
62
  * Maps each element in the <CFArray> object as an integer.
63
  *
92
  return $list;
93
  }
94
 
95
+
96
+ /*%******************************************************************************************%*/
97
+ // CONFIRMATION
98
+
99
  /**
100
  * Verifies that _all_ responses were successful. A single failed request will cause <areOK()> to return false. Equivalent to <CFResponse::isOK()>, except it applies to all responses.
101
  *
117
  return (array_search(false, $dlist, true) !== false) ? false : true;
118
  }
119
 
120
+
121
+ /*%******************************************************************************************%*/
122
+ // ITERATING AND EXECUTING
123
+
124
  /**
125
  * Iterates over a <CFArray> object, and executes a function for each matched element.
126
  *
163
  }
164
 
165
  /**
166
+ * Filters the list of nodes by passing each value in the current <CFArray> object through a function. The node will be removed if the function returns `false`.
167
  *
168
  * @param string|function $callback (Required) The callback function to execute. PHP 5.3 or newer can use an anonymous function.
169
  * @param mixed $bind (Optional) A variable from the calling scope to pass-by-reference into the local scope of the callback function.
170
  * @return CFArray A new <CFArray> object containing the return values.
171
  */
172
+ public function filter($callback, &$bind = null)
173
  {
174
  $items = $this->getArrayCopy();
175
  $max = count($items);
186
  return new CFArray($collect);
187
  }
188
 
189
+ /**
190
+ * Alias for <filter()>. This functionality was incorrectly named _reduce_ in earlier versions of the SDK.
191
+ *
192
+ * @param string|function $callback (Required) The callback function to execute. PHP 5.3 or newer can use an anonymous function.
193
+ * @param mixed $bind (Optional) A variable from the calling scope to pass-by-reference into the local scope of the callback function.
194
+ * @return CFArray A new <CFArray> object containing the return values.
195
+ */
196
+ public function reduce($callback, &$bind = null)
197
+ {
198
+ return $this->filter($callback, $bind);
199
+ }
200
+
201
+
202
+ /*%******************************************************************************************%*/
203
+ // TRAVERSAL
204
+
205
  /**
206
  * Gets the first result in the array.
207
  *
243
  {
244
  return new CFArray(array_values($this->getArrayCopy()));
245
  }
246
+
247
+
248
+ /*%******************************************************************************************%*/
249
+ // ALTERNATE FORMATS
250
+
251
+ /**
252
+ * Gets the current XML node as a JSON string.
253
+ *
254
+ * @return string The current XML node as a JSON string.
255
+ */
256
+ public function to_json()
257
+ {
258
+ return json_encode($this->getArrayCopy());
259
+ }
260
+
261
+ /**
262
+ * Gets the current XML node as a YAML string.
263
+ *
264
+ * @return string The current XML node as a YAML string.
265
+ */
266
+ public function to_yaml()
267
+ {
268
+ return sfYaml::dump($this->getArrayCopy(), 5);
269
+ }
270
  }
app/libs/aws/utilities/gzipdecode.class.php ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://aws.amazon.com/apache2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ /**
18
+ * SimplePie
19
+ *
20
+ * A PHP-Based RSS and Atom Feed Framework.
21
+ * Takes the hard work out of managing a complete RSS/Atom solution.
22
+ *
23
+ * Copyright (c) 2004-2010, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
24
+ * All rights reserved.
25
+ *
26
+ * Redistribution and use in source and binary forms, with or without modification, are
27
+ * permitted provided that the following conditions are met:
28
+ *
29
+ * * Redistributions of source code must retain the above copyright notice, this list of
30
+ * conditions and the following disclaimer.
31
+ *
32
+ * * Redistributions in binary form must reproduce the above copyright notice, this list
33
+ * of conditions and the following disclaimer in the documentation and/or other materials
34
+ * provided with the distribution.
35
+ *
36
+ * * Neither the name of the SimplePie Team nor the names of its contributors may be used
37
+ * to endorse or promote products derived from this software without specific prior
38
+ * written permission.
39
+ *
40
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
41
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
42
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
43
+ * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
44
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
45
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
47
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48
+ * POSSIBILITY OF SUCH DAMAGE.
49
+ *
50
+ * @package SimplePie
51
+ * @version 1.3-dev
52
+ * @copyright 2004-2010 Ryan Parman, Geoffrey Sneddon, Ryan McCue
53
+ * @author Ryan Parman
54
+ * @author Geoffrey Sneddon
55
+ * @author Ryan McCue
56
+ * @link http://simplepie.org/ SimplePie
57
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
58
+ * @todo phpDoc comments
59
+ */
60
+
61
+
62
+ /*%******************************************************************************************%*/
63
+ // CLASS
64
+
65
+ /**
66
+ * Handles a variety of primary and edge cases around gzip/deflate decoding in PHP.
67
+ *
68
+ * @version 2011.02.21
69
+ * @license See the included NOTICE.md file for more information.
70
+ * @copyright See the included NOTICE.md file for more information.
71
+ * @link http://aws.amazon.com/php/ PHP Developer Center
72
+ * @link https://github.com/simplepie/simplepie/blob/master/SimplePie/gzdecode.php SimplePie_gzdecode
73
+ */
74
+ class CFGzipDecode
75
+ {
76
+ /**
77
+ * Compressed data
78
+ *
79
+ * @access private
80
+ * @see gzdecode::$data
81
+ */
82
+ public $compressed_data;
83
+
84
+ /**
85
+ * Size of compressed data
86
+ *
87
+ * @access private
88
+ */
89
+ public $compressed_size;
90
+
91
+ /**
92
+ * Minimum size of a valid gzip string
93
+ *
94
+ * @access private
95
+ */
96
+ public $min_compressed_size = 18;
97
+
98
+ /**
99
+ * Current position of pointer
100
+ *
101
+ * @access private
102
+ */
103
+ public $position = 0;
104
+
105
+ /**
106
+ * Flags (FLG)
107
+ *
108
+ * @access private
109
+ */
110
+ public $flags;
111
+
112
+ /**
113
+ * Uncompressed data
114
+ *
115
+ * @access public
116
+ * @see gzdecode::$compressed_data
117
+ */
118
+ public $data;
119
+
120
+ /**
121
+ * Modified time
122
+ *
123
+ * @access public
124
+ */
125
+ public $MTIME;
126
+
127
+ /**
128
+ * Extra Flags
129
+ *
130
+ * @access public
131
+ */
132
+ public $XFL;
133
+
134
+ /**
135
+ * Operating System
136
+ *
137
+ * @access public
138
+ */
139
+ public $OS;
140
+
141
+ /**
142
+ * Subfield ID 1
143
+ *
144
+ * @access public
145
+ * @see gzdecode::$extra_field
146
+ * @see gzdecode::$SI2
147
+ */
148
+ public $SI1;
149
+
150
+ /**
151
+ * Subfield ID 2
152
+ *
153
+ * @access public
154
+ * @see gzdecode::$extra_field
155
+ * @see gzdecode::$SI1
156
+ */
157
+ public $SI2;
158
+
159
+ /**
160
+ * Extra field content
161
+ *
162
+ * @access public
163
+ * @see gzdecode::$SI1
164
+ * @see gzdecode::$SI2
165
+ */
166
+ public $extra_field;
167
+
168
+ /**
169
+ * Original filename
170
+ *
171
+ * @access public
172
+ */
173
+ public $filename;
174
+
175
+ /**
176
+ * Human readable comment
177
+ *
178
+ * @access public
179
+ */
180
+ public $comment;
181
+
182
+ /**
183
+ * Don't allow anything to be set
184
+ *
185
+ * @access public
186
+ */
187
+ public function __set($name, $value)
188
+ {
189
+ trigger_error("Cannot write property $name", E_USER_ERROR);
190
+ }
191
+
192
+ /**
193
+ * Set the compressed string and related properties
194
+ *
195
+ * @access public
196
+ */
197
+ public function __construct($data)
198
+ {
199
+ $this->compressed_data = $data;
200
+ $this->compressed_size = strlen($data);
201
+ }
202
+
203
+ /**
204
+ * Decode the GZIP stream
205
+ *
206
+ * @access public
207
+ */
208
+ public function parse()
209
+ {
210
+ if ($this->compressed_size >= $this->min_compressed_size)
211
+ {
212
+ // Check ID1, ID2, and CM
213
+ if (substr($this->compressed_data, 0, 3) !== "\x1F\x8B\x08")
214
+ {
215
+ return false;
216
+ }
217
+
218
+ // Get the FLG (FLaGs)
219
+ $this->flags = ord($this->compressed_data[3]);
220
+
221
+ // FLG bits above (1 << 4) are reserved
222
+ if ($this->flags > 0x1F)
223
+ {
224
+ return false;
225
+ }
226
+
227
+ // Advance the pointer after the above
228
+ $this->position += 4;
229
+
230
+ // MTIME
231
+ $mtime = substr($this->compressed_data, $this->position, 4);
232
+ // Reverse the string if we're on a big-endian arch because l is the only signed long and is machine endianness
233
+ if (current(unpack('S', "\x00\x01")) === 1)
234
+ {
235
+ $mtime = strrev($mtime);
236
+ }
237
+ $this->MTIME = current(unpack('l', $mtime));
238
+ $this->position += 4;
239
+
240
+ // Get the XFL (eXtra FLags)
241
+ $this->XFL = ord($this->compressed_data[$this->position++]);
242
+
243
+ // Get the OS (Operating System)
244
+ $this->OS = ord($this->compressed_data[$this->position++]);
245
+
246
+ // Parse the FEXTRA
247
+ if ($this->flags & 4)
248
+ {
249
+ // Read subfield IDs
250
+ $this->SI1 = $this->compressed_data[$this->position++];
251
+ $this->SI2 = $this->compressed_data[$this->position++];
252
+
253
+ // SI2 set to zero is reserved for future use
254
+ if ($this->SI2 === "\x00")
255
+ {
256
+ return false;
257
+ }
258
+
259
+ // Get the length of the extra field
260
+ $len = current(unpack('v', substr($this->compressed_data, $this->position, 2)));
261
+ $position += 2;
262
+
263
+ // Check the length of the string is still valid
264
+ $this->min_compressed_size += $len + 4;
265
+ if ($this->compressed_size >= $this->min_compressed_size)
266
+ {
267
+ // Set the extra field to the given data
268
+ $this->extra_field = substr($this->compressed_data, $this->position, $len);
269
+ $this->position += $len;
270
+ }
271
+ else
272
+ {
273
+ return false;
274
+ }
275
+ }
276
+
277
+ // Parse the FNAME
278
+ if ($this->flags & 8)
279
+ {
280
+ // Get the length of the filename
281
+ $len = strcspn($this->compressed_data, "\x00", $this->position);
282
+
283
+ // Check the length of the string is still valid
284
+ $this->min_compressed_size += $len + 1;
285
+ if ($this->compressed_size >= $this->min_compressed_size)
286
+ {
287
+ // Set the original filename to the given string
288
+ $this->filename = substr($this->compressed_data, $this->position, $len);
289
+ $this->position += $len + 1;
290
+ }
291
+ else
292
+ {
293
+ return false;
294
+ }
295
+ }
296
+
297
+ // Parse the FCOMMENT
298
+ if ($this->flags & 16)
299
+ {
300
+ // Get the length of the comment
301
+ $len = strcspn($this->compressed_data, "\x00", $this->position);
302
+
303
+ // Check the length of the string is still valid
304
+ $this->min_compressed_size += $len + 1;
305
+ if ($this->compressed_size >= $this->min_compressed_size)
306
+ {
307
+ // Set the original comment to the given string
308
+ $this->comment = substr($this->compressed_data, $this->position, $len);
309
+ $this->position += $len + 1;
310
+ }
311
+ else
312
+ {
313
+ return false;
314
+ }
315
+ }
316
+
317
+ // Parse the FHCRC
318
+ if ($this->flags & 2)
319
+ {
320
+ // Check the length of the string is still valid
321
+ $this->min_compressed_size += $len + 2;
322
+ if ($this->compressed_size >= $this->min_compressed_size)
323
+ {
324
+ // Read the CRC
325
+ $crc = current(unpack('v', substr($this->compressed_data, $this->position, 2)));
326
+
327
+ // Check the CRC matches
328
+ if ((crc32(substr($this->compressed_data, 0, $this->position)) & 0xFFFF) === $crc)
329
+ {
330
+ $this->position += 2;
331
+ }
332
+ else
333
+ {
334
+ return false;
335
+ }
336
+ }
337
+ else
338
+ {
339
+ return false;
340
+ }
341
+ }
342
+
343
+ // Decompress the actual data
344
+ if (($this->data = gzinflate(substr($this->compressed_data, $this->position, -8))) === false)
345
+ {
346
+ return false;
347
+ }
348
+ else
349
+ {
350
+ $this->position = $this->compressed_size - 8;
351
+ }
352
+
353
+ // Check CRC of data
354
+ $crc = current(unpack('V', substr($this->compressed_data, $this->position, 4)));
355
+ $this->position += 4;
356
+ /*if (extension_loaded('hash') && sprintf('%u', current(unpack('V', hash('crc32b', $this->data)))) !== sprintf('%u', $crc))
357
+ {
358
+ return false;
359
+ }*/
360
+
361
+ // Check ISIZE of data
362
+ $isize = current(unpack('V', substr($this->compressed_data, $this->position, 4)));
363
+ $this->position += 4;
364
+ if (sprintf('%u', strlen($this->data) & 0xFFFFFFFF) !== sprintf('%u', $isize))
365
+ {
366
+ return false;
367
+ }
368
+
369
+ // Wow, against all odds, we've actually got a valid gzip string
370
+ return true;
371
+ }
372
+ else
373
+ {
374
+ return false;
375
+ }
376
+ }
377
+ }
app/libs/aws/utilities/json.class.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://aws.amazon.com/apache2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+
18
+ /*%******************************************************************************************%*/
19
+ // CLASS
20
+
21
+ /**
22
+ * Handles the conversion of data from JSON to other formats.
23
+ *
24
+ * @version 2011.03.25
25
+ * @license See the included NOTICE.md file for more information.
26
+ * @copyright See the included NOTICE.md file for more information.
27
+ * @link http://aws.amazon.com/php/ PHP Developer Center
28
+ */
29
+ class CFJSON
30
+ {
31
+ /**
32
+ * Converts a JSON string to a CFSimpleXML object.
33
+ *
34
+ * @param string|array $json (Required) Pass either a valid JSON-formatted string, or an associative array.
35
+ * @param SimpleXMLElement $xml (Optional) An XML object to add nodes to. Must be an object that is an <code>instanceof</code> a <code>SimpleXMLElement</code> object. If an object is not passed, a new one will be generated using the classname defined for <code>$parser</code>.
36
+ * @param string $parser (Optional) The name of the class to use to parse the XML. This class should extend <code>SimpleXMLElement</code>. Has a default value of <code>CFSimpleXML</code>.
37
+ * @return CFSimpleXML An XML representation of the data.
38
+ */
39
+ public static function to_xml($json, SimpleXMLElement $xml = null, $parser = 'CFSimpleXML')
40
+ {
41
+ // If there isn't an XML object, create one
42
+ if (!$xml)
43
+ {
44
+ $xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?><rootElement/>', $parser);
45
+ }
46
+
47
+ // If we haven't parsed the JSON, do it
48
+ if (!is_array($json))
49
+ {
50
+ $json = json_decode($json, true);
51
+
52
+ // Did we encounter an error?
53
+ switch (json_last_error())
54
+ {
55
+ case JSON_ERROR_DEPTH:
56
+ throw new JSON_Exception('Maximum stack depth exceeded');
57
+
58
+ case JSON_ERROR_CTRL_CHAR:
59
+ throw new JSON_Exception('Unexpected control character found');
60
+
61
+ case JSON_ERROR_SYNTAX:
62
+ throw new JSON_Exception('Syntax error; Malformed JSON');
63
+
64
+ case JSON_ERROR_STATE_MISMATCH:
65
+ throw new JSON_Exception('Invalid or malformed JSON');
66
+ }
67
+ }
68
+
69
+ // Hand off for the recursive work
70
+ self::process_json($json, $xml, $parser);
71
+
72
+ return $xml;
73
+ }
74
+
75
+ /**
76
+ * Converts a JSON string to a CFSimpleXML object.
77
+ *
78
+ * @param string|array $json (Required) Pass either a valid JSON-formatted string, or an associative array.
79
+ * @param SimpleXMLElement $xml (Optional) An XML object to add nodes to. Must be an object that is an <code>instanceof</code> a <code>SimpleXMLElement</code> object. If an object is not passed, a new one will be generated using the classname defined for <code>$parser</code>.
80
+ * @param string $parser (Optional) The name of the class to use to parse the XML. This class should extend <code>SimpleXMLElement</code>. Has a default value of <code>CFSimpleXML</code>.
81
+ * @return CFSimpleXML An XML representation of the data.
82
+ */
83
+ protected static function process_json($json, SimpleXMLElement $xml = null, $parser = 'CFSimpleXML')
84
+ {
85
+ foreach ($json as $k => $v)
86
+ {
87
+ if (is_array($v))
88
+ {
89
+ $node = $xml->addChild($k);
90
+ self::process_json($v, $node, $parser);
91
+ }
92
+ else
93
+ {
94
+ $xml->addChild($k, $v);
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+
101
+ /**
102
+ * Default JSON Exception.
103
+ */
104
+ class JSON_Exception extends Exception {}
app/libs/aws/utilities/simplexml.class.php CHANGED
@@ -22,7 +22,7 @@
22
  * Wraps the underlying `SimpleXMLIterator` class with enhancements for rapidly traversing the DOM tree,
23
  * converting types, and comparisons.
24
  *
25
- * @version 2010.11.08
26
  * @license See the included NOTICE.md file for more information.
27
  * @copyright See the included NOTICE.md file for more information.
28
  * @link http://aws.amazon.com/php/ PHP Developer Center
@@ -77,6 +77,10 @@ class CFSimpleXML extends SimpleXMLIterator
77
  return $results;
78
  }
79
 
 
 
 
 
80
  /**
81
  * Wraps the results of an XPath query in a <CFArray> object.
82
  *
@@ -108,6 +112,10 @@ class CFSimpleXML extends SimpleXMLIterator
108
  return $parents[0];
109
  }
110
 
 
 
 
 
111
  /**
112
  * Gets the current XML node as a true string.
113
  *
@@ -128,6 +136,40 @@ class CFSimpleXML extends SimpleXMLIterator
128
  return new CFArray(json_decode(json_encode($this), true));
129
  }
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  /**
132
  * Whether or not the current node exactly matches the compared value.
133
  *
22
  * Wraps the underlying `SimpleXMLIterator` class with enhancements for rapidly traversing the DOM tree,
23
  * converting types, and comparisons.
24
  *
25
+ * @version 2011.03.25
26
  * @license See the included NOTICE.md file for more information.
27
  * @copyright See the included NOTICE.md file for more information.
28
  * @link http://aws.amazon.com/php/ PHP Developer Center
77
  return $results;
78
  }
79
 
80
+
81
+ /*%******************************************************************************************%*/
82
+ // TRAVERSAL
83
+
84
  /**
85
  * Wraps the results of an XPath query in a <CFArray> object.
86
  *
112
  return $parents[0];
113
  }
114
 
115
+
116
+ /*%******************************************************************************************%*/
117
+ // ALTERNATE FORMATS
118
+
119
  /**
120
  * Gets the current XML node as a true string.
121
  *
136
  return new CFArray(json_decode(json_encode($this), true));
137
  }
138
 
139
+ /**
140
+ * Gets the current XML node as a stdClass object.
141
+ *
142
+ * @return array The current XML node as a stdClass object.
143
+ */
144
+ public function to_stdClass()
145
+ {
146
+ return json_decode(json_encode($this));
147
+ }
148
+
149
+ /**
150
+ * Gets the current XML node as a JSON string.
151
+ *
152
+ * @return string The current XML node as a JSON string.
153
+ */
154
+ public function to_json()
155
+ {
156
+ return json_encode($this);
157
+ }
158
+
159
+ /**
160
+ * Gets the current XML node as a YAML string.
161
+ *
162
+ * @return string The current XML node as a YAML string.
163
+ */
164
+ public function to_yaml()
165
+ {
166
+ return sfYaml::dump(json_decode(json_encode($this), true), 5);
167
+ }
168
+
169
+
170
+ /*%******************************************************************************************%*/
171
+ // COMPARISONS
172
+
173
  /**
174
  * Whether or not the current node exactly matches the compared value.
175
  *
app/libs/aws/utilities/utilities.class.php CHANGED
@@ -112,7 +112,10 @@ class CFUtilities
112
 
113
  foreach ($array as $key => $value)
114
  {
115
- $temp[] = rawurlencode($key) . '=' . rawurlencode($value);
 
 
 
116
  }
117
 
118
  return implode('&', $temp);
@@ -333,6 +336,17 @@ class CFUtilities
333
  return (bool) preg_match('/^[a-zA-Z0-9\/\r\n+]*={0,2}$/', $s);
334
  }
335
 
 
 
 
 
 
 
 
 
 
 
 
336
  /**
337
  * Decodes `\uXXXX` entities into their real unicode character equivalents.
338
  *
112
 
113
  foreach ($array as $key => $value)
114
  {
115
+ if (is_string($key) && !is_array($value))
116
+ {
117
+ $temp[] = rawurlencode($key) . '=' . rawurlencode($value);
118
+ }
119
  }
120
 
121
  return implode('&', $temp);
336
  return (bool) preg_match('/^[a-zA-Z0-9\/\r\n+]*={0,2}$/', $s);
337
  }
338
 
339
+ /**
340
+ * Determines whether the data is a JSON string or not.
341
+ *
342
+ * @param string $s (Required) The string to test.
343
+ * @return boolean Whether the string is a JSON string or not.
344
+ */
345
+ public function is_json($s)
346
+ {
347
+ return json_decode($s) ? true : false;
348
+ }
349
+
350
  /**
351
  * Decodes `\uXXXX` entities into their real unicode character equivalents.
352
  *
app/libs/dropbox/dropbox.php CHANGED
@@ -5,6 +5,7 @@ if (!class_exists('OAuthException'))
5
  class Dropbox {
6
  const API_URL = 'https://api.dropbox.com/';
7
  const API_CONTENT_URL = 'https://api-content.dropbox.com/';
 
8
  const API_VERSION_URL = '0/';
9
 
10
  protected $root = 'dropbox';
@@ -14,13 +15,11 @@ class Dropbox {
14
 
15
  public function __construct($applicationKey, $applicationSecret) {
16
  $this->OAuthConsumer = new OAuthConsumer($applicationKey, $applicationSecret);
17
- $this->OAuthSignatureMethod = new OAuthSignatureMethod_HMAC_SHA1;
18
  }
19
 
20
  public function setOAuthTokens($token,$secret) {
21
- $this->oAuthToken = $token;
22
- $this->oAuthTokenSecret = $secret;
23
- $this->OAuthToken = new OAuthToken($this->oAuthToken, $this->oAuthTokenSecret);
24
  }
25
 
26
  public function setDropbox() {
@@ -37,7 +36,7 @@ class Dropbox {
37
  }
38
 
39
  public function upload($file, $path = ''){
40
- $file = preg_replace("/\\\\/", "/",$file);
41
  if (!is_readable($file) or !is_file($file)){
42
  throw new DropboxException("Error: File \"$file\" is not readable or doesn't exist.");
43
  }
@@ -97,14 +96,21 @@ class Dropbox {
97
  public function oAuthRequestToken() {
98
  $req_req = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, NULL, "GET", self::API_URL.self::API_VERSION_URL.'oauth/request_token');
99
  $req_req->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, NULL);
 
 
 
 
 
100
  $ch = curl_init();
101
  curl_setopt($ch, CURLOPT_URL, $req_req);
102
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
103
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
 
104
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
105
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
106
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
107
- curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 
108
  $content = curl_exec($ch);
109
  $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
110
  if ($status>=200 and $status<300 and 0==curl_errno($ch) ) {
@@ -126,7 +132,7 @@ class Dropbox {
126
  }
127
 
128
  public function oAuthAuthorize($oAuthToken,$callback_url) {
129
- $auth_url = "https://www.dropbox.com/".self::API_VERSION_URL."oauth/authorize?oauth_token=".$oAuthToken."&oauth_callback=".urlencode($callback_url);
130
  header('Location: '. $auth_url);
131
  exit;
132
  }
@@ -135,14 +141,21 @@ class Dropbox {
135
  $oAuthToken = new OAuthConsumer($oauth_token, $oauth_token_secret);
136
  $acc_req = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, $oAuthToken, "GET", self::API_URL.self::API_VERSION_URL.'oauth/access_token');
137
  $acc_req->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, $oAuthToken);
 
 
 
 
 
138
  $ch = curl_init();
139
  curl_setopt($ch, CURLOPT_URL, $acc_req);
140
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
141
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
 
142
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
143
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
144
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
145
- curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 
146
  $content = curl_exec($ch);
147
  $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
148
  if ($status>=200 and $status<300 and 0==curl_errno($ch)) {
@@ -168,24 +181,33 @@ class Dropbox {
168
  $args = (is_array($args)) ? $args : array();
169
 
170
  /* Sign Request*/
171
- $Request = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, $this->OAuthToken, $method, $url, $args);
172
- $Request->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, $this->OAuthToken);
 
 
 
 
 
 
 
173
 
174
  /* Build cURL Request */
175
  $ch = curl_init();
176
- curl_setopt($ch, CURLOPT_URL, $Request->to_url());
177
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
178
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
179
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
180
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
181
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
182
- curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 
 
183
 
184
  /* file upload */
185
- if ($file !== null){
186
- $data = array('file' => "@$file");
187
  curl_setopt($ch, CURLOPT_POST, true);
188
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
189
  }
190
 
191
  $content = curl_exec($ch);
5
  class Dropbox {
6
  const API_URL = 'https://api.dropbox.com/';
7
  const API_CONTENT_URL = 'https://api-content.dropbox.com/';
8
+ const API_WWW_URL = 'https://www.dropbox.com/';
9
  const API_VERSION_URL = '0/';
10
 
11
  protected $root = 'dropbox';
15
 
16
  public function __construct($applicationKey, $applicationSecret) {
17
  $this->OAuthConsumer = new OAuthConsumer($applicationKey, $applicationSecret);
18
+ $this->OAuthSignatureMethod = new OAuthSignatureMethod_PLAINTEXT;
19
  }
20
 
21
  public function setOAuthTokens($token,$secret) {
22
+ $this->OAuthToken = new OAuthToken($token, $secret);
 
 
23
  }
24
 
25
  public function setDropbox() {
36
  }
37
 
38
  public function upload($file, $path = ''){
39
+ $file = str_replace("\\", "/",$file);
40
  if (!is_readable($file) or !is_file($file)){
41
  throw new DropboxException("Error: File \"$file\" is not readable or doesn't exist.");
42
  }
96
  public function oAuthRequestToken() {
97
  $req_req = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, NULL, "GET", self::API_URL.self::API_VERSION_URL.'oauth/request_token');
98
  $req_req->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, NULL);
99
+ if (!empty($_SERVER["HTTP_ACCEPT"]))
100
+ $headers[] = 'Accept: ' . $_SERVER["HTTP_ACCEPT"];
101
+ if (!empty($_SERVER["REMOTE_ADDR"]))
102
+ $headers[] = 'X-Forwarded-For: ' . $_SERVER["REMOTE_ADDR"];
103
+ $headers[]='Expect:';
104
  $ch = curl_init();
105
  curl_setopt($ch, CURLOPT_URL, $req_req);
106
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
107
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
108
+ curl_setopt($ch, CURLOPT_AUTOREFERER , true);
109
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
110
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
111
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
112
+ if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
113
+ curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
114
  $content = curl_exec($ch);
115
  $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
116
  if ($status>=200 and $status<300 and 0==curl_errno($ch) ) {
132
  }
133
 
134
  public function oAuthAuthorize($oAuthToken,$callback_url) {
135
+ $auth_url = self::API_WWW_URL.self::API_VERSION_URL."oauth/authorize?oauth_token=".OAuthUtil::urlencode_rfc3986($oAuthToken)."&oauth_callback=".OAuthUtil::urlencode_rfc3986($callback_url);
136
  header('Location: '. $auth_url);
137
  exit;
138
  }
141
  $oAuthToken = new OAuthConsumer($oauth_token, $oauth_token_secret);
142
  $acc_req = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, $oAuthToken, "GET", self::API_URL.self::API_VERSION_URL.'oauth/access_token');
143
  $acc_req->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, $oAuthToken);
144
+ if (!empty($_SERVER["HTTP_ACCEPT"]))
145
+ $headers[] = 'Accept: ' . $_SERVER["HTTP_ACCEPT"];
146
+ if (!empty($_SERVER["REMOTE_ADDR"]))
147
+ $headers[] = 'X-Forwarded-For: ' . $_SERVER["REMOTE_ADDR"];
148
+ $headers[]='Expect:';
149
  $ch = curl_init();
150
  curl_setopt($ch, CURLOPT_URL, $acc_req);
151
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
152
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
153
+ curl_setopt($ch, CURLOPT_AUTOREFERER , true);
154
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
155
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
156
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
157
+ if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
158
+ curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
159
  $content = curl_exec($ch);
160
  $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
161
  if ($status>=200 and $status<300 and 0==curl_errno($ch)) {
181
  $args = (is_array($args)) ? $args : array();
182
 
183
  /* Sign Request*/
184
+ $dropoauthreq = OAuthRequest::from_consumer_and_token($this->OAuthConsumer, $this->OAuthToken, $method, $url, $args);
185
+ $dropoauthreq->sign_request($this->OAuthSignatureMethod, $this->OAuthConsumer, $this->OAuthToken);
186
+
187
+ /* Header*/
188
+ if (!empty($_SERVER["HTTP_ACCEPT"]))
189
+ $headers[] = 'Accept: ' . $_SERVER["HTTP_ACCEPT"];
190
+ if (!empty($_SERVER["REMOTE_ADDR"]))
191
+ $headers[] = 'X-Forwarded-For: ' . $_SERVER["REMOTE_ADDR"];
192
+ $headers[]='Expect:';
193
 
194
  /* Build cURL Request */
195
  $ch = curl_init();
196
+ curl_setopt($ch, CURLOPT_URL, $dropoauthreq->to_url());
197
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
198
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
199
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
200
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
201
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
202
+ curl_setopt($ch, CURLOPT_AUTOREFERER , true);
203
+ if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
204
+ curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
205
 
206
  /* file upload */
207
+ if (is_file($file)){
208
+ curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
209
  curl_setopt($ch, CURLOPT_POST, true);
210
+ curl_setopt($ch, CURLOPT_POSTFIELDS, array('file' => "@$file"));
211
  }
212
 
213
  $content = curl_exec($ch);
app/libs/sugarsync.php CHANGED
@@ -87,10 +87,10 @@ class SugarSync {
87
  curl_setopt($curl,CURLOPT_USERAGENT,'PHP SugarSync/'. self::VERSION);
88
  if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
89
  curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
90
- curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
91
- curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false);
92
  curl_setopt($curl,CURLOPT_HEADER,true);
93
- curl_setopt($curl,CURLOPT_HTTPHEADER,array('Content-Type: application/xml; charset=UTF-8'));
94
  curl_setopt($curl,CURLOPT_POSTFIELDS,$auth);
95
  curl_setopt($curl,CURLOPT_POST,true);
96
  // execute
@@ -151,8 +151,9 @@ class SugarSync {
151
  curl_setopt($curl,CURLOPT_USERAGENT,'PHP SugarSync/'. self::VERSION);
152
  if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
153
  curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
154
- curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
155
- curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false);
 
156
 
157
  if ($method == 'POST') {
158
  $headers[] = 'Content-Type: application/xml; charset=UTF-8';
@@ -160,6 +161,7 @@ class SugarSync {
160
  curl_setopt($curl,CURLOPT_POST,true);
161
  } elseif ($method == 'PUT') {
162
  if (is_file($data) and is_readable($data)) {
 
163
  $datafilefd=fopen($data,'r');
164
  curl_setopt($curl,CURLOPT_PUT,true);
165
  curl_setopt($curl,CURLOPT_INFILE,$datafilefd);
87
  curl_setopt($curl,CURLOPT_USERAGENT,'PHP SugarSync/'. self::VERSION);
88
  if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
89
  curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
90
+ curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,true);
91
+ curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,2);
92
  curl_setopt($curl,CURLOPT_HEADER,true);
93
+ curl_setopt($curl,CURLOPT_HTTPHEADER,array('Expect:','Content-Type: application/xml; charset=UTF-8'));
94
  curl_setopt($curl,CURLOPT_POSTFIELDS,$auth);
95
  curl_setopt($curl,CURLOPT_POST,true);
96
  // execute
151
  curl_setopt($curl,CURLOPT_USERAGENT,'PHP SugarSync/'. self::VERSION);
152
  if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
153
  curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
154
+ curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,true);
155
+ curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,2);
156
+ curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
157
 
158
  if ($method == 'POST') {
159
  $headers[] = 'Content-Type: application/xml; charset=UTF-8';
161
  curl_setopt($curl,CURLOPT_POST,true);
162
  } elseif ($method == 'PUT') {
163
  if (is_file($data) and is_readable($data)) {
164
+ curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
165
  $datafilefd=fopen($data,'r');
166
  curl_setopt($curl,CURLOPT_PUT,true);
167
  curl_setopt($curl,CURLOPT_INFILE,$datafilefd);
app/list-tables.php CHANGED
@@ -381,14 +381,7 @@ class BackWPup_Backups_Table extends WP_List_Table {
381
  if ( empty( $per_page ) || $per_page < 1 )
382
  $per_page = 20;
383
 
384
- //load logs
385
- if (isset($_GET['paged'])) {
386
- $backups=get_option('backwpup_backups_chache');
387
- } else {
388
- //Get Backup files
389
- $backups=backwpup_get_backup_files();
390
- update_option('backwpup_backups_chache',$backups);
391
- }
392
 
393
  //by page
394
  $start=intval( ( $this->get_pagenum() - 1 ) * $per_page );
381
  if ( empty( $per_page ) || $per_page < 1 )
382
  $per_page = 20;
383
 
384
+ $backups=get_option('backwpup_backups_chache');
 
 
 
 
 
 
 
385
 
386
  //by page
387
  $start=intval( ( $this->get_pagenum() - 1 ) * $per_page );
app/options-edit-job.php CHANGED
@@ -29,7 +29,7 @@ $dests=explode(',',strtoupper(BACKWPUP_DESTS));
29
  <div class="clear"></div>
30
 
31
 
32
- <form method="post" action="">
33
  <input type="hidden" name="subpage" value="edit" />
34
  <input type="hidden" name="jobid" value="<?PHP echo $jobid;?>" />
35
  <?php wp_nonce_field('edit-job'); ?>
29
  <div class="clear"></div>
30
 
31
 
32
+ <form method="post" action="<?PHP echo get_admin_url().'admin.php?page=BackWPup&subpage=edit';?>">
33
  <input type="hidden" name="subpage" value="edit" />
34
  <input type="hidden" name="jobid" value="<?PHP echo $jobid;?>" />
35
  <?php wp_nonce_field('edit-job'); ?>
app/options-runnow-iframe.php CHANGED
@@ -1,5 +1,14 @@
1
  <?PHP
2
  if (file_exists(trim($_GET['wpabs']).'wp-load.php') and is_numeric(trim($_GET['jobid']))) {
 
 
 
 
 
 
 
 
 
3
  require_once(trim($_GET['wpabs']).'wp-load.php'); /** Setup WordPress environment */
4
  check_admin_referer('dojob-now_' . (int)$_GET['jobid']);
5
  backwpup_send_no_cache_header();
@@ -13,9 +22,15 @@ if (file_exists(trim($_GET['wpabs']).'wp-load.php') and is_numeric(trim($_GET['j
13
  <title><?PHP _e('Do Job','backwpup'); ?></title>
14
  </head>
15
  <body style="font-family:monospace;font-size:12px;white-space:nowrap;">
 
 
16
  <?PHP
 
 
17
  backwpup_dojob($_GET['jobid']);
18
  ?>
 
 
19
  </body>
20
  </html>
21
  <?PHP
1
  <?PHP
2
  if (file_exists(trim($_GET['wpabs']).'wp-load.php') and is_numeric(trim($_GET['jobid']))) {
3
+ @ini_set('zlib.output_compression', 0);
4
+ //disable w3tc chache
5
+ define('DONOTCACHEPAGE', true);
6
+ define('DONOTCACHEDB', true);
7
+ define('DONOTMINIFY', true);
8
+ define('DONOTCDN', true);
9
+ define('DONOTCACHCEOBJECT', true);
10
+ //Quick Cache
11
+ define("QUICK_CACHE_ALLOWED", false);
12
  require_once(trim($_GET['wpabs']).'wp-load.php'); /** Setup WordPress environment */
13
  check_admin_referer('dojob-now_' . (int)$_GET['jobid']);
14
  backwpup_send_no_cache_header();
22
  <title><?PHP _e('Do Job','backwpup'); ?></title>
23
  </head>
24
  <body style="font-family:monospace;font-size:12px;white-space:nowrap;">
25
+ <!--dynamic-cached-content-->
26
+ <!--mfunc backwpup_dojob(<?PHP echo $_GET['jobid'];?>) -->
27
  <?PHP
28
+ @flush();
29
+ @ob_flush();
30
  backwpup_dojob($_GET['jobid']);
31
  ?>
32
+ <!--/mfunc-->
33
+ <!--/dynamic-cached-content-->
34
  </body>
35
  </html>
36
  <?PHP
app/options-save.php CHANGED
@@ -451,6 +451,36 @@ function backwpup_save_settings() {
451
  return $backwpup_message;
452
  }
453
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  function backwpup_save_job() { //Save Job settings
455
  $jobid = (int) $_POST['jobid'];
456
  check_admin_referer('edit-job');
@@ -607,16 +637,17 @@ function backwpup_save_job() { //Save Job settings
607
  // request request tokens
608
  $response = $dropbox->oAuthRequestToken();
609
  // save job id and referer
610
- update_option('backwpup_dropboxrequest',array('jobid'=>$jobid,'oAuthRequestToken' => $response['oauth_token'],'oAuthRequestTokenSecret' => $response['oauth_token_secret']));
611
  // let the user authorize (user will be redirected)
612
- $response = $dropbox->oAuthAuthorize($response['oauth_token'], plugins_url('dropbox-auth.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH));
613
  }
 
614
  if ($_POST['dropboxauth']==__('Delete!', 'backwpup')) {
615
  $jobs[$jobid]['dropetoken']='';
616
  $jobs[$jobid]['dropesecret']='';
617
  $backwpup_message.=__('Dropbox authentication deleted!','backwpup').'<br />';
618
  }
619
-
620
  //save chages
621
  update_option('backwpup_jobs',$jobs);
622
  $_POST['jobid']=$jobid;
451
  return $backwpup_message;
452
  }
453
 
454
+
455
+ function backwpup_save_dropboxauth() { //Save Job settings
456
+ $jobid = (int) $_GET['jobid'];
457
+ check_admin_referer('edit-job');
458
+ if ((int)$_GET['uid']>0 and !empty($_GET['oauth_token'])) {
459
+ $reqtoken=get_option('backwpup_dropboxrequest');
460
+ if ($reqtoken['oAuthRequestToken']==$_GET['oauth_token']) {
461
+ //Get Access Tokens
462
+ if (!class_exists('Dropbox'))
463
+ require_once (dirname(__FILE__).'/libs/dropbox/dropbox.php');
464
+ $dropbox = new Dropbox(BACKWPUP_DROPBOX_APP_KEY, BACKWPUP_DROPBOX_APP_SECRET);
465
+ $oAuthStuff = $dropbox->oAuthAccessToken($reqtoken['oAuthRequestToken'],$reqtoken['oAuthRequestTokenSecret']);
466
+ //Save Tokens
467
+ $jobs=get_option('backwpup_jobs');
468
+ $jobs[$jobid]['dropetoken']=$oAuthStuff['oauth_token'];
469
+ $jobs[$jobid]['dropesecret']=$oAuthStuff['oauth_token_secret'];
470
+ update_option('backwpup_jobs',$jobs);
471
+ $backwpup_message.=__('Dropbox authentication complete!','backwpup').'<br />';
472
+ } else {
473
+ $backwpup_message.=__('Wrong Token for Dropbox authentication reseved!','backwpup').'<br />';
474
+ }
475
+ } else {
476
+ $backwpup_message.=__('No Dropbox authentication reseved!','backwpup').'<br />';
477
+ }
478
+ delete_option('backwpup_dropboxrequest');
479
+ $_POST['jobid']=$jobid;
480
+ return $backwpup_message;
481
+ }
482
+
483
+
484
  function backwpup_save_job() { //Save Job settings
485
  $jobid = (int) $_POST['jobid'];
486
  check_admin_referer('edit-job');
637
  // request request tokens
638
  $response = $dropbox->oAuthRequestToken();
639
  // save job id and referer
640
+ update_option('backwpup_dropboxrequest',array('oAuthRequestToken' => $response['oauth_token'],'oAuthRequestTokenSecret' => $response['oauth_token_secret']));
641
  // let the user authorize (user will be redirected)
642
+ $response = $dropbox->oAuthAuthorize($response['oauth_token'], get_admin_url().'admin.php?page=BackWPup&subpage=edit&jobid='.$jobid.'&dropboxauth=AccessToken&_wpnonce='.wp_create_nonce('edit-job'));
643
  }
644
+
645
  if ($_POST['dropboxauth']==__('Delete!', 'backwpup')) {
646
  $jobs[$jobid]['dropetoken']='';
647
  $jobs[$jobid]['dropesecret']='';
648
  $backwpup_message.=__('Dropbox authentication deleted!','backwpup').'<br />';
649
  }
650
+
651
  //save chages
652
  update_option('backwpup_jobs',$jobs);
653
  $_POST['jobid']=$jobid;
app/options-settings.php CHANGED
@@ -12,7 +12,7 @@ $cfg=get_option('backwpup');
12
 
13
  <div class="clear"></div>
14
 
15
- <form method="post" action="">
16
  <input type="hidden" name="subpage" value="settings" />
17
  <?php wp_nonce_field('backwpup-cfg'); ?>
18
 
12
 
13
  <div class="clear"></div>
14
 
15
+ <form method="post" action="<?PHP echo get_admin_url().'admin.php?page=BackWPup&subpage=settings';?>">
16
  <input type="hidden" name="subpage" value="settings" />
17
  <?php wp_nonce_field('backwpup-cfg'); ?>
18
 
app/php-functions.php CHANGED
@@ -129,7 +129,7 @@ function backwpup_options_load() {
129
  '</div>'
130
  );
131
 
132
- if ($_REQUEST['action2']!='-1' and !empty($_REQUEST['doaction2']))
133
  $_REQUEST['action']=$_REQUEST['action2'];
134
 
135
  switch($_REQUEST['subpage']) {
@@ -144,9 +144,12 @@ function backwpup_options_load() {
144
  $table->prepare_items();
145
  break;
146
  case 'edit':
147
- if (!empty($_POST['submit']) or !empty($_POST['dropboxauth'])) {
148
  require_once(dirname(__FILE__).'/options-save.php');
149
- $backwpup_message=backwpup_save_job();
 
 
 
150
  }
151
  break;
152
  case 'settings':
@@ -278,13 +281,25 @@ function backwpup_intervals($schedules) {
278
  }
279
 
280
  //cron work
281
- function backwpup_cron() {
282
  $jobs=(array)get_option('backwpup_jobs');
283
  foreach ($jobs as $jobid => $jobvalue) {
284
  if (!$jobvalue['activated'])
285
  continue;
286
  if ($jobvalue['cronnextrun']<=current_time('timestamp')) {
 
 
 
 
 
 
 
 
 
 
287
  backwpup_dojob($jobid);
 
 
288
  }
289
  }
290
  }
@@ -375,8 +390,9 @@ function backwpup_dojob($jobid) {
375
  }
376
  }
377
 
378
- $backwpup_dojob->job_end();
379
-
 
380
  return $backwpup_dojob->logdir.$backwpup_dojob->logfile;
381
  }
382
 
@@ -521,6 +537,8 @@ function backwpup_dashboard_output() {
521
 
522
  //add dashboard widget
523
  function backwpup_add_dashboard() {
 
 
524
  wp_add_dashboard_widget( 'backwpup_dashboard_widget', 'BackWPup', 'backwpup_dashboard_output' );
525
  }
526
 
129
  '</div>'
130
  );
131
 
132
+ if ($_REQUEST['action2']!='-1' and $_REQUEST['action']=='-1')
133
  $_REQUEST['action']=$_REQUEST['action2'];
134
 
135
  switch($_REQUEST['subpage']) {
144
  $table->prepare_items();
145
  break;
146
  case 'edit':
147
+ if (!empty($_POST['submit']) or !empty($_REQUEST['dropboxauth'])) {
148
  require_once(dirname(__FILE__).'/options-save.php');
149
+ if ($_GET['dropboxauth']=='AccessToken')
150
+ $backwpup_message=backwpup_save_dropboxauth();
151
+ else
152
+ $backwpup_message=backwpup_save_job();
153
  }
154
  break;
155
  case 'settings':
281
  }
282
 
283
  //cron work
284
+ function backwpup_cron() {
285
  $jobs=(array)get_option('backwpup_jobs');
286
  foreach ($jobs as $jobid => $jobvalue) {
287
  if (!$jobvalue['activated'])
288
  continue;
289
  if ($jobvalue['cronnextrun']<=current_time('timestamp')) {
290
+
291
+ define('DONOTCACHEPAGE', true);
292
+ define('DONOTCACHEDB', true);
293
+ define('DONOTMINIFY', true);
294
+ define('DONOTCDN', true);
295
+ define('DONOTCACHCEOBJECT', true);
296
+ //Quick Cache
297
+ define("QUICK_CACHE_ALLOWED", false);
298
+ echo "<!--dynamic-cached-content-->";
299
+ echo "<!--mfunc backwpup_dojob(".$jobid.") -->";
300
  backwpup_dojob($jobid);
301
+ echo "<!--/mfunc-->";
302
+ echo "<!--/dynamic-cached-content-->";
303
  }
304
  }
305
  }
390
  }
391
  }
392
 
393
+ $backwpup_dojob->job_end();
394
+ //geneate new chache
395
+ update_option('backwpup_backups_chache',backwpup_get_backup_files());
396
  return $backwpup_dojob->logdir.$backwpup_dojob->logfile;
397
  }
398
 
537
 
538
  //add dashboard widget
539
  function backwpup_add_dashboard() {
540
+ if (!current_user_can(BACKWPUP_USER_CAPABILITY))
541
+ return;
542
  wp_add_dashboard_widget( 'backwpup_dashboard_widget', 'BackWPup', 'backwpup_dashboard_output' );
543
  }
544
 
app/wp_xml_export.php CHANGED
@@ -5,7 +5,9 @@ if (file_exists(trim($_GET['wpabs']).'wp-load.php')) {
5
  header("HTTP/1.0 404 Not Found");
6
  die();
7
  }
8
- if (!wp_verify_nonce($_GET['_nonce'], 'backwpup-xmlexport')) {
 
 
9
  require_once(trim($_GET['wpabs']).'wp-admin/includes/export.php');
10
  export_wp();
11
  } else {
5
  header("HTTP/1.0 404 Not Found");
6
  die();
7
  }
8
+ $nonce=get_option('backwpup_nonce');
9
+ delete_option('backwpup_nonce');
10
+ if (!empty($nonce['nonce']) and $_GET['_nonce']==$nonce['nonce'] and $nonce['timestamp']<time()+60) {
11
  require_once(trim($_GET['wpabs']).'wp-admin/includes/export.php');
12
  export_wp();
13
  } else {
backwpup.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackWPup
4
  Plugin URI: http://danielhuesken.de/portfolio/backwpup/
5
  Description: Backup and more of your WordPress Blog Database and Files.
6
  Author: Daniel H&uuml;sken
7
- Version: 1.7.1
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
@@ -34,7 +34,7 @@ if ( !defined('ABSPATH') )
34
  //Set plugin dirname
35
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
36
  //Set Plugin Version
37
- define('BACKWPUP_VERSION', '1.7.1');
38
  //Set User Capability
39
  define('BACKWPUP_USER_CAPABILITY', '10');
40
  //Set useable destinations
4
  Plugin URI: http://danielhuesken.de/portfolio/backwpup/
5
  Description: Backup and more of your WordPress Blog Database and Files.
6
  Author: Daniel H&uuml;sken
7
+ Version: 1.7.2
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
34
  //Set plugin dirname
35
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
36
  //Set Plugin Version
37
+ define('BACKWPUP_VERSION', '1.7.2');
38
  //Set User Capability
39
  define('BACKWPUP_USER_CAPABILITY', '10');
40
  //Set useable destinations
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danie
4
  Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, Rackspace, Cloud, Azure, DropBox, SugarSync
5
  Requires at least: 2.8
6
  Tested up to: 3.1.0
7
- Stable tag: 1.7.1
8
 
9
  Backup your WordPress Database and Files, and more!
10
 
@@ -102,6 +102,13 @@ Destinations are:
102
  1. Job Page
103
 
104
  == Changelog ==
 
 
 
 
 
 
 
105
  = 1.7.1 =
106
  * Bugfix on make new jobs
107
  * Bugfix on job run with dbdump
4
  Tags: backup, admin, file, Database, mysql, Cron, ftp, S3, export, xml, Rackspace, Cloud, Azure, DropBox, SugarSync
5
  Requires at least: 2.8
6
  Tested up to: 3.1.0
7
+ Stable tag: 1.7.2
8
 
9
  Backup your WordPress Database and Files, and more!
10
 
102
  1. Job Page
103
 
104
  == Changelog ==
105
+ = 1.7.2 =
106
+ * try to disable Cache plugins for working job
107
+ * more dropbox improvements
108
+ * fixed Curl error on WP-Export
109
+ * fixed dashbord wigedt shown for all users
110
+ * bug fixes
111
+
112
  = 1.7.1 =
113
  * Bugfix on make new jobs
114
  * Bugfix on job run with dbdump
uninstall.php CHANGED
@@ -1,9 +1,10 @@
1
  <?PHP
2
- if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
3
  exit();
4
 
5
  delete_option('backwpup');
6
  delete_option('backwpup_jobs');
7
  delete_option('backwpup_backups_chache');
8
  delete_option('backwpup_dropboxrequest');
 
9
  ?>
1
  <?PHP
2
+ if( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
3
  exit();
4
 
5
  delete_option('backwpup');
6
  delete_option('backwpup_jobs');
7
  delete_option('backwpup_backups_chache');
8
  delete_option('backwpup_dropboxrequest');
9
+ delete_option('backwpup_nonce');
10
  ?>