Skip to content

Commit 0a136cf

Browse files
Update generated code (#1600)
update generated code
1 parent bf53e35 commit 0a136cf

File tree

8 files changed

+58
-13
lines changed

8 files changed

+58
-13
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.283.16"
3+
"${LATEST}": "3.284.1"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/CodeBuild/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: AWS CodeBuild now supports AWS Lambda compute.
8+
59
### Changed
610

711
- Allow passing explicit null values for optional fields of input objects

src/Service/CodeBuild/src/Enum/ComputeType.php

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ final class ComputeType
88
public const BUILD_GENERAL1_LARGE = 'BUILD_GENERAL1_LARGE';
99
public const BUILD_GENERAL1_MEDIUM = 'BUILD_GENERAL1_MEDIUM';
1010
public const BUILD_GENERAL1_SMALL = 'BUILD_GENERAL1_SMALL';
11+
public const BUILD_LAMBDA_10GB = 'BUILD_LAMBDA_10GB';
12+
public const BUILD_LAMBDA_1GB = 'BUILD_LAMBDA_1GB';
13+
public const BUILD_LAMBDA_2GB = 'BUILD_LAMBDA_2GB';
14+
public const BUILD_LAMBDA_4GB = 'BUILD_LAMBDA_4GB';
15+
public const BUILD_LAMBDA_8GB = 'BUILD_LAMBDA_8GB';
1116

1217
public static function exists(string $value): bool
1318
{
@@ -16,6 +21,11 @@ public static function exists(string $value): bool
1621
self::BUILD_GENERAL1_LARGE => true,
1722
self::BUILD_GENERAL1_MEDIUM => true,
1823
self::BUILD_GENERAL1_SMALL => true,
24+
self::BUILD_LAMBDA_10GB => true,
25+
self::BUILD_LAMBDA_1GB => true,
26+
self::BUILD_LAMBDA_2GB => true,
27+
self::BUILD_LAMBDA_4GB => true,
28+
self::BUILD_LAMBDA_8GB => true,
1929
][$value]);
2030
}
2131
}

src/Service/CodeBuild/src/Enum/EnvironmentType.php

+4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@
55
final class EnvironmentType
66
{
77
public const ARM_CONTAINER = 'ARM_CONTAINER';
8+
public const ARM_LAMBDA_CONTAINER = 'ARM_LAMBDA_CONTAINER';
89
public const LINUX_CONTAINER = 'LINUX_CONTAINER';
910
public const LINUX_GPU_CONTAINER = 'LINUX_GPU_CONTAINER';
11+
public const LINUX_LAMBDA_CONTAINER = 'LINUX_LAMBDA_CONTAINER';
1012
public const WINDOWS_CONTAINER = 'WINDOWS_CONTAINER';
1113
public const WINDOWS_SERVER_2019_CONTAINER = 'WINDOWS_SERVER_2019_CONTAINER';
1214

1315
public static function exists(string $value): bool
1416
{
1517
return isset([
1618
self::ARM_CONTAINER => true,
19+
self::ARM_LAMBDA_CONTAINER => true,
1720
self::LINUX_CONTAINER => true,
1821
self::LINUX_GPU_CONTAINER => true,
22+
self::LINUX_LAMBDA_CONTAINER => true,
1923
self::WINDOWS_CONTAINER => true,
2024
self::WINDOWS_SERVER_2019_CONTAINER => true,
2125
][$value]);

src/Service/CodeBuild/src/ValueObject/Build.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ final class Build
202202
* The entity that started the build. Valid values include:.
203203
*
204204
* - If CodePipeline started the build, the pipeline's name (for example, `codepipeline/my-demo-pipeline`).
205-
* - If an IAM user started the build, the user's name (for example, `MyUserName`).
205+
* - If a user started the build, the user's name (for example, `MyUserName`).
206206
* - If the Jenkins plugin for CodeBuild started the build, the string `CodeBuild-Jenkins-Plugin`.
207207
*
208208
* @var string|null

src/Service/CodeBuild/src/ValueObject/EnvironmentVariable.php

+11-7
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ final class EnvironmentVariable
2121
* The value of the environment variable.
2222
*
2323
* ! We strongly discourage the use of `PLAINTEXT` environment variables to store sensitive values, especially Amazon
24-
* ! Web Services secret key IDs and secret access keys. `PLAINTEXT` environment variables can be displayed in plain
25-
* ! text using the CodeBuild console and the CLI. For sensitive values, we recommend you use an environment variable of
26-
* ! type `PARAMETER_STORE` or `SECRETS_MANAGER`.
24+
* ! Web Services secret key IDs. `PLAINTEXT` environment variables can be displayed in plain text using the CodeBuild
25+
* ! console and the CLI. For sensitive values, we recommend you use an environment variable of type `PARAMETER_STORE`
26+
* ! or `SECRETS_MANAGER`.
2727
*
2828
* @var string
2929
*/
@@ -32,11 +32,15 @@ final class EnvironmentVariable
3232
/**
3333
* The type of environment variable. Valid values include:.
3434
*
35-
* - `PARAMETER_STORE`: An environment variable stored in Systems Manager Parameter Store. To learn how to specify a
36-
* parameter store environment variable, see env/parameter-store [^1] in the *CodeBuild User Guide*.
35+
* - `PARAMETER_STORE`: An environment variable stored in Systems Manager Parameter Store. For environment variables of
36+
* this type, specify the name of the parameter as the `value` of the EnvironmentVariable. The parameter value will be
37+
* substituted for the name at runtime. You can also define Parameter Store environment variables in the buildspec. To
38+
* learn how to do so, see env/parameter-store [^1] in the *CodeBuild User Guide*.
3739
* - `PLAINTEXT`: An environment variable in plain text format. This is the default value.
38-
* - `SECRETS_MANAGER`: An environment variable stored in Secrets Manager. To learn how to specify a secrets manager
39-
* environment variable, see env/secrets-manager [^2] in the *CodeBuild User Guide*.
40+
* - `SECRETS_MANAGER`: An environment variable stored in Secrets Manager. For environment variables of this type,
41+
* specify the name of the secret as the `value` of the EnvironmentVariable. The secret value will be substituted for
42+
* the name at runtime. You can also define Secrets Manager environment variables in the buildspec. To learn how to do
43+
* so, see env/secrets-manager [^2] in the *CodeBuild User Guide*.
4044
*
4145
* [^1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store
4246
* [^2]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager

src/Service/CodeBuild/src/ValueObject/LogsLocation.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ final class LogsLocation
2222
private $streamName;
2323

2424
/**
25-
* The URL to an individual build log in CloudWatch Logs.
25+
* The URL to an individual build log in CloudWatch Logs. The log stream is created during the PROVISIONING phase of a
26+
* build and the `deeplink` will not be valid until it is created.
2627
*
2728
* @var string|null
2829
*/
@@ -36,9 +37,10 @@ final class LogsLocation
3637
private $s3DeepLink;
3738

3839
/**
39-
* The ARN of CloudWatch Logs for a build project. Its format is
40-
* `arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}`. For more
41-
* information, see Resources Defined by CloudWatch Logs [^1].
40+
* The ARN of the CloudWatch Logs stream for a build execution. Its format is
41+
* `arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}`. The CloudWatch
42+
* Logs stream is created during the PROVISIONING phase of a build and the ARN will not be valid until it is created.
43+
* For more information, see Resources Defined by CloudWatch Logs [^1].
4244
*
4345
* [^1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies
4446
*

src/Service/CodeBuild/src/ValueObject/ProjectEnvironment.php

+21
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ final class ProjectEnvironment
2525
* West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific
2626
* (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
2727
*
28+
* - The environment types `ARM_LAMBDA_CONTAINER` and `LINUX_LAMBDA_CONTAINER` are available only in regions US East (N.
29+
* Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific
30+
* (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).
31+
*
2832
* - The environment types `WINDOWS_CONTAINER` and `WINDOWS_SERVER_2019_CONTAINER` are available only in regions US East
2933
* (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).
3034
*
@@ -62,6 +66,23 @@ final class ProjectEnvironment
6266
* - `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
6367
* - `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute
6468
* type supports Docker images up to 100 GB uncompressed.
69+
* - `BUILD_LAMBDA_1GB`: Use up to 1 GB memory for builds. Only available for environment type `LINUX_LAMBDA_CONTAINER`
70+
* and `ARM_LAMBDA_CONTAINER`.
71+
* - `BUILD_LAMBDA_2GB`: Use up to 2 GB memory for builds. Only available for environment type `LINUX_LAMBDA_CONTAINER`
72+
* and `ARM_LAMBDA_CONTAINER`.
73+
* - `BUILD_LAMBDA_4GB`: Use up to 4 GB memory for builds. Only available for environment type `LINUX_LAMBDA_CONTAINER`
74+
* and `ARM_LAMBDA_CONTAINER`.
75+
* - `BUILD_LAMBDA_8GB`: Use up to 8 GB memory for builds. Only available for environment type `LINUX_LAMBDA_CONTAINER`
76+
* and `ARM_LAMBDA_CONTAINER`.
77+
* - `BUILD_LAMBDA_10GB`: Use up to 10 GB memory for builds. Only available for environment type
78+
* `LINUX_LAMBDA_CONTAINER` and `ARM_LAMBDA_CONTAINER`.
79+
*
80+
* If you use `BUILD_GENERAL1_SMALL`:
81+
*
82+
* - For environment type `LINUX_CONTAINER`, you can use up to 3 GB memory and 2 vCPUs for builds.
83+
* - For environment type `LINUX_GPU_CONTAINER`, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core
84+
* GPU for builds.
85+
* - For environment type `ARM_CONTAINER`, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
6586
*
6687
* If you use `BUILD_GENERAL1_LARGE`:
6788
*

0 commit comments

Comments
 (0)