import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource, that manages Cloudflare static routes for Magic Transit or Magic WAN. * Static routes are used to route traffic through GRE tunnels. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const example = new cloudflare.StaticRoute("example", { * accountId: "c4a7362d577a6c3019a474fd6f485821", * coloNames: ["den01"], * coloRegions: ["APAC"], * description: "New route for new prefix 192.0.2.0/24", * nexthop: "10.0.0.0", * prefix: "192.0.2.0/24", * priority: 100, * weight: 10, * }); * ``` * * ## Import * * An existing static route can be imported using the account ID and static route ID * * ```sh * $ pulumi import cloudflare:index/staticRoute:StaticRoute example d41d8cd98f00b204e9800998ecf8427e/cb029e245cfdd66dc8d2e570d5dd3322 * ``` */ export declare class StaticRoute extends pulumi.CustomResource { /** * Get an existing StaticRoute 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?: StaticRouteState, opts?: pulumi.CustomResourceOptions): StaticRoute; /** * Returns true if the given object is an instance of StaticRoute. 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 StaticRoute; /** * The ID of the account where the static route is being created. */ readonly accountId: pulumi.Output; /** * Optional list of Cloudflare colocation names for this static route. */ readonly coloNames: pulumi.Output; /** * Optional list of Cloudflare colocation regions for this static route. */ readonly coloRegions: pulumi.Output; /** * Description of the static route. */ readonly description: pulumi.Output; /** * The nexthop IP address where traffic will be routed to. */ readonly nexthop: pulumi.Output; /** * Your network prefix using CIDR notation. */ readonly prefix: pulumi.Output; /** * The priority for the static route. */ readonly priority: pulumi.Output; /** * The optional weight for ECMP routes. */ readonly weight: pulumi.Output; /** * Create a StaticRoute 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: StaticRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StaticRoute resources. */ export interface StaticRouteState { /** * The ID of the account where the static route is being created. */ accountId?: pulumi.Input; /** * Optional list of Cloudflare colocation names for this static route. */ coloNames?: pulumi.Input[]>; /** * Optional list of Cloudflare colocation regions for this static route. */ coloRegions?: pulumi.Input[]>; /** * Description of the static route. */ description?: pulumi.Input; /** * The nexthop IP address where traffic will be routed to. */ nexthop?: pulumi.Input; /** * Your network prefix using CIDR notation. */ prefix?: pulumi.Input; /** * The priority for the static route. */ priority?: pulumi.Input; /** * The optional weight for ECMP routes. */ weight?: pulumi.Input; } /** * The set of arguments for constructing a StaticRoute resource. */ export interface StaticRouteArgs { /** * The ID of the account where the static route is being created. */ accountId?: pulumi.Input; /** * Optional list of Cloudflare colocation names for this static route. */ coloNames?: pulumi.Input[]>; /** * Optional list of Cloudflare colocation regions for this static route. */ coloRegions?: pulumi.Input[]>; /** * Description of the static route. */ description?: pulumi.Input; /** * The nexthop IP address where traffic will be routed to. */ nexthop: pulumi.Input; /** * Your network prefix using CIDR notation. */ prefix: pulumi.Input; /** * The priority for the static route. */ priority: pulumi.Input; /** * The optional weight for ECMP routes. */ weight?: pulumi.Input; }