Struct aws_sdk_ecs::types::builders::DeploymentControllerBuilder
source · #[non_exhaustive]pub struct DeploymentControllerBuilder { /* private fields */ }Expand description
A builder for DeploymentController.
Implementations§
source§impl DeploymentControllerBuilder
impl DeploymentControllerBuilder
sourcepub fn type(self, input: DeploymentControllerType) -> Self
pub fn type(self, input: DeploymentControllerType) -> Self
The deployment controller type to use.
There are three deployment controller types available:
- ECS
-
The rolling update (
ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration. - CODE_DEPLOY
-
The blue/green (
CODE_DEPLOY) deployment type uses the blue/green deployment model powered by CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it. - EXTERNAL
-
The external (
EXTERNAL) deployment type enables you to use any third-party deployment controller for full control over the deployment process for an Amazon ECS service.
sourcepub fn set_type(self, input: Option<DeploymentControllerType>) -> Self
pub fn set_type(self, input: Option<DeploymentControllerType>) -> Self
The deployment controller type to use.
There are three deployment controller types available:
- ECS
-
The rolling update (
ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration. - CODE_DEPLOY
-
The blue/green (
CODE_DEPLOY) deployment type uses the blue/green deployment model powered by CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it. - EXTERNAL
-
The external (
EXTERNAL) deployment type enables you to use any third-party deployment controller for full control over the deployment process for an Amazon ECS service.
sourcepub fn get_type(&self) -> &Option<DeploymentControllerType>
pub fn get_type(&self) -> &Option<DeploymentControllerType>
The deployment controller type to use.
There are three deployment controller types available:
- ECS
-
The rolling update (
ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration. - CODE_DEPLOY
-
The blue/green (
CODE_DEPLOY) deployment type uses the blue/green deployment model powered by CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it. - EXTERNAL
-
The external (
EXTERNAL) deployment type enables you to use any third-party deployment controller for full control over the deployment process for an Amazon ECS service.
sourcepub fn build(self) -> Result<DeploymentController, BuildError>
pub fn build(self) -> Result<DeploymentController, BuildError>
Consumes the builder and constructs a DeploymentController.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeploymentControllerBuilder
impl Clone for DeploymentControllerBuilder
source§fn clone(&self) -> DeploymentControllerBuilder
fn clone(&self) -> DeploymentControllerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeploymentControllerBuilder
impl Debug for DeploymentControllerBuilder
source§impl Default for DeploymentControllerBuilder
impl Default for DeploymentControllerBuilder
source§fn default() -> DeploymentControllerBuilder
fn default() -> DeploymentControllerBuilder
impl StructuralPartialEq for DeploymentControllerBuilder
Auto Trait Implementations§
impl Freeze for DeploymentControllerBuilder
impl RefUnwindSafe for DeploymentControllerBuilder
impl Send for DeploymentControllerBuilder
impl Sync for DeploymentControllerBuilder
impl Unpin for DeploymentControllerBuilder
impl UnwindSafe for DeploymentControllerBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more