Enum cloudformatious::TemplateSource[][src]

pub enum TemplateSource {
    Inline {
        body: String,
    },
    S3 {
        url: String,
    },
}

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.

Show fields

Fields of Inline

body: String
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.

Show fields

Fields of S3

url: String

Implementations

impl TemplateSource[src]

#[must_use]
pub fn inline(body: impl Into<String>) -> Self
[src]

Construct an Inline template source for the given body.

#[must_use]
pub fn s3(url: impl Into<String>) -> Self
[src]

Construct an S3 template source for the given url.

Trait Implementations

impl Clone for TemplateSource[src]

impl Debug for TemplateSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.