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.342.32"
"${LATEST}": "3.342.33"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
1 change: 1 addition & 0 deletions src/Service/CodeBuild/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/Service/CodeBuild/src/Enum/ComputeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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]);
}
}
1 change: 1 addition & 0 deletions src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}

Expand Down
1 change: 1 addition & 0 deletions src/Service/CodeBuild/src/Result/StartBuildOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}

Expand Down
1 change: 1 addition & 0 deletions src/Service/CodeBuild/src/Result/StopBuildOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}

Expand Down
17 changes: 16 additions & 1 deletion src/Service/CodeBuild/src/ValueObject/ComputeConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
Expand All @@ -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;
}

/**
Expand All @@ -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
Expand All @@ -72,6 +82,11 @@ public function getDisk(): ?int
return $this->disk;
}

public function getInstanceType(): ?string
{
return $this->instanceType;
}

/**
* @return MachineType::*|null
*/
Expand Down