Struct aws_sdk_ecs::model::deployment_alarms::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DeploymentAlarms.
Implementations§
source§impl Builder
impl Builder
sourcepub fn alarm_names(self, input: impl Into<String>) -> Self
pub fn alarm_names(self, input: impl Into<String>) -> Self
Appends an item to alarm_names.
To override the contents of this collection use set_alarm_names.
One or more CloudWatch alarm names. Use a "," to separate the alarms.
sourcepub fn set_alarm_names(self, input: Option<Vec<String>>) -> Self
pub fn set_alarm_names(self, input: Option<Vec<String>>) -> Self
One or more CloudWatch alarm names. Use a "," to separate the alarms.
sourcepub fn enable(self, input: bool) -> Self
pub fn enable(self, input: bool) -> Self
Determines whether to use the CloudWatch alarm option in the service deployment process.
sourcepub fn set_enable(self, input: Option<bool>) -> Self
pub fn set_enable(self, input: Option<bool>) -> Self
Determines whether to use the CloudWatch alarm option in the service deployment process.
sourcepub fn rollback(self, input: bool) -> Self
pub fn rollback(self, input: bool) -> Self
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
sourcepub fn set_rollback(self, input: Option<bool>) -> Self
pub fn set_rollback(self, input: Option<bool>) -> Self
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
sourcepub fn build(self) -> DeploymentAlarms
pub fn build(self) -> DeploymentAlarms
Consumes the builder and constructs a DeploymentAlarms.