@Stability(value=Experimental) public static final class BaseServiceProps.Builder extends Object implements software.amazon.jsii.Builder<BaseServiceProps>
BaseServiceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public BaseServiceProps.Builder launchType(LaunchType launchType)
BaseServiceProps.getLaunchType()launchType - The launch type on which to run your service. This parameter is required.
LaunchType will be omitted if capacity provider strategies are specified on the service.this@Stability(value=Experimental) public BaseServiceProps.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 BaseServiceProps.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 BaseServiceProps.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 BaseServiceProps.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
BaseServiceOptions.getCloudMapOptions()cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery.this@Stability(value=Experimental) public BaseServiceProps.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 BaseServiceProps.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 BaseServiceProps.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
BaseServiceProps#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 BaseServiceProps.Builder enableExecuteCommand(Boolean enableExecuteCommand)
BaseServiceOptions.getEnableExecuteCommand()enableExecuteCommand - Whether to enable the ability to execute into a container.this@Stability(value=Experimental) public BaseServiceProps.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 BaseServiceProps.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 BaseServiceProps.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 BaseServiceProps.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=Deprecated) @Deprecated public BaseServiceProps.Builder propagateTaskTagsFrom(PropagatedTagSource propagateTaskTagsFrom)
BaseServiceOptions.getPropagateTaskTagsFrom()propagateTaskTagsFrom - Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
Tags can only be propagated to the tasks within the service during service creation.this@Stability(value=Experimental) public BaseServiceProps.Builder serviceName(String serviceName)
BaseServiceOptions.getServiceName()serviceName - The name of the service.this@Stability(value=Experimental) public BaseServiceProps build()
build in interface software.amazon.jsii.Builder<BaseServiceProps>BaseServicePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.