@Stability(value=Experimental) public static final class ExternalServiceProps.Builder extends Object implements software.amazon.jsii.Builder<ExternalServiceProps>
ExternalServiceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public ExternalServiceProps.Builder taskDefinition(TaskDefinition taskDefinition)
ExternalServiceProps.getTaskDefinition()taskDefinition - The task definition to use for tasks in the service. This parameter is required.
[disable-awslint:ref-via-interface]this@Stability(value=Experimental) public ExternalServiceProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ExternalServiceProps.getSecurityGroups()securityGroups - The security groups to associate with the service.
If you do not specify a security group, a new security group is created.this@Stability(value=Experimental) public ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
BaseServiceOptions.getCloudMapOptions()cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery.this@Stability(value=Experimental) public ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
ExternalServiceProps#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 ExternalServiceProps.Builder enableExecuteCommand(Boolean enableExecuteCommand)
BaseServiceOptions.getEnableExecuteCommand()enableExecuteCommand - Whether to enable the ability to execute into a container.this@Stability(value=Experimental) public ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.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 ExternalServiceProps.Builder serviceName(String serviceName)
BaseServiceOptions.getServiceName()serviceName - The name of the service.this@Stability(value=Experimental) public ExternalServiceProps build()
build in interface software.amazon.jsii.Builder<ExternalServiceProps>ExternalServicePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.