diff --git a/manifest.json b/manifest.json index 3170cdbaa..acb44e130 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.342.32" + "${LATEST}": "3.342.33" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/CodeBuild/CHANGELOG.md b/src/Service/CodeBuild/CHANGELOG.md index ba158e71a..66e6aa3bc 100644 --- a/src/Service/CodeBuild/CHANGELOG.md +++ b/src/Service/CodeBuild/CHANGELOG.md @@ -6,6 +6,7 @@ - AWS api-change: This release adds support for environment type WINDOWS_SERVER_2022_CONTAINER in ProjectEnvironment - AWS api-change: Added `us-isob-east-1` region. +- AWS api-change: Add support for custom instance type for reserved capacity fleets ### Changed diff --git a/src/Service/CodeBuild/src/Enum/ComputeType.php b/src/Service/CodeBuild/src/Enum/ComputeType.php index c8bd25723..322ce20b4 100644 --- a/src/Service/CodeBuild/src/Enum/ComputeType.php +++ b/src/Service/CodeBuild/src/Enum/ComputeType.php @@ -15,6 +15,7 @@ final class ComputeType public const BUILD_LAMBDA_2GB = 'BUILD_LAMBDA_2GB'; public const BUILD_LAMBDA_4GB = 'BUILD_LAMBDA_4GB'; public const BUILD_LAMBDA_8GB = 'BUILD_LAMBDA_8GB'; + public const CUSTOM_INSTANCE_TYPE = 'CUSTOM_INSTANCE_TYPE'; public static function exists(string $value): bool { @@ -30,6 +31,7 @@ public static function exists(string $value): bool self::BUILD_LAMBDA_2GB => true, self::BUILD_LAMBDA_4GB => true, self::BUILD_LAMBDA_8GB => true, + self::CUSTOM_INSTANCE_TYPE => true, ][$value]); } } diff --git a/src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php b/src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php index e0f51b321..8e581eef4 100644 --- a/src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php +++ b/src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php @@ -243,6 +243,7 @@ private function populateResultComputeConfiguration(array $json): ComputeConfigu 'memory' => isset($json['memory']) ? (int) $json['memory'] : null, 'disk' => isset($json['disk']) ? (int) $json['disk'] : null, 'machineType' => isset($json['machineType']) ? (string) $json['machineType'] : null, + 'instanceType' => isset($json['instanceType']) ? (string) $json['instanceType'] : null, ]); } diff --git a/src/Service/CodeBuild/src/Result/StartBuildOutput.php b/src/Service/CodeBuild/src/Result/StartBuildOutput.php index 233d94c50..3d8068d72 100644 --- a/src/Service/CodeBuild/src/Result/StartBuildOutput.php +++ b/src/Service/CodeBuild/src/Result/StartBuildOutput.php @@ -193,6 +193,7 @@ private function populateResultComputeConfiguration(array $json): ComputeConfigu 'memory' => isset($json['memory']) ? (int) $json['memory'] : null, 'disk' => isset($json['disk']) ? (int) $json['disk'] : null, 'machineType' => isset($json['machineType']) ? (string) $json['machineType'] : null, + 'instanceType' => isset($json['instanceType']) ? (string) $json['instanceType'] : null, ]); } diff --git a/src/Service/CodeBuild/src/Result/StopBuildOutput.php b/src/Service/CodeBuild/src/Result/StopBuildOutput.php index 945e924bd..bf9944e39 100644 --- a/src/Service/CodeBuild/src/Result/StopBuildOutput.php +++ b/src/Service/CodeBuild/src/Result/StopBuildOutput.php @@ -193,6 +193,7 @@ private function populateResultComputeConfiguration(array $json): ComputeConfigu 'memory' => isset($json['memory']) ? (int) $json['memory'] : null, 'disk' => isset($json['disk']) ? (int) $json['disk'] : null, 'machineType' => isset($json['machineType']) ? (string) $json['machineType'] : null, + 'instanceType' => isset($json['instanceType']) ? (string) $json['instanceType'] : null, ]); } diff --git a/src/Service/CodeBuild/src/ValueObject/ComputeConfiguration.php b/src/Service/CodeBuild/src/ValueObject/ComputeConfiguration.php index c19ac3ce5..44ae546e3 100644 --- a/src/Service/CodeBuild/src/ValueObject/ComputeConfiguration.php +++ b/src/Service/CodeBuild/src/ValueObject/ComputeConfiguration.php @@ -6,7 +6,7 @@ /** * Contains compute attributes. These attributes only need be specified when your project's or fleet's `computeType` is - * set to `ATTRIBUTE_BASED_COMPUTE`. + * set to `ATTRIBUTE_BASED_COMPUTE` or `CUSTOM_INSTANCE_TYPE`. */ final class ComputeConfiguration { @@ -38,12 +38,20 @@ final class ComputeConfiguration */ private $machineType; + /** + * The EC2 instance type to be launched in your fleet. + * + * @var string|null + */ + private $instanceType; + /** * @param array{ * vCpu?: null|int, * memory?: null|int, * disk?: null|int, * machineType?: null|MachineType::*, + * instanceType?: null|string, * } $input */ public function __construct(array $input) @@ -52,6 +60,7 @@ public function __construct(array $input) $this->memory = $input['memory'] ?? null; $this->disk = $input['disk'] ?? null; $this->machineType = $input['machineType'] ?? null; + $this->instanceType = $input['instanceType'] ?? null; } /** @@ -60,6 +69,7 @@ public function __construct(array $input) * memory?: null|int, * disk?: null|int, * machineType?: null|MachineType::*, + * instanceType?: null|string, * }|ComputeConfiguration $input */ public static function create($input): self @@ -72,6 +82,11 @@ public function getDisk(): ?int return $this->disk; } + public function getInstanceType(): ?string + { + return $this->instanceType; + } + /** * @return MachineType::*|null */