Struct aws_sdk_apprunner::types::builders::CodeConfigurationBuilder
source · #[non_exhaustive]pub struct CodeConfigurationBuilder { /* private fields */ }Expand description
A builder for CodeConfiguration.
Implementations§
source§impl CodeConfigurationBuilder
impl CodeConfigurationBuilder
sourcepub fn configuration_source(self, input: ConfigurationSource) -> Self
pub fn configuration_source(self, input: ConfigurationSource) -> Self
The source of the App Runner configuration. Values are interpreted as follows:
-
REPOSITORY– App Runner reads configuration values from theapprunner.yamlfile in the source code repository and ignoresCodeConfigurationValues. -
API– App Runner uses configuration values provided inCodeConfigurationValuesand ignores theapprunner.yamlfile in the source code repository.
sourcepub fn set_configuration_source(
self,
input: Option<ConfigurationSource>
) -> Self
pub fn set_configuration_source( self, input: Option<ConfigurationSource> ) -> Self
The source of the App Runner configuration. Values are interpreted as follows:
-
REPOSITORY– App Runner reads configuration values from theapprunner.yamlfile in the source code repository and ignoresCodeConfigurationValues. -
API– App Runner uses configuration values provided inCodeConfigurationValuesand ignores theapprunner.yamlfile in the source code repository.
sourcepub fn get_configuration_source(&self) -> &Option<ConfigurationSource>
pub fn get_configuration_source(&self) -> &Option<ConfigurationSource>
The source of the App Runner configuration. Values are interpreted as follows:
-
REPOSITORY– App Runner reads configuration values from theapprunner.yamlfile in the source code repository and ignoresCodeConfigurationValues. -
API– App Runner uses configuration values provided inCodeConfigurationValuesand ignores theapprunner.yamlfile in the source code repository.
sourcepub fn code_configuration_values(self, input: CodeConfigurationValues) -> Self
pub fn code_configuration_values(self, input: CodeConfigurationValues) -> Self
The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).
sourcepub fn set_code_configuration_values(
self,
input: Option<CodeConfigurationValues>
) -> Self
pub fn set_code_configuration_values( self, input: Option<CodeConfigurationValues> ) -> Self
The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).
sourcepub fn get_code_configuration_values(&self) -> &Option<CodeConfigurationValues>
pub fn get_code_configuration_values(&self) -> &Option<CodeConfigurationValues>
The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).
sourcepub fn build(self) -> Result<CodeConfiguration, BuildError>
pub fn build(self) -> Result<CodeConfiguration, BuildError>
Consumes the builder and constructs a CodeConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodeConfigurationBuilder
impl Clone for CodeConfigurationBuilder
source§fn clone(&self) -> CodeConfigurationBuilder
fn clone(&self) -> CodeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CodeConfigurationBuilder
impl Debug for CodeConfigurationBuilder
source§impl Default for CodeConfigurationBuilder
impl Default for CodeConfigurationBuilder
source§fn default() -> CodeConfigurationBuilder
fn default() -> CodeConfigurationBuilder
source§impl PartialEq for CodeConfigurationBuilder
impl PartialEq for CodeConfigurationBuilder
source§fn eq(&self, other: &CodeConfigurationBuilder) -> bool
fn eq(&self, other: &CodeConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CodeConfigurationBuilder
impl RefUnwindSafe for CodeConfigurationBuilder
impl Send for CodeConfigurationBuilder
impl Sync for CodeConfigurationBuilder
impl Unpin for CodeConfigurationBuilder
impl UnwindSafe for CodeConfigurationBuilder
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