import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface FunctionScalingPolicyConfig extends cdktf.TerraformMetaArguments { /** * Yandex Cloud Function id used to define function. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#function_id FunctionScalingPolicy#function_id} */ readonly functionId: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#id FunctionScalingPolicy#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * policy block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#policy FunctionScalingPolicy#policy} */ readonly policy?: FunctionScalingPolicyPolicy[] | cdktf.IResolvable; } export interface FunctionScalingPolicyPolicy { /** * Yandex Cloud Function version tag for Yandex Cloud Function scaling policy. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#tag FunctionScalingPolicy#tag} */ readonly tag: string; /** * Max number of instances in one zone for Yandex Cloud Function with tag. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#zone_instances_limit FunctionScalingPolicy#zone_instances_limit} */ readonly zoneInstancesLimit?: number; /** * Max number of requests in one zone for Yandex Cloud Function with tag. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#zone_requests_limit FunctionScalingPolicy#zone_requests_limit} */ readonly zoneRequestsLimit?: number; } export declare function functionScalingPolicyPolicyToTerraform(struct?: FunctionScalingPolicyPolicy | cdktf.IResolvable): any; export declare function functionScalingPolicyPolicyToHclTerraform(struct?: FunctionScalingPolicyPolicy | cdktf.IResolvable): any; export declare class FunctionScalingPolicyPolicyOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): FunctionScalingPolicyPolicy | cdktf.IResolvable | undefined; set internalValue(value: FunctionScalingPolicyPolicy | cdktf.IResolvable | undefined); private _tag?; get tag(): string; set tag(value: string); get tagInput(): string; private _zoneInstancesLimit?; get zoneInstancesLimit(): number; set zoneInstancesLimit(value: number); resetZoneInstancesLimit(): void; get zoneInstancesLimitInput(): number; private _zoneRequestsLimit?; get zoneRequestsLimit(): number; set zoneRequestsLimit(value: number); resetZoneRequestsLimit(): void; get zoneRequestsLimitInput(): number; } export declare class FunctionScalingPolicyPolicyList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: FunctionScalingPolicyPolicy[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): FunctionScalingPolicyPolicyOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy yandex_function_scaling_policy} */ export declare class FunctionScalingPolicy extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_function_scaling_policy"; /** * Generates CDKTF code for importing a FunctionScalingPolicy resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the FunctionScalingPolicy to import * @param importFromId The id of the existing FunctionScalingPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the FunctionScalingPolicy to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/function_scaling_policy yandex_function_scaling_policy} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options FunctionScalingPolicyConfig */ constructor(scope: Construct, id: string, config: FunctionScalingPolicyConfig); private _functionId?; get functionId(): string; set functionId(value: string); get functionIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _policy; get policy(): FunctionScalingPolicyPolicyList; putPolicy(value: FunctionScalingPolicyPolicy[] | cdktf.IResolvable): void; resetPolicy(): void; get policyInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }