yandex_function_scaling_policy (Data Source)
Статья создана
Обновлена 7 августа 2025 г.
Get information about a Yandex Cloud Function Scaling Policy. For more information about Yandex Cloud Functions, see Yandex Cloud Functions.
This data source is used to define Yandex Cloud Function Scaling Policy that can be used by other resources.
Example usage
//
// Get information about existing Cloud Function Scaling Policy.
//
data "yandex_function_scaling_policy" "my_scaling_policy" {
function_id = "d4e45**********pqvd3"
}
Schema
Required
function_id(String) Yandex Cloud Function id used to define function.
Optional
policy(Block List) (see below for nested schema)
Read-Only
id(String) The ID of this resource.
Nested Schema for policy
Optional:
-
zone_instances_limit(Number) Max number of instances in one zone for Yandex Cloud Function with tag. -
zone_requests_limit(Number) Max number of requests in one zone for Yandex Cloud Function with tag.
Read-Only:
tag(String) Yandex Cloud Function version tag for Yandex Cloud Function scaling policy.