Enum cloudformatious::TemplateSource
source · pub enum TemplateSource {
Inline {
body: String,
},
S3 {
url: String,
},
}
Expand description
Source for a template body.
Templates can be specified for CloudFormation APIs in one of two ways:
- As a JSON string, inline with the request.
- As a URL to a template file on S3.
See the variant documentation for more information.
Variants§
Inline
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
For more information, go to Template Anatomy in the AWS CloudFormation User Guide.
S3
Location of file containing the template body.
The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more information, go to the Template Anatomy in the AWS CloudFormation User Guide.
Implementations§
Trait Implementations§
source§impl Clone for TemplateSource
impl Clone for TemplateSource
source§fn clone(&self) -> TemplateSource
fn clone(&self) -> TemplateSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TemplateSource
impl RefUnwindSafe for TemplateSource
impl Send for TemplateSource
impl Sync for TemplateSource
impl Unpin for TemplateSource
impl UnwindSafe for TemplateSource
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.