deleteScheduledAction
abstract suspend fun deleteScheduledAction(input: DeleteScheduledActionRequest): DeleteScheduledActionResponse
Deletes the specified scheduled action for an Application Auto Scaling scalable target.
For more information, see Delete a scheduled action in the Application Auto Scaling User Guide.
Samples
import aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension
import aws.sdk.kotlin.services.applicationautoscaling.model.ServiceNamespace
fun main() {
//sampleStart
// This example deletes a scheduled action for the AppStream 2. 0 fleet called sample fleet.
val resp = applicationAutoScalingClient.deleteScheduledAction {
serviceNamespace = ServiceNamespace.fromValue("appstream")
scheduledActionName = "my-recurring-action"
resourceId = "fleet/sample-fleet"
scalableDimension = ScalableDimension.fromValue("appstream:fleet:DesiredCapacity")
}
//sampleEnd
}