pub struct Template<'a> { /* private fields */ }Implementations§
Source§impl Template<'_>
impl Template<'_>
pub fn new() -> Template<'_>
pub fn build(action: fn(&mut Template<'_>)) -> Template<'_>
pub fn resource<R>(
&mut self,
logical_resource_name: impl Into<LogicalResourceName>,
resource: R,
) -> LogicalResourceNamewhere
R: ToResource,
pub fn parameter( &mut self, parameter_key: impl Into<ParameterKey>, parameter: Parameter, ) -> ParameterKey
pub fn parameter_( self, parameter_key: impl Into<ParameterKey>, parameter: Parameter, ) -> Template<'_>
pub fn condition( &mut self, condition_name: impl Into<ConditionName>, expression: ExpBool, ) -> ConditionName
pub fn condition_( self, condition_name: impl Into<ConditionName>, expression: ExpBool, ) -> Template<'_>
pub fn conditional_resource<R>(
&mut self,
logical_resource_name: impl Into<LogicalResourceName>,
condition_name: impl Into<ConditionName>,
resource: R,
) -> LogicalResourceNamewhere
R: ToResource,
pub fn conditional_resource_<R>(
self,
logical_resource_name: impl Into<LogicalResourceName>,
condition_name: impl Into<ConditionName>,
resource: R,
) -> Template<'_>where
R: ToResource,
pub fn mapping( &mut self, map_name: impl Into<MapName>, mapping: BTreeMap<String, BTreeMap<String, Value>>, ) -> MapName
pub fn mapping_( self, map_name: impl Into<MapName>, mapping: BTreeMap<String, BTreeMap<String, Value>>, ) -> Template<'_>
pub fn output( &mut self, output_key: impl Into<OutputKey>, output: Output, ) -> OutputKey
pub fn output_( self, output_key: impl Into<OutputKey>, output: Output, ) -> Template<'_>
pub fn output_export( &mut self, output_key: impl Into<OutputKey>, description: &str, value: impl Into<ExpString>, ) -> OutputKey
pub fn resource_<R>(
self,
logical_resource_name: impl Into<LogicalResourceName>,
resource: R,
) -> Template<'_>where
R: ToResource,
pub fn render_json_pretty(&self) -> String
pub fn render_json(&self) -> String
pub fn parameter_keys(&self) -> BTreeSet<ParameterKey>
Trait Implementations§
Source§impl<'a> Serialize for Template<'a>
impl<'a> Serialize for Template<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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