@Stability(value=Stable) public static final class BaseServiceProps.Builder extends Object
BaseServiceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BaseServiceProps |
build()
Builds the configured instance.
|
BaseServiceProps.Builder |
cloudMapOptions(CloudMapOptions cloudMapOptions)
Sets the value of CloudMapOptions
|
BaseServiceProps.Builder |
cluster(ICluster cluster)
Sets the value of Cluster
|
BaseServiceProps.Builder |
desiredCount(Number desiredCount)
Sets the value of DesiredCount
|
BaseServiceProps.Builder |
enableEcsManagedTags(Boolean enableEcsManagedTags)
Sets the value of EnableEcsManagedTags
|
BaseServiceProps.Builder |
healthCheckGracePeriod(Duration healthCheckGracePeriod)
Sets the value of HealthCheckGracePeriod
|
BaseServiceProps.Builder |
launchType(LaunchType launchType)
Sets the value of LaunchType
|
BaseServiceProps.Builder |
maxHealthyPercent(Number maxHealthyPercent)
Sets the value of MaxHealthyPercent
|
BaseServiceProps.Builder |
minHealthyPercent(Number minHealthyPercent)
Sets the value of MinHealthyPercent
|
BaseServiceProps.Builder |
propagateTags(PropagatedTagSource propagateTags)
Sets the value of PropagateTags
|
BaseServiceProps.Builder |
serviceName(String serviceName)
Sets the value of ServiceName
|
@Stability(value=Stable) public BaseServiceProps.Builder launchType(LaunchType launchType)
launchType
- The launch type on which to run your service. This parameter is required.this
@Stability(value=Stable) public BaseServiceProps.Builder cluster(ICluster cluster)
cluster
- The name of the cluster that hosts the service. This parameter is required.this
@Stability(value=Stable) public BaseServiceProps.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
cloudMapOptions
- The options for configuring an Amazon ECS service to use service discovery.this
@Stability(value=Stable) public BaseServiceProps.Builder desiredCount(Number desiredCount)
desiredCount
- The desired number of instantiations of the task definition to keep running on the service.this
@Stability(value=Stable) public BaseServiceProps.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
enableEcsManagedTags
- Specifies whether to enable Amazon ECS managed tags for the tasks within the service.this
@Stability(value=Stable) public BaseServiceProps.Builder healthCheckGracePeriod(Duration healthCheckGracePeriod)
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=Stable) public BaseServiceProps.Builder maxHealthyPercent(Number maxHealthyPercent)
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=Stable) public BaseServiceProps.Builder minHealthyPercent(Number minHealthyPercent)
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=Stable) public BaseServiceProps.Builder propagateTags(PropagatedTagSource propagateTags)
propagateTags
- Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.this
@Stability(value=Stable) public BaseServiceProps.Builder serviceName(String serviceName)
serviceName
- The name of the service.this
@Stability(value=Stable) public BaseServiceProps build()
BaseServiceProps
NullPointerException
- if any required attribute was not providedCopyright © 2019. All rights reserved.