@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServiceDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about a service within an ECS cluster.
Constructor and Description |
---|
AwsEcsServiceDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsServiceDetails |
clone() |
boolean |
equals(Object obj) |
List<AwsEcsServiceCapacityProviderStrategyDetails> |
getCapacityProviderStrategy()
The capacity provider strategy that the service uses.
|
String |
getCluster()
The ARN of the cluster that hosts the service.
|
AwsEcsServiceDeploymentConfigurationDetails |
getDeploymentConfiguration()
Deployment parameters for the service.
|
AwsEcsServiceDeploymentControllerDetails |
getDeploymentController()
Contains the deployment controller type that the service uses.
|
Integer |
getDesiredCount()
The number of instantiations of the task definition to run on the service.
|
Boolean |
getEnableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
Boolean |
getEnableExecuteCommand()
Whether the execute command functionality is enabled for the service.
|
Integer |
getHealthCheckGracePeriodSeconds()
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.
|
String |
getLaunchType()
The launch type that the service uses.
|
List<AwsEcsServiceLoadBalancersDetails> |
getLoadBalancers()
Information about the load balancers that the service uses.
|
String |
getName()
The name of the service.
|
AwsEcsServiceNetworkConfigurationDetails |
getNetworkConfiguration()
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
List<AwsEcsServicePlacementConstraintsDetails> |
getPlacementConstraints()
The placement constraints for the tasks in the service.
|
List<AwsEcsServicePlacementStrategiesDetails> |
getPlacementStrategies()
Information about how tasks for the service are placed.
|
String |
getPlatformVersion()
The platform version on which to run the service.
|
String |
getPropagateTags()
Indicates whether to propagate the tags from the task definition to the task or from the service to the task.
|
String |
getRole()
The ARN of the IAM role that is associated with the service.
|
String |
getSchedulingStrategy()
The scheduling strategy to use for the service.
|
String |
getServiceArn()
The ARN of the service.
|
String |
getServiceName()
The name of the service.
|
List<AwsEcsServiceServiceRegistriesDetails> |
getServiceRegistries()
Information about the service discovery registries to assign to the service.
|
String |
getTaskDefinition()
The task definition to use for tasks in the service.
|
int |
hashCode() |
Boolean |
isEnableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
Boolean |
isEnableExecuteCommand()
Whether the execute command functionality is enabled for the service.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCapacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
void |
setCluster(String cluster)
The ARN of the cluster that hosts the service.
|
void |
setDeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration)
Deployment parameters for the service.
|
void |
setDeploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
|
void |
setDesiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
|
void |
setEnableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
void |
setEnableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
|
void |
setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.
|
void |
setLaunchType(String launchType)
The launch type that the service uses.
|
void |
setLoadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
|
void |
setName(String name)
The name of the service.
|
void |
setNetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
void |
setPlacementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
|
void |
setPlacementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
|
void |
setPlatformVersion(String platformVersion)
The platform version on which to run the service.
|
void |
setPropagateTags(String propagateTags)
Indicates whether to propagate the tags from the task definition to the task or from the service to the task.
|
void |
setRole(String role)
The ARN of the IAM role that is associated with the service.
|
void |
setSchedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
|
void |
setServiceArn(String serviceArn)
The ARN of the service.
|
void |
setServiceName(String serviceName)
The name of the service.
|
void |
setServiceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
|
void |
setTaskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsServiceDetails |
withCapacityProviderStrategy(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
AwsEcsServiceDetails |
withCapacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
AwsEcsServiceDetails |
withCluster(String cluster)
The ARN of the cluster that hosts the service.
|
AwsEcsServiceDetails |
withDeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration)
Deployment parameters for the service.
|
AwsEcsServiceDetails |
withDeploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
|
AwsEcsServiceDetails |
withDesiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
|
AwsEcsServiceDetails |
withEnableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
AwsEcsServiceDetails |
withEnableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
|
AwsEcsServiceDetails |
withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.
|
AwsEcsServiceDetails |
withLaunchType(String launchType)
The launch type that the service uses.
|
AwsEcsServiceDetails |
withLoadBalancers(AwsEcsServiceLoadBalancersDetails... loadBalancers)
Information about the load balancers that the service uses.
|
AwsEcsServiceDetails |
withLoadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
|
AwsEcsServiceDetails |
withName(String name)
The name of the service.
|
AwsEcsServiceDetails |
withNetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
AwsEcsServiceDetails |
withPlacementConstraints(AwsEcsServicePlacementConstraintsDetails... placementConstraints)
The placement constraints for the tasks in the service.
|
AwsEcsServiceDetails |
withPlacementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
|
AwsEcsServiceDetails |
withPlacementStrategies(AwsEcsServicePlacementStrategiesDetails... placementStrategies)
Information about how tasks for the service are placed.
|
AwsEcsServiceDetails |
withPlacementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
|
AwsEcsServiceDetails |
withPlatformVersion(String platformVersion)
The platform version on which to run the service.
|
AwsEcsServiceDetails |
withPropagateTags(String propagateTags)
Indicates whether to propagate the tags from the task definition to the task or from the service to the task.
|
AwsEcsServiceDetails |
withRole(String role)
The ARN of the IAM role that is associated with the service.
|
AwsEcsServiceDetails |
withSchedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
|
AwsEcsServiceDetails |
withServiceArn(String serviceArn)
The ARN of the service.
|
AwsEcsServiceDetails |
withServiceName(String serviceName)
The name of the service.
|
AwsEcsServiceDetails |
withServiceRegistries(AwsEcsServiceServiceRegistriesDetails... serviceRegistries)
Information about the service discovery registries to assign to the service.
|
AwsEcsServiceDetails |
withServiceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
|
AwsEcsServiceDetails |
withTaskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
|
public List<AwsEcsServiceCapacityProviderStrategyDetails> getCapacityProviderStrategy()
The capacity provider strategy that the service uses.
public void setCapacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
capacityProviderStrategy
- The capacity provider strategy that the service uses.public AwsEcsServiceDetails withCapacityProviderStrategy(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy)
The capacity provider strategy that the service uses.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityProviderStrategy(java.util.Collection)
or
withCapacityProviderStrategy(java.util.Collection)
if you want to override the existing values.
capacityProviderStrategy
- The capacity provider strategy that the service uses.public AwsEcsServiceDetails withCapacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
capacityProviderStrategy
- The capacity provider strategy that the service uses.public void setCluster(String cluster)
The ARN of the cluster that hosts the service.
cluster
- The ARN of the cluster that hosts the service.public String getCluster()
The ARN of the cluster that hosts the service.
public AwsEcsServiceDetails withCluster(String cluster)
The ARN of the cluster that hosts the service.
cluster
- The ARN of the cluster that hosts the service.public void setDeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration)
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
deploymentConfiguration
- Deployment parameters for the service. Includes the number of tasks that run and the order in which to
start and stop tasks.public AwsEcsServiceDeploymentConfigurationDetails getDeploymentConfiguration()
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
public AwsEcsServiceDetails withDeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration)
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
deploymentConfiguration
- Deployment parameters for the service. Includes the number of tasks that run and the order in which to
start and stop tasks.public void setDeploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
deploymentController
- Contains the deployment controller type that the service uses.public AwsEcsServiceDeploymentControllerDetails getDeploymentController()
Contains the deployment controller type that the service uses.
public AwsEcsServiceDetails withDeploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
deploymentController
- Contains the deployment controller type that the service uses.public void setDesiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
desiredCount
- The number of instantiations of the task definition to run on the service.public Integer getDesiredCount()
The number of instantiations of the task definition to run on the service.
public AwsEcsServiceDetails withDesiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
desiredCount
- The number of instantiations of the task definition to run on the service.public void setEnableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
enableEcsManagedTags
- Whether to enable Amazon ECS managed tags for the tasks in the service.public Boolean getEnableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
public AwsEcsServiceDetails withEnableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
enableEcsManagedTags
- Whether to enable Amazon ECS managed tags for the tasks in the service.public Boolean isEnableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
public void setEnableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
enableExecuteCommand
- Whether the execute command functionality is enabled for the service.public Boolean getEnableExecuteCommand()
Whether the execute command functionality is enabled for the service.
public AwsEcsServiceDetails withEnableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
enableExecuteCommand
- Whether the execute command functionality is enabled for the service.public Boolean isEnableExecuteCommand()
Whether the execute command functionality is enabled for the service.
public void setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
healthCheckGracePeriodSeconds
- After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.public Integer getHealthCheckGracePeriodSeconds()
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
public AwsEcsServiceDetails withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
healthCheckGracePeriodSeconds
- After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.public void setLaunchType(String launchType)
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
launchType
- The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
public String getLaunchType()
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Valid values: EC2
| FARGATE
| EXTERNAL
public AwsEcsServiceDetails withLaunchType(String launchType)
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
launchType
- The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
public List<AwsEcsServiceLoadBalancersDetails> getLoadBalancers()
Information about the load balancers that the service uses.
public void setLoadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
loadBalancers
- Information about the load balancers that the service uses.public AwsEcsServiceDetails withLoadBalancers(AwsEcsServiceLoadBalancersDetails... loadBalancers)
Information about the load balancers that the service uses.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancers(java.util.Collection)
or withLoadBalancers(java.util.Collection)
if you want
to override the existing values.
loadBalancers
- Information about the load balancers that the service uses.public AwsEcsServiceDetails withLoadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
loadBalancers
- Information about the load balancers that the service uses.public void setName(String name)
The name of the service.
name
- The name of the service.public String getName()
The name of the service.
public AwsEcsServiceDetails withName(String name)
The name of the service.
name
- The name of the service.public void setNetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
networkConfiguration
- For tasks that use the awsvpc
networking mode, the VPC subnet and security group
configuration.public AwsEcsServiceNetworkConfigurationDetails getNetworkConfiguration()
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
awsvpc
networking mode, the VPC subnet and security group
configuration.public AwsEcsServiceDetails withNetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
networkConfiguration
- For tasks that use the awsvpc
networking mode, the VPC subnet and security group
configuration.public List<AwsEcsServicePlacementConstraintsDetails> getPlacementConstraints()
The placement constraints for the tasks in the service.
public void setPlacementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints
- The placement constraints for the tasks in the service.public AwsEcsServiceDetails withPlacementConstraints(AwsEcsServicePlacementConstraintsDetails... placementConstraints)
The placement constraints for the tasks in the service.
NOTE: This method appends the values to the existing list (if any). Use
setPlacementConstraints(java.util.Collection)
or withPlacementConstraints(java.util.Collection)
if you want to override the existing values.
placementConstraints
- The placement constraints for the tasks in the service.public AwsEcsServiceDetails withPlacementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints
- The placement constraints for the tasks in the service.public List<AwsEcsServicePlacementStrategiesDetails> getPlacementStrategies()
Information about how tasks for the service are placed.
public void setPlacementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
placementStrategies
- Information about how tasks for the service are placed.public AwsEcsServiceDetails withPlacementStrategies(AwsEcsServicePlacementStrategiesDetails... placementStrategies)
Information about how tasks for the service are placed.
NOTE: This method appends the values to the existing list (if any). Use
setPlacementStrategies(java.util.Collection)
or withPlacementStrategies(java.util.Collection)
if you want to override the existing values.
placementStrategies
- Information about how tasks for the service are placed.public AwsEcsServiceDetails withPlacementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
placementStrategies
- Information about how tasks for the service are placed.public void setPlatformVersion(String platformVersion)
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a
platform version is not specified, the LATEST
platform version is used by default.
platformVersion
- The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If
a platform version is not specified, the LATEST
platform version is used by default.public String getPlatformVersion()
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a
platform version is not specified, the LATEST
platform version is used by default.
LATEST
platform version is used by default.public AwsEcsServiceDetails withPlatformVersion(String platformVersion)
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a
platform version is not specified, the LATEST
platform version is used by default.
platformVersion
- The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If
a platform version is not specified, the LATEST
platform version is used by default.public void setPropagateTags(String propagateTags)
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
propagateTags
- Indicates whether to propagate the tags from the task definition to the task or from the service to the
task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
public String getPropagateTags()
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
Valid values: TASK_DEFINITION
| SERVICE
public AwsEcsServiceDetails withPropagateTags(String propagateTags)
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
propagateTags
- Indicates whether to propagate the tags from the task definition to the task or from the service to the
task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
public void setRole(String role)
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
role
- The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container
agent to register container instances with an Elastic Load Balancing load balancer.public String getRole()
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
public AwsEcsServiceDetails withRole(String role)
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
role
- The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container
agent to register container instances with an Elastic Load Balancing load balancer.public void setSchedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster.
By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and
constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets
all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the
task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
schedulingStrategy
- The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the
cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement
strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that are specified in the cluster. The service scheduler
also evaluates the task placement constraints for running tasks and stops tasks that do not meet the
placement constraints.
Valid values: REPLICA
| DAEMON
public String getSchedulingStrategy()
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster.
By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and
constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets
all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the
task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the
cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement
strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that are specified in the cluster. The service scheduler
also evaluates the task placement constraints for running tasks and stops tasks that do not meet the
placement constraints.
Valid values: REPLICA
| DAEMON
public AwsEcsServiceDetails withSchedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster.
By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and
constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets
all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the
task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
schedulingStrategy
- The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the
cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement
strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that are specified in the cluster. The service scheduler
also evaluates the task placement constraints for running tasks and stops tasks that do not meet the
placement constraints.
Valid values: REPLICA
| DAEMON
public void setServiceArn(String serviceArn)
The ARN of the service.
serviceArn
- The ARN of the service.public String getServiceArn()
The ARN of the service.
public AwsEcsServiceDetails withServiceArn(String serviceArn)
The ARN of the service.
serviceArn
- The ARN of the service.public void setServiceName(String serviceName)
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
serviceName
- The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
public String getServiceName()
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
public AwsEcsServiceDetails withServiceName(String serviceName)
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
serviceName
- The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
public List<AwsEcsServiceServiceRegistriesDetails> getServiceRegistries()
Information about the service discovery registries to assign to the service.
public void setServiceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
serviceRegistries
- Information about the service discovery registries to assign to the service.public AwsEcsServiceDetails withServiceRegistries(AwsEcsServiceServiceRegistriesDetails... serviceRegistries)
Information about the service discovery registries to assign to the service.
NOTE: This method appends the values to the existing list (if any). Use
setServiceRegistries(java.util.Collection)
or withServiceRegistries(java.util.Collection)
if
you want to override the existing values.
serviceRegistries
- Information about the service discovery registries to assign to the service.public AwsEcsServiceDetails withServiceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
serviceRegistries
- Information about the service discovery registries to assign to the service.public void setTaskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
taskDefinition
- The task definition to use for tasks in the service.public String getTaskDefinition()
The task definition to use for tasks in the service.
public AwsEcsServiceDetails withTaskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
taskDefinition
- The task definition to use for tasks in the service.public String toString()
toString
in class Object
Object.toString()
public AwsEcsServiceDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.