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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremeamia committed Jan 21, 2013
1 parent 42d8627 commit 4d279d8
Show file tree
Hide file tree
Showing 67 changed files with 1,276 additions and 485 deletions.
53 changes: 53 additions & 0 deletions _docs/CHANGELOG.md
@@ -1,3 +1,53 @@
# Changelog: 1.6.0

Launched Monday, January 21, 2013.

## Fixes and Enhancements
* Updated SignatureV4 to work with Amazon SQS and endpoints containing paths in the URL.
* Made it possible to disable config auto-discovery by defining the `AWS_DISABLE_CONFIG_AUTO_DISCOVERY` constant before requiring the SDK.
* Updated regional support across the entire SDK. Added some missing region constants for the Asia Pacific (Sydney) Region and the US GovCloud region.
* Made minor API documentation updates across the entire SDK.
* Simplified and shortened the user agent string sent with requests from the SDK.
* Updated copyright notices across the entire SDK to include 2013.

## Services
### AmazonAS
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `AvailabilityZones` parameter is no longer required for the `create_auto_scaling_group` operation.
* **New:** Support for the `EbsOptimized` parameter on the `create_launch_configuration` operation has been added to the SDK.

### AmazonEC2
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `PublicIp` parameter is no longer required for the `disassociate_address` operation.
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `AdditionalInfo` parameter has been removed from the `start_instances` operation. It was previously deprecated and unused.
* **New:** Support for copying Amazon EBS snapshots has been added to the SDK.
* **New:** New instance type constants for the new high memory and high storage instance types have been added to the SDK.
* **New:** Support for pagination on the `describe_reserved_instances_offerings` operation has been added to the SDK.
* **Deprecated:** The `AddressingType` parameter of the `request_spot_instances` operation has been marked as deprecated.

### AmazonElastiCache
* **BACKWARDS-INCOMPATIBLE CHANGE:** The `CacheSecurityGroupNames` parameter is no longer required for the `create_cache_cluster` operation.
* **New:** Support for VPC in Amazon ElastiCache has been added to the SDK.

### AmazonElasticBeanstalk
* **New:** Requests to this service are now signed with Signature V4.

### AmazonEMR
* **New:** Support for AWS Identity and Access Management (IAM) Roles for Amazon Elastic MapReduce has been added to the SDK.

### AmazonRDS
* **New:** Support for promoting a Read Replica to a standard DB Instance has been added to the SDK.
* **New:** Support for provisioned IOPS in Amazon RDS has been added to the SDK.

### AmazonSQS
* **New:** Requests to this service are now signed with Signature V4.

### AmazonStorageGateway
* **New:** Support for gateway-cached storage volumes has been added to the SDK.

### AmazonSTS
* **New:** Support for cross-account API access with IAM roles using the AWS Security Token Service has been added to the SDK.

----

# Changelog: 1.5.17.1

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

----

# Changelog: 1.5.17

Expand Down
4 changes: 2 additions & 2 deletions _docs/NOTICE.md
Expand Up @@ -9,7 +9,7 @@ See below for complete copyright and licensing notices.

<http://aws.amazon.com/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.
Expand Down Expand Up @@ -421,7 +421,7 @@ Corporation. Portions created by the Initial Developer are Copyright
<https://code.google.com/p/array-to-domdocument/>

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
28 changes: 14 additions & 14 deletions _samples/AmazonSimpleWorkflow/cron/BasicActivityWorker.php
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2012-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.
Expand All @@ -27,17 +27,17 @@ class BasicActivityWorker {
protected $swf;
protected $domain;
protected $task_list;

public function __construct(AmazonSWF $swf_service, $domain, $task_list) {
$this->domain = $domain;
$this->task_list = $task_list;
$this->swf = $swf_service;
}

public function start() {
$this->_poll();
}

protected function _poll() {
while (true) {
$response = $this->swf->poll_for_activity_task(array(
Expand All @@ -46,25 +46,25 @@ protected function _poll() {
'name' => $this->task_list
)
));

if (self::DEBUG) {
print_r($response->body);
}

if ($response->isOK()) {
$task_token = (string) $response->body->taskToken;
if (!empty($task_token)) {

if (!empty($task_token)) {
$activity_input = (string) $response->body->input;
$activity_output = $this->_execute_task($activity_input);

$complete_opt = array(
'taskToken' => $task_token,
'result' => $activity_output
);

$complete_response = $this->swf->respond_activity_task_completed($complete_opt);

if ($complete_response->isOK()) {
echo "RespondActivityTaskCompleted SUCCESS\n";
} else {
Expand All @@ -81,12 +81,12 @@ protected function _poll() {
} else {
echo 'ERROR: ';
print_r($response->body);

sleep(2);
}
}
}
}

protected function _execute_task($input) {
$output = "Hello $input!";
return $output;
Expand Down

0 comments on commit 4d279d8

Please sign in to comment.