Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/authentication/hard-coded.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $client = new AwsClientFactory([
'accessKeyId' => 'AKIAIOSFODNN7EXAMPLE',
'accessKeySecret' => 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
'roleArn' => 'arn:aws:iam::1234567891011:role/name-of-my-role',
'roleSessionName' => 'my-session-name', // Optionnal
'roleSessionName' => 'my-session-name', // Optional
]);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/clients/code-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $deployment = $codeDeploy->createDeployment(new CreateDeploymentInput([
],
]));

echo 'DepoymentId: '. $deployment->getDeploymentId();
echo 'DeploymentId: '. $deployment->getDeploymentId();

```

Expand Down
2 changes: 1 addition & 1 deletion docs/clients/rds-data-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ try {
'transaction' => $transaction->getTransactionId(),
]);
} catch (\Throwable $e) {
// Make sure to allways rollback since there is no connection.
// Make sure to always roll back since there is no connection.
// If you forget than the transaction might block tables for up to 5 minutes.
$client->rollbackTransaction($database + [
'transaction' => $transaction->getTransactionId(),
Expand Down
2 changes: 1 addition & 1 deletion src/CodeGenerator/src/Generator/PaginationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private function generateGetter(string $property, string $expression, bool $useG
$last = true;
}
if (!preg_match('/^[a-z]++$/i', $part)) {
throw new LogicException(\sprintf('The part "%s" of the getter expression "%s" is n9ot yet supported', $part, $expression));
throw new LogicException(\sprintf('The part "%s" of the getter expression "%s" is not yet supported', $part, $expression));
}

if (!$useGetter && $getter === $property) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ protected function getName(Member $member): string
if ($member instanceof StructureMember) {
$name = $this->getQueryName($member, $member->getName());
} else {
throw new \RuntimeException('Guessing the name fot this member not yet implemented');
throw new \RuntimeException('Guessing the name for this member not yet implemented');
}

$shape = $member->getShape();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ public function generateForPath(StructureShape $shape, string $path, string $out
$input = '$response->toArray()';
}
$path = explode('.', $path);
$accesor = '';
$accessor = '';
while (\count($path) > 0) {
$item = array_shift($path);
$member = $shape->getMember($item);
$shape = $member->getShape();
$accesor .= '[' . var_export($this->getInputAccessorName($member), true) . ']';
$accessor .= '[' . var_export($this->getInputAccessorName($member), true) . ']';
}

$body .= strtr('OUTPUT = INPUTPATH ?? null', [
'INPUT' => $input,
'PATH' => $accesor,
'PATH' => $accessor,
'OUTPUT' => $output,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ public function generateForPath(StructureShape $shape, string $path, string $out
$body .= strtr('$data = $data->WRAPPER;' . "\n", ['WRAPPER' => $wrapper]);
}
$path = explode('.', $path);
$accesor = '$data';
$accessor = '$data';
while (\count($path) > 0) {
$item = array_shift($path);
$member = $shape->getMember($item);
$shape = $member->getShape();
$accesor = $this->getInputAccessor($accesor, $member);
$accessor = $this->getInputAccessor($accessor, $member);
}

$body .= strtr('OUTPUT = PATH', [
'PATH' => $this->parseXmlElement($accesor, $shape, true, false),
'PATH' => $this->parseXmlElement($accessor, $shape, true, false),
'OUTPUT' => $output,
]);

Expand Down
8 changes: 6 additions & 2 deletions src/Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 1.29.1

### Changed
Expand Down Expand Up @@ -398,14 +402,14 @@

- Support for EventBridge in `AwsClientFactory`
- Support for IAM in `AwsClientFactory`
- Add a `PsrCacheProvider` and `SymfonyCacheProvider` to persists crendentials in a cache pool
- Add a `PsrCacheProvider` and `SymfonyCacheProvider` to persist credentials in a cache pool
- Add a `Credential::adjustExpireDate` method for adjusting the time according to the time difference with AWS clock
- Support for global and regional endpoints
- Add a `Configuration::optionExists` to allow third parties to check if an option is available (needed by libraries supporting several versions of core)

### Deprecated

- Clients extending `AbstractApi` should override `getEndpointMetata`. The method will be abstract in 2.0
- Clients extending `AbstractApi` should override `getEndpointMetadata`. The method will be abstract in 2.0
- Custom endpoints should not contain `%region%` and `%service` placeholder. They won't be replaced anymore in 2.0
- Protected methods `getServiceCode`, `getSignatureVersion` and `getSignatureScopeName` of AbstractApi are deprecated and will be removed in 2.0

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Credentials/ConfigurationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function getCredentialsFromRole(Credentials $credentials, string $region

try {
if (null === $credentials = $result->getCredentials()) {
throw new RuntimeException('The AsumeRole response does not contains credentials');
throw new RuntimeException('The AssumeRole response does not contain credentials');
}
} catch (\Exception $e) {
$this->logger->warning('Failed to get credentials from assumed role: {exception}".', ['exception' => $e]);
Expand Down
4 changes: 2 additions & 2 deletions src/Core/src/Credentials/SsoTokenProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ private function loadSsoToken(string $sessionName): ?array
);
} catch (\JsonException $e) {
$this->logger->warning(
'The sso cache file {path} contains invalide JSON.',
['path' => $filepath, 'ecxeption' => $e]
'The sso cache file {path} contains invalid JSON.',
['path' => $filepath, 'exception' => $e]
);

return null;
Expand Down
4 changes: 4 additions & 0 deletions src/Integration/Monolog/CloudWatch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix `async-aws` keyword typo.

## 1.3.0

### Dependency bumped
Expand Down
2 changes: 1 addition & 1 deletion src/Integration/Monolog/CloudWatch/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "library",
"keywords": [
"aws",
"aync-aws",
"async-aws",
"Monolog",
"CloudWatch",
"Logs"
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Athena/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 3.5.1

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Athena/tests/Unit/AthenaClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function testStartQueryExecution(): void
$client = new AthenaClient([], new NullProvider(), new MockHttpClient());

$input = new StartQueryExecutionInput([
'QueryString' => 'SELECT * FROM iadDatabase.catalog LIMT 10',
'QueryString' => 'SELECT * FROM iadDatabase.catalog LIMIT 10',
]);
$result = $client->startQueryExecution($input);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testListTableMetadataOutput(): void
new AthenaClient(),
new ListTableMetadataInput([
'CatalogName' => 'iadCatalog',
'DatabaseName' => 'iadDatbase',
'DatabaseName' => 'iadDatabase',
])
);

Expand Down
4 changes: 4 additions & 0 deletions src/Service/CodeDeploy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 2.4.1

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function testRequest(): void
'targetInstances' => new TargetInstances([
'tagFilters' => [new EC2TagFilter([
'Key' => 'key',
'Value' => 'valu3',
'Value' => 'value3',
'Type' => EC2TagFilterType::KEY_AND_VALUE,
])],
'autoScalingGroups' => ['auto-scaling-groups'],
Expand Down Expand Up @@ -135,7 +135,7 @@ public function testRequest(): void
{
"Key": "key",
"Type": "KEY_AND_VALUE",
"Value": "valu3"
"Value": "value3"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testGetDeploymentOutput(): void
"sha256": "sha256"
},
"gitHubLocation": {
"commitId": "commmit-id",
"commitId": "commit-id",
"repository": "repository"
},
"revisionType": "GitHub",
Expand Down Expand Up @@ -239,7 +239,7 @@ public function testGetDeploymentOutput(): void
self::assertSame('content', $info->getPreviousRevision()->getAppSpecContent()->getContent());
self::assertSame('sha256', $info->getPreviousRevision()->getAppSpecContent()->getSha256());

self::assertSame('commmit-id', $info->getPreviousRevision()->getGitHubLocation()->getCommitId());
self::assertSame('commit-id', $info->getPreviousRevision()->getGitHubLocation()->getCommitId());
self::assertSame('repository', $info->getPreviousRevision()->getGitHubLocation()->getRepository());

self::assertSame(RevisionLocationType::GIT_HUB, $info->getPreviousRevision()->getRevisionType());
Expand Down
4 changes: 4 additions & 0 deletions src/Service/ElastiCache/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 1.5.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ElastiCache/src/ValueObject/CacheCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ final class CacheCluster

/**
*  If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in
* to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. .
* to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
*
* @var bool|null
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Iot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 2.2.1

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testRequest(): void
'thingTypeName' => 'hvac',
'thingTypeProperties' => new ThingTypeProperties([
'thingTypeDescription' => 'HVAC',
'searchableAttributes' => ['air-conditionner'],
'searchableAttributes' => ['air-conditioner'],
]),
'tags' => [new Tag([
'Key' => 'default_temperature',
Expand All @@ -37,7 +37,7 @@ public function testRequest(): void
}
],
"thingTypeProperties": {
"searchableAttributes": [ "air-conditionner" ],
"searchableAttributes": [ "air-conditioner" ],
"thingTypeDescription": "HVAC"
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/Service/Lambda/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

### Added

- AWS api-change: AWS Lambda Durable Functions now supports customer managed KMS keys. This allows customers to configure a KMS key in Durable Config to have all their durable execution data encrypted.
Expand Down Expand Up @@ -65,7 +69,7 @@
### Added

- AWS api-change: Rework regions configuration
- AWS api-change: remove trailling `/` in `ListFunctions` request
- AWS api-change: remove trailing `/` in `ListFunctions` request

### Changed

Expand Down
6 changes: 5 additions & 1 deletion src/Service/RdsDataService/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Fixed

- Fix typos.

## 3.0.3

### Changed
Expand Down Expand Up @@ -49,7 +53,7 @@

### Added

- AWS api-change: Addded InvalidResourceStateException.
- AWS api-change: Added InvalidResourceStateException.

## 2.2.1

Expand Down
13 changes: 12 additions & 1 deletion src/Service/S3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

## NOT RELEASED

### Fixed

- Fix typos.

### Changed

- AWS enhancement: Documentation updates.
### Changed

- AWS enhancement: Documentation updates.

### Fixed

- Fix typos.

## 3.4.0

Expand Down Expand Up @@ -355,7 +366,7 @@

### Fixed

- Fixed an issue in Metadata not beeing sent to AWS in `PutObject`, `CopyObject` and `CreateMultipartUpload`
- Fixed an issue in Metadata not being sent to AWS in `PutObject`, `CopyObject` and `CreateMultipartUpload`
- Internal AWS prefix were added to Metadata's name in `GetObject` and `HeadObject`.

## 1.2.0
Expand Down
2 changes: 1 addition & 1 deletion src/Service/S3/tests/Integration/S3ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function testGetObjectConsistent(): void
'Key' => 'bar',
]);
self::assertEquals('content', $result->getBody()->getContentAsString());
// calling it twice to ensure consitency
// calling it twice to ensure consistency
self::assertEquals('content', $result->getBody()->getContentAsString());
self::assertEquals('content', stream_get_contents($result->getBody()->getContentAsResource()));
self::assertEquals('content', implode('', iterator_to_array($result->getBody()->getChunks())));
Expand Down
Loading