import * as pulumi from "@pulumi/pulumi"; /** * Used to start or stop a GTM instance. After starting, the GTM instance configures DNS resolution for the scheduling domain, and initiates health checks and failover. After stopping, health checks and failover for the GTM instance also stop. However, DNS resolution from the scheduling domain to the target address does not stop. If you need to delete DNS resolution from the scheduling domain to the target address, you can call the DeleteGtm API to delete the GTM instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const gTMRoutingDemo = new volcenginecc.gtm.Routing("GTMRoutingDemo", { * gtmId: "gtm_id_xxxxx", * routingEnabled: true, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:gtm/routing:Routing example "gtm_id" * ``` */ export declare class Routing extends pulumi.CustomResource { /** * Get an existing Routing 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?: RoutingState, opts?: pulumi.CustomResourceOptions): Routing; /** * Returns true if the given object is an instance of Routing. 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 Routing; /** * UUID of the GTM instance. You can obtain GtmId via the ListGtms API. */ readonly gtmId: pulumi.Output; /** * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance. */ readonly routingEnabled: pulumi.Output; /** * Indicates the current lifecycle state of the GTM instance. Value description: init: The GTM instance has been successfully created but not yet configured. configuring_address: Basic rule configuration for GTM is complete, but target address configuration is not yet finished. editing: Both basic configuration and target address have been completed, but the instance is not yet enabled. running: The instance is officially enabled. */ readonly routingStatus: pulumi.Output; /** * Create a Routing 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?: RoutingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Routing resources. */ export interface RoutingState { /** * UUID of the GTM instance. You can obtain GtmId via the ListGtms API. */ gtmId?: pulumi.Input; /** * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance. */ routingEnabled?: pulumi.Input; /** * Indicates the current lifecycle state of the GTM instance. Value description: init: The GTM instance has been successfully created but not yet configured. configuring_address: Basic rule configuration for GTM is complete, but target address configuration is not yet finished. editing: Both basic configuration and target address have been completed, but the instance is not yet enabled. running: The instance is officially enabled. */ routingStatus?: pulumi.Input; } /** * The set of arguments for constructing a Routing resource. */ export interface RoutingArgs { /** * UUID of the GTM instance. You can obtain GtmId via the ListGtms API. */ gtmId?: pulumi.Input; /** * Start/stop GTM instance. true: Start GTM instance. false: Stop GTM instance. */ routingEnabled?: pulumi.Input; }