@Stability(value=Experimental) public static final class BaseServiceOptions.Builder extends Object implements software.amazon.jsii.Builder<BaseServiceOptions>
BaseServiceOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public BaseServiceOptions.Builder cluster(ICluster cluster)
BaseServiceOptions.getCluster()cluster - The name of the cluster that hosts the service. This parameter is required.this@Stability(value=Experimental) public BaseServiceOptions.Builder capacityProviderStrategies(List<? extends CapacityProviderStrategy> capacityProviderStrategies)
BaseServiceOptions.getCapacityProviderStrategies()capacityProviderStrategies - A list of Capacity Provider strategies used to place a service.this@Stability(value=Experimental) public BaseServiceOptions.Builder circuitBreaker(DeploymentCircuitBreaker circuitBreaker)
BaseServiceOptions.getCircuitBreaker()circuitBreaker - Whether to enable the deployment circuit breaker.
If this property is defined, circuit breaker will be implicitly
enabled.this@Stability(value=Experimental) public BaseServiceOptions.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
BaseServiceOptions.getCloudMapOptions()cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery.this@Stability(value=Experimental) public BaseServiceOptions.Builder deploymentController(DeploymentController deploymentController)
BaseServiceOptions.getDeploymentController()deploymentController - Specifies which deployment controller to use for the service.
For more information, see
Amazon ECS Deployment Typesthis@Stability(value=Experimental) public BaseServiceOptions.Builder desiredCount(Number desiredCount)
BaseServiceOptions.getDesiredCount()desiredCount - The desired number of instantiations of the task definition to keep running on the service.this@Stability(value=Experimental) public BaseServiceOptions.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
BaseServiceOptions#getEnableEcsManagedTagsenableEcsManagedTags - Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
For more information, see
Tagging Your Amazon ECS Resourcesthis@Stability(value=Experimental) public BaseServiceOptions.Builder enableExecuteCommand(Boolean enableExecuteCommand)
BaseServiceOptions.getEnableExecuteCommand()enableExecuteCommand - Whether to enable the ability to execute into a container.this@Stability(value=Experimental) public BaseServiceOptions.Builder healthCheckGracePeriod(Duration healthCheckGracePeriod)
BaseServiceOptions.getHealthCheckGracePeriod()healthCheckGracePeriod - The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.this@Stability(value=Experimental) public BaseServiceOptions.Builder maxHealthyPercent(Number maxHealthyPercent)
BaseServiceOptions.getMaxHealthyPercent()maxHealthyPercent - The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.this@Stability(value=Experimental) public BaseServiceOptions.Builder minHealthyPercent(Number minHealthyPercent)
BaseServiceOptions.getMinHealthyPercent()minHealthyPercent - The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.this@Stability(value=Experimental) public BaseServiceOptions.Builder propagateTags(PropagatedTagSource propagateTags)
BaseServiceOptions.getPropagateTags()propagateTags - Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
Valid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION or PropagatedTagSource.NONEthis@Stability(value=Experimental) public BaseServiceOptions.Builder serviceName(String serviceName)
BaseServiceOptions.getServiceName()serviceName - The name of the service.this@Stability(value=Experimental) public BaseServiceOptions build()
build in interface software.amazon.jsii.Builder<BaseServiceOptions>BaseServiceOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.