pub struct CodeBuildState {
pub projects: HashMap<String, Project>,
pub builds: HashMap<String, Build>,
pub build_ids: Vec<String>,
pub build_counters: HashMap<String, i64>,
pub webhooks: HashMap<String, Webhook>,
pub source_credentials: HashMap<String, SourceCredential>,
pub resource_policies: HashMap<String, String>,
pub report_groups: HashMap<String, ReportGroup>,
pub report_group_arns: Vec<String>,
}Fields§
§projects: HashMap<String, Project>§builds: HashMap<String, Build>Builds keyed by build ID.
build_ids: Vec<String>Ordered list of build IDs (maintains insertion order).
build_counters: HashMap<String, i64>Next build number per project.
webhooks: HashMap<String, Webhook>Webhooks keyed by project name.
source_credentials: HashMap<String, SourceCredential>Source credentials keyed by ARN.
resource_policies: HashMap<String, String>Resource policies keyed by resource ARN.
report_groups: HashMap<String, ReportGroup>Report groups keyed by ARN.
report_group_arns: Vec<String>Ordered list of report group ARNs (maintains insertion order).
Implementations§
Source§impl CodeBuildState
impl CodeBuildState
pub fn create_project( &mut self, name: &str, description: &str, source_type: &str, source_location: &str, artifact_type: &str, artifact_location: Option<&str>, env_type: &str, env_image: &str, env_compute: &str, service_role: &str, tags: Vec<Tag>, account_id: &str, region: &str, ) -> Result<&Project, CodeBuildError>
pub fn batch_get_projects(&self, names: &[String]) -> Vec<&Project>
pub fn delete_project(&mut self, name: &str) -> Result<(), CodeBuildError>
pub fn list_projects(&self) -> Vec<&str>
pub fn start_build( &mut self, project_name: &str, source_version: Option<&str>, account_id: &str, region: &str, ) -> Result<&Build, CodeBuildError>
pub fn stop_build(&mut self, build_id: &str) -> Result<&Build, CodeBuildError>
pub fn batch_get_builds( &self, build_ids: &[String], ) -> Result<Vec<Build>, CodeBuildError>
pub fn list_builds(&self) -> Vec<&str>
pub fn list_builds_for_project(&self, project_name: &str) -> Vec<&str>
pub fn batch_delete_builds(&mut self, ids: &[String]) -> Vec<String>
pub fn update_project( &mut self, name: &str, description: Option<&str>, source_type: Option<&str>, source_location: Option<&str>, artifact_type: Option<&str>, artifact_location: Option<Option<&str>>, env_type: Option<&str>, env_image: Option<&str>, env_compute: Option<&str>, service_role: Option<&str>, tags: Option<Vec<Tag>>, account_id: &str, ) -> Result<&Project, CodeBuildError>
pub fn retry_build( &mut self, build_id: &str, account_id: &str, region: &str, ) -> Result<&Build, CodeBuildError>
pub fn create_webhook( &mut self, project_name: &str, branch_filter: Option<&str>, build_type: Option<&str>, account_id: &str, region: &str, ) -> Result<&Webhook, CodeBuildError>
pub fn update_webhook( &mut self, project_name: &str, branch_filter: Option<&str>, build_type: Option<&str>, ) -> Result<&Webhook, CodeBuildError>
pub fn delete_webhook( &mut self, project_name: &str, ) -> Result<(), CodeBuildError>
pub fn import_source_credentials( &mut self, token: &str, server_type: &str, auth_type: &str, username: Option<&str>, account_id: &str, region: &str, ) -> Result<&SourceCredential, CodeBuildError>
pub fn list_source_credentials(&self) -> Vec<&SourceCredential>
pub fn delete_source_credentials( &mut self, arn: &str, ) -> Result<(), CodeBuildError>
pub fn put_resource_policy( &mut self, resource_arn: &str, policy: &str, ) -> Result<String, CodeBuildError>
pub fn get_resource_policy( &self, resource_arn: &str, ) -> Result<String, CodeBuildError>
pub fn delete_resource_policy( &mut self, resource_arn: &str, ) -> Result<(), CodeBuildError>
pub fn create_report_group( &mut self, name: &str, report_type: &str, export_config_type: Option<&str>, tags: Vec<Tag>, account_id: &str, region: &str, ) -> Result<&ReportGroup, CodeBuildError>
pub fn batch_get_report_groups(&self, arns: &[String]) -> Vec<&ReportGroup>
pub fn list_report_groups(&self) -> Vec<&str>
pub fn delete_report_group(&mut self, arn: &str) -> Result<(), CodeBuildError>
pub fn update_report_group( &mut self, arn: &str, export_config_type: Option<&str>, tags: Option<Vec<Tag>>, ) -> Result<&ReportGroup, CodeBuildError>
Trait Implementations§
Source§impl Debug for CodeBuildState
impl Debug for CodeBuildState
Source§impl Default for CodeBuildState
impl Default for CodeBuildState
Source§fn default() -> CodeBuildState
fn default() -> CodeBuildState
Returns the “default value” for a type. Read more
Source§impl From<&CodeBuildState> for CodeBuildStateView
impl From<&CodeBuildState> for CodeBuildStateView
Source§fn from(s: &CodeBuildState) -> Self
fn from(s: &CodeBuildState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeBuildState
impl RefUnwindSafe for CodeBuildState
impl Send for CodeBuildState
impl Sync for CodeBuildState
impl Unpin for CodeBuildState
impl UnsafeUnpin for CodeBuildState
impl UnwindSafe for CodeBuildState
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.