describe_policies
¶
describe_policies(
*,
config_overrides: Optional[AutoScalingClientConfig] = None,
auto_scaling_group_name: Optional[XmlStringMaxLen255] = None,
policy_names: Optional[PolicyNames] = None,
policy_types: Optional[PolicyTypes] = None,
next_token: Optional[XmlString] = None,
max_records: Optional[MaxRecords] = None,
) -> PoliciesType
Gets information about the scaling policies in the account and Region.
Parameters:
-
auto_scaling_group_name(Optional[XmlStringMaxLen255], default:None) –The name of the Auto Scaling group.
-
policy_names(Optional[PolicyNames], default:None) –The names of one or more policies. If you omit this property, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.
Array Members: Maximum number of 50 items.
-
policy_types(Optional[PolicyTypes], default:None) –One or more policy types. The valid values are
SimpleScaling,StepScaling,TargetTrackingScaling, andPredictiveScaling. -
next_token(Optional[XmlString], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
max_records(Optional[MaxRecords], default:None) –The maximum number of items to be returned with each call. The default value is
50and the maximum value is100.
Raises:
-
InvalidNextToken–The
NextTokenvalue is not valid. -
ResourceContentionFault–You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).
-
ServiceLinkedRoleFailure–The service-linked role is not yet ready for use.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe scaling policies This example describes the policies for the specified Auto Scaling group.
Source code in docs_src/capo_auto_scaling/_services/auto_scaling.py
2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 | |