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

Commit 4d279d8

Browse files
committed
1 parent 42d8627 commit 4d279d8

File tree

67 files changed

+1276
-485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1276
-485
lines changed

_docs/CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
# Changelog: 1.6.0
2+
3+
Launched Monday, January 21, 2013.
4+
5+
## Fixes and Enhancements
6+
* Updated SignatureV4 to work with Amazon SQS and endpoints containing paths in the URL.
7+
* Made it possible to disable config auto-discovery by defining the `AWS_DISABLE_CONFIG_AUTO_DISCOVERY` constant before requiring the SDK.
8+
* Updated regional support across the entire SDK. Added some missing region constants for the Asia Pacific (Sydney) Region and the US GovCloud region.
9+
* Made minor API documentation updates across the entire SDK.
10+
* Simplified and shortened the user agent string sent with requests from the SDK.
11+
* Updated copyright notices across the entire SDK to include 2013.
12+
13+
## Services
14+
### AmazonAS
15+
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `AvailabilityZones` parameter is no longer required for the `create_auto_scaling_group` operation.
16+
* **New:** Support for the `EbsOptimized` parameter on the `create_launch_configuration` operation has been added to the SDK.
17+
18+
### AmazonEC2
19+
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `PublicIp` parameter is no longer required for the `disassociate_address` operation.
20+
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `AdditionalInfo` parameter has been removed from the `start_instances` operation. It was previously deprecated and unused.
21+
* **New:** Support for copying Amazon EBS snapshots has been added to the SDK.
22+
* **New:** New instance type constants for the new high memory and high storage instance types have been added to the SDK.
23+
* **New:** Support for pagination on the `describe_reserved_instances_offerings` operation has been added to the SDK.
24+
* **Deprecated:** The `AddressingType` parameter of the `request_spot_instances` operation has been marked as deprecated.
25+
26+
### AmazonElastiCache
27+
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `CacheSecurityGroupNames` parameter is no longer required for the `create_cache_cluster` operation.
28+
* **New:** Support for VPC in Amazon ElastiCache has been added to the SDK.
29+
30+
### AmazonElasticBeanstalk
31+
* **New:** Requests to this service are now signed with Signature V4.
32+
33+
### AmazonEMR
34+
* **New:** Support for AWS Identity and Access Management (IAM) Roles for Amazon Elastic MapReduce has been added to the SDK.
35+
36+
### AmazonRDS
37+
* **New:** Support for promoting a Read Replica to a standard DB Instance has been added to the SDK.
38+
* **New:** Support for provisioned IOPS in Amazon RDS has been added to the SDK.
39+
40+
### AmazonSQS
41+
* **New:** Requests to this service are now signed with Signature V4.
42+
43+
### AmazonStorageGateway
44+
* **New:** Support for gateway-cached storage volumes has been added to the SDK.
45+
46+
### AmazonSTS
47+
* **New:** Support for cross-account API access with IAM roles using the AWS Security Token Service has been added to the SDK.
48+
49+
----
50+
151
# Changelog: 1.5.17.1
252

353
Launched Monday, November 26, 2012.
@@ -8,6 +58,9 @@ Launched Monday, November 26, 2012.
858
## Services
959
### AmazonDynamoDB
1060
* **New:** Support for the South American (São Paulo) Region has been added to Amazon DynamoDB.
61+
* **New:** Support for archiving data to Amazon Glacier has been added to the SDK.
62+
63+
----
1164

1265
# Changelog: 1.5.17
1366

_docs/NOTICE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ See below for complete copyright and licensing notices.
99

1010
<http://aws.amazon.com/php>
1111

12-
Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
12+
Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1313

1414
Licensed under the Apache License, Version 2.0 (the "License").
1515
You may not use this file except in compliance with the License.
@@ -421,7 +421,7 @@ Corporation. Portions created by the Initial Developer are Copyright
421421
<https://code.google.com/p/array-to-domdocument/>
422422

423423
* Copyright 2010-2011 [Omer Hassan](https://code.google.com/u/113495690012051782542/)
424-
* Portions copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
424+
* Portions copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
425425

426426
Permission is hereby granted, free of charge, to any person obtaining a copy
427427
of this software and associated documentation files (the "Software"), to deal

_samples/AmazonSimpleWorkflow/cron/BasicActivityWorker.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Copyright 2012-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.
@@ -27,17 +27,17 @@ class BasicActivityWorker {
2727
protected $swf;
2828
protected $domain;
2929
protected $task_list;
30-
30+
3131
public function __construct(AmazonSWF $swf_service, $domain, $task_list) {
3232
$this->domain = $domain;
3333
$this->task_list = $task_list;
3434
$this->swf = $swf_service;
3535
}
36-
36+
3737
public function start() {
3838
$this->_poll();
3939
}
40-
40+
4141
protected function _poll() {
4242
while (true) {
4343
$response = $this->swf->poll_for_activity_task(array(
@@ -46,25 +46,25 @@ protected function _poll() {
4646
'name' => $this->task_list
4747
)
4848
));
49-
49+
5050
if (self::DEBUG) {
5151
print_r($response->body);
5252
}
53-
53+
5454
if ($response->isOK()) {
5555
$task_token = (string) $response->body->taskToken;
56-
57-
if (!empty($task_token)) {
56+
57+
if (!empty($task_token)) {
5858
$activity_input = (string) $response->body->input;
5959
$activity_output = $this->_execute_task($activity_input);
60-
60+
6161
$complete_opt = array(
6262
'taskToken' => $task_token,
6363
'result' => $activity_output
6464
);
65-
65+
6666
$complete_response = $this->swf->respond_activity_task_completed($complete_opt);
67-
67+
6868
if ($complete_response->isOK()) {
6969
echo "RespondActivityTaskCompleted SUCCESS\n";
7070
} else {
@@ -81,12 +81,12 @@ protected function _poll() {
8181
} else {
8282
echo 'ERROR: ';
8383
print_r($response->body);
84-
84+
8585
sleep(2);
8686
}
87-
}
87+
}
8888
}
89-
89+
9090
protected function _execute_task($input) {
9191
$output = "Hello $input!";
9292
return $output;

0 commit comments

Comments
 (0)