Struct aws_sdk_codedeploy::types::builders::AppSpecContentBuilder
source · #[non_exhaustive]pub struct AppSpecContentBuilder { /* private fields */ }
Expand description
A builder for AppSpecContent
.
Implementations§
source§impl AppSpecContentBuilder
impl AppSpecContentBuilder
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
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.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
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.
sourcepub fn sha256(self, input: impl Into<String>) -> Self
pub fn sha256(self, input: impl Into<String>) -> Self
The SHA256 hash value of the revision content.
sourcepub fn set_sha256(self, input: Option<String>) -> Self
pub fn set_sha256(self, input: Option<String>) -> Self
The SHA256 hash value of the revision content.
sourcepub fn get_sha256(&self) -> &Option<String>
pub fn get_sha256(&self) -> &Option<String>
The SHA256 hash value of the revision content.
sourcepub fn build(self) -> AppSpecContent
pub fn build(self) -> AppSpecContent
Consumes the builder and constructs a AppSpecContent
.
Trait Implementations§
source§impl Clone for AppSpecContentBuilder
impl Clone for AppSpecContentBuilder
source§fn clone(&self) -> AppSpecContentBuilder
fn clone(&self) -> AppSpecContentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppSpecContentBuilder
impl Debug for AppSpecContentBuilder
source§impl Default for AppSpecContentBuilder
impl Default for AppSpecContentBuilder
source§fn default() -> AppSpecContentBuilder
fn default() -> AppSpecContentBuilder
source§impl PartialEq for AppSpecContentBuilder
impl PartialEq for AppSpecContentBuilder
source§fn eq(&self, other: &AppSpecContentBuilder) -> bool
fn eq(&self, other: &AppSpecContentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.