import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Scheduling policy configuration under the GTM instance, identified by GtmId and PolicyType, and maintained via UpdatePolicy. * * ## Import * * ```sh * $ pulumi import volcenginecc:gtm/policy:Policy example "gtm_id|policy_type" * ``` */ export declare class Policy extends pulumi.CustomResource { /** * Get an existing Policy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy; /** * Returns true if the given object is an instance of Policy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Policy; /** * If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool */ readonly alarmOnly: pulumi.Output; /** * UUID of the GTM instance. You can obtain GtmId through the ListGtms API */ readonly gtmId: pulumi.Output; /** * Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback */ readonly perfMode: pulumi.Output; /** * Strategy type. geo: Basic routing. perf: Intelligent routing */ readonly policyType: pulumi.Output; /** * Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs */ readonly routingMode: pulumi.Output; /** * Statistical information about address status */ readonly statistics: pulumi.Output; readonly targets: pulumi.Output; /** * Create a Policy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: PolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Policy resources. */ export interface PolicyState { /** * If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool */ alarmOnly?: pulumi.Input; /** * UUID of the GTM instance. You can obtain GtmId through the ListGtms API */ gtmId?: pulumi.Input; /** * Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback */ perfMode?: pulumi.Input; /** * Strategy type. geo: Basic routing. perf: Intelligent routing */ policyType?: pulumi.Input; /** * Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs */ routingMode?: pulumi.Input; /** * Statistical information about address status */ statistics?: pulumi.Input; targets?: pulumi.Input[]>; } /** * The set of arguments for constructing a Policy resource. */ export interface PolicyArgs { /** * If the current address pool set is unavailable, Cloud Scheduling GTM only triggers an alert notification and does not automatically switch to an available address pool. true: Cloud Scheduling GTM only triggers an alert notification. false: Cloud Scheduling GTM automatically switches to an available address pool */ alarmOnly?: pulumi.Input; /** * UUID of the GTM instance. You can obtain GtmId through the ListGtms API */ gtmId: pulumi.Input; /** * Strategy type. geo: Basic routing. perf: Intelligent routing */ policyType: pulumi.Input; /** * Routing mode. The parameter values are: lb: Based on load balancing, user traffic is routed proportionally to different IDCs. geo: Based on the user's geographic location and operator, user traffic is routed to the nearest IDC on the same operator's network. geo-lb (default): First, based on the user's geographic location and operator, user traffic is routed to the nearest IDC access line on the same operator's network. Then, based on load balancing, user traffic is routed proportionally to multiple IDCs */ routingMode?: pulumi.Input; targets?: pulumi.Input[]>; }