Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Commit 2c33257

Browse files
committed
Updated SDK for the 1.6.1 release
1 parent 3d05924 commit 2c33257

File tree

10 files changed

+142
-84
lines changed

10 files changed

+142
-84
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# AWS SDK for PHP
22

3-
> 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>.
3+
---
4+
5+
**NOTE:** This is the repository for version 1 of the AWS SDK for PHP. We encourage you to upgrade to the
6+
**AWS SDK for PHP 2**, see <http://github.com/aws/aws-sdk-php>.
7+
8+
---
49

510
The AWS SDK for PHP enables developers to build solutions for Amazon Simple Storage Service (Amazon S3),
611
Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more. With the AWS SDK for PHP, developers

_docs/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
CHANGELOG for the AWS SDK for PHP 1.x
2+
=====================================
3+
4+
1.6.1 (2013-03-11)
5+
------------------
6+
7+
* Added support for enabling DNS Hostnames and disabling DNS Resolution (for Amazon VPC) in the Amazon EC2 client.
8+
* Added support for enumerating account attributes in the Amazon EC2 client.
9+
* Added support for copying AMIs across regions in the Amazon EC2 client.
10+
* Added support for event notification subscriptions in the Amazon RDS client.
11+
* Added support for cancelling stack updates in the AWS CloudFormation client.
12+
* Resolved an issue where the `restore_archived_object` method in the Amazon S3 client was not working properly.
13+
* Resolved an issue where in some cases the `get_object_list` method of the Amazon S3 client was causing errors.
14+
15+
----
16+
17+
**Note**: The formatting of the CHANGELOG below is different from that above.
18+
19+
----
20+
121
# Changelog: 1.6.0
222

323
Launched Monday, January 21, 2013.

_docs/CONTRIBUTORS.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@ Contributions were provided under the Apache 2.0 License, as appropriate.
66

77
The following people have provided ideas, support and bug fixes:
88

9+
* [aaronbski](https://github.com/aaronbski) (bug fixes)
910
* [arech8](http://developer.amazonwebservices.com/connect/profile.jspa?userID=154435) (bug fixes)
1011
* [Aizat Faiz](http://aizatto.com) (bug fixes)
1112
* [Adam Monsen](https://github.com/meonkeys) (bug fixes)
1213
* [Alan Pinstein](https://github.com/apinstein) (bug fixes)
1314
* [Ben Lumley](http://github.com/benlumley) (bug fixes)
1415
* [Brady Doll](https://github.com/bradydoll) (bug fixes)
1516
* [Dan Stillman](https://github.com/dstillman) (bug fixes)
17+
* [Daniel Garcia](https://github.com/buzzedword) (feedback)
1618
* [Daniel Holmes](https://github.com/danielholmes) (bug fixes)
1719
* [David Chan](http://www.chandeeland.org) (bug fixes)
1820
* [derekclapham](https://github.com/derekclapham) (bug fixes)
1921
* [Eric Caron](http://www.ericcaron.com) (bug fixes)
2022
* [Jason Ardell](http://ardell.posterous.com/) (bug fixes)
2123
* [Jeremy Archuleta](http://code.google.com/u/jeremy.archuleta/) (bug fixes)
2224
* [Jimmy Berry](http://blog.boombatower.com/) (bug fixes, patches)
23-
* [Jarrod Swift](https://github.com/jswift) (bg fixes)
24-
* [Richard Quadling](https://github.com/RichardQuadling) (bug fixes)
25+
* [Jarrod Swift](https://github.com/jswift) (bug fixes)
26+
* [nchagrass](https://github.com/nchagrass) (bug fixes)
27+
* [oliverholmberg](https://github.com/oliverholmberg) (bug fixes)
2528
* [Paul Voegler](mailto:[email protected]) (bug fixes, bug reports, patches)
2629
* [Peter Bowen](http://github.com/pzb) (feedback, bug reports)
30+
* [Richard Quadling](https://github.com/RichardQuadling) (bug fixes)
2731
* [Robin Speekenbrink](https://github.com/fruitl00p) (bug fixes)
2832
* [Roman Cambian](https://github.com/rcambien) (patches)
2933
* [zoxa](https://github.com/zoxa) (bug fixes)

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"require":{
1515
"php":">=5.2.0"
1616
},
17+
"suggest": {
18+
"aws/aws-sdk-php": "You should consider upgrading to version 2 of the AWS SDK for PHP"
19+
},
1720
"autoload":{
1821
"classmap": [
1922
"authentication/",

extensions/s3browserupload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License").
66
* You may not use this file except in compliance with the License.

extensions/s3streamwrapper.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License").
66
* You may not use this file except in compliance with the License.

package.xml

Lines changed: 0 additions & 67 deletions
This file was deleted.

sdk.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Parser_Exception extends Exception {}
3333
// INTERMEDIARY CONSTANTS
3434

3535
define('CFRUNTIME_NAME', 'aws-sdk-php');
36-
define('CFRUNTIME_VERSION', '1.6.0');
37-
define('CFRUNTIME_BUILD', '20130121120000');
36+
define('CFRUNTIME_VERSION', '1.6.1');
37+
define('CFRUNTIME_BUILD', '20130311100000');
3838
$user_agent = sprintf('%s/%s PHP/%s', CFRUNTIME_NAME, CFRUNTIME_VERSION, PHP_VERSION);
3939
if (function_exists('curl_version'))
4040
{

services/ec2.class.php

Lines changed: 91 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* Visit <a href="http://aws.amazon.com/ec2/">http://aws.amazon.com/ec2/</a> for more information.
3131
*
32-
* @version 2013.01.18
32+
* @version 2013.03.08
3333
* @license See the included NOTICE.md file for complete information.
3434
* @copyright See the included NOTICE.md file for complete information.
3535
* @link http://aws.amazon.com/ec2/ Amazon EC2
@@ -148,7 +148,7 @@ class AmazonEC2 extends CFRuntime
148148
*/
149149
public function __construct(array $options = array())
150150
{
151-
$this->api_version = '2012-12-01';
151+
$this->api_version = '2013-02-01';
152152
$this->hostname = self::DEFAULT_URL;
153153
$this->auth_class = 'AuthV2Query';
154154

@@ -713,6 +713,29 @@ public function confirm_product_instance($product_code, $instance_id, $opt = nul
713713
return $this->authenticate('ConfirmProductInstance', $opt);
714714
}
715715

716+
/**
717+
*
718+
*
719+
* @param string $source_region (Required)
720+
* @param string $source_image_id (Required)
721+
* @param string $name (Required)
722+
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
723+
* <li><code>Description</code> - <code>string</code> - Optional - </li>
724+
* <li><code>ClientToken</code> - <code>string</code> - Optional - </li>
725+
* <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>
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+
*/
729+
public function copy_image($source_region, $source_image_id, $name, $opt = null)
730+
{
731+
if (!$opt) $opt = array();
732+
$opt['SourceRegion'] = $source_region;
733+
$opt['SourceImageId'] = $source_image_id;
734+
$opt['Name'] = $name;
735+
736+
return $this->authenticate('CopyImage', $opt);
737+
}
738+
716739
/**
717740
*
718741
*
@@ -1893,6 +1916,31 @@ public function deregister_image($image_id, $opt = null)
18931916
return $this->authenticate('DeregisterImage', $opt);
18941917
}
18951918

1919+
/**
1920+
*
1921+
*
1922+
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
1923+
* <li><code>AttributeName</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
1924+
* <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>
1925+
* <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
1926+
* @return CFResponse A <CFResponse> object containing a parsed HTTP response.
1927+
*/
1928+
public function describe_account_attributes($opt = null)
1929+
{
1930+
if (!$opt) $opt = array();
1931+
1932+
// Optional list (non-map)
1933+
if (isset($opt['AttributeName']))
1934+
{
1935+
$opt = array_merge($opt, CFComplexType::map(array(
1936+
'AttributeName' => (is_array($opt['AttributeName']) ? $opt['AttributeName'] : array($opt['AttributeName']))
1937+
)));
1938+
unset($opt['AttributeName']);
1939+
}
1940+
1941+
return $this->authenticate('DescribeAccountAttributes', $opt);
1942+
}
1943+
18961944
/**
18971945
* The DescribeAddresses operation lists elastic IP addresses assigned to your account.
18981946
*
@@ -2877,7 +2925,7 @@ public function describe_reserved_instances_listings($opt = null)
28772925
*
28782926
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
28792927
* <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>
2880-
* <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>
2928+
* <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>
28812929
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The Availability Zone in which the Reserved Instance can be used.</li>
28822930
* <li><code>ProductDescription</code> - <code>string</code> - Optional - The Reserved Instance product description.</li>
28832931
* <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>
@@ -3452,6 +3500,25 @@ public function describe_volumes($opt = null)
34523500
return $this->authenticate('DescribeVolumes', $opt);
34533501
}
34543502

3503+
/**
3504+
*
3505+
*
3506+
* @param string $vpc_id (Required)
3507+
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
3508+
* <li><code>EnableDnsSupport</code> - <code>string</code> - Optional - </li>
3509+
* <li><code>EnableDnsHostnames</code> - <code>string</code> - Optional - </li>
3510+
* <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>
3511+
* <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
3512+
* @return CFResponse A <CFResponse> object containing a parsed HTTP response.
3513+
*/
3514+
public function describe_vpc_attribute($vpc_id, $opt = null)
3515+
{
3516+
if (!$opt) $opt = array();
3517+
$opt['VpcId'] = $vpc_id;
3518+
3519+
return $this->authenticate('DescribeVpcAttribute', $opt);
3520+
}
3521+
34553522
/**
34563523
* Gives you information about your VPCs. You can filter the results to return information only
34573524
* about VPCs that match criteria you specify.
@@ -3877,7 +3944,7 @@ public function get_password_data($instance_id, $opt = null)
38773944
* <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
38783945
* <li><code>AdditionalInfo</code> - <code>string</code> - Optional - </li>
38793946
* <li><code>UserData</code> - <code>string</code> - Optional - </li>
3880-
* <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>
3947+
* <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>
38813948
* <li><code>Placement</code> - <code>array</code> - Optional - Describes where an Amazon EC2 instance is running within an Amazon EC2 region. <ul>
38823949
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
38833950
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs.</li>
@@ -4295,6 +4362,24 @@ public function modify_volume_attribute($volume_id, $opt = null)
42954362
return $this->authenticate('ModifyVolumeAttribute', $opt);
42964363
}
42974364

4365+
/**
4366+
*
4367+
*
4368+
* @param array $opt (Optional) An associative array of parameters that can have the following keys: <ul>
4369+
* <li><code>VpcId</code> - <code>string</code> - Optional - </li>
4370+
* <li><code>EnableDnsSupport.Value</code> - <code>boolean</code> - Optional - Boolean value</li>
4371+
* <li><code>EnableDnsHostnames.Value</code> - <code>boolean</code> - Optional - Boolean value</li>
4372+
* <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>
4373+
* <li><code>returnCurlHandle</code> - <code>boolean</code> - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.</li></ul>
4374+
* @return CFResponse A <CFResponse> object containing a parsed HTTP response.
4375+
*/
4376+
public function modify_vpc_attribute($opt = null)
4377+
{
4378+
if (!$opt) $opt = array();
4379+
4380+
return $this->authenticate('ModifyVpcAttribute', $opt);
4381+
}
4382+
42984383
/**
42994384
* Enables monitoring for a running instance.
43004385
*
@@ -4678,7 +4763,7 @@ public function report_instance_status($opt = null)
46784763
* <li><code>SecurityGroup</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
46794764
* <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>
46804765
* <li><code>AddressingType</code> - <code>string</code> - Optional - Deprecated.</li>
4681-
* <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>
4766+
* <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>
46824767
* <li><code>Placement</code> - <code>array</code> - Optional - Defines a placement item. <ul>
46834768
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
46844769
* <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)
49995084
* <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>
50005085
* <li><code>SecurityGroupId</code> - <code>string|array</code> - Optional - Pass a string for a single value, or an indexed array for multiple values.</li>
50015086
* <li><code>UserData</code> - <code>string</code> - Optional - Specifies additional information to make available to the instance(s).</li>
5002-
* <li><code>AddressingType</code> - <code>string</code> - Optional - </li>
5003-
* <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>
5087+
* <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>
50045088
* <li><code>Placement</code> - <code>array</code> - Optional - Specifies the placement constraints (Availability Zones) for launching the instances. <ul>
50055089
* <li><code>x</code> - <code>array</code> - Optional - This represents a simple array index. <ul>
50065090
* <li><code>AvailabilityZone</code> - <code>string</code> - Optional - The availability zone in which an Amazon EC2 instance runs.</li>

0 commit comments

Comments
 (0)