Struct aws_sdk_codedeploy::model::AppSpecContent [−][src]
#[non_exhaustive]pub struct AppSpecContent {
pub content: Option<String>,
pub sha256: 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 (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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.
sha256: Option<String>
The SHA256 hash value of the revision content.
Implementations
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.
Creates a new builder-style object to manufacture AppSpecContent
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AppSpecContent
impl Send for AppSpecContent
impl Sync for AppSpecContent
impl Unpin for AppSpecContent
impl UnwindSafe for AppSpecContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more