pub struct ConfigurationProfileBuilder { /* private fields */ }Expand description
Builder for AWS AppConfig configuration profiles.
§Example
use rusty_cdk_core::stack::StackBuilder;
use rusty_cdk_core::appconfig::{ApplicationBuilder, ConfigurationProfileBuilder};
use rusty_cdk_core::wrappers::*;
use rusty_cdk_macros::{app_config_name, location_uri};
let mut stack_builder = StackBuilder::new();
let app = unimplemented!("create an application");
let location_uri = location_uri!("hosted");
let profile = ConfigurationProfileBuilder::new(
"my-profile",
app_config_name!("MyProfile"),
&app,
location_uri,
)
.build(&mut stack_builder);Implementations§
Source§impl ConfigurationProfileBuilder
impl ConfigurationProfileBuilder
Sourcepub fn new(
id: &str,
name: AppConfigName,
application: &ApplicationRef,
location_uri: LocationUri,
) -> Self
pub fn new( id: &str, name: AppConfigName, application: &ApplicationRef, location_uri: LocationUri, ) -> Self
Creates a new AppConfig configuration profile builder.
§Arguments
id- Unique identifier for the configuration profilename- Name of the configuration profileapplication- Reference to the parent AppConfig applicationlocation_uri- Location where the configuration is stored
pub fn deletion_protection_check( self, deletion_protection_check: DeletionProtectionCheck, ) -> Self
pub fn config_type(self, config_type: ConfigType) -> Self
pub fn add_validator(self, validator: Validator) -> Self
pub fn build(self, stack_builder: &mut StackBuilder) -> ConfigurationProfileRef
Auto Trait Implementations§
impl Freeze for ConfigurationProfileBuilder
impl RefUnwindSafe for ConfigurationProfileBuilder
impl Send for ConfigurationProfileBuilder
impl Sync for ConfigurationProfileBuilder
impl Unpin for ConfigurationProfileBuilder
impl UnwindSafe for ConfigurationProfileBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more