Permalink
Browse files

Updated SDK for the 1.6.1 release

  • Loading branch information...
1 parent 3d05924 commit 2c33257e66747c039a7934a7f152e5ab4efc7757 @jeremeamia jeremeamia committed Mar 11, 2013
View
@@ -1,6 +1,11 @@
# AWS SDK for PHP
-> This is the repository for version 1 of the AWS SDK for PHP. For the new **AWS SDK for PHP 2**, see <http://github.com/aws/aws-sdk-php>.
+---
+
+**NOTE:** This is the repository for version 1 of the AWS SDK for PHP. We encourage you to upgrade to the
+**AWS SDK for PHP 2**, see <http://github.com/aws/aws-sdk-php>.
+
+---
The AWS SDK for PHP enables developers to build solutions for Amazon Simple Storage Service (Amazon S3),
Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more. With the AWS SDK for PHP, developers
View
@@ -1,3 +1,23 @@
+CHANGELOG for the AWS SDK for PHP 1.x
+=====================================
+
+1.6.1 (2013-03-11)
+------------------
+
+* Added support for enabling DNS Hostnames and disabling DNS Resolution (for Amazon VPC) in the Amazon EC2 client.
+* Added support for enumerating account attributes in the Amazon EC2 client.
+* Added support for copying AMIs across regions in the Amazon EC2 client.
+* Added support for event notification subscriptions in the Amazon RDS client.
+* Added support for cancelling stack updates in the AWS CloudFormation client.
+* Resolved an issue where the `restore_archived_object` method in the Amazon S3 client was not working properly.
+* Resolved an issue where in some cases the `get_object_list` method of the Amazon S3 client was causing errors.
+
+----
+
+**Note**: The formatting of the CHANGELOG below is different from that above.
+
+----
+
# Changelog: 1.6.0
Launched Monday, January 21, 2013.
@@ -6,24 +6,28 @@ Contributions were provided under the Apache 2.0 License, as appropriate.
The following people have provided ideas, support and bug fixes:
+* [aaronbski](https://github.com/aaronbski) (bug fixes)
* [arech8](http://developer.amazonwebservices.com/connect/profile.jspa?userID=154435) (bug fixes)
* [Aizat Faiz](http://aizatto.com) (bug fixes)
* [Adam Monsen](https://github.com/meonkeys) (bug fixes)
* [Alan Pinstein](https://github.com/apinstein) (bug fixes)
* [Ben Lumley](http://github.com/benlumley) (bug fixes)
* [Brady Doll](https://github.com/bradydoll) (bug fixes)
* [Dan Stillman](https://github.com/dstillman) (bug fixes)
+* [Daniel Garcia](https://github.com/buzzedword) (feedback)
* [Daniel Holmes](https://github.com/danielholmes) (bug fixes)
* [David Chan](http://www.chandeeland.org) (bug fixes)
* [derekclapham](https://github.com/derekclapham) (bug fixes)
* [Eric Caron](http://www.ericcaron.com) (bug fixes)
* [Jason Ardell](http://ardell.posterous.com/) (bug fixes)
* [Jeremy Archuleta](http://code.google.com/u/jeremy.archuleta/) (bug fixes)
* [Jimmy Berry](http://blog.boombatower.com/) (bug fixes, patches)
-* [Jarrod Swift](https://github.com/jswift) (bg fixes)
-* [Richard Quadling](https://github.com/RichardQuadling) (bug fixes)
+* [Jarrod Swift](https://github.com/jswift) (bug fixes)
+* [nchagrass](https://github.com/nchagrass) (bug fixes)
+* [oliverholmberg](https://github.com/oliverholmberg) (bug fixes)
* [Paul Voegler](mailto:voegler@gmx.de) (bug fixes, bug reports, patches)
* [Peter Bowen](http://github.com/pzb) (feedback, bug reports)
+* [Richard Quadling](https://github.com/RichardQuadling) (bug fixes)
* [Robin Speekenbrink](https://github.com/fruitl00p) (bug fixes)
* [Roman Cambian](https://github.com/rcambien) (patches)
* [zoxa](https://github.com/zoxa) (bug fixes)
View
@@ -14,6 +14,9 @@
"require":{
"php":">=5.2.0"
},
+ "suggest": {
+ "aws/aws-sdk-php": "You should consider upgrading to version 2 of the AWS SDK for PHP"
+ },
"autoload":{
"classmap": [
"authentication/",
@@ -1,6 +1,6 @@
<?php
/*
- * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
<?php
/*
- * Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
View
View
@@ -33,8 +33,8 @@ class Parser_Exception extends Exception {}
// INTERMEDIARY CONSTANTS
define('CFRUNTIME_NAME', 'aws-sdk-php');
-define('CFRUNTIME_VERSION', '1.6.0');
-define('CFRUNTIME_BUILD', '20130121120000');
+define('CFRUNTIME_VERSION', '1.6.1');
+define('CFRUNTIME_BUILD', '20130311100000');
$user_agent = sprintf('%s/%s PHP/%s', CFRUNTIME_NAME, CFRUNTIME_VERSION, PHP_VERSION);
if (function_exists('curl_version'))
{
@@ -29,7 +29,7 @@
*
* Visit <a href="http://aws.amazon.com/ec2/">http://aws.amazon.com/ec2/</a> for more information.
*
- * @version 2013.01.18
+ * @version 2013.03.08
* @license See the included NOTICE.md file for complete information.
* @copyright See the included NOTICE.md file for complete information.
* @link http://aws.amazon.com/ec2/ Amazon EC2
@@ -148,7 +148,7 @@ class AmazonEC2 extends CFRuntime
*/
public function __construct(array $options = array())
{
- $this->api_version = '2012-12-01';
+ $this->api_version = '2013-02-01';
$this->hostname = self::DEFAULT_URL;
$this->auth_class = 'AuthV2Query';
@@ -717,6 +717,29 @@ public function confirm_product_instance($product_code, $instance_id, $opt = nul
*
*
* @param string $source_region (Required)
+ * @param string $source_image_id (Required)
+ * @param string $name (Required)
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
+ * <li><code>Description</code> - <code>string</code> - Optional - </li>
+ * <li><code>ClientToken</code> - <code>string</code> - Optional - </li>
+ * <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>
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
+ */
+ public function copy_image($source_region, $source_image_id, $name, $opt = null)
+ {
+ if (!$opt) $opt = array();
+ $opt['SourceRegion'] = $source_region;
+ $opt['SourceImageId'] = $source_image_id;
+ $opt['Name'] = $name;
+
+ return $this->authenticate('CopyImage', $opt);
+ }
+
+ /**
+ *
+ *
+ * @param string $source_region (Required)
* @param string $source_snapshot_id (Required)
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
* <li><code>Description</code> - <code>string</code> - Optional - </li>
@@ -1894,6 +1917,31 @@ public function deregister_image($image_id, $opt = null)
}
/**
+ *
+ *
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
+ * <li><code>AttributeName</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
+ * <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>
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
+ */
+ public function describe_account_attributes($opt = null)
+ {
+ if (!$opt) $opt = array();
+
+ // Optional list (non-map)
+ if (isset($opt['AttributeName']))
+ {
+ $opt = array_merge($opt, CFComplexType::map(array(
+ 'AttributeName' => (is_array($opt['AttributeName']) ? $opt['AttributeName'] : array($opt['AttributeName']))
+ )));
+ unset($opt['AttributeName']);
+ }
+
+ return $this->authenticate('DescribeAccountAttributes', $opt);
+ }
+
+ /**
* The DescribeAddresses operation lists elastic IP addresses assigned to your account.
*
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
@@ -2877,7 +2925,7 @@ public function describe_reserved_instances_listings($opt = null)
*
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
* <li><code>ReservedInstancesOfferingId</code> - <code>string|array</code> - Optional - An optional list of the unique IDs of the Reserved Instance offerings to describe. Pass a string for a single value, or an indexed array for multiple values.</li>
- * <li><code>InstanceType</code> - <code>string</code> - Optional - The instance type on which the Reserved Instance can be used. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
+ * <li><code>InstanceType</code> - <code>string</code> - Optional - The instance type on which the Reserved Instance can be used. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>hs1.8xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone in which the Reserved Instance can be used.</li>
* <li><code>ProductDescription</code> - <code>string</code> - Optional - The Reserved Instance product description.</li>
* <li><code>Filter</code> - <code>array</code> - Optional - A list of filters used to match properties for ReservedInstancesOfferings. For a complete reference to the available filter keys for this operation, see the <a href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/">Amazon EC2 API reference</a>. <ul>
@@ -3453,6 +3501,25 @@ public function describe_volumes($opt = null)
}
/**
+ *
+ *
+ * @param string $vpc_id (Required)
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
+ * <li><code>EnableDnsSupport</code> - <code>string</code> - Optional - </li>
+ * <li><code>EnableDnsHostnames</code> - <code>string</code> - Optional - </li>
+ * <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>
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
+ */
+ public function describe_vpc_attribute($vpc_id, $opt = null)
+ {
+ if (!$opt) $opt = array();
+ $opt['VpcId'] = $vpc_id;
+
+ return $this->authenticate('DescribeVpcAttribute', $opt);
+ }
+
+ /**
* Gives you information about your VPCs. You can filter the results to return information only
* about VPCs that match criteria you specify.
*
@@ -3877,7 +3944,7 @@ public function get_password_data($instance_id, $opt = null)
* <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
* <li><code>AdditionalInfo</code> - <code>string</code> - Optional - </li>
* <li><code>UserData</code> - <code>string</code> - Optional - </li>
- * <li><code>InstanceType</code> - <code>string</code> - Optional - [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
+ * <li><code>InstanceType</code> - <code>string</code> - Optional - [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>hs1.8xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
* <li><code>Placement</code> - <code>array</code> - Optional - Describes where an Amazon EC2 instance is running within an Amazon EC2 region. <ul>
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs.</li>
@@ -4296,6 +4363,24 @@ public function modify_volume_attribute($volume_id, $opt = null)
}
/**
+ *
+ *
+ * @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
+ * <li><code>VpcId</code> - <code>string</code> - Optional - </li>
+ * <li><code>EnableDnsSupport.Value</code> - <code>boolean</code> - Optional - Boolean value</li>
+ * <li><code>EnableDnsHostnames.Value</code> - <code>boolean</code> - Optional - Boolean value</li>
+ * <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>
+ * <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
+ * @return CFResponse A <CFResponse> object containing a parsed HTTP response.
+ */
+ public function modify_vpc_attribute($opt = null)
+ {
+ if (!$opt) $opt = array();
+
+ return $this->authenticate('ModifyVpcAttribute', $opt);
+ }
+
+ /**
* Enables monitoring for a running instance.
*
* @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.
@@ -4678,7 +4763,7 @@ public function report_instance_status($opt = null)
* <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
* <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>
* <li><code>AddressingType</code> - <code>string</code> - Optional - Deprecated.</li>
- * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
+ * <li><code>InstanceType</code> - <code>string</code> - Optional - Specifies the instance type. [Allowed values: <code>t1.micro</code>, <code>m1.small</code>, <code>m1.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>hs1.8xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
* <li><code>Placement</code> - <code>array</code> - Optional - Defines a placement item. <ul>
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs.</li>
@@ -4999,8 +5084,7 @@ public function revoke_security_group_ingress($opt = null)
* <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>
* <li><code>SecurityGroupId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
* <li><code>UserData</code> - <code>string</code> - Optional - Specifies additional information to make available to the instance(s).</li>
- * <li><code>AddressingType</code> - <code>string</code> - Optional - </li>
- * <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.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
+ * <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.medium</code>, <code>m1.large</code>, <code>m1.xlarge</code>, <code>m2.xlarge</code>, <code>m2.2xlarge</code>, <code>m2.4xlarge</code>, <code>m3.xlarge</code>, <code>m3.2xlarge</code>, <code>c1.medium</code>, <code>c1.xlarge</code>, <code>hi1.4xlarge</code>, <code>hs1.8xlarge</code>, <code>cc1.4xlarge</code>, <code>cc2.8xlarge</code>, <code>cg1.4xlarge</code>]</li>
* <li><code>Placement</code> - <code>array</code> - Optional - Specifies the placement constraints (Availability Zones) for launching the instances. <ul>
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs.</li>
Oops, something went wrong. Retry.

0 comments on commit 2c33257

Please sign in to comment.