Class CapacityProviderManagedInstancesProviderInfrastructureOptimizationArgs.Builder

    • Method Detail

      • scaleInAfter

        public CapacityProviderManagedInstancesProviderInfrastructureOptimizationArgs.Builder scaleInAfter​(@Nullable
                                                                                                           com.pulumi.core.Output<java.lang.Integer> scaleInAfter)
        Parameters:
        scaleInAfter - Number of seconds Amazon ECS Managed Instances waits before optimizing EC2 instances that have become idle or underutilized. A longer delay increases the likelihood of placing new tasks on idle instances, reducing startup time. A shorter delay helps reduce infrastructure costs by optimizing idle instances more quickly. Valid values are `-1` to disable automatic infrastructure optimization, `0` to `3600` (inclusive) to specify the number of seconds to wait before optimizing instances, or leave unset (null) to use the default optimization behavior.
        Returns:
        builder
      • scaleInAfter

        public CapacityProviderManagedInstancesProviderInfrastructureOptimizationArgs.Builder scaleInAfter​(java.lang.Integer scaleInAfter)
        Parameters:
        scaleInAfter - Number of seconds Amazon ECS Managed Instances waits before optimizing EC2 instances that have become idle or underutilized. A longer delay increases the likelihood of placing new tasks on idle instances, reducing startup time. A shorter delay helps reduce infrastructure costs by optimizing idle instances more quickly. Valid values are `-1` to disable automatic infrastructure optimization, `0` to `3600` (inclusive) to specify the number of seconds to wait before optimizing instances, or leave unset (null) to use the default optimization behavior.
        Returns:
        builder