Skip to content

describe_adjustment_types

describe_adjustment_types(
    *, config_overrides: Optional[AutoScalingClientConfig] = None
) -> DescribeAdjustmentTypesAnswer

Describes the available adjustment types for step scaling and simple scaling policies.

The following adjustment types are supported:

  • ChangeInCapacity

  • ExactCapacity

  • PercentChangeInCapacity

Raises:

  • ResourceContentionFault –

    You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).

  • UnknownServiceError –

    The service returned an error code this client does not model.

Examples:

To describe the Amazon EC2 Auto Scaling adjustment types This example describes the available adjustment types.

>>> client.describe_adjustment_types()
Source code in docs_src/capo_auto_scaling/_services/auto_scaling.py
def describe_adjustment_types(
    self, *, config_overrides: Optional[AutoScalingClientConfig] = None
) -> "capo_auto_scaling.types.describe_adjustment_types_answer.DescribeAdjustmentTypesAnswer":
    """<p>Describes the available adjustment types for step scaling and simple scaling policies.</p> <p>The following adjustment types are supported:</p> <ul> <li> <p> <code>ChangeInCapacity</code> </p> </li> <li> <p> <code>ExactCapacity</code> </p> </li> <li> <p> <code>PercentChangeInCapacity</code> </p> </li> </ul>

    Raises:
        capo_auto_scaling.errors.resource_contention_fault.ResourceContentionFault: <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).</p>
        capo_auto_scaling.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To describe the Amazon EC2 Auto Scaling adjustment types
        This example describes the available adjustment types.

        >>> client.describe_adjustment_types()
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_auto_scaling.types.describe_adjustment_types_answer.DescribeAdjustmentTypesAnswer"
    ]:
        import capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_adjustment_types

        output, http_response = (
            capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_adjustment_types.describe_adjustment_types(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAdjustmentTypes")
    )

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output