import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * LbRouteExtension is a resource that lets you control where traffic is routed to for a given request. * * To get more information about LbRouteExtension, see: * * * [API documentation](https://cloud.google.com/service-extensions/docs/reference/rest/v1/projects.locations.lbRouteExtensions) * * How-to Guides * * [Configure a route extension](https://cloud.google.com/service-extensions/docs/configure-callout#configure_a_route_extension) * * ## Example Usage * * ## Import * * LbRouteExtension can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/lbRouteExtensions/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, LbRouteExtension can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:networkservices/lbRouteExtension:LbRouteExtension default projects/{{project}}/locations/{{location}}/lbRouteExtensions/{{name}} * $ pulumi import gcp:networkservices/lbRouteExtension:LbRouteExtension default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:networkservices/lbRouteExtension:LbRouteExtension default {{location}}/{{name}} * ``` */ export declare class LbRouteExtension extends pulumi.CustomResource { /** * Get an existing LbRouteExtension 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?: LbRouteExtensionState, opts?: pulumi.CustomResourceOptions): LbRouteExtension; /** * Returns true if the given object is an instance of LbRouteExtension. 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 LbRouteExtension; /** * A human-readable description of the resource. */ readonly description: pulumi.Output; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * A set of ordered extension chains that contain the match conditions and extensions to execute. * Match conditions for each extension chain are evaluated in sequence for a given request. * The first extension chain that has a condition that matches the request is executed. * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. * Further information can be found at https://cloud.google.com/service-extensions/docs/reference/rest/v1/ExtensionChain * Structure is documented below. */ readonly extensionChains: pulumi.Output; /** * A list of references to the forwarding rules to which this service extension is attached to. * At least one forwarding rule is required. There can be only one LbRouteExtension resource per forwarding rule. */ readonly forwardingRules: pulumi.Output; /** * Set of labels associated with the LbRouteExtension resource. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. * For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service) and * [Supported application load balancers](https://cloud.google.com/service-extensions/docs/callouts-overview#supported-lbs). * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. */ readonly loadBalancingScheme: pulumi.Output; /** * The location of the route extension */ readonly location: pulumi.Output; /** * Name of the LbRouteExtension resource in the following format: projects/{project}/locations/{location}/lbRouteExtensions/{lbRouteExtension} */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Create a LbRouteExtension 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: LbRouteExtensionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LbRouteExtension resources. */ export interface LbRouteExtensionState { /** * A human-readable description of the resource. */ description?: pulumi.Input; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A set of ordered extension chains that contain the match conditions and extensions to execute. * Match conditions for each extension chain are evaluated in sequence for a given request. * The first extension chain that has a condition that matches the request is executed. * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. * Further information can be found at https://cloud.google.com/service-extensions/docs/reference/rest/v1/ExtensionChain * Structure is documented below. */ extensionChains?: pulumi.Input[]>; /** * A list of references to the forwarding rules to which this service extension is attached to. * At least one forwarding rule is required. There can be only one LbRouteExtension resource per forwarding rule. */ forwardingRules?: pulumi.Input[]>; /** * Set of labels associated with the LbRouteExtension resource. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. * For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service) and * [Supported application load balancers](https://cloud.google.com/service-extensions/docs/callouts-overview#supported-lbs). * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. */ loadBalancingScheme?: pulumi.Input; /** * The location of the route extension */ location?: pulumi.Input; /** * Name of the LbRouteExtension resource in the following format: projects/{project}/locations/{location}/lbRouteExtensions/{lbRouteExtension} */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a LbRouteExtension resource. */ export interface LbRouteExtensionArgs { /** * A human-readable description of the resource. */ description?: pulumi.Input; /** * A set of ordered extension chains that contain the match conditions and extensions to execute. * Match conditions for each extension chain are evaluated in sequence for a given request. * The first extension chain that has a condition that matches the request is executed. * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. * Further information can be found at https://cloud.google.com/service-extensions/docs/reference/rest/v1/ExtensionChain * Structure is documented below. */ extensionChains: pulumi.Input[]>; /** * A list of references to the forwarding rules to which this service extension is attached to. * At least one forwarding rule is required. There can be only one LbRouteExtension resource per forwarding rule. */ forwardingRules: pulumi.Input[]>; /** * Set of labels associated with the LbRouteExtension resource. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. * For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service) and * [Supported application load balancers](https://cloud.google.com/service-extensions/docs/callouts-overview#supported-lbs). * Possible values are: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. */ loadBalancingScheme: pulumi.Input; /** * The location of the route extension */ location: pulumi.Input; /** * Name of the LbRouteExtension resource in the following format: projects/{project}/locations/{location}/lbRouteExtensions/{lbRouteExtension} */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; }