pub struct AppSpecContent {
pub content: Option<String>,
pub sha_256: Option<String>,
}Expand description
A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated RawString data type.
Fields§
§content: Option<String>The YAML-formatted or JSON-formatted revision string.
For an AWS Lambda deployment, the content includes a Lambda function name, the alias for its original version, and the alias for its replacement version. The deployment shifts traffic from the original version of the Lambda function to the replacement version.
For an Amazon ECS deployment, the content includes the task name, information about the load balancer that serves traffic to the container, and more.
For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as BeforeInstall, during a deployment.
sha_256: Option<String>The SHA256 hash value of the revision content.
Trait Implementations§
Source§impl Clone for AppSpecContent
impl Clone for AppSpecContent
Source§fn clone(&self) -> AppSpecContent
fn clone(&self) -> AppSpecContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppSpecContent
impl Debug for AppSpecContent
Source§impl Default for AppSpecContent
impl Default for AppSpecContent
Source§fn default() -> AppSpecContent
fn default() -> AppSpecContent
Source§impl<'de> Deserialize<'de> for AppSpecContent
impl<'de> Deserialize<'de> for AppSpecContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AppSpecContent
impl PartialEq for AppSpecContent
Source§fn eq(&self, other: &AppSpecContent) -> bool
fn eq(&self, other: &AppSpecContent) -> bool
self and other values to be equal, and is used by ==.