describe_scheduled_actions
async
¶
describe_scheduled_actions(
*,
config_overrides: Optional[AsyncAutoScalingClientConfig] = 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/async_auto_scaling.py
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 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 | |