Skip to content

Commit 1594762

Browse files
authored
Create new IotData client (#1278)
* Create new IotData client * fix ci
1 parent a4e36bd commit 1594762

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
### Added
88

9+
- Added support for Iot Data
10+
11+
## 1.16.0
12+
13+
### Added
14+
915
- Added support for endpoint discovery
1016
- Added support for Iot Core
1117

src/AwsClientFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use AsyncAws\Firehose\FirehoseClient;
2828
use AsyncAws\Iam\IamClient;
2929
use AsyncAws\Iot\IotClient;
30+
use AsyncAws\IotData\IotDataClient;
3031
use AsyncAws\Kinesis\KinesisClient;
3132
use AsyncAws\Kms\KmsClient;
3233
use AsyncAws\Lambda\LambdaClient;
@@ -306,6 +307,19 @@ public function iot(): IotClient
306307
return $this->serviceCache[__METHOD__];
307308
}
308309

310+
public function iotData(): IotDataClient
311+
{
312+
if (!class_exists(IotDataClient::class)) {
313+
throw MissingDependency::create('async-aws/iot-data', 'IotData');
314+
}
315+
316+
if (!isset($this->serviceCache[__METHOD__])) {
317+
$this->serviceCache[__METHOD__] = new IotDataClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
318+
}
319+
320+
return $this->serviceCache[__METHOD__];
321+
}
322+
309323
public function kinesis(): KinesisClient
310324
{
311325
if (!class_exists(KinesisClient::class)) {

0 commit comments

Comments
 (0)