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.343.8"
"${LATEST}": "3.343.12"
},
"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/CodeBuild/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: AWS CodeBuild now supports Docker Server capability

## 2.10.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CodeBuild/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.10-dev"
"dev-master": "2.11-dev"
}
}
}
20 changes: 20 additions & 0 deletions src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
use AsyncAws\CodeBuild\ValueObject\DebugSession;
use AsyncAws\CodeBuild\ValueObject\DockerServer;
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
Expand Down Expand Up @@ -255,6 +257,23 @@ private function populateResultDebugSession(array $json): DebugSession
]);
}

private function populateResultDockerServer(array $json): DockerServer
{
return new DockerServer([
'computeType' => (string) $json['computeType'],
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
]);
}

private function populateResultDockerServerStatus(array $json): DockerServerStatus
{
return new DockerServerStatus([
'status' => isset($json['status']) ? (string) $json['status'] : null,
'message' => isset($json['message']) ? (string) $json['message'] : null,
]);
}

private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
{
return new EnvironmentVariable([
Expand Down Expand Up @@ -387,6 +406,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
]);
}

Expand Down
20 changes: 20 additions & 0 deletions src/Service/CodeBuild/src/Result/StartBuildOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
use AsyncAws\CodeBuild\ValueObject\DebugSession;
use AsyncAws\CodeBuild\ValueObject\DockerServer;
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
Expand Down Expand Up @@ -205,6 +207,23 @@ private function populateResultDebugSession(array $json): DebugSession
]);
}

private function populateResultDockerServer(array $json): DockerServer
{
return new DockerServer([
'computeType' => (string) $json['computeType'],
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
]);
}

private function populateResultDockerServerStatus(array $json): DockerServerStatus
{
return new DockerServerStatus([
'status' => isset($json['status']) ? (string) $json['status'] : null,
'message' => isset($json['message']) ? (string) $json['message'] : null,
]);
}

private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
{
return new EnvironmentVariable([
Expand Down Expand Up @@ -337,6 +356,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
]);
}

Expand Down
20 changes: 20 additions & 0 deletions src/Service/CodeBuild/src/Result/StopBuildOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
use AsyncAws\CodeBuild\ValueObject\DebugSession;
use AsyncAws\CodeBuild\ValueObject\DockerServer;
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
Expand Down Expand Up @@ -205,6 +207,23 @@ private function populateResultDebugSession(array $json): DebugSession
]);
}

private function populateResultDockerServer(array $json): DockerServer
{
return new DockerServer([
'computeType' => (string) $json['computeType'],
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
]);
}

private function populateResultDockerServerStatus(array $json): DockerServerStatus
{
return new DockerServerStatus([
'status' => isset($json['status']) ? (string) $json['status'] : null,
'message' => isset($json['message']) ? (string) $json['message'] : null,
]);
}

private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
{
return new EnvironmentVariable([
Expand Down Expand Up @@ -337,6 +356,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
]);
}

Expand Down
97 changes: 97 additions & 0 deletions src/Service/CodeBuild/src/ValueObject/DockerServer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php

namespace AsyncAws\CodeBuild\ValueObject;

use AsyncAws\CodeBuild\Enum\ComputeType;
use AsyncAws\Core\Exception\InvalidArgument;

/**
* Contains docker server information.
*/
final class DockerServer
{
/**
* Information about the compute resources the docker server uses. Available values include:
*
* - `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for your docker server.
* - `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for your docker server.
* - `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for your docker server.
* - `BUILD_GENERAL1_XLARGE`: Use up to 64 GiB memory and 32 vCPUs for your docker server.
* - `BUILD_GENERAL1_2XLARGE`: Use up to 128 GiB memory and 64 vCPUs for your docker server.
*
* @var ComputeType::*
*/
private $computeType;

/**
* A list of one or more security groups IDs.
*
* > Security groups configured for Docker servers should allow ingress network traffic from the VPC configured in the
* > project. They should allow ingress on port 9876.
*
* @var string[]|null
*/
private $securityGroupIds;

/**
* A DockerServerStatus object to use for this docker server.
*
* @var DockerServerStatus|null
*/
private $status;

/**
* @param array{
* computeType: ComputeType::*,
* securityGroupIds?: null|string[],
* status?: null|DockerServerStatus|array,
* } $input
*/
public function __construct(array $input)
{
$this->computeType = $input['computeType'] ?? $this->throwException(new InvalidArgument('Missing required field "computeType".'));
$this->securityGroupIds = $input['securityGroupIds'] ?? null;
$this->status = isset($input['status']) ? DockerServerStatus::create($input['status']) : null;
}

/**
* @param array{
* computeType: ComputeType::*,
* securityGroupIds?: null|string[],
* status?: null|DockerServerStatus|array,
* }|DockerServer $input
*/
public static function create($input): self
{
return $input instanceof self ? $input : new self($input);
}

/**
* @return ComputeType::*
*/
public function getComputeType(): string
{
return $this->computeType;
}

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

public function getStatus(): ?DockerServerStatus
{
return $this->status;
}

/**
* @return never
*/
private function throwException(\Throwable $exception)
{
throw $exception;
}
}
56 changes: 56 additions & 0 deletions src/Service/CodeBuild/src/ValueObject/DockerServerStatus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

namespace AsyncAws\CodeBuild\ValueObject;

/**
* Contains information about the status of the docker server.
*/
final class DockerServerStatus
{
/**
* The status of the docker server.
*
* @var string|null
*/
private $status;

/**
* A message associated with the status of a docker server.
*
* @var string|null
*/
private $message;

/**
* @param array{
* status?: null|string,
* message?: null|string,
* } $input
*/
public function __construct(array $input)
{
$this->status = $input['status'] ?? null;
$this->message = $input['message'] ?? null;
}

/**
* @param array{
* status?: null|string,
* message?: null|string,
* }|DockerServerStatus $input
*/
public static function create($input): self
{
return $input instanceof self ? $input : new self($input);
}

public function getMessage(): ?string
{
return $this->message;
}

public function getStatus(): ?string
{
return $this->status;
}
}
15 changes: 15 additions & 0 deletions src/Service/CodeBuild/src/ValueObject/ProjectEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ final class ProjectEnvironment
*/
private $imagePullCredentialsType;

/**
* A DockerServer object to use for this build project.
*
* @var DockerServer|null
*/
private $dockerServer;

/**
* @param array{
* type: EnvironmentType::*,
Expand All @@ -186,6 +193,7 @@ final class ProjectEnvironment
* certificate?: null|string,
* registryCredential?: null|RegistryCredential|array,
* imagePullCredentialsType?: null|ImagePullCredentialsType::*,
* dockerServer?: null|DockerServer|array,
* } $input
*/
public function __construct(array $input)
Expand All @@ -200,6 +208,7 @@ public function __construct(array $input)
$this->certificate = $input['certificate'] ?? null;
$this->registryCredential = isset($input['registryCredential']) ? RegistryCredential::create($input['registryCredential']) : null;
$this->imagePullCredentialsType = $input['imagePullCredentialsType'] ?? null;
$this->dockerServer = isset($input['dockerServer']) ? DockerServer::create($input['dockerServer']) : null;
}

/**
Expand All @@ -214,6 +223,7 @@ public function __construct(array $input)
* certificate?: null|string,
* registryCredential?: null|RegistryCredential|array,
* imagePullCredentialsType?: null|ImagePullCredentialsType::*,
* dockerServer?: null|DockerServer|array,
* }|ProjectEnvironment $input
*/
public static function create($input): self
Expand All @@ -239,6 +249,11 @@ public function getComputeType(): string
return $this->computeType;
}

public function getDockerServer(): ?DockerServer
{
return $this->dockerServer;
}

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

## NOT RELEASED

### Added

- AWS api-change: This update enables cropping for video overlays and adds a new STL to Teletext upconversion toggle to preserve styling.

## 1.8.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/MediaConvert/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.8-dev"
"dev-master": "1.9-dev"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace AsyncAws\MediaConvert\Enum;

/**
* Specify whether this set of input captions appears in your outputs in both STL and Teletext format. If you choose
* Upconvert, MediaConvert includes the captions data in two ways: it passes the STL data through using the Teletext
* compatibility bytes fields of the Teletext wrapper, and it also translates the STL data into Teletext.
*/
final class CaptionSourceUpconvertSTLToTeletext
{
public const DISABLED = 'DISABLED';
public const UPCONVERT = 'UPCONVERT';

public static function exists(string $value): bool
{
return isset([
self::DISABLED => true,
self::UPCONVERT => true,
][$value]);
}
}
Loading