import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new policy-based route in a given project and location. * Auto-naming is currently not supported for this resource. */ export declare class PolicyBasedRoute extends pulumi.CustomResource { /** * Get an existing PolicyBasedRoute 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): PolicyBasedRoute; /** * Returns true if the given object is an instance of PolicyBasedRoute. 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 PolicyBasedRoute; /** * Time when the policy-based route was created. */ readonly createTime: pulumi.Output; /** * Optional. An optional description of this resource. Provide this field when you create the resource. */ readonly description: pulumi.Output; /** * The filter to match L4 traffic. */ readonly filter: pulumi.Output; /** * Optional. The interconnect attachments that this policy-based route applies to. */ readonly interconnectAttachment: pulumi.Output; /** * Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources. */ readonly kind: pulumi.Output; /** * User-defined labels. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Immutable. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` */ readonly name: pulumi.Output; /** * Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network. */ readonly network: pulumi.Output; /** * Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported. */ readonly nextHopIlbIp: pulumi.Output; /** * Optional. Other routes that will be referenced to determine the next hop of the packet. */ readonly nextHopOtherRoutes: pulumi.Output; /** * Required. Unique id for the policy-based route to create. */ readonly policyBasedRouteId: pulumi.Output; /** * Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive. */ readonly priority: pulumi.Output; readonly project: pulumi.Output; /** * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ readonly requestId: pulumi.Output; /** * Server-defined fully-qualified URL for this resource. */ readonly selfLink: pulumi.Output; /** * Time when the policy-based route was updated. */ readonly updateTime: pulumi.Output; /** * Optional. VM instances to which this policy-based route applies to. */ readonly virtualMachine: pulumi.Output; /** * If potential misconfigurations are detected for this route, this field will be populated with warning messages. */ readonly warnings: pulumi.Output; /** * Create a PolicyBasedRoute 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: PolicyBasedRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a PolicyBasedRoute resource. */ export interface PolicyBasedRouteArgs { /** * Optional. An optional description of this resource. Provide this field when you create the resource. */ description?: pulumi.Input; /** * The filter to match L4 traffic. */ filter: pulumi.Input; /** * Optional. The interconnect attachments that this policy-based route applies to. */ interconnectAttachment?: pulumi.Input; /** * User-defined labels. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Immutable. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` */ name?: pulumi.Input; /** * Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network. */ network: pulumi.Input; /** * Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported. */ nextHopIlbIp?: pulumi.Input; /** * Optional. Other routes that will be referenced to determine the next hop of the packet. */ nextHopOtherRoutes?: pulumi.Input; /** * Required. Unique id for the policy-based route to create. */ policyBasedRouteId: pulumi.Input; /** * Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive. */ priority?: pulumi.Input; project?: pulumi.Input; /** * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: pulumi.Input; /** * Optional. VM instances to which this policy-based route applies to. */ virtualMachine?: pulumi.Input; }