@Stability(value=Experimental) public static final class FargateServiceProps.Builder extends Object implements software.amazon.jsii.Builder<FargateServiceProps>
FargateServiceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public FargateServiceProps.Builder taskDefinition(TaskDefinition taskDefinition)
FargateServiceProps.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 FargateServiceProps.Builder assignPublicIp(Boolean assignPublicIp)
FargateServiceProps.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@Stability(value=Experimental) public FargateServiceProps.Builder platformVersion(FargatePlatformVersion platformVersion)
FargateServiceProps.getPlatformVersion()platformVersion - The platform version on which to run your service.
If one is not specified, the LATEST platform version is used by default. For more information, see
AWS Fargate Platform Versions
in the Amazon Elastic Container Service Developer Guide.this@Stability(value=Experimental) public FargateServiceProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
FargateServiceProps.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@Stability(value=Experimental) public FargateServiceProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
FargateServiceProps.getVpcSubnets()vpcSubnets - The subnets to associate with the service.this@Stability(value=Experimental) public FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.Builder cloudMapOptions(CloudMapOptions cloudMapOptions)
BaseServiceOptions.getCloudMapOptions()cloudMapOptions - The options for configuring an Amazon ECS service to use service discovery.this@Stability(value=Experimental) public FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
FargateServiceProps#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 FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.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 FargateServiceProps.Builder serviceName(String serviceName)
BaseServiceOptions.getServiceName()serviceName - The name of the service.this@Stability(value=Experimental) public FargateServiceProps build()
build in interface software.amazon.jsii.Builder<FargateServiceProps>FargateServicePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.