[[reference-autoscaling-put_autoscaling_policy]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] [[client.autoscaling.putAutoscalingPolicy]] === client.autoscaling.putAutoscalingPolicy Create or update an autoscaling policy. NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported. {ref}/autoscaling-put-autoscaling-policy.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (AutoscalingPutAutoscalingPolicyRequest, options?): Promise ---- [discrete] ==== AutoscalingPutAutoscalingPolicyRequest [pass] ++++
++++
interface AutoscalingPutAutoscalingPolicyRequest extends <> {
  name: <>
  policy?: AutoscalingAutoscalingPolicy
}

[pass]
++++
++++ [discrete] ==== AutoscalingPutAutoscalingPolicyResponse [pass] ++++
++++
type AutoscalingPutAutoscalingPolicyResponse = <>

[pass]
++++
++++