Struct cfn::Template
[−]
[src]
pub struct Template { /* fields omitted */ }
Represents an AWS CloudFormation template.
Methods
impl Template
[src]
pub fn description(&self) -> &Option<String>
[src]
Get the template description as a reference.
pub fn description_mut(&mut self) -> &mut Option<String>
[src]
Get the template description as a mutable reference.
pub fn resources(&self) -> &Resources
[src]
Get a reference to the resources defined in the template.
pub fn resources_mut(&mut self) -> &mut Resources
[src]
Get a mutable reference to the resources defined in the template.
pub fn outputs(&self) -> &Outputs
[src]
Get a reference to the outputs defined in the template.
pub fn outputs_mut(&mut self) -> &mut Outputs
[src]
Get a mutable reference to the outputs defined in the template.
impl Template
[src]
pub fn from_json<T: AsRef<str>>(input: T) -> Result<Template, Error>
[src]
Deserialize a AWS CloudFormation template in JSON format.
pub fn to_json(&self) -> Result<String, Error>
[src]
Serialize the template into an AWS CloudFormation template in JSON format.
Trait Implementations
impl Debug for Template
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more