Skip to content
Merged
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 manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.385.2"
"${LATEST}": "3.386.2"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
4 changes: 4 additions & 0 deletions src/Service/ImageBuilder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Adds support for AMI watermarks in Image Builder.

## 1.1.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ImageBuilder/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.2-dev"
}
}
}
17 changes: 17 additions & 0 deletions src/Service/ImageBuilder/src/Result/GetImageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,22 @@ private function populateResultAmiList(array $json): array
return $items;
}

/**
* @return string[]
*/
private function populateResultAmiWatermarksList(array $json): array
{
$items = [];
foreach ($json as $item) {
$a = isset($item) ? (string) $item : null;
if (null !== $a) {
$items[] = $a;
}
}

return $items;
}

private function populateResultComponentConfiguration(array $json): ComponentConfiguration
{
return new ComponentConfiguration([
Expand Down Expand Up @@ -443,6 +459,7 @@ private function populateResultImageRecipe(array $json): ImageRecipe
'workingDirectory' => isset($json['workingDirectory']) ? (string) $json['workingDirectory'] : null,
'additionalInstanceConfiguration' => empty($json['additionalInstanceConfiguration']) ? null : $this->populateResultAdditionalInstanceConfiguration($json['additionalInstanceConfiguration']),
'amiTags' => !isset($json['amiTags']) ? null : $this->populateResultTagMap($json['amiTags']),
'amiWatermarks' => !isset($json['amiWatermarks']) ? null : $this->populateResultAmiWatermarksList($json['amiWatermarks']),
]);
}

Expand Down
19 changes: 19 additions & 0 deletions src/Service/ImageBuilder/src/ValueObject/ImageRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ final class ImageRecipe
*/
private $amiTags;

/**
* The AMI watermark names attached to the output AMI from this recipe. AMI watermarks are lineage markers that
* automatically propagate to derivative AMIs when the source AMI is copied or distributed.
*
* @var string[]|null
*/
private $amiWatermarks;

/**
* @param array{
* arn?: string|null,
Expand All @@ -142,6 +150,7 @@ final class ImageRecipe
* workingDirectory?: string|null,
* additionalInstanceConfiguration?: AdditionalInstanceConfiguration|array|null,
* amiTags?: array<string, string>|null,
* amiWatermarks?: string[]|null,
* } $input
*/
public function __construct(array $input)
Expand All @@ -161,6 +170,7 @@ public function __construct(array $input)
$this->workingDirectory = $input['workingDirectory'] ?? null;
$this->additionalInstanceConfiguration = isset($input['additionalInstanceConfiguration']) ? AdditionalInstanceConfiguration::create($input['additionalInstanceConfiguration']) : null;
$this->amiTags = $input['amiTags'] ?? null;
$this->amiWatermarks = $input['amiWatermarks'] ?? null;
}

/**
Expand All @@ -180,6 +190,7 @@ public function __construct(array $input)
* workingDirectory?: string|null,
* additionalInstanceConfiguration?: AdditionalInstanceConfiguration|array|null,
* amiTags?: array<string, string>|null,
* amiWatermarks?: string[]|null,
* }|ImageRecipe $input
*/
public static function create($input): self
Expand All @@ -200,6 +211,14 @@ public function getAmiTags(): array
return $this->amiTags ?? [];
}

/**
* @return string[]
*/
public function getAmiWatermarks(): array
{
return $this->amiWatermarks ?? [];
}

public function getArn(): ?string
{
return $this->arn;
Expand Down
1 change: 1 addition & 0 deletions src/Service/Lambda/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- AWS api-change: Converging and fixing existing documentation gaps in Lambda SDK
- AWS api-change: Lambda now supports self-managed S3 buckets for Lambda code storage giving you the option for Lambda to reference a copy of your source code from your own S3 buckets. This allows you to maintain a single copy of your source code and manage your own code storage limits.

## 2.15.0

Expand Down
23 changes: 23 additions & 0 deletions src/Service/Lambda/src/Enum/S3ObjectStorageMode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace AsyncAws\Lambda\Enum;

/**
* The storage mode for a function's deployment package.
*/
final class S3ObjectStorageMode
{
public const COPY = 'COPY';
public const REFERENCE = 'REFERENCE';

/**
* @psalm-assert-if-true self::* $value
*/
public static function exists(string $value): bool
{
return isset([
self::COPY => true,
self::REFERENCE => true,
][$value]);
}
}
11 changes: 11 additions & 0 deletions src/Service/Lambda/src/Result/PublishLayerVersionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use AsyncAws\Lambda\Enum\Architecture;
use AsyncAws\Lambda\Enum\Runtime;
use AsyncAws\Lambda\ValueObject\LayerVersionContentOutput;
use AsyncAws\Lambda\ValueObject\ResolvedS3Object;

class PublishLayerVersionResponse extends Result
{
Expand Down Expand Up @@ -214,6 +215,16 @@ private function populateResultLayerVersionContentOutput(array $json): LayerVers
'CodeSize' => isset($json['CodeSize']) ? (int) $json['CodeSize'] : null,
'SigningProfileVersionArn' => isset($json['SigningProfileVersionArn']) ? (string) $json['SigningProfileVersionArn'] : null,
'SigningJobArn' => isset($json['SigningJobArn']) ? (string) $json['SigningJobArn'] : null,
'ResolvedS3Object' => empty($json['ResolvedS3Object']) ? null : $this->populateResultResolvedS3Object($json['ResolvedS3Object']),
]);
}

private function populateResultResolvedS3Object(array $json): ResolvedS3Object
{
return new ResolvedS3Object([
'S3Bucket' => isset($json['S3Bucket']) ? (string) $json['S3Bucket'] : null,
'S3Key' => isset($json['S3Key']) ? (string) $json['S3Key'] : null,
'S3ObjectVersion' => isset($json['S3ObjectVersion']) ? (string) $json['S3ObjectVersion'] : null,
]);
}
}
26 changes: 26 additions & 0 deletions src/Service/Lambda/src/ValueObject/LayerVersionContentInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace AsyncAws\Lambda\ValueObject;

use AsyncAws\Core\Exception\InvalidArgument;
use AsyncAws\Lambda\Enum\S3ObjectStorageMode;

/**
* A ZIP archive that contains the contents of an Lambda layer [^1]. You can specify either an Amazon S3 location, or
* upload a layer archive directly.
Expand Down Expand Up @@ -31,6 +34,11 @@ final class LayerVersionContentInput
*/
private $s3ObjectVersion;

/**
* @var S3ObjectStorageMode::*|null
*/
private $s3ObjectStorageMode;

/**
* The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle
* the encoding for you.
Expand All @@ -44,6 +52,7 @@ final class LayerVersionContentInput
* S3Bucket?: string|null,
* S3Key?: string|null,
* S3ObjectVersion?: string|null,
* S3ObjectStorageMode?: S3ObjectStorageMode::*|null,
* ZipFile?: string|null,
* } $input
*/
Expand All @@ -52,6 +61,7 @@ public function __construct(array $input)
$this->s3Bucket = $input['S3Bucket'] ?? null;
$this->s3Key = $input['S3Key'] ?? null;
$this->s3ObjectVersion = $input['S3ObjectVersion'] ?? null;
$this->s3ObjectStorageMode = $input['S3ObjectStorageMode'] ?? null;
$this->zipFile = $input['ZipFile'] ?? null;
}

Expand All @@ -60,6 +70,7 @@ public function __construct(array $input)
* S3Bucket?: string|null,
* S3Key?: string|null,
* S3ObjectVersion?: string|null,
* S3ObjectStorageMode?: S3ObjectStorageMode::*|null,
* ZipFile?: string|null,
* }|LayerVersionContentInput $input
*/
Expand All @@ -78,6 +89,14 @@ public function getS3Key(): ?string
return $this->s3Key;
}

/**
* @return S3ObjectStorageMode::*|null
*/
public function getS3ObjectStorageMode(): ?string
{
return $this->s3ObjectStorageMode;
}

public function getS3ObjectVersion(): ?string
{
return $this->s3ObjectVersion;
Expand All @@ -103,6 +122,13 @@ public function requestBody(): array
if (null !== $v = $this->s3ObjectVersion) {
$payload['S3ObjectVersion'] = $v;
}
if (null !== $v = $this->s3ObjectStorageMode) {
if (!S3ObjectStorageMode::exists($v)) {
/** @psalm-suppress NoValue */
throw new InvalidArgument(\sprintf('Invalid parameter "S3ObjectStorageMode" for "%s". The value "%s" is not a valid "S3ObjectStorageMode".', __CLASS__, $v));
}
$payload['S3ObjectStorageMode'] = $v;
}
if (null !== $v = $this->zipFile) {
$payload['ZipFile'] = base64_encode($v);
}
Expand Down
13 changes: 13 additions & 0 deletions src/Service/Lambda/src/ValueObject/LayerVersionContentOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ final class LayerVersionContentOutput
*/
private $signingJobArn;

/**
* @var ResolvedS3Object|null
*/
private $resolvedS3Object;

/**
* @param array{
* Location?: string|null,
* CodeSha256?: string|null,
* CodeSize?: int|null,
* SigningProfileVersionArn?: string|null,
* SigningJobArn?: string|null,
* ResolvedS3Object?: ResolvedS3Object|array|null,
* } $input
*/
public function __construct(array $input)
Expand All @@ -60,6 +66,7 @@ public function __construct(array $input)
$this->codeSize = $input['CodeSize'] ?? null;
$this->signingProfileVersionArn = $input['SigningProfileVersionArn'] ?? null;
$this->signingJobArn = $input['SigningJobArn'] ?? null;
$this->resolvedS3Object = isset($input['ResolvedS3Object']) ? ResolvedS3Object::create($input['ResolvedS3Object']) : null;
}

/**
Expand All @@ -69,6 +76,7 @@ public function __construct(array $input)
* CodeSize?: int|null,
* SigningProfileVersionArn?: string|null,
* SigningJobArn?: string|null,
* ResolvedS3Object?: ResolvedS3Object|array|null,
* }|LayerVersionContentOutput $input
*/
public static function create($input): self
Expand All @@ -91,6 +99,11 @@ public function getLocation(): ?string
return $this->location;
}

public function getResolvedS3Object(): ?ResolvedS3Object
{
return $this->resolvedS3Object;
}

public function getSigningJobArn(): ?string
{
return $this->signingJobArn;
Expand Down
71 changes: 71 additions & 0 deletions src/Service/Lambda/src/ValueObject/ResolvedS3Object.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

namespace AsyncAws\Lambda\ValueObject;

/**
* Details about the resolved Amazon S3 object that contains a function's deployment package.
*/
final class ResolvedS3Object
{
/**
* The Amazon S3 bucket that contains the deployment package.
*
* @var string|null
*/
private $s3Bucket;

/**
* The Amazon S3 key of the deployment package.
*
* @var string|null
*/
private $s3Key;

/**
* The version of the deployment package object.
*
* @var string|null
*/
private $s3ObjectVersion;

/**
* @param array{
* S3Bucket?: string|null,
* S3Key?: string|null,
* S3ObjectVersion?: string|null,
* } $input
*/
public function __construct(array $input)
{
$this->s3Bucket = $input['S3Bucket'] ?? null;
$this->s3Key = $input['S3Key'] ?? null;
$this->s3ObjectVersion = $input['S3ObjectVersion'] ?? null;
}

/**
* @param array{
* S3Bucket?: string|null,
* S3Key?: string|null,
* S3ObjectVersion?: string|null,
* }|ResolvedS3Object $input
*/
public static function create($input): self
{
return $input instanceof self ? $input : new self($input);
}

public function getS3Bucket(): ?string
{
return $this->s3Bucket;
}

public function getS3Key(): ?string
{
return $this->s3Key;
}

public function getS3ObjectVersion(): ?string
{
return $this->s3ObjectVersion;
}
}
4 changes: 4 additions & 0 deletions src/Service/RdsDataService/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- AWS enhancement: Documentation updates.

## 3.0.2

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
use AsyncAws\Core\Exception\Http\ClientException;

/**
* There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1
* databases.).
* There is an error in the call or in a SQL statement. This exception is deprecated.
*/
final class BadRequestException extends ClientException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use AsyncAws\Core\Exception\Http\ClientException;

/**
* A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically
* A request was cancelled because the Aurora Serverless DB instance was paused. The Data API request automatically
* resumes the DB instance. Wait a few seconds and try again.
*/
final class DatabaseResumingException extends ClientException
Expand Down
Loading