Interface ServiceConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceConfiguration.Builder,ServiceConfiguration>,SdkBuilder<ServiceConfiguration.Builder,ServiceConfiguration>,SdkPojo
- Enclosing class:
- ServiceConfiguration
public static interface ServiceConfiguration.Builder extends SdkPojo, CopyableBuilder<ServiceConfiguration.Builder,ServiceConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceConfiguration.BuilderautoScalingConfiguration(String autoScalingConfiguration)Describes the Auto Scaling configuration methods for an Amazon ECS service.ServiceConfiguration.BuilderautoScalingConfiguration(AutoScalingConfiguration autoScalingConfiguration)Describes the Auto Scaling configuration methods for an Amazon ECS service.ServiceConfiguration.BuildercontainerConfigurations(Collection<ContainerConfiguration> containerConfigurations)The container configurations within a task of an Amazon ECS service.ServiceConfiguration.BuildercontainerConfigurations(Consumer<ContainerConfiguration.Builder>... containerConfigurations)The container configurations within a task of an Amazon ECS service.ServiceConfiguration.BuildercontainerConfigurations(ContainerConfiguration... containerConfigurations)The container configurations within a task of an Amazon ECS service.ServiceConfiguration.Buildercpu(Integer cpu)The number of CPU units used by the tasks in the Amazon ECS service.ServiceConfiguration.Buildermemory(Integer memory)The amount of memory used by the tasks in the Amazon ECS service.ServiceConfiguration.BuildertaskDefinitionArn(String taskDefinitionArn)The task definition ARN used by the tasks in the Amazon ECS 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, sdkFields
-
-
-
-
Method Detail
-
memory
ServiceConfiguration.Builder memory(Integer memory)
The amount of memory used by the tasks in the Amazon ECS service.
- Parameters:
memory- The amount of memory used by the tasks in the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpu
ServiceConfiguration.Builder cpu(Integer cpu)
The number of CPU units used by the tasks in the Amazon ECS service.
- Parameters:
cpu- The number of CPU units used by the tasks in the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerConfigurations
ServiceConfiguration.Builder containerConfigurations(Collection<ContainerConfiguration> containerConfigurations)
The container configurations within a task of an Amazon ECS service.
- Parameters:
containerConfigurations- The container configurations within a task of an Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerConfigurations
ServiceConfiguration.Builder containerConfigurations(ContainerConfiguration... containerConfigurations)
The container configurations within a task of an Amazon ECS service.
- Parameters:
containerConfigurations- The container configurations within a task of an Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerConfigurations
ServiceConfiguration.Builder containerConfigurations(Consumer<ContainerConfiguration.Builder>... containerConfigurations)
The container configurations within a task of an Amazon ECS service.
This is a convenience method that creates an instance of theContainerConfiguration.Builderavoiding the need to create one manually viaContainerConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containerConfigurations(List.) - Parameters:
containerConfigurations- a consumer that will call methods onContainerConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#containerConfigurations(java.util.Collection)
-
autoScalingConfiguration
ServiceConfiguration.Builder autoScalingConfiguration(String autoScalingConfiguration)
Describes the Auto Scaling configuration methods for an Amazon ECS service. This affects the generated recommendations. For example, if Auto Scaling is configured on a service’s CPU, then Compute Optimizer doesn’t generate CPU size recommendations.
The Auto Scaling configuration methods include:
-
TARGET_TRACKING_SCALING_CPU— If the Amazon ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations. -
TARGET_TRACKING_SCALING_MEMORY— If the Amazon ECS service is configured to use target scaling on memory, Compute Optimizer doesn't generate memory recommendations.
For more information about step scaling and target scaling, see Step scaling policies for Application Auto Scaling and Target tracking scaling policies for Application Auto Scaling in the Application Auto Scaling User Guide.
- Parameters:
autoScalingConfiguration- Describes the Auto Scaling configuration methods for an Amazon ECS service. This affects the generated recommendations. For example, if Auto Scaling is configured on a service’s CPU, then Compute Optimizer doesn’t generate CPU size recommendations.The Auto Scaling configuration methods include:
-
TARGET_TRACKING_SCALING_CPU— If the Amazon ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations. -
TARGET_TRACKING_SCALING_MEMORY— If the Amazon ECS service is configured to use target scaling on memory, Compute Optimizer doesn't generate memory recommendations.
For more information about step scaling and target scaling, see Step scaling policies for Application Auto Scaling and Target tracking scaling policies for Application Auto Scaling in the Application Auto Scaling User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingConfiguration,AutoScalingConfiguration
-
-
autoScalingConfiguration
ServiceConfiguration.Builder autoScalingConfiguration(AutoScalingConfiguration autoScalingConfiguration)
Describes the Auto Scaling configuration methods for an Amazon ECS service. This affects the generated recommendations. For example, if Auto Scaling is configured on a service’s CPU, then Compute Optimizer doesn’t generate CPU size recommendations.
The Auto Scaling configuration methods include:
-
TARGET_TRACKING_SCALING_CPU— If the Amazon ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations. -
TARGET_TRACKING_SCALING_MEMORY— If the Amazon ECS service is configured to use target scaling on memory, Compute Optimizer doesn't generate memory recommendations.
For more information about step scaling and target scaling, see Step scaling policies for Application Auto Scaling and Target tracking scaling policies for Application Auto Scaling in the Application Auto Scaling User Guide.
- Parameters:
autoScalingConfiguration- Describes the Auto Scaling configuration methods for an Amazon ECS service. This affects the generated recommendations. For example, if Auto Scaling is configured on a service’s CPU, then Compute Optimizer doesn’t generate CPU size recommendations.The Auto Scaling configuration methods include:
-
TARGET_TRACKING_SCALING_CPU— If the Amazon ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations. -
TARGET_TRACKING_SCALING_MEMORY— If the Amazon ECS service is configured to use target scaling on memory, Compute Optimizer doesn't generate memory recommendations.
For more information about step scaling and target scaling, see Step scaling policies for Application Auto Scaling and Target tracking scaling policies for Application Auto Scaling in the Application Auto Scaling User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingConfiguration,AutoScalingConfiguration
-
-
taskDefinitionArn
ServiceConfiguration.Builder taskDefinitionArn(String taskDefinitionArn)
The task definition ARN used by the tasks in the Amazon ECS service.
- Parameters:
taskDefinitionArn- The task definition ARN used by the tasks in the Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-