#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Build
Implementations
The Amazon Resource Name (ARN) of the build.
The Amazon Resource Name (ARN) of the build.
The number of the build. For each project, the buildNumber
of its first build is 1
. The buildNumber
of each subsequent build is incremented by 1
. If a build is deleted, the buildNumber
of other builds does not change.
The number of the build. For each project, the buildNumber
of its first build is 1
. The buildNumber
of each subsequent build is incremented by 1
. If a build is deleted, the buildNumber
of other builds does not change.
When the build process started, expressed in Unix time format.
When the build process started, expressed in Unix time format.
When the build process ended, expressed in Unix time format.
When the build process ended, expressed in Unix time format.
The current build phase.
The current build phase.
The current status of the build. Valid values include:
-
FAILED
: The build failed. -
FAULT
: The build faulted. -
IN_PROGRESS
: The build is still in progress. -
STOPPED
: The build stopped. -
SUCCEEDED
: The build succeeded. -
TIMED_OUT
: The build timed out.
The current status of the build. Valid values include:
-
FAILED
: The build failed. -
FAULT
: The build faulted. -
IN_PROGRESS
: The build is still in progress. -
STOPPED
: The build stopped. -
SUCCEEDED
: The build succeeded. -
TIMED_OUT
: The build timed out.
Any version identifier for the version of the source code to be built. If sourceVersion
is specified at the project level, then this sourceVersion
(at the build level) takes precedence.
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
Any version identifier for the version of the source code to be built. If sourceVersion
is specified at the project level, then this sourceVersion
(at the build level) takes precedence.
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
An identifier for the version of this build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
An identifier for the version of this build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
The name of the CodeBuild project.
The name of the CodeBuild project.
Appends an item to phases
.
To override the contents of this collection use set_phases
.
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
Information about the source code to be built.
Information about the source code to be built.
Appends an item to secondary_sources
.
To override the contents of this collection use set_secondary_sources
.
An array of ProjectSource
objects.
An array of ProjectSource
objects.
Appends an item to secondary_source_versions
.
To override the contents of this collection use set_secondary_source_versions
.
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID
(for example,pr/25
). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. -
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID
(for example,pr/25
). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. -
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
Information about the output artifacts for the build.
Information about the output artifacts for the build.
Appends an item to secondary_artifacts
.
To override the contents of this collection use set_secondary_artifacts
.
An array of ProjectArtifacts
objects.
An array of ProjectArtifacts
objects.
Information about the cache for the build.
Information about the cache for the build.
Information about the build environment for this build.
Information about the build environment for this build.
The name of a service role used for this build.
The name of a service role used for this build.
Information about the build's logs in CloudWatch Logs.
Information about the build's logs in CloudWatch Logs.
How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.
How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.
The number of minutes a build is allowed to be queued before it times out.
The number of minutes a build is allowed to be queued before it times out.
Whether the build is complete. True if complete; otherwise, false.
Whether the build is complete. True if complete; otherwise, false.
The entity that started the build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
). -
If an IAM user started the build, the user's name (for example,
MyUserName
). -
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
The entity that started the build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
). -
If an IAM user started the build, the user's name (for example,
MyUserName
). -
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.
If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.
Describes a network interface.
Describes a network interface.
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/
).
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/
).
Appends an item to exported_environment_variables
.
To override the contents of this collection use set_exported_environment_variables
.
A list of exported environment variables for this build.
Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
pub fn set_exported_environment_variables(
self,
input: Option<Vec<ExportedEnvironmentVariable>>
) -> Self
pub fn set_exported_environment_variables(
self,
input: Option<Vec<ExportedEnvironmentVariable>>
) -> Self
A list of exported environment variables for this build.
Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
Appends an item to report_arns
.
To override the contents of this collection use set_report_arns
.
An array of the ARNs associated with this build's reports.
An array of the ARNs associated with this build's reports.
Appends an item to file_system_locations
.
To override the contents of this collection use set_file_system_locations
.
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
pub fn set_file_system_locations(
self,
input: Option<Vec<ProjectFileSystemLocation>>
) -> Self
pub fn set_file_system_locations(
self,
input: Option<Vec<ProjectFileSystemLocation>>
) -> Self
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
Contains information about the debug session for this build.
Contains information about the debug session for this build.
The ARN of the batch build that this build is a member of, if applicable.
The ARN of the batch build that this build is a member of, if applicable.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more