Skip to content

Commit b05cd62

Browse files
authored
Setup Route53 service (#1004)
* Setup Route53 service * Bump core requirement
1 parent 6224361 commit b05cd62

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/AwsClientFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use AsyncAws\Lambda\LambdaClient;
2323
use AsyncAws\RdsDataService\RdsDataServiceClient;
2424
use AsyncAws\Rekognition\RekognitionClient;
25+
use AsyncAws\Route53\Route53Client;
2526
use AsyncAws\S3\S3Client;
2627
use AsyncAws\Ses\SesClient;
2728
use AsyncAws\Sns\SnsClient;
@@ -224,6 +225,19 @@ public function rekognition(): RekognitionClient
224225
return $this->serviceCache[__METHOD__];
225226
}
226227

228+
public function route53(): Route53Client
229+
{
230+
if (!class_exists(Route53Client::class)) {
231+
throw MissingDependency::create('aws/route53', 'Route53');
232+
}
233+
234+
if (!isset($this->serviceCache[__METHOD__])) {
235+
$this->serviceCache[__METHOD__] = new Route53Client($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
236+
}
237+
238+
return $this->serviceCache[__METHOD__];
239+
}
240+
227241
public function s3(): S3Client
228242
{
229243
if (!class_exists(S3Client::class)) {

0 commit comments

Comments
 (0)