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,
) -> ConfigurationProfileBuilder
pub fn new( id: &str, name: AppConfigName, application: &ApplicationRef, location_uri: LocationUri, ) -> ConfigurationProfileBuilder
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, ) -> ConfigurationProfileBuilder
pub fn config_type(self, config_type: ConfigType) -> ConfigurationProfileBuilder
pub fn add_validator(self, validator: Validator) -> ConfigurationProfileBuilder
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§
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.