Skip to content

Commit

Permalink
Add classes and models for CloudWatch Events
Browse files Browse the repository at this point in the history
  • Loading branch information
jeskew committed Jan 15, 2016
1 parent 111c428 commit 0093558
Show file tree
Hide file tree
Showing 10 changed files with 1,124 additions and 1 deletion.
12 changes: 12 additions & 0 deletions features/smoke/events/events.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# language: en
@events
Feature: AWS CloudWatch Events

Scenario: Making a request
When I call the "ListRules" API
Then the value at "Rules" should be a list

Scenario: Handling errors
When I attempt to call the "DescribeRule" API with:
| Name | fake-rule |
Then I expect the response error code to be "ResourceNotFoundException"
34 changes: 34 additions & 0 deletions src/CloudWatchEvents/CloudWatchEventsClient.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
namespace Aws\CloudWatchEvents;

use Aws\AwsClient;

/**
* This client is used to interact with the **Amazon CloudWatch Events** service.
*
* @method \Aws\Result deleteRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteRuleAsync(array $args = [])
* @method \Aws\Result describeRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeRuleAsync(array $args = [])
* @method \Aws\Result disableRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise disableRuleAsync(array $args = [])
* @method \Aws\Result enableRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise enableRuleAsync(array $args = [])
* @method \Aws\Result listRuleNamesByTarget(array $args = [])
* @method \GuzzleHttp\Promise\Promise listRuleNamesByTargetAsync(array $args = [])
* @method \Aws\Result listRules(array $args = [])
* @method \GuzzleHttp\Promise\Promise listRulesAsync(array $args = [])
* @method \Aws\Result listTargetsByRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise listTargetsByRuleAsync(array $args = [])
* @method \Aws\Result putEvents(array $args = [])
* @method \GuzzleHttp\Promise\Promise putEventsAsync(array $args = [])
* @method \Aws\Result putRule(array $args = [])
* @method \GuzzleHttp\Promise\Promise putRuleAsync(array $args = [])
* @method \Aws\Result putTargets(array $args = [])
* @method \GuzzleHttp\Promise\Promise putTargetsAsync(array $args = [])
* @method \Aws\Result removeTargets(array $args = [])
* @method \GuzzleHttp\Promise\Promise removeTargetsAsync(array $args = [])
* @method \Aws\Result testEventPattern(array $args = [])
* @method \GuzzleHttp\Promise\Promise testEventPatternAsync(array $args = [])
*/
class CloudWatchEventsClient extends AwsClient {}
9 changes: 9 additions & 0 deletions src/CloudWatchEvents/Exception/CloudWatchEventsException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
namespace Aws\CloudWatchEvents\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **Amazon CloudWatch Events** service.
*/
class CloudWatchEventsException extends AwsException {}
1 change: 1 addition & 0 deletions src/Sdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method \Aws\CloudSearchDomain\CloudSearchDomainClient createCloudSearchDomain(array $args = [])
* @method \Aws\CloudTrail\CloudTrailClient createCloudTrail(array $args = [])
* @method \Aws\CloudWatch\CloudWatchClient createCloudWatch(array $args = [])
* @method \Aws\CloudWatchEvents\CloudWatchEventsClient createCloudWatchEvents(array $args = [])
* @method \Aws\CloudWatchLogs\CloudWatchLogsClient createCloudWatchLogs(array $args = [])
* @method \Aws\CodeCommit\CodeCommitClient createCodeCommit(array $args = [])
* @method \Aws\CodeDeploy\CodeDeployClient createCodeDeploy(array $args = [])
Expand Down
Loading

0 comments on commit 0093558

Please sign in to comment.