Skip to content

Commit 8eeb9d1

Browse files
Manuelacosta98ManuelAcostajderusseNyholm
authored
Add rekognition-service (#728)
* Add rekognition-service * Add DeleteProject method * Add Float in scalar type serializer. * Add SearchFacesByImage method in rekognition-service. * Implement unit input test in rekognition service. * Add initial documentation of rekognition service. * No docker image in rekognition service. * Attribute Enum not created by code generator. * Fix package order * Add missing files * Revert changes on SQS/STS * Fix CS * Regenerate code * Fix tests * Revert changes in non-related services * Update src/Service/Rekognition/.github/workflows/branch_alias.yml Co-authored-by: manuel <[email protected]> Co-authored-by: Jérémy Derussé <[email protected]> Co-authored-by: Tobias Nyholm <[email protected]>
1 parent 222be22 commit 8eeb9d1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/AwsClientFactory.php

+14
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use AsyncAws\Iam\IamClient;
2121
use AsyncAws\Lambda\LambdaClient;
2222
use AsyncAws\RdsDataService\RdsDataServiceClient;
23+
use AsyncAws\Rekognition\RekognitionClient;
2324
use AsyncAws\S3\S3Client;
2425
use AsyncAws\Ses\SesClient;
2526
use AsyncAws\Sns\SnsClient;
@@ -196,6 +197,19 @@ public function rdsDataService(): RdsDataServiceClient
196197
return $this->serviceCache[__METHOD__];
197198
}
198199

200+
public function rekognition(): RekognitionClient
201+
{
202+
if (!class_exists(RekognitionClient::class)) {
203+
throw MissingDependency::create('aws/rekognition', 'Rekognition');
204+
}
205+
206+
if (!isset($this->serviceCache[__METHOD__])) {
207+
$this->serviceCache[__METHOD__] = new RekognitionClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
208+
}
209+
210+
return $this->serviceCache[__METHOD__];
211+
}
212+
199213
public function s3(): S3Client
200214
{
201215
if (!class_exists(S3Client::class)) {

0 commit comments

Comments
 (0)