Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ core Public

Commit 58c56f0

Browse files
authored
feat: S3 Vectors pkg (#2017)
* init: Core S3 Vectors API CRUD operations for creating s3 vector buckets, indexes and vectors + query. * [s3 vectors]: Add tests
1 parent 70e6b62 commit 58c56f0

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- AWS api-change: Added `us-isob-west-1` region
88
- Added `DescribeLogGroups` method
99
- Support for BedrockAgent
10+
- Support for AWS S3 Vectors
1011
- AWS api-change: Added `eusc-de-east-1` region
1112

1213
### Dependency bumped

src/AwsClientFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
use AsyncAws\Rekognition\RekognitionClient;
4141
use AsyncAws\Route53\Route53Client;
4242
use AsyncAws\S3\S3Client;
43+
use AsyncAws\S3Vectors\S3VectorsClient;
4344
use AsyncAws\Scheduler\SchedulerClient;
4445
use AsyncAws\SecretsManager\SecretsManagerClient;
4546
use AsyncAws\Ses\SesClient;
@@ -471,6 +472,19 @@ public function s3(): S3Client
471472
return $this->serviceCache[__METHOD__];
472473
}
473474

475+
public function s3Vectors(): S3VectorsClient
476+
{
477+
if (!class_exists(S3VectorsClient::class)) {
478+
throw MissingDependency::create('async-aws/s3-vectors', 'S3Vectors');
479+
}
480+
481+
if (!isset($this->serviceCache[__METHOD__])) {
482+
$this->serviceCache[__METHOD__] = new S3VectorsClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
483+
}
484+
485+
return $this->serviceCache[__METHOD__];
486+
}
487+
474488
public function scheduler(): SchedulerClient
475489
{
476490
if (!class_exists(SchedulerClient::class)) {

0 commit comments

Comments
 (0)