import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::GTM::Policy */ export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getPolicy. */ export interface GetPolicyResult { /** * 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: boolean; /** * UUID of the GTM instance. You can obtain GtmId through the ListGtms API */ readonly gtmId: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Routing mode for intelligent routing strategy. perf: Performance first. capacity: Capacity first. feedback: Load feedback */ readonly perfMode: string; /** * Strategy type. geo: Basic routing. perf: Intelligent routing */ readonly policyType: string; /** * 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: string; /** * Statistical information about address status */ readonly statistics: outputs.gtm.GetPolicyStatistics; /** * Traffic target for intelligent routing strategy */ readonly targets: outputs.gtm.GetPolicyTarget[]; } /** * Data Source schema for Volcengine::GTM::Policy */ export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }