/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a set of Amazon ECS tasks in an CodeDeploy deployment. An
* Amazon ECS task set includes details such as the desired number of tasks, how
* many tasks are running, and whether the task set serves production traffic. An
* CodeDeploy application that uses the Amazon ECS compute platform deploys a
* containerized application in an Amazon ECS service as a task set. See
* Also:
AWS
* API Reference
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
A unique ID of an ECSTaskSet
.
The number of tasks in a task set. During a deployment that uses the Amazon * ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and * uses this value to determine how many tasks to create. After the updated task * set is created, CodeDeploy shifts traffic to the new task set.
*/ inline long long GetDesiredCount() const{ return m_desiredCount; } /** *The number of tasks in a task set. During a deployment that uses the Amazon * ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and * uses this value to determine how many tasks to create. After the updated task * set is created, CodeDeploy shifts traffic to the new task set.
*/ inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; } /** *The number of tasks in a task set. During a deployment that uses the Amazon * ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and * uses this value to determine how many tasks to create. After the updated task * set is created, CodeDeploy shifts traffic to the new task set.
*/ inline void SetDesiredCount(long long value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; } /** *The number of tasks in a task set. During a deployment that uses the Amazon * ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and * uses this value to determine how many tasks to create. After the updated task * set is created, CodeDeploy shifts traffic to the new task set.
*/ inline ECSTaskSet& WithDesiredCount(long long value) { SetDesiredCount(value); return *this;} /** * The number of tasks in the task set that are in the PENDING
* status during an Amazon ECS deployment. A task in the PENDING
state
* is preparing to enter the RUNNING
state. A task set enters the
* PENDING
status when it launches for the first time, or when it is
* restarted after being in the STOPPED
state.
The number of tasks in the task set that are in the PENDING
* status during an Amazon ECS deployment. A task in the PENDING
state
* is preparing to enter the RUNNING
state. A task set enters the
* PENDING
status when it launches for the first time, or when it is
* restarted after being in the STOPPED
state.
The number of tasks in the task set that are in the PENDING
* status during an Amazon ECS deployment. A task in the PENDING
state
* is preparing to enter the RUNNING
state. A task set enters the
* PENDING
status when it launches for the first time, or when it is
* restarted after being in the STOPPED
state.
The number of tasks in the task set that are in the PENDING
* status during an Amazon ECS deployment. A task in the PENDING
state
* is preparing to enter the RUNNING
state. A task set enters the
* PENDING
status when it launches for the first time, or when it is
* restarted after being in the STOPPED
state.
The number of tasks in the task set that are in the RUNNING
* status during an Amazon ECS deployment. A task in the RUNNING
state
* is running and ready for use.
The number of tasks in the task set that are in the RUNNING
* status during an Amazon ECS deployment. A task in the RUNNING
state
* is running and ready for use.
The number of tasks in the task set that are in the RUNNING
* status during an Amazon ECS deployment. A task in the RUNNING
state
* is running and ready for use.
The number of tasks in the task set that are in the RUNNING
* status during an Amazon ECS deployment. A task in the RUNNING
state
* is running and ready for use.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The status of the task set. There are three valid task set statuses:
* PRIMARY
: Indicates the task set is serving production
* traffic.
ACTIVE
: Indicates the task set is not
* serving production traffic.
DRAINING
: Indicates
* the tasks in the task set are being stopped and their corresponding targets are
* being deregistered from their target group.
The percentage of traffic served by this task set.
*/ inline double GetTrafficWeight() const{ return m_trafficWeight; } /** *The percentage of traffic served by this task set.
*/ inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; } /** *The percentage of traffic served by this task set.
*/ inline void SetTrafficWeight(double value) { m_trafficWeightHasBeenSet = true; m_trafficWeight = value; } /** *The percentage of traffic served by this task set.
*/ inline ECSTaskSet& WithTrafficWeight(double value) { SetTrafficWeight(value); return *this;} /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline const TargetGroupInfo& GetTargetGroup() const{ return m_targetGroup; } /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; } /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline void SetTargetGroup(const TargetGroupInfo& value) { m_targetGroupHasBeenSet = true; m_targetGroup = value; } /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline void SetTargetGroup(TargetGroupInfo&& value) { m_targetGroupHasBeenSet = true; m_targetGroup = std::move(value); } /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline ECSTaskSet& WithTargetGroup(const TargetGroupInfo& value) { SetTargetGroup(value); return *this;} /** *The target group associated with the task set. The target group is used by * CodeDeploy to manage traffic to a task set.
*/ inline ECSTaskSet& WithTargetGroup(TargetGroupInfo&& value) { SetTargetGroup(std::move(value)); return *this;} /** * A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).
A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).
A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).
A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).
A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).
A label that identifies whether the ECS task set is an original target
* (BLUE
) or a replacement target (GREEN
).