forked from aws/aws-sdk-php
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
3,534 additions
and
42 deletions.
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
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
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 | ||
@devicefarm | ||
Feature: AWS Device Farm | ||
|
||
Scenario: Making a request | ||
When I call the "ListProjects" API | ||
Then the value at "projects" should be a list | ||
|
||
Scenario: Error handling | ||
When I attempt to call the "GetDevicePool" API with: | ||
| arn | bogus-arn | | ||
Then I expect the response error code to be "ValidationException" |
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,16 @@ | ||
# language: en | ||
@dynamodbstreams | ||
Feature: Amazon DynamoDB | ||
|
||
Scenario: Making a request | ||
When I call the "ListStreams" API | ||
Then the value at "Streams" should be a list | ||
|
||
Scenario: Handling errors | ||
When I attempt to call the "DescribeStream" API with: | ||
| StreamArn | fake-stream | | ||
Then I expect the response error code to be "ValidationException" | ||
And I expect the response error message to include: | ||
""" | ||
Invalid StreamArn | ||
""" |
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\DeviceFarm; | ||
|
||
use Aws\AwsClient; | ||
|
||
/** | ||
* This client is used to interact with the **Amazon DeviceFarm** service. | ||
*/ | ||
class DeviceFarmClient 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\DeviceFarm\Exception; | ||
|
||
use Aws\Exception\AwsException; | ||
|
||
/** | ||
* Represents an error interacting with the Amazon DeviceFarm service. | ||
*/ | ||
class DeviceFarmException 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace Aws\DynamoDbStreams; | ||
|
||
use Aws\AwsClient; | ||
use Aws\DynamoDb\DynamoDbClient; | ||
|
||
/** | ||
* This client is used to interact with the **Amazon DynamoDb Streams** service. | ||
*/ | ||
class DynamoDbStreamsClient extends AwsClient | ||
{ | ||
public static function getArguments() | ||
{ | ||
$args = parent::getArguments(); | ||
$args['retries']['default'] = 11; | ||
$args['retries']['fn'] = [DynamoDbClient::class, '_applyRetryConfig']; | ||
|
||
return $args; | ||
} | ||
} |
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\DynamoDbStreams\Exception; | ||
|
||
use Aws\Exception\AwsException; | ||
|
||
/** | ||
* Represents an error interacting with the Amazon DynamoDB Streams service. | ||
*/ | ||
class DynamoDbStreamsException extends AwsException {} |
Oops, something went wrong.