Skip to main content

CodeBuildState

Struct CodeBuildState 

Source
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

Source

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>

Source

pub fn batch_get_projects(&self, names: &[String]) -> Vec<&Project>

Source

pub fn delete_project(&mut self, name: &str) -> Result<(), CodeBuildError>

Source

pub fn list_projects(&self) -> Vec<&str>

Source

pub fn start_build( &mut self, project_name: &str, source_version: Option<&str>, account_id: &str, region: &str, ) -> Result<&Build, CodeBuildError>

Source

pub fn stop_build(&mut self, build_id: &str) -> Result<&Build, CodeBuildError>

Source

pub fn batch_get_builds( &self, build_ids: &[String], ) -> Result<Vec<Build>, CodeBuildError>

Source

pub fn list_builds(&self) -> Vec<&str>

Source

pub fn list_builds_for_project(&self, project_name: &str) -> Vec<&str>

Source

pub fn batch_delete_builds(&mut self, ids: &[String]) -> Vec<String>

Source

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>

Source

pub fn retry_build( &mut self, build_id: &str, account_id: &str, region: &str, ) -> Result<&Build, CodeBuildError>

Source

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>

Source

pub fn update_webhook( &mut self, project_name: &str, branch_filter: Option<&str>, build_type: Option<&str>, ) -> Result<&Webhook, CodeBuildError>

Source

pub fn delete_webhook( &mut self, project_name: &str, ) -> Result<(), CodeBuildError>

Source

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>

Source

pub fn list_source_credentials(&self) -> Vec<&SourceCredential>

Source

pub fn delete_source_credentials( &mut self, arn: &str, ) -> Result<(), CodeBuildError>

Source

pub fn put_resource_policy( &mut self, resource_arn: &str, policy: &str, ) -> Result<String, CodeBuildError>

Source

pub fn get_resource_policy( &self, resource_arn: &str, ) -> Result<String, CodeBuildError>

Source

pub fn delete_resource_policy( &mut self, resource_arn: &str, ) -> Result<(), CodeBuildError>

Source

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>

Source

pub fn batch_get_report_groups(&self, arns: &[String]) -> Vec<&ReportGroup>

Source

pub fn list_report_groups(&self) -> Vec<&str>

Source

pub fn delete_report_group(&mut self, arn: &str) -> Result<(), CodeBuildError>

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CodeBuildState

Source§

fn default() -> CodeBuildState

Returns the “default value” for a type. Read more
Source§

impl From<&CodeBuildState> for CodeBuildStateView

Source§

fn from(s: &CodeBuildState) -> Self

Converts to this type from the input type.

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> 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, 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> IntoEither for T

Source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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