Interface AwsEcsServiceDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcsServiceDetails.Builder,
,AwsEcsServiceDetails> SdkBuilder<AwsEcsServiceDetails.Builder,
,AwsEcsServiceDetails> SdkPojo
- Enclosing class:
AwsEcsServiceDetails
-
Method Summary
Modifier and TypeMethodDescriptioncapacityProviderStrategy
(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy) The capacity provider strategy that the service uses.capacityProviderStrategy
(Consumer<AwsEcsServiceCapacityProviderStrategyDetails.Builder>... capacityProviderStrategy) The capacity provider strategy that the service uses.capacityProviderStrategy
(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy) The capacity provider strategy that the service uses.The ARN of the cluster that hosts the service.default AwsEcsServiceDetails.Builder
deploymentConfiguration
(Consumer<AwsEcsServiceDeploymentConfigurationDetails.Builder> deploymentConfiguration) Deployment parameters for the service.deploymentConfiguration
(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration) Deployment parameters for the service.default AwsEcsServiceDetails.Builder
deploymentController
(Consumer<AwsEcsServiceDeploymentControllerDetails.Builder> deploymentController) Contains the deployment controller type that the service uses.deploymentController
(AwsEcsServiceDeploymentControllerDetails deploymentController) Contains the deployment controller type that the service uses.desiredCount
(Integer desiredCount) The number of instantiations of the task definition to run on the service.enableEcsManagedTags
(Boolean enableEcsManagedTags) Whether to enable Amazon ECS managed tags for the tasks in the service.enableExecuteCommand
(Boolean enableExecuteCommand) Whether the execute command functionality is enabled for the service.healthCheckGracePeriodSeconds
(Integer healthCheckGracePeriodSeconds) After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.launchType
(String launchType) The launch type that the service uses.loadBalancers
(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers) Information about the load balancers that the service uses.loadBalancers
(Consumer<AwsEcsServiceLoadBalancersDetails.Builder>... loadBalancers) Information about the load balancers that the service uses.loadBalancers
(AwsEcsServiceLoadBalancersDetails... loadBalancers) Information about the load balancers that the service uses.The name of the service.default AwsEcsServiceDetails.Builder
networkConfiguration
(Consumer<AwsEcsServiceNetworkConfigurationDetails.Builder> networkConfiguration) For tasks that use theawsvpc
networking mode, the VPC subnet and security group configuration.networkConfiguration
(AwsEcsServiceNetworkConfigurationDetails networkConfiguration) For tasks that use theawsvpc
networking mode, the VPC subnet and security group configuration.placementConstraints
(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints) The placement constraints for the tasks in the service.placementConstraints
(Consumer<AwsEcsServicePlacementConstraintsDetails.Builder>... placementConstraints) The placement constraints for the tasks in the service.placementConstraints
(AwsEcsServicePlacementConstraintsDetails... placementConstraints) The placement constraints for the tasks in the service.placementStrategies
(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies) Information about how tasks for the service are placed.placementStrategies
(Consumer<AwsEcsServicePlacementStrategiesDetails.Builder>... placementStrategies) Information about how tasks for the service are placed.placementStrategies
(AwsEcsServicePlacementStrategiesDetails... placementStrategies) Information about how tasks for the service are placed.platformVersion
(String platformVersion) The platform version on which to run the service.propagateTags
(String propagateTags) Indicates whether to propagate the tags from the task definition to the task or from the service to the task.The ARN of the IAM role that is associated with the service.schedulingStrategy
(String schedulingStrategy) The scheduling strategy to use for the service.serviceArn
(String serviceArn) The ARN of the service.serviceName
(String serviceName) The name of the service.serviceRegistries
(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries) Information about the service discovery registries to assign to the service.serviceRegistries
(Consumer<AwsEcsServiceServiceRegistriesDetails.Builder>... serviceRegistries) Information about the service discovery registries to assign to the service.serviceRegistries
(AwsEcsServiceServiceRegistriesDetails... serviceRegistries) Information about the service discovery registries to assign to the service.taskDefinition
(String taskDefinition) The task definition to use for tasks in the service.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
capacityProviderStrategy
AwsEcsServiceDetails.Builder capacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy) The capacity provider strategy that the service uses.
- Parameters:
capacityProviderStrategy
- The capacity provider strategy that the service uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
AwsEcsServiceDetails.Builder capacityProviderStrategy(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy) The capacity provider strategy that the service uses.
- Parameters:
capacityProviderStrategy
- The capacity provider strategy that the service uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
AwsEcsServiceDetails.Builder capacityProviderStrategy(Consumer<AwsEcsServiceCapacityProviderStrategyDetails.Builder>... capacityProviderStrategy) The capacity provider strategy that the service uses.
This is a convenience method that creates an instance of theAwsEcsServiceCapacityProviderStrategyDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceCapacityProviderStrategyDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityProviderStrategy(List<AwsEcsServiceCapacityProviderStrategyDetails>)
.- Parameters:
capacityProviderStrategy
- a consumer that will call methods onAwsEcsServiceCapacityProviderStrategyDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cluster
The ARN of the cluster that hosts the service.
- Parameters:
cluster
- The ARN of the cluster that hosts the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfiguration
AwsEcsServiceDetails.Builder deploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration) Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
- Parameters:
deploymentConfiguration
- Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfiguration
default AwsEcsServiceDetails.Builder deploymentConfiguration(Consumer<AwsEcsServiceDeploymentConfigurationDetails.Builder> deploymentConfiguration) Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
This is a convenience method that creates an instance of theAwsEcsServiceDeploymentConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceDeploymentConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails)
.- Parameters:
deploymentConfiguration
- a consumer that will call methods onAwsEcsServiceDeploymentConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentController
AwsEcsServiceDetails.Builder deploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController) Contains the deployment controller type that the service uses.
- Parameters:
deploymentController
- Contains the deployment controller type that the service uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentController
default AwsEcsServiceDetails.Builder deploymentController(Consumer<AwsEcsServiceDeploymentControllerDetails.Builder> deploymentController) Contains the deployment controller type that the service uses.
This is a convenience method that creates an instance of theAwsEcsServiceDeploymentControllerDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceDeploymentControllerDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentController(AwsEcsServiceDeploymentControllerDetails)
.- Parameters:
deploymentController
- a consumer that will call methods onAwsEcsServiceDeploymentControllerDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
desiredCount
The number of instantiations of the task definition to run on the service.
- Parameters:
desiredCount
- The number of instantiations of the task definition to run on the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableEcsManagedTags
Whether to enable Amazon ECS managed tags for the tasks in the service.
- Parameters:
enableEcsManagedTags
- Whether to enable Amazon ECS managed tags for the tasks in the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableExecuteCommand
Whether the execute command functionality is enabled for the service.
- Parameters:
enableExecuteCommand
- Whether the execute command functionality is enabled for the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckGracePeriodSeconds
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
- Parameters:
healthCheckGracePeriodSeconds
- After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchType
The launch type that the service uses.
Valid values:
EC2
|FARGATE
|EXTERNAL
- Parameters:
launchType
- The launch type that the service uses.Valid values:
EC2
|FARGATE
|EXTERNAL
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancers
AwsEcsServiceDetails.Builder loadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers) Information about the load balancers that the service uses.
- Parameters:
loadBalancers
- Information about the load balancers that the service uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancers
Information about the load balancers that the service uses.
- Parameters:
loadBalancers
- Information about the load balancers that the service uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancers
AwsEcsServiceDetails.Builder loadBalancers(Consumer<AwsEcsServiceLoadBalancersDetails.Builder>... loadBalancers) Information about the load balancers that the service uses.
This is a convenience method that creates an instance of theAwsEcsServiceLoadBalancersDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceLoadBalancersDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toloadBalancers(List<AwsEcsServiceLoadBalancersDetails>)
.- Parameters:
loadBalancers
- a consumer that will call methods onAwsEcsServiceLoadBalancersDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the service.
- Parameters:
name
- The name of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
AwsEcsServiceDetails.Builder networkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration) For tasks that use the
awsvpc
networking mode, the VPC subnet and security group configuration.- Parameters:
networkConfiguration
- For tasks that use theawsvpc
networking mode, the VPC subnet and security group configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default AwsEcsServiceDetails.Builder networkConfiguration(Consumer<AwsEcsServiceNetworkConfigurationDetails.Builder> networkConfiguration) For tasks that use the
This is a convenience method that creates an instance of theawsvpc
networking mode, the VPC subnet and security group configuration.AwsEcsServiceNetworkConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceNetworkConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails)
.- Parameters:
networkConfiguration
- a consumer that will call methods onAwsEcsServiceNetworkConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placementConstraints
AwsEcsServiceDetails.Builder placementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints) The placement constraints for the tasks in the service.
- Parameters:
placementConstraints
- The placement constraints for the tasks in the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
AwsEcsServiceDetails.Builder placementConstraints(AwsEcsServicePlacementConstraintsDetails... placementConstraints) The placement constraints for the tasks in the service.
- Parameters:
placementConstraints
- The placement constraints for the tasks in the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
AwsEcsServiceDetails.Builder placementConstraints(Consumer<AwsEcsServicePlacementConstraintsDetails.Builder>... placementConstraints) The placement constraints for the tasks in the service.
This is a convenience method that creates an instance of theAwsEcsServicePlacementConstraintsDetails.Builder
avoiding the need to create one manually viaAwsEcsServicePlacementConstraintsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacementConstraints(List<AwsEcsServicePlacementConstraintsDetails>)
.- Parameters:
placementConstraints
- a consumer that will call methods onAwsEcsServicePlacementConstraintsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placementStrategies
AwsEcsServiceDetails.Builder placementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies) Information about how tasks for the service are placed.
- Parameters:
placementStrategies
- Information about how tasks for the service are placed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementStrategies
AwsEcsServiceDetails.Builder placementStrategies(AwsEcsServicePlacementStrategiesDetails... placementStrategies) Information about how tasks for the service are placed.
- Parameters:
placementStrategies
- Information about how tasks for the service are placed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementStrategies
AwsEcsServiceDetails.Builder placementStrategies(Consumer<AwsEcsServicePlacementStrategiesDetails.Builder>... placementStrategies) Information about how tasks for the service are placed.
This is a convenience method that creates an instance of theAwsEcsServicePlacementStrategiesDetails.Builder
avoiding the need to create one manually viaAwsEcsServicePlacementStrategiesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacementStrategies(List<AwsEcsServicePlacementStrategiesDetails>)
.- Parameters:
placementStrategies
- a consumer that will call methods onAwsEcsServicePlacementStrategiesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platformVersion
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the
LATEST
platform version is used by default.- Parameters:
platformVersion
- The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, theLATEST
platform version is used by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propagateTags
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values:
TASK_DEFINITION
|SERVICE
- Parameters:
propagateTags
- Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.Valid values:
TASK_DEFINITION
|SERVICE
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
role
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
- Parameters:
role
- The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedulingStrategy
The scheduling strategy to use for the service.
The
REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.The
DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that don't meet the placement constraints.Valid values:
REPLICA
|DAEMON
- Parameters:
schedulingStrategy
- The scheduling strategy to use for the service.The
REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.The
DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that don't meet the placement constraints.Valid values:
REPLICA
|DAEMON
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceArn
The ARN of the service.
- Parameters:
serviceArn
- The ARN of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
- Parameters:
serviceName
- The name of the service.The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRegistries
AwsEcsServiceDetails.Builder serviceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries) Information about the service discovery registries to assign to the service.
- Parameters:
serviceRegistries
- Information about the service discovery registries to assign to the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRegistries
AwsEcsServiceDetails.Builder serviceRegistries(AwsEcsServiceServiceRegistriesDetails... serviceRegistries) Information about the service discovery registries to assign to the service.
- Parameters:
serviceRegistries
- Information about the service discovery registries to assign to the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRegistries
AwsEcsServiceDetails.Builder serviceRegistries(Consumer<AwsEcsServiceServiceRegistriesDetails.Builder>... serviceRegistries) Information about the service discovery registries to assign to the service.
This is a convenience method that creates an instance of theAwsEcsServiceServiceRegistriesDetails.Builder
avoiding the need to create one manually viaAwsEcsServiceServiceRegistriesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceRegistries(List<AwsEcsServiceServiceRegistriesDetails>)
.- Parameters:
serviceRegistries
- a consumer that will call methods onAwsEcsServiceServiceRegistriesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
taskDefinition
The task definition to use for tasks in the service.
- Parameters:
taskDefinition
- The task definition to use for tasks in the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-