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
30 changed files
with
5,632 additions
and
147 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
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 | ||
@iot | ||
Feature: AWS IoT | ||
|
||
Scenario: Making a request | ||
When I call the "ListPolicies" API | ||
Then the value at "policies" should be a list | ||
|
||
Scenario: Handling errors | ||
When I attempt to call the "DescribeThing" API with: | ||
| thingName | fake-thing | | ||
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,8 @@ | ||
# language: en | ||
@iotdataplane @data.iot | ||
Feature: AWS IoT Data Plane | ||
|
||
Scenario: Handling errors | ||
When I attempt to call the "GetThingShadow" API with: | ||
| thingName | fake-thing | | ||
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
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\Iot\Exception; | ||
|
||
use Aws\Exception\AwsException; | ||
|
||
/** | ||
* Represents an error interacting with the **AWS IoT** service. | ||
*/ | ||
class IotException 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,88 @@ | ||
<?php | ||
namespace Aws\Iot; | ||
|
||
use Aws\AwsClient; | ||
|
||
/** | ||
* This client is used to interact with the **AWS IoT** service. | ||
* | ||
* @method \Aws\Result acceptCertificateTransfer(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise acceptCertificateTransferAsync(array $args = []) | ||
* @method \Aws\Result attachPrincipalPolicy(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise attachPrincipalPolicyAsync(array $args = []) | ||
* @method \Aws\Result attachThingPrincipal(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise attachThingPrincipalAsync(array $args = []) | ||
* @method \Aws\Result cancelCertificateTransfer(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise cancelCertificateTransferAsync(array $args = []) | ||
* @method \Aws\Result createCertificateFromCsr(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createCertificateFromCsrAsync(array $args = []) | ||
* @method \Aws\Result createKeysAndCertificate(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createKeysAndCertificateAsync(array $args = []) | ||
* @method \Aws\Result createPolicy(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createPolicyAsync(array $args = []) | ||
* @method \Aws\Result createPolicyVersion(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createPolicyVersionAsync(array $args = []) | ||
* @method \Aws\Result createThing(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createThingAsync(array $args = []) | ||
* @method \Aws\Result createTopicRule(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise createTopicRuleAsync(array $args = []) | ||
* @method \Aws\Result deleteCertificate(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deleteCertificateAsync(array $args = []) | ||
* @method \Aws\Result deletePolicy(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deletePolicyAsync(array $args = []) | ||
* @method \Aws\Result deletePolicyVersion(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deletePolicyVersionAsync(array $args = []) | ||
* @method \Aws\Result deleteThing(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deleteThingAsync(array $args = []) | ||
* @method \Aws\Result deleteTopicRule(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deleteTopicRuleAsync(array $args = []) | ||
* @method \Aws\Result describeCertificate(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise describeCertificateAsync(array $args = []) | ||
* @method \Aws\Result describeEndpoint(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise describeEndpointAsync(array $args = []) | ||
* @method \Aws\Result describeThing(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise describeThingAsync(array $args = []) | ||
* @method \Aws\Result detachPrincipalPolicy(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise detachPrincipalPolicyAsync(array $args = []) | ||
* @method \Aws\Result detachThingPrincipal(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise detachThingPrincipalAsync(array $args = []) | ||
* @method \Aws\Result getLoggingOptions(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise getLoggingOptionsAsync(array $args = []) | ||
* @method \Aws\Result getPolicy(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise getPolicyAsync(array $args = []) | ||
* @method \Aws\Result getPolicyVersion(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise getPolicyVersionAsync(array $args = []) | ||
* @method \Aws\Result getTopicRule(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise getTopicRuleAsync(array $args = []) | ||
* @method \Aws\Result listCertificates(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listCertificatesAsync(array $args = []) | ||
* @method \Aws\Result listPolicies(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listPoliciesAsync(array $args = []) | ||
* @method \Aws\Result listPolicyVersions(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listPolicyVersionsAsync(array $args = []) | ||
* @method \Aws\Result listPrincipalPolicies(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listPrincipalPoliciesAsync(array $args = []) | ||
* @method \Aws\Result listPrincipalThings(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listPrincipalThingsAsync(array $args = []) | ||
* @method \Aws\Result listThingPrincipals(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listThingPrincipalsAsync(array $args = []) | ||
* @method \Aws\Result listThings(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listThingsAsync(array $args = []) | ||
* @method \Aws\Result listTopicRules(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise listTopicRulesAsync(array $args = []) | ||
* @method \Aws\Result rejectCertificateTransfer(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise rejectCertificateTransferAsync(array $args = []) | ||
* @method \Aws\Result replaceTopicRule(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise replaceTopicRuleAsync(array $args = []) | ||
* @method \Aws\Result setDefaultPolicyVersion(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise setDefaultPolicyVersionAsync(array $args = []) | ||
* @method \Aws\Result setLoggingOptions(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise setLoggingOptionsAsync(array $args = []) | ||
* @method \Aws\Result transferCertificate(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise transferCertificateAsync(array $args = []) | ||
* @method \Aws\Result updateCertificate(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise updateCertificateAsync(array $args = []) | ||
* @method \Aws\Result updateThing(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise updateThingAsync(array $args = []) | ||
*/ | ||
class IotClient 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\IotDataPlane\Exception; | ||
|
||
use Aws\Exception\AwsException; | ||
|
||
/** | ||
* Represents an error interacting with the **AWS IoT Data Plane** service. | ||
*/ | ||
class IotDataPlaneException 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,18 @@ | ||
<?php | ||
namespace Aws\IotDataPlane; | ||
|
||
use Aws\AwsClient; | ||
|
||
/** | ||
* This client is used to interact with the **AWS IoT Data Plane** service. | ||
* | ||
* @method \Aws\Result deleteThingShadow(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise deleteThingShadowAsync(array $args = []) | ||
* @method \Aws\Result getThingShadow(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise getThingShadowAsync(array $args = []) | ||
* @method \Aws\Result publish(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise publishAsync(array $args = []) | ||
* @method \Aws\Result updateThingShadow(array $args = []) | ||
* @method \GuzzleHttp\Promise\Promise updateThingShadowAsync(array $args = []) | ||
*/ | ||
class IotDataPlaneClient 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
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.