Struct aws_sdk_codebuild::client::fluent_builders::CreateProject
source · pub struct CreateProject { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateProject
.
Creates a build project.
Implementations§
source§impl CreateProject
impl CreateProject
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateProject, AwsResponseRetryClassifier>, SdkError<CreateProjectError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateProject, AwsResponseRetryClassifier>, SdkError<CreateProjectError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateProjectOutput, SdkError<CreateProjectError>>
pub async fn send(
self
) -> Result<CreateProjectOutput, SdkError<CreateProjectError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description that makes the build project easy to identify.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description that makes the build project easy to identify.
sourcepub fn source(self, input: ProjectSource) -> Self
pub fn source(self, input: ProjectSource) -> Self
Information about the build input source code for the build project.
sourcepub fn set_source(self, input: Option<ProjectSource>) -> Self
pub fn set_source(self, input: Option<ProjectSource>) -> Self
Information about the build input source code for the build project.
sourcepub fn secondary_sources(self, input: ProjectSource) -> Self
pub fn secondary_sources(self, input: ProjectSource) -> Self
Appends an item to secondarySources
.
To override the contents of this collection use set_secondary_sources
.
An array of ProjectSource
objects.
sourcepub fn set_secondary_sources(self, input: Option<Vec<ProjectSource>>) -> Self
pub fn set_secondary_sources(self, input: Option<Vec<ProjectSource>>) -> Self
An array of ProjectSource
objects.
sourcepub fn source_version(self, input: impl Into<String>) -> Self
pub fn source_version(self, input: impl Into<String>) -> Self
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it 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 examplepr/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.
If sourceVersion
is specified at the build level, then that version takes precedence over this sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
sourcepub fn set_source_version(self, input: Option<String>) -> Self
pub fn set_source_version(self, input: Option<String>) -> Self
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it 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 examplepr/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.
If sourceVersion
is specified at the build level, then that version takes precedence over this sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
sourcepub fn secondary_source_versions(self, input: ProjectSourceVersion) -> Self
pub fn secondary_source_versions(self, input: ProjectSourceVersion) -> Self
Appends an item to secondarySourceVersions
.
To override the contents of this collection use set_secondary_source_versions
.
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).
sourcepub fn set_secondary_source_versions(
self,
input: Option<Vec<ProjectSourceVersion>>
) -> Self
pub fn set_secondary_source_versions(
self,
input: Option<Vec<ProjectSourceVersion>>
) -> Self
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).
sourcepub fn artifacts(self, input: ProjectArtifacts) -> Self
pub fn artifacts(self, input: ProjectArtifacts) -> Self
Information about the build output artifacts for the build project.
sourcepub fn set_artifacts(self, input: Option<ProjectArtifacts>) -> Self
pub fn set_artifacts(self, input: Option<ProjectArtifacts>) -> Self
Information about the build output artifacts for the build project.
sourcepub fn secondary_artifacts(self, input: ProjectArtifacts) -> Self
pub fn secondary_artifacts(self, input: ProjectArtifacts) -> Self
Appends an item to secondaryArtifacts
.
To override the contents of this collection use set_secondary_artifacts
.
An array of ProjectArtifacts
objects.
sourcepub fn set_secondary_artifacts(
self,
input: Option<Vec<ProjectArtifacts>>
) -> Self
pub fn set_secondary_artifacts(
self,
input: Option<Vec<ProjectArtifacts>>
) -> Self
An array of ProjectArtifacts
objects.
sourcepub fn cache(self, input: ProjectCache) -> Self
pub fn cache(self, input: ProjectCache) -> Self
Stores recently used information so that it can be quickly accessed at a later time.
sourcepub fn set_cache(self, input: Option<ProjectCache>) -> Self
pub fn set_cache(self, input: Option<ProjectCache>) -> Self
Stores recently used information so that it can be quickly accessed at a later time.
sourcepub fn environment(self, input: ProjectEnvironment) -> Self
pub fn environment(self, input: ProjectEnvironment) -> Self
Information about the build environment for the build project.
sourcepub fn set_environment(self, input: Option<ProjectEnvironment>) -> Self
pub fn set_environment(self, input: Option<ProjectEnvironment>) -> Self
Information about the build environment for the build project.
sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
sourcepub fn timeout_in_minutes(self, input: i32) -> Self
pub fn timeout_in_minutes(self, input: i32) -> Self
How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.
sourcepub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.
sourcepub fn queued_timeout_in_minutes(self, input: i32) -> Self
pub fn queued_timeout_in_minutes(self, input: i32) -> Self
The number of minutes a build is allowed to be queued before it times out.
sourcepub fn set_queued_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_queued_timeout_in_minutes(self, input: Option<i32>) -> Self
The number of minutes a build is allowed to be queued before it times out.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
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/
).
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
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 tags
.
To override the contents of this collection use set_tags
.
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
sourcepub fn vpc_config(self, input: VpcConfig) -> Self
pub fn vpc_config(self, input: VpcConfig) -> Self
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
sourcepub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
sourcepub fn badge_enabled(self, input: bool) -> Self
pub fn badge_enabled(self, input: bool) -> Self
Set this to true to generate a publicly accessible URL for your project's build badge.
sourcepub fn set_badge_enabled(self, input: Option<bool>) -> Self
pub fn set_badge_enabled(self, input: Option<bool>) -> Self
Set this to true to generate a publicly accessible URL for your project's build badge.
sourcepub fn logs_config(self, input: LogsConfig) -> Self
pub fn logs_config(self, input: LogsConfig) -> Self
Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
sourcepub fn set_logs_config(self, input: Option<LogsConfig>) -> Self
pub fn set_logs_config(self, input: Option<LogsConfig>) -> Self
Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
sourcepub fn file_system_locations(self, input: ProjectFileSystemLocation) -> Self
pub fn file_system_locations(self, input: ProjectFileSystemLocation) -> Self
Appends an item to fileSystemLocations
.
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.
sourcepub 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.
sourcepub fn build_batch_config(self, input: ProjectBuildBatchConfig) -> Self
pub fn build_batch_config(self, input: ProjectBuildBatchConfig) -> Self
A ProjectBuildBatchConfig
object that defines the batch build options for the project.
sourcepub fn set_build_batch_config(
self,
input: Option<ProjectBuildBatchConfig>
) -> Self
pub fn set_build_batch_config(
self,
input: Option<ProjectBuildBatchConfig>
) -> Self
A ProjectBuildBatchConfig
object that defines the batch build options for the project.
sourcepub fn concurrent_build_limit(self, input: i32) -> Self
pub fn concurrent_build_limit(self, input: i32) -> Self
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
sourcepub fn set_concurrent_build_limit(self, input: Option<i32>) -> Self
pub fn set_concurrent_build_limit(self, input: Option<i32>) -> Self
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
Trait Implementations§
source§impl Clone for CreateProject
impl Clone for CreateProject
source§fn clone(&self) -> CreateProject
fn clone(&self) -> CreateProject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more