public static interface AwsEcsServiceDetails.Builder extends SdkPojo, CopyableBuilder<AwsEcsServiceDetails.Builder,AwsEcsServiceDetails>
| Modifier and Type | Method and Description |
|---|---|
AwsEcsServiceDetails.Builder |
capacityProviderStrategy(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
AwsEcsServiceDetails.Builder |
capacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
AwsEcsServiceDetails.Builder |
capacityProviderStrategy(Consumer<AwsEcsServiceCapacityProviderStrategyDetails.Builder>... capacityProviderStrategy)
The capacity provider strategy that the service uses.
|
AwsEcsServiceDetails.Builder |
cluster(String cluster)
The ARN of the cluster that hosts the service.
|
AwsEcsServiceDetails.Builder |
deploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration)
Deployment parameters for the service.
|
default AwsEcsServiceDetails.Builder |
deploymentConfiguration(Consumer<AwsEcsServiceDeploymentConfigurationDetails.Builder> deploymentConfiguration)
Deployment parameters for the service.
|
AwsEcsServiceDetails.Builder |
deploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
|
default AwsEcsServiceDetails.Builder |
deploymentController(Consumer<AwsEcsServiceDeploymentControllerDetails.Builder> deploymentController)
Contains the deployment controller type that the service uses.
|
AwsEcsServiceDetails.Builder |
desiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
|
AwsEcsServiceDetails.Builder |
enableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
AwsEcsServiceDetails.Builder |
enableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
|
AwsEcsServiceDetails.Builder |
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.
|
AwsEcsServiceDetails.Builder |
launchType(String launchType)
The launch type that the service uses.
|
AwsEcsServiceDetails.Builder |
loadBalancers(AwsEcsServiceLoadBalancersDetails... loadBalancers)
Information about the load balancers that the service uses.
|
AwsEcsServiceDetails.Builder |
loadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
|
AwsEcsServiceDetails.Builder |
loadBalancers(Consumer<AwsEcsServiceLoadBalancersDetails.Builder>... loadBalancers)
Information about the load balancers that the service uses.
|
AwsEcsServiceDetails.Builder |
name(String name)
The name of the service.
|
AwsEcsServiceDetails.Builder |
networkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
default AwsEcsServiceDetails.Builder |
networkConfiguration(Consumer<AwsEcsServiceNetworkConfigurationDetails.Builder> networkConfiguration)
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
AwsEcsServiceDetails.Builder |
placementConstraints(AwsEcsServicePlacementConstraintsDetails... placementConstraints)
The placement constraints for the tasks in the service.
|
AwsEcsServiceDetails.Builder |
placementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
|
AwsEcsServiceDetails.Builder |
placementConstraints(Consumer<AwsEcsServicePlacementConstraintsDetails.Builder>... placementConstraints)
The placement constraints for the tasks in the service.
|
AwsEcsServiceDetails.Builder |
placementStrategies(AwsEcsServicePlacementStrategiesDetails... placementStrategies)
Information about how tasks for the service are placed.
|
AwsEcsServiceDetails.Builder |
placementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
|
AwsEcsServiceDetails.Builder |
placementStrategies(Consumer<AwsEcsServicePlacementStrategiesDetails.Builder>... placementStrategies)
Information about how tasks for the service are placed.
|
AwsEcsServiceDetails.Builder |
platformVersion(String platformVersion)
The platform version on which to run the service.
|
AwsEcsServiceDetails.Builder |
propagateTags(String propagateTags)
Indicates whether to propagate the tags from the task definition to the task or from the service to the task.
|
AwsEcsServiceDetails.Builder |
role(String role)
The ARN of the IAM role that is associated with the service.
|
AwsEcsServiceDetails.Builder |
schedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
|
AwsEcsServiceDetails.Builder |
serviceArn(String serviceArn)
The ARN of the service.
|
AwsEcsServiceDetails.Builder |
serviceName(String serviceName)
The name of the service.
|
AwsEcsServiceDetails.Builder |
serviceRegistries(AwsEcsServiceServiceRegistriesDetails... serviceRegistries)
Information about the service discovery registries to assign to the service.
|
AwsEcsServiceDetails.Builder |
serviceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
|
AwsEcsServiceDetails.Builder |
serviceRegistries(Consumer<AwsEcsServiceServiceRegistriesDetails.Builder>... serviceRegistries)
Information about the service discovery registries to assign to the service.
|
AwsEcsServiceDetails.Builder |
taskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsEcsServiceDetails.Builder capacityProviderStrategy(Collection<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy)
The capacity provider strategy that the service uses.
capacityProviderStrategy - The capacity provider strategy that the service uses.AwsEcsServiceDetails.Builder capacityProviderStrategy(AwsEcsServiceCapacityProviderStrategyDetails... capacityProviderStrategy)
The capacity provider strategy that the service uses.
capacityProviderStrategy - The capacity provider strategy that the service uses.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 via
AwsEcsServiceCapacityProviderStrategyDetails.builder()
.
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #capacityProviderStrategy(List.
capacityProviderStrategy - a consumer that will call methods on
AwsEcsServiceCapacityProviderStrategyDetails.Builder#capacityProviderStrategy(java.util.Collection) AwsEcsServiceDetails.Builder cluster(String cluster)
The ARN of the cluster that hosts the service.
cluster - The ARN of the cluster that hosts the service.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.
deploymentConfiguration - Deployment parameters for the service. Includes the number of tasks that run and the order in which to
start and stop tasks.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 via
AwsEcsServiceDeploymentConfigurationDetails.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to
deploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails).
deploymentConfiguration - a consumer that will call methods on AwsEcsServiceDeploymentConfigurationDetails.BuilderdeploymentConfiguration(AwsEcsServiceDeploymentConfigurationDetails)AwsEcsServiceDetails.Builder deploymentController(AwsEcsServiceDeploymentControllerDetails deploymentController)
Contains the deployment controller type that the service uses.
deploymentController - Contains the deployment controller type that the service uses.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 via
AwsEcsServiceDeploymentControllerDetails.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to
deploymentController(AwsEcsServiceDeploymentControllerDetails).
deploymentController - a consumer that will call methods on AwsEcsServiceDeploymentControllerDetails.BuilderdeploymentController(AwsEcsServiceDeploymentControllerDetails)AwsEcsServiceDetails.Builder desiredCount(Integer desiredCount)
The number of instantiations of the task definition to run on the service.
desiredCount - The number of instantiations of the task definition to run on the service.AwsEcsServiceDetails.Builder enableEcsManagedTags(Boolean enableEcsManagedTags)
Whether to enable Amazon ECS managed tags for the tasks in the service.
enableEcsManagedTags - Whether to enable Amazon ECS managed tags for the tasks in the service.AwsEcsServiceDetails.Builder enableExecuteCommand(Boolean enableExecuteCommand)
Whether the execute command functionality is enabled for the service.
enableExecuteCommand - Whether the execute command functionality is enabled for the service.AwsEcsServiceDetails.Builder 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.
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.AwsEcsServiceDetails.Builder launchType(String launchType)
The launch type that the service uses.
Valid values: EC2 | FARGATE | EXTERNAL
launchType - The launch type that the service uses.
Valid values: EC2 | FARGATE | EXTERNAL
AwsEcsServiceDetails.Builder loadBalancers(Collection<AwsEcsServiceLoadBalancersDetails> loadBalancers)
Information about the load balancers that the service uses.
loadBalancers - Information about the load balancers that the service uses.AwsEcsServiceDetails.Builder loadBalancers(AwsEcsServiceLoadBalancersDetails... loadBalancers)
Information about the load balancers that the service uses.
loadBalancers - Information about the load balancers that the service uses.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 via
AwsEcsServiceLoadBalancersDetails.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #loadBalancers(List.
loadBalancers - a consumer that will call methods on
AwsEcsServiceLoadBalancersDetails.Builder#loadBalancers(java.util.Collection) AwsEcsServiceDetails.Builder name(String name)
The name of the service.
name - The name of the service.AwsEcsServiceDetails.Builder networkConfiguration(AwsEcsServiceNetworkConfigurationDetails networkConfiguration)
For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.
networkConfiguration - For tasks that use the awsvpc networking mode, the VPC subnet and security group
configuration.default AwsEcsServiceDetails.Builder networkConfiguration(Consumer<AwsEcsServiceNetworkConfigurationDetails.Builder> networkConfiguration)
For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.
AwsEcsServiceNetworkConfigurationDetails.Builder avoiding the need to create one manually via
AwsEcsServiceNetworkConfigurationDetails.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to
networkConfiguration(AwsEcsServiceNetworkConfigurationDetails).
networkConfiguration - a consumer that will call methods on AwsEcsServiceNetworkConfigurationDetails.BuildernetworkConfiguration(AwsEcsServiceNetworkConfigurationDetails)AwsEcsServiceDetails.Builder placementConstraints(Collection<AwsEcsServicePlacementConstraintsDetails> placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints - The placement constraints for the tasks in the service.AwsEcsServiceDetails.Builder placementConstraints(AwsEcsServicePlacementConstraintsDetails... placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints - The placement constraints for the tasks in the service.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 via
AwsEcsServicePlacementConstraintsDetails.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #placementConstraints(List.
placementConstraints - a consumer that will call methods on
AwsEcsServicePlacementConstraintsDetails.Builder#placementConstraints(java.util.Collection) AwsEcsServiceDetails.Builder placementStrategies(Collection<AwsEcsServicePlacementStrategiesDetails> placementStrategies)
Information about how tasks for the service are placed.
placementStrategies - Information about how tasks for the service are placed.AwsEcsServiceDetails.Builder placementStrategies(AwsEcsServicePlacementStrategiesDetails... placementStrategies)
Information about how tasks for the service are placed.
placementStrategies - Information about how tasks for the service are placed.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 via
AwsEcsServicePlacementStrategiesDetails.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #placementStrategies(List.
placementStrategies - a consumer that will call methods on
AwsEcsServicePlacementStrategiesDetails.Builder#placementStrategies(java.util.Collection) AwsEcsServiceDetails.Builder platformVersion(String 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.
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.AwsEcsServiceDetails.Builder propagateTags(String 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
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
AwsEcsServiceDetails.Builder role(String 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.
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.AwsEcsServiceDetails.Builder schedulingStrategy(String 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 do not meet the placement
constraints.
Valid values: REPLICA | DAEMON
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 do not
meet the placement constraints.
Valid values: REPLICA | DAEMON
AwsEcsServiceDetails.Builder serviceArn(String serviceArn)
The ARN of the service.
serviceArn - The ARN of the service.AwsEcsServiceDetails.Builder serviceName(String serviceName)
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
serviceName - The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
AwsEcsServiceDetails.Builder serviceRegistries(Collection<AwsEcsServiceServiceRegistriesDetails> serviceRegistries)
Information about the service discovery registries to assign to the service.
serviceRegistries - Information about the service discovery registries to assign to the service.AwsEcsServiceDetails.Builder serviceRegistries(AwsEcsServiceServiceRegistriesDetails... serviceRegistries)
Information about the service discovery registries to assign to the service.
serviceRegistries - Information about the service discovery registries to assign to the service.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 via
AwsEcsServiceServiceRegistriesDetails.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #serviceRegistries(List.
serviceRegistries - a consumer that will call methods on
AwsEcsServiceServiceRegistriesDetails.Builder#serviceRegistries(java.util.Collection) AwsEcsServiceDetails.Builder taskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
taskDefinition - The task definition to use for tasks in the service.Copyright © 2023. All rights reserved.