deleteScheduledAction

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


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
}