forked from aws/aws-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add classes and models for CloudWatch Events
- Loading branch information
Showing
10 changed files
with
1,124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.