Struct CodeBuildClient

Source
pub struct CodeBuildClient { /* private fields */ }
Expand description

A client for the AWS CodeBuild API.

Implementations§

Source§

impl CodeBuildClient

Source

pub fn new(region: Region) -> CodeBuildClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> CodeBuildClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> CodeBuildClient

Trait Implementations§

Source§

impl Clone for CodeBuildClient

Source§

fn clone(&self) -> CodeBuildClient

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CodeBuild for CodeBuildClient

Source§

fn batch_delete_builds<'life0, 'async_trait>( &'life0 self, input: BatchDeleteBuildsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchDeleteBuildsOutput, RusotoError<BatchDeleteBuildsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes one or more builds.

Source§

fn batch_get_builds<'life0, 'async_trait>( &'life0 self, input: BatchGetBuildsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetBuildsOutput, RusotoError<BatchGetBuildsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more builds.

Source§

fn batch_get_projects<'life0, 'async_trait>( &'life0 self, input: BatchGetProjectsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetProjectsOutput, RusotoError<BatchGetProjectsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more build projects.

Source§

fn batch_get_report_groups<'life0, 'async_trait>( &'life0 self, input: BatchGetReportGroupsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetReportGroupsOutput, RusotoError<BatchGetReportGroupsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns an array of report groups.

Source§

fn batch_get_reports<'life0, 'async_trait>( &'life0 self, input: BatchGetReportsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetReportsOutput, RusotoError<BatchGetReportsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns an array of reports.

Source§

fn create_project<'life0, 'async_trait>( &'life0 self, input: CreateProjectInput, ) -> Pin<Box<dyn Future<Output = Result<CreateProjectOutput, RusotoError<CreateProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a build project.

Source§

fn create_report_group<'life0, 'async_trait>( &'life0 self, input: CreateReportGroupInput, ) -> Pin<Box<dyn Future<Output = Result<CreateReportGroupOutput, RusotoError<CreateReportGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a report group. A report group contains a collection of reports.

Source§

fn create_webhook<'life0, 'async_trait>( &'life0 self, input: CreateWebhookInput, ) -> Pin<Box<dyn Future<Output = Result<CreateWebhookOutput, RusotoError<CreateWebhookError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.

Source§

fn delete_project<'life0, 'async_trait>( &'life0 self, input: DeleteProjectInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteProjectOutput, RusotoError<DeleteProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a build project. When you delete a project, its builds are not deleted.

Source§

fn delete_report<'life0, 'async_trait>( &'life0 self, input: DeleteReportInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteReportOutput, RusotoError<DeleteReportError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a report.

Source§

fn delete_report_group<'life0, 'async_trait>( &'life0 self, input: DeleteReportGroupInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteReportGroupOutput, RusotoError<DeleteReportGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

DeleteReportGroup: Deletes a report group. Before you delete a report group, you must delete its reports. Use ListReportsForReportGroup to get the reports in a report group. Use DeleteReport to delete the reports. If you call DeleteReportGroup for a report group that contains one or more reports, an exception is thrown.

Source§

fn delete_resource_policy<'life0, 'async_trait>( &'life0 self, input: DeleteResourcePolicyInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteResourcePolicyOutput, RusotoError<DeleteResourcePolicyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a resource policy that is identified by its resource ARN.

Source§

fn delete_source_credentials<'life0, 'async_trait>( &'life0 self, input: DeleteSourceCredentialsInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteSourceCredentialsOutput, RusotoError<DeleteSourceCredentialsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.

Source§

fn delete_webhook<'life0, 'async_trait>( &'life0 self, input: DeleteWebhookInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteWebhookOutput, RusotoError<DeleteWebhookError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding the source code every time a code change is pushed to the repository.

Source§

fn describe_test_cases<'life0, 'async_trait>( &'life0 self, input: DescribeTestCasesInput, ) -> Pin<Box<dyn Future<Output = Result<DescribeTestCasesOutput, RusotoError<DescribeTestCasesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of details about test cases for a report.

Source§

fn get_resource_policy<'life0, 'async_trait>( &'life0 self, input: GetResourcePolicyInput, ) -> Pin<Box<dyn Future<Output = Result<GetResourcePolicyOutput, RusotoError<GetResourcePolicyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a resource policy that is identified by its resource ARN.

Source§

fn import_source_credentials<'life0, 'async_trait>( &'life0 self, input: ImportSourceCredentialsInput, ) -> Pin<Box<dyn Future<Output = Result<ImportSourceCredentialsOutput, RusotoError<ImportSourceCredentialsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Imports the source repository credentials for an AWS CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

Source§

fn invalidate_project_cache<'life0, 'async_trait>( &'life0 self, input: InvalidateProjectCacheInput, ) -> Pin<Box<dyn Future<Output = Result<InvalidateProjectCacheOutput, RusotoError<InvalidateProjectCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resets the cache for a project.

Source§

fn list_builds<'life0, 'async_trait>( &'life0 self, input: ListBuildsInput, ) -> Pin<Box<dyn Future<Output = Result<ListBuildsOutput, RusotoError<ListBuildsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of build IDs, with each build ID representing a single build.

Source§

fn list_builds_for_project<'life0, 'async_trait>( &'life0 self, input: ListBuildsForProjectInput, ) -> Pin<Box<dyn Future<Output = Result<ListBuildsForProjectOutput, RusotoError<ListBuildsForProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of build IDs for the specified build project, with each build ID representing a single build.

Source§

fn list_curated_environment_images<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ListCuratedEnvironmentImagesOutput, RusotoError<ListCuratedEnvironmentImagesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about Docker images that are managed by AWS CodeBuild.

Source§

fn list_projects<'life0, 'async_trait>( &'life0 self, input: ListProjectsInput, ) -> Pin<Box<dyn Future<Output = Result<ListProjectsOutput, RusotoError<ListProjectsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of build project names, with each build project name representing a single build project.

Source§

fn list_report_groups<'life0, 'async_trait>( &'life0 self, input: ListReportGroupsInput, ) -> Pin<Box<dyn Future<Output = Result<ListReportGroupsOutput, RusotoError<ListReportGroupsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list ARNs for the report groups in the current AWS account.

Source§

fn list_reports<'life0, 'async_trait>( &'life0 self, input: ListReportsInput, ) -> Pin<Box<dyn Future<Output = Result<ListReportsOutput, RusotoError<ListReportsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of ARNs for the reports in the current AWS account.

Source§

fn list_reports_for_report_group<'life0, 'async_trait>( &'life0 self, input: ListReportsForReportGroupInput, ) -> Pin<Box<dyn Future<Output = Result<ListReportsForReportGroupOutput, RusotoError<ListReportsForReportGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of ARNs for the reports that belong to a ReportGroup.

Source§

fn list_shared_projects<'life0, 'async_trait>( &'life0 self, input: ListSharedProjectsInput, ) -> Pin<Box<dyn Future<Output = Result<ListSharedProjectsOutput, RusotoError<ListSharedProjectsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of projects that are shared with other AWS accounts or users.

Source§

fn list_shared_report_groups<'life0, 'async_trait>( &'life0 self, input: ListSharedReportGroupsInput, ) -> Pin<Box<dyn Future<Output = Result<ListSharedReportGroupsOutput, RusotoError<ListSharedReportGroupsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of report groups that are shared with other AWS accounts or users.

Source§

fn list_source_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ListSourceCredentialsOutput, RusotoError<ListSourceCredentialsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of SourceCredentialsInfo objects.

Source§

fn put_resource_policy<'life0, 'async_trait>( &'life0 self, input: PutResourcePolicyInput, ) -> Pin<Box<dyn Future<Output = Result<PutResourcePolicyOutput, RusotoError<PutResourcePolicyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores a resource policy for the ARN of a Project or ReportGroup object.

Source§

fn start_build<'life0, 'async_trait>( &'life0 self, input: StartBuildInput, ) -> Pin<Box<dyn Future<Output = Result<StartBuildOutput, RusotoError<StartBuildError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts running a build.

Source§

fn stop_build<'life0, 'async_trait>( &'life0 self, input: StopBuildInput, ) -> Pin<Box<dyn Future<Output = Result<StopBuildOutput, RusotoError<StopBuildError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Attempts to stop running a build.

Source§

fn update_project<'life0, 'async_trait>( &'life0 self, input: UpdateProjectInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateProjectOutput, RusotoError<UpdateProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Changes the settings of a build project.

Source§

fn update_report_group<'life0, 'async_trait>( &'life0 self, input: UpdateReportGroupInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateReportGroupOutput, RusotoError<UpdateReportGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a report group.

Source§

fn update_webhook<'life0, 'async_trait>( &'life0 self, input: UpdateWebhookInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateWebhookOutput, RusotoError<UpdateWebhookError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the webhook associated with an AWS CodeBuild build project.

If you use Bitbucket for your repository, rotateSecret is ignored.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more