/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

The deployment controller to use for the service. For more information, see * Amazon * ECS deployment types in the Amazon Elastic Container Service Developer * Guide.

See Also:

AWS * API Reference

*/ class DeploymentController { public: AWS_ECS_API DeploymentController(); AWS_ECS_API DeploymentController(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API DeploymentController& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const DeploymentControllerType& GetType() const{ return m_type; } /** *

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.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

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.

*/ inline void SetType(const DeploymentControllerType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

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.

*/ inline void SetType(DeploymentControllerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

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.

*/ inline DeploymentController& WithType(const DeploymentControllerType& value) { SetType(value); return *this;} /** *

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.

*/ inline DeploymentController& WithType(DeploymentControllerType&& value) { SetType(std::move(value)); return *this;} private: DeploymentControllerType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws