Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ServiceConfiguration = ServiceConfiguration' {}
- newServiceConfiguration :: ServiceConfiguration
- serviceConfiguration_autoScalingConfiguration :: Lens' ServiceConfiguration (Maybe AutoScalingConfiguration)
- serviceConfiguration_containerConfigurations :: Lens' ServiceConfiguration (Maybe [ContainerConfiguration])
- serviceConfiguration_cpu :: Lens' ServiceConfiguration (Maybe Int)
- serviceConfiguration_memory :: Lens' ServiceConfiguration (Maybe Int)
- serviceConfiguration_taskDefinitionArn :: Lens' ServiceConfiguration (Maybe Text)
Documentation
data ServiceConfiguration Source #
The Amazon ECS service configurations used for recommendations.
See: newServiceConfiguration
smart constructor.
ServiceConfiguration' | |
|
Instances
newServiceConfiguration :: ServiceConfiguration Source #
Create a value of ServiceConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:autoScalingConfiguration:ServiceConfiguration'
, serviceConfiguration_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 ECS service’s CPU, then Compute
Optimizer doesn’t generate CPU size recommendations.
The Auto Scaling configuration methods include:
TARGET_TRACKING_SCALING_CPU
— If the ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations.TARGET_TRACKING_SCALING_MEMORY
— If the 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.
$sel:containerConfigurations:ServiceConfiguration'
, serviceConfiguration_containerConfigurations
- The container configurations within a task of an ECS service.
ServiceConfiguration
, serviceConfiguration_cpu
- The number of CPU units used by the tasks in the ECS service.
$sel:memory:ServiceConfiguration'
, serviceConfiguration_memory
- The amount of memory used by the tasks in the ECS service.
$sel:taskDefinitionArn:ServiceConfiguration'
, serviceConfiguration_taskDefinitionArn
- The task definition ARN used by the tasks in the ECS service.
serviceConfiguration_autoScalingConfiguration :: Lens' ServiceConfiguration (Maybe AutoScalingConfiguration) Source #
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 ECS service’s CPU, then Compute Optimizer doesn’t generate CPU size recommendations.
The Auto Scaling configuration methods include:
TARGET_TRACKING_SCALING_CPU
— If the ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations.TARGET_TRACKING_SCALING_MEMORY
— If the 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.
serviceConfiguration_containerConfigurations :: Lens' ServiceConfiguration (Maybe [ContainerConfiguration]) Source #
The container configurations within a task of an ECS service.
serviceConfiguration_cpu :: Lens' ServiceConfiguration (Maybe Int) Source #
The number of CPU units used by the tasks in the ECS service.
serviceConfiguration_memory :: Lens' ServiceConfiguration (Maybe Int) Source #
The amount of memory used by the tasks in the ECS service.
serviceConfiguration_taskDefinitionArn :: Lens' ServiceConfiguration (Maybe Text) Source #
The task definition ARN used by the tasks in the ECS service.