pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCodeBuildProjectSource
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of repository that contains the source code to be built. Valid values are:
-
BITBUCKET
- The source code is in a Bitbucket repository. -
CODECOMMIT
- The source code is in an CodeCommit repository. -
CODEPIPELINE
- The source code settings are specified in the source action of a pipeline in CodePipeline. -
GITHUB
- The source code is in a GitHub repository. -
GITHUB_ENTERPRISE
- The source code is in a GitHub Enterprise repository. -
NO_SOURCE
- The project does not have input source code. -
S3
- The source code is in an S3 input bucket.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of repository that contains the source code to be built. Valid values are:
-
BITBUCKET
- The source code is in a Bitbucket repository. -
CODECOMMIT
- The source code is in an CodeCommit repository. -
CODEPIPELINE
- The source code settings are specified in the source action of a pipeline in CodePipeline. -
GITHUB
- The source code is in a GitHub repository. -
GITHUB_ENTERPRISE
- The source code is in a GitHub Enterprise repository. -
NO_SOURCE
- The project does not have input source code. -
S3
- The source code is in an S3 input bucket.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
Information about the location of the source code to be built.
Valid values include:
-
For source code settings that are specified in the source action of a pipeline in CodePipeline, location should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.
-
For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec file (for example,
https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name
). -
For source code in an S3 input bucket, one of the following.
-
The path to the ZIP file that contains the source code (for example,
bucket-name/path/to/object-name.zip
). -
The path to the folder that contains the source code (for example,
bucket-name/path/to/source-code/folder/
).
-
-
For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the build spec file.
-
For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec file.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
Information about the location of the source code to be built.
Valid values include:
-
For source code settings that are specified in the source action of a pipeline in CodePipeline, location should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.
-
For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec file (for example,
https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name
). -
For source code in an S3 input bucket, one of the following.
-
The path to the ZIP file that contains the source code (for example,
bucket-name/path/to/object-name.zip
). -
The path to the folder that contains the source code (for example,
bucket-name/path/to/source-code/folder/
).
-
-
For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the build spec file.
-
For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec file.
sourcepub fn git_clone_depth(self, input: i32) -> Self
pub fn git_clone_depth(self, input: i32) -> Self
Information about the Git clone depth for the build project.
sourcepub fn set_git_clone_depth(self, input: Option<i32>) -> Self
pub fn set_git_clone_depth(self, input: Option<i32>) -> Self
Information about the Git clone depth for the build project.
sourcepub fn insecure_ssl(self, input: bool) -> Self
pub fn insecure_ssl(self, input: bool) -> Self
Whether to ignore SSL warnings while connecting to the project source code.
sourcepub fn set_insecure_ssl(self, input: Option<bool>) -> Self
pub fn set_insecure_ssl(self, input: Option<bool>) -> Self
Whether to ignore SSL warnings while connecting to the project source code.
sourcepub fn build(self) -> AwsCodeBuildProjectSource
pub fn build(self) -> AwsCodeBuildProjectSource
Consumes the builder and constructs a AwsCodeBuildProjectSource
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more