Struct aws_sdk_codebuild::operation::update_project_visibility::builders::UpdateProjectVisibilityFluentBuilder
source · pub struct UpdateProjectVisibilityFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateProjectVisibility
.
Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
Implementations§
source§impl UpdateProjectVisibilityFluentBuilder
impl UpdateProjectVisibilityFluentBuilder
sourcepub fn as_input(&self) -> &UpdateProjectVisibilityInputBuilder
pub fn as_input(&self) -> &UpdateProjectVisibilityInputBuilder
Access the UpdateProjectVisibility as a reference.
sourcepub async fn send(
self
) -> Result<UpdateProjectVisibilityOutput, SdkError<UpdateProjectVisibilityError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateProjectVisibilityOutput, SdkError<UpdateProjectVisibilityError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<UpdateProjectVisibilityOutput, UpdateProjectVisibilityError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateProjectVisibilityOutput, UpdateProjectVisibilityError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the build project.
sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the build project.
sourcepub fn get_project_arn(&self) -> &Option<String>
pub fn get_project_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the build project.
sourcepub fn project_visibility(self, input: ProjectVisibilityType) -> Self
pub fn project_visibility(self, input: ProjectVisibilityType) -> Self
Specifies the visibility of the project's builds. Possible values are:
- PUBLIC_READ
-
The project builds are visible to the public.
- PRIVATE
-
The project builds are not visible to the public.
sourcepub fn set_project_visibility(
self,
input: Option<ProjectVisibilityType>
) -> Self
pub fn set_project_visibility( self, input: Option<ProjectVisibilityType> ) -> Self
Specifies the visibility of the project's builds. Possible values are:
- PUBLIC_READ
-
The project builds are visible to the public.
- PRIVATE
-
The project builds are not visible to the public.
sourcepub fn get_project_visibility(&self) -> &Option<ProjectVisibilityType>
pub fn get_project_visibility(&self) -> &Option<ProjectVisibilityType>
Specifies the visibility of the project's builds. Possible values are:
- PUBLIC_READ
-
The project builds are visible to the public.
- PRIVATE
-
The project builds are not visible to the public.
sourcepub fn resource_access_role(self, input: impl Into<String>) -> Self
pub fn resource_access_role(self, input: impl Into<String>) -> Self
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
sourcepub fn set_resource_access_role(self, input: Option<String>) -> Self
pub fn set_resource_access_role(self, input: Option<String>) -> Self
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
sourcepub fn get_resource_access_role(&self) -> &Option<String>
pub fn get_resource_access_role(&self) -> &Option<String>
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
Trait Implementations§
source§impl Clone for UpdateProjectVisibilityFluentBuilder
impl Clone for UpdateProjectVisibilityFluentBuilder
source§fn clone(&self) -> UpdateProjectVisibilityFluentBuilder
fn clone(&self) -> UpdateProjectVisibilityFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateProjectVisibilityFluentBuilder
impl !RefUnwindSafe for UpdateProjectVisibilityFluentBuilder
impl Send for UpdateProjectVisibilityFluentBuilder
impl Sync for UpdateProjectVisibilityFluentBuilder
impl Unpin for UpdateProjectVisibilityFluentBuilder
impl !UnwindSafe for UpdateProjectVisibilityFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more