Skip to content

ServiceConfiguration

Source code in docs_src/capo_compute_optimizer/types/service_configuration.py
class ServiceConfiguration(TypedDict, closed=True):
    memory: NotRequired["capo_compute_optimizer.types.nullable_memory.NullableMemory"]
    """<p> The amount of memory used by the tasks in the Amazon ECS service. </p>"""
    cpu: NotRequired["capo_compute_optimizer.types.nullable_cpu.NullableCpu"]
    """<p> The number of CPU units used by the tasks in the Amazon ECS service. </p>"""
    container_configurations: NotRequired[
        "capo_compute_optimizer.types.container_configurations.ContainerConfigurations"
    ]
    """<p> The container configurations within a task of an Amazon ECS service. </p>"""
    auto_scaling_configuration: NotRequired[
        "capo_compute_optimizer.types.auto_scaling_configuration.AutoScalingConfiguration"
    ]
    """<p> 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. </p> <p>The Auto Scaling configuration methods include:</p> <ul> <li> <p> <code>TARGET_TRACKING_SCALING_CPU</code> — If the Amazon ECS service is configured to use target scaling on CPU, Compute Optimizer doesn't generate CPU recommendations.</p> </li> <li> <p> <code>TARGET_TRACKING_SCALING_MEMORY</code> — If the Amazon ECS service is configured to use target scaling on memory, Compute Optimizer doesn't generate memory recommendations.</p> </li> </ul> <p>For more information about step scaling and target scaling, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html"> Step scaling policies for Application Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html"> Target tracking scaling policies for Application Auto Scaling</a> in the <i>Application Auto Scaling User Guide</i>.</p>"""
    task_definition_arn: NotRequired[
        "capo_compute_optimizer.types.task_definition_arn.TaskDefinitionArn"
    ]
    """<p> The task definition ARN used by the tasks in the Amazon ECS service. </p>"""

auto_scaling_configuration instance-attribute

auto_scaling_configuration: NotRequired[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.

container_configurations instance-attribute

container_configurations: NotRequired[ContainerConfigurations]

The container configurations within a task of an Amazon ECS service.

cpu instance-attribute

cpu: NotRequired[NullableCpu]

The number of CPU units used by the tasks in the Amazon ECS service.

memory instance-attribute

memory: NotRequired[NullableMemory]

The amount of memory used by the tasks in the Amazon ECS service.

task_definition_arn instance-attribute

task_definition_arn: NotRequired[TaskDefinitionArn]

The task definition ARN used by the tasks in the Amazon ECS service.