pub struct Template<'a> { /* private fields */ }Implementations§
Source§impl Template<'_>
impl Template<'_>
pub fn new() -> Self
pub fn build(action: fn(&mut Self)) -> Self
pub fn resource<R: ToResource>( &mut self, logical_resource_name: impl Into<LogicalResourceName>, resource: R, ) -> LogicalResourceName
pub fn parameter( &mut self, parameter_key: impl Into<ParameterKey>, parameter: Parameter, ) -> ParameterKey
pub fn parameter_( self, parameter_key: impl Into<ParameterKey>, parameter: Parameter, ) -> Self
pub fn condition( &mut self, condition_name: impl Into<ConditionName>, expression: ExpBool, ) -> ConditionName
pub fn condition_( self, condition_name: impl Into<ConditionName>, expression: ExpBool, ) -> Self
pub fn conditional_resource<R: ToResource>( &mut self, logical_resource_name: impl Into<LogicalResourceName>, condition_name: impl Into<ConditionName>, resource: R, ) -> LogicalResourceName
pub fn conditional_resource_<R: ToResource>( self, logical_resource_name: impl Into<LogicalResourceName>, condition_name: impl Into<ConditionName>, resource: R, ) -> Self
pub fn mapping( &mut self, map_name: impl Into<MapName>, mapping: Mapping, ) -> MapName
pub fn mapping_(self, map_name: impl Into<MapName>, mapping: Mapping) -> Self
pub fn output( &mut self, output_key: impl Into<OutputKey>, output: Output, ) -> OutputKey
pub fn output_(self, output_key: impl Into<OutputKey>, output: Output) -> Self
pub fn output_export( &mut self, output_key: impl Into<OutputKey>, description: &str, value: impl Into<ExpString>, ) -> OutputKey
pub fn resource_<R: ToResource>( self, logical_resource_name: impl Into<LogicalResourceName>, resource: R, ) -> Self
pub fn render_json_pretty(&self) -> String
pub fn render_json(&self) -> String
pub fn parameter_keys(&self) -> BTreeSet<ParameterKey>
Trait Implementations§
impl<'a> StructuralPartialEq for Template<'a>
Auto Trait Implementations§
impl<'a> Freeze for Template<'a>
impl<'a> RefUnwindSafe for Template<'a>
impl<'a> Send for Template<'a>
impl<'a> Sync for Template<'a>
impl<'a> Unpin for Template<'a>
impl<'a> UnsafeUnpin for Template<'a>
impl<'a> UnwindSafe for Template<'a>
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