Struct aws_sdk_codedeploy::model::AppSpecContent
source · #[non_exhaustive]pub struct AppSpecContent { /* private fields */ }
Expand description
A revision for an Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For Lambda and Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated RawString
data type.
Implementations§
source§impl AppSpecContent
impl AppSpecContent
sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
The YAML-formatted or JSON-formatted revision string.
For an 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.
source§impl AppSpecContent
impl AppSpecContent
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AppSpecContent
.
Trait Implementations§
source§impl Clone for AppSpecContent
impl Clone for AppSpecContent
source§fn clone(&self) -> AppSpecContent
fn clone(&self) -> AppSpecContent
1.0.0 · 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 PartialEq<AppSpecContent> for AppSpecContent
impl PartialEq<AppSpecContent> 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 ==
.