@Stability(value=Experimental) public static final class Ec2ServiceProps.Builder extends Object implements software.amazon.jsii.Builder<Ec2ServiceProps>
Ec2ServiceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public Ec2ServiceProps.Builder taskDefinition(TaskDefinition taskDefinition)
Ec2ServiceProps.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 Ec2ServiceProps.Builder assignPublicIp(Boolean assignPublicIp)
Ec2ServiceProps.getAssignPublicIp()assignPublicIp - Specifies whether the task's elastic network interface receives a public IP address.
If true, each task will receive a public IP address.
This property is only used for tasks that use the awsvpc network mode.
this@Stability(value=Experimental) public Ec2ServiceProps.Builder daemon(Boolean daemon)
Ec2ServiceProps.getDaemon()daemon - Specifies whether the service will use the daemon scheduling strategy.
If true, the service scheduler deploys exactly one task on each container instance in your cluster.
When you are using this strategy, do not specify a desired number of tasks orany task placement strategies.
this@Stability(value=Experimental) public Ec2ServiceProps.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints)
Ec2ServiceProps.getPlacementConstraints()placementConstraints - The placement constraints to use for tasks in the service.
For more information, see
Amazon ECS Task Placement Constraints.this@Stability(value=Experimental) public Ec2ServiceProps.Builder placementStrategies(List<? extends PlacementStrategy> placementStrategies)
Ec2ServiceProps.getPlacementStrategies()placementStrategies - The placement strategies to use for tasks in the service.
For more information, see
Amazon ECS Task Placement Strategies.this@Stability(value=Experimental) public Ec2ServiceProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
Ec2ServiceProps.getSecurityGroups()securityGroups - The security groups to associate with the service.
If you do not specify a security group, the default security group for the VPC is used.
This property is only used for tasks that use the awsvpc network mode.
this@Stability(value=Experimental) public Ec2ServiceProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
Ec2ServiceProps.getVpcSubnets()vpcSubnets - The subnets to associate with the service.
This property is only used for tasks that use the awsvpc network mode.this@Stability(value=Experimental) public Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
BaseServiceOptions.getCloudMapOptions()cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery.this@Stability(value=Experimental) public Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
Ec2ServiceProps#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 Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.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 Ec2ServiceProps.Builder serviceName(String serviceName)
BaseServiceOptions.getServiceName()serviceName - The name of the service.this@Stability(value=Experimental) public Ec2ServiceProps build()
build in interface software.amazon.jsii.Builder<Ec2ServiceProps>Ec2ServicePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.