Skip to content

Commit e572973

Browse files
authored
Generates proper documentation for classes and properties (#1418)
1 parent 4ab2e70 commit e572973

38 files changed

+585
-197
lines changed

src/Enum/ArtifactNamespace.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* Along with `path` and `name`, the pattern that CodeBuild uses to determine the name and location to store the output
7-
* artifact:.
8-
*
9-
* - If `type` is set to `CODEPIPELINE`, CodePipeline ignores this value if specified. This is because CodePipeline
10-
* manages its build output names instead of CodeBuild.
11-
* - If `type` is set to `NO_ARTIFACTS`, this value is ignored if specified, because no build output is produced.
12-
* - If `type` is set to `S3`, valid values include:
13-
*
14-
* - `BUILD_ID`: Include the build ID in the location of the build output artifact.
15-
* - `NONE`: Do not include the build ID. This is the default if `namespaceType` is not specified.
16-
*
17-
*
18-
* For example, if `path` is set to `MyArtifacts`, `namespaceType` is set to `BUILD_ID`, and `name` is set to
19-
* `MyArtifact.zip`, the output artifact is stored in `MyArtifacts/<build-ID>/MyArtifact.zip`.
20-
*/
215
final class ArtifactNamespace
226
{
237
public const BUILD_ID = 'BUILD_ID';

src/Enum/ArtifactPackaging.php

-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of build output artifact to create:.
7-
*
8-
* - If `type` is set to `CODEPIPELINE`, CodePipeline ignores this value if specified. This is because CodePipeline
9-
* manages its build output artifacts instead of CodeBuild.
10-
* - If `type` is set to `NO_ARTIFACTS`, this value is ignored if specified, because no build output is produced.
11-
* - If `type` is set to `S3`, valid values include:
12-
*
13-
* - `NONE`: CodeBuild creates in the output bucket a folder that contains the build output. This is the default if
14-
* `packaging` is not specified.
15-
* - `ZIP`: CodeBuild creates in the output bucket a ZIP file that contains the build output.
16-
*/
175
final class ArtifactPackaging
186
{
197
public const NONE = 'NONE';

src/Enum/ArtifactsType.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of build output artifact. Valid values include:.
7-
*
8-
* - `CODEPIPELINE`: The build project has build output generated through CodePipeline.
9-
*
10-
* > The `CODEPIPELINE` type is not supported for `secondaryArtifacts`.
11-
*
12-
* - `NO_ARTIFACTS`: The build project does not produce any build output.
13-
* - `S3`: The build project stores build output in Amazon S3.
14-
*/
155
final class ArtifactsType
166
{
177
public const CODEPIPELINE = 'CODEPIPELINE';

src/Enum/BucketOwnerAccess.php

+30
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5+
/**
6+
* Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default,
7+
* only the account that uploads the objects to the bucket has access to these objects. This property allows you to give
8+
* the bucket owner access to these objects.
9+
*
10+
* > To use this property, your CodeBuild service role must have the `s3:PutBucketAcl` permission. This permission
11+
* > allows CodeBuild to modify the access control list for the bucket.
12+
*
13+
* This property can be one of the following values:
14+
*
15+
* - `NONE`:
16+
*
17+
* The bucket owner does not have access to the objects. This is the default.
18+
* - `READ_ONLY`:
19+
*
20+
* The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.
21+
* - `FULL`:
22+
*
23+
* The bucket owner has full access to the objects. Object ownership is determined by the following criteria:
24+
*
25+
* - If the bucket is configured with the **Bucket owner preferred** setting, the bucket owner owns the objects. The
26+
* uploading account will have object access as specified by the bucket's policy.
27+
* -
28+
* - Otherwise, the uploading account retains ownership of the objects.
29+
*
30+
* For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3
31+
* Object Ownership [^1] in the *Amazon Simple Storage Service User Guide*.
32+
*
33+
* [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
34+
*/
535
final class BucketOwnerAccess
636
{
737
public const FULL = 'FULL';

src/Enum/BuildPhaseType.php

-15
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The name of the build phase. Valid values include:.
7-
*
8-
* - `BUILD`: Core build activities typically occur in this build phase.
9-
* - `COMPLETED`: The build has been completed.
10-
* - `DOWNLOAD_SOURCE`: Source code is being downloaded in this build phase.
11-
* - `FINALIZING`: The build process is completing in this build phase.
12-
* - `INSTALL`: Installation activities typically occur in this build phase.
13-
* - `POST_BUILD`: Post-build activities typically occur in this build phase.
14-
* - `PRE_BUILD`: Pre-build activities typically occur in this build phase.
15-
* - `PROVISIONING`: The build environment is being set up.
16-
* - `QUEUED`: The build has been submitted and is queued behind other submitted builds.
17-
* - `SUBMITTED`: The build has been submitted.
18-
* - `UPLOAD_ARTIFACTS`: Build output artifacts are being uploaded to the output location.
19-
*/
205
final class BuildPhaseType
216
{
227
public const BUILD = 'BUILD';

src/Enum/CacheType.php

-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of cache used by the build project. Valid values include:.
7-
*
8-
* - `NO_CACHE`: The build project does not use any cache.
9-
* - `S3`: The build project reads and writes from and to S3.
10-
* - `LOCAL`: The build project stores a cache locally on a build host that is only available to that build host.
11-
*/
125
final class CacheType
136
{
147
public const LOCAL = 'LOCAL';

src/Enum/ComputeType.php

-21
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* Information about the compute resources the build project uses. Available values include:.
7-
*
8-
* - `BUILD_GENERAL1_SMALL`: Use up to 3 GB memory and 2 vCPUs for builds.
9-
* - `BUILD_GENERAL1_MEDIUM`: Use up to 7 GB memory and 4 vCPUs for builds.
10-
* - `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
11-
* - `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute
12-
* type supports Docker images up to 100 GB uncompressed.
13-
*
14-
* If you use `BUILD_GENERAL1_LARGE`:
15-
*
16-
* - For environment type `LINUX_CONTAINER`, you can use up to 15 GB memory and 8 vCPUs for builds.
17-
* - For environment type `LINUX_GPU_CONTAINER`, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs
18-
* for builds.
19-
* - For environment type `ARM_CONTAINER`, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for
20-
* builds.
21-
*
22-
* For more information, see Build Environment Compute Types in the *CodeBuild User Guide.*
23-
*
24-
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
25-
*/
265
final class ComputeType
276
{
287
public const BUILD_GENERAL1_2XLARGE = 'BUILD_GENERAL1_2XLARGE';

src/Enum/CredentialProviderType.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is
7-
* for Secrets Manager.
8-
*/
95
final class CredentialProviderType
106
{
117
public const SECRETS_MANAGER = 'SECRETS_MANAGER';

src/Enum/EnvironmentType.php

-20
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of build environment to use for related builds.
7-
*
8-
* - The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US East (Ohio), US West
9-
* (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).
10-
* - The environment type `LINUX_CONTAINER` with compute type `build.general1.2xlarge` is available only in regions US
11-
* East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt),
12-
* Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and
13-
* China (Ningxia).
14-
* - The environment type `LINUX_GPU_CONTAINER` is available only in regions US East (N. Virginia), US East (Ohio), US
15-
* West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific
16-
* (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
17-
*
18-
* - The environment types `WINDOWS_CONTAINER` and `WINDOWS_SERVER_2019_CONTAINER` are available only in regions US East
19-
* (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).
20-
*
21-
* For more information, see Build environment compute types in the *CodeBuild user guide*.
22-
*
23-
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
24-
*/
255
final class EnvironmentType
266
{
277
public const ARM_CONTAINER = 'ARM_CONTAINER';

src/Enum/EnvironmentVariableType.php

-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of environment variable. Valid values include:.
7-
*
8-
* - `PARAMETER_STORE`: An environment variable stored in Systems Manager Parameter Store. To learn how to specify a
9-
* parameter store environment variable, see env/parameter-store in the *CodeBuild User Guide*.
10-
* - `PLAINTEXT`: An environment variable in plain text format. This is the default value.
11-
* - `SECRETS_MANAGER`: An environment variable stored in Secrets Manager. To learn how to specify a secrets manager
12-
* environment variable, see env/secrets-manager in the *CodeBuild User Guide*.
13-
*
14-
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store
15-
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager
16-
*/
175
final class EnvironmentVariableType
186
{
197
public const PARAMETER_STORE = 'PARAMETER_STORE';

src/Enum/FileSystemType.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of the file system. The one supported type is `EFS`.
7-
*/
85
final class FileSystemType
96
{
107
public const EFS = 'EFS';

src/Enum/ImagePullCredentialsType.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of credentials CodeBuild uses to pull images in your build. There are two valid values:.
7-
*
8-
* - `CODEBUILD` specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository
9-
* policy to trust CodeBuild service principal.
10-
* - `SERVICE_ROLE` specifies that CodeBuild uses your build project's service role.
11-
*
12-
* When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an
13-
* CodeBuild curated image, you must use CODEBUILD credentials.
14-
*/
155
final class ImagePullCredentialsType
166
{
177
public const CODEBUILD = 'CODEBUILD';

src/Enum/LogsConfigStatusType.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The current status of the logs in CloudWatch Logs for a build project. Valid values are:.
7-
*
8-
* - `ENABLED`: CloudWatch Logs are enabled for this build project.
9-
* - `DISABLED`: CloudWatch Logs are not enabled for this build project.
10-
*/
115
final class LogsConfigStatusType
126
{
137
public const DISABLED = 'DISABLED';

src/Enum/SourceAuthType.php

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* > This data type is deprecated and is no longer accurate or used.
7-
*
8-
* The authorization type to use. The only valid value is `OAUTH`, which represents the OAuth authorization type.
9-
*/
105
final class SourceAuthType
116
{
127
public const OAUTH = 'OAUTH';

src/Enum/SourceType.php

-11
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The type of repository that contains the source code to be built. Valid values include:.
7-
*
8-
* - `BITBUCKET`: The source code is in a Bitbucket repository.
9-
* - `CODECOMMIT`: The source code is in an CodeCommit repository.
10-
* - `CODEPIPELINE`: The source code settings are specified in the source action of a pipeline in CodePipeline.
11-
* - `GITHUB`: The source code is in a GitHub or GitHub Enterprise Cloud repository.
12-
* - `GITHUB_ENTERPRISE`: The source code is in a GitHub Enterprise Server repository.
13-
* - `NO_SOURCE`: The project does not have input source code.
14-
* - `S3`: The source code is in an Amazon S3 bucket.
15-
*/
165
final class SourceType
176
{
187
public const BITBUCKET = 'BITBUCKET';

src/Enum/StatusType.php

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

33
namespace AsyncAws\CodeBuild\Enum;
44

5-
/**
6-
* The current status of the build phase. Valid values include:.
7-
*
8-
* - `FAILED`: The build phase failed.
9-
* - `FAULT`: The build phase faulted.
10-
* - `IN_PROGRESS`: The build phase is still in progress.
11-
* - `STOPPED`: The build phase stopped.
12-
* - `SUCCEEDED`: The build phase succeeded.
13-
* - `TIMED_OUT`: The build phase timed out.
14-
*/
155
final class StatusType
166
{
177
public const FAILED = 'FAILED';

0 commit comments

Comments
 (0)