describe_scheduled_actions
¶
describe_scheduled_actions(
*,
config_overrides: Optional[AutoScalingClientConfig] = None,
auto_scaling_group_name: Optional[XmlStringMaxLen255] = None,
scheduled_action_names: Optional[ScheduledActionNames] = None,
start_time: Optional[TimestampType] = None,
end_time: Optional[TimestampType] = None,
include_managed_resources: Optional[IncludeManagedResources] = None,
next_token: Optional[XmlString] = None,
max_records: Optional[MaxRecords] = None,
) -> ScheduledActionsType
Gets information about the scheduled actions that haven't run or that have not reached their end time.
To describe the scaling activities for scheduled actions that have already run, call the DescribeScalingActivities API.
Parameters:
-
auto_scaling_group_name(Optional[XmlStringMaxLen255], default:None) –The name of the Auto Scaling group.
-
scheduled_action_names(Optional[ScheduledActionNames], default:None) –The names of one or more scheduled actions. If you omit this property, all scheduled actions are described. If you specify an unknown scheduled action, it is ignored with no error.
Array Members: Maximum number of 50 actions.
-
start_time(Optional[TimestampType], default:None) –The earliest scheduled start time to return. If scheduled action names are provided, this property is ignored.
-
end_time(Optional[TimestampType], default:None) –The latest scheduled start time to return. If scheduled action names are provided, this property is ignored.
-
include_managed_resources(Optional[IncludeManagedResources], default:None) –Specifies whether to include scheduled actions for managed Auto Scaling groups in the response. When set to
true(default), the response includes scheduled actions for managed Auto Scaling groups. -
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 return with this call. The default value is
50and the maximum value is100.A response can contain fewer items than the value specified by
MaxRecords, even when more items are available. To retrieve the additional items, use theNextTokenvalue in a subsequent call rather than relying on the number of items in the response.
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).
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe scheduled actions This example describes the scheduled actions for the specified Auto Scaling group.
Source code in docs_src/capo_auto_scaling/_services/auto_scaling.py
3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 | |