import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS API Gateway V2 Routing Rule. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.apigatewayv2.RoutingRule("example", { * actions: [{ * invokeApi: { * apiId: "example-api-id", * stage: "example-stage", * stripBasePath: true, * }, * }], * conditions: [{ * matchHeaders: { * anyOf: { * header: "X-Example-Header", * valueGlob: "example-value-*", * }, * }, * matchBasePaths: { * anyOfs: [ * "example-path", * "another-path", * ], * }, * }], * domainName: "test.example.com", * priority: 1, * }); * ``` * * ## Import * * Using `pulumi import`, import API Gateway V2 Routing Rule using the `routingRuleArn`. For example: * * ```sh * $ pulumi import aws:apigatewayv2/routingRule:RoutingRule example arn:aws:apigateway:us-east-1:123456789012:/domainnames/example.com/routingrules/rule1 * ``` */ export declare class RoutingRule extends pulumi.CustomResource { /** * Get an existing RoutingRule 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?: RoutingRuleState, opts?: pulumi.CustomResourceOptions): RoutingRule; /** * Returns true if the given object is an instance of RoutingRule. 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 RoutingRule; /** * Configuration of resulting action based on matching routing rules condition. See below. */ readonly actions: pulumi.Output; /** * Conditions configuration. See below. */ readonly conditions: pulumi.Output; /** * Domain name. Must be between 1 and 512 characters in length. * * The following arguments are optional: */ readonly domainName: pulumi.Output; /** * Order of rule evaluation. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Value must be between 1 and 1,000,000. */ readonly priority: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN of the Routing Rule. */ readonly routingRuleArn: pulumi.Output; /** * ID of the Routing Rule. */ readonly routingRuleId: pulumi.Output; /** * Create a RoutingRule 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: RoutingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RoutingRule resources. */ export interface RoutingRuleState { /** * Configuration of resulting action based on matching routing rules condition. See below. */ actions?: pulumi.Input[] | undefined>; /** * Conditions configuration. See below. */ conditions?: pulumi.Input[] | undefined>; /** * Domain name. Must be between 1 and 512 characters in length. * * The following arguments are optional: */ domainName?: pulumi.Input; /** * Order of rule evaluation. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Value must be between 1 and 1,000,000. */ priority?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ARN of the Routing Rule. */ routingRuleArn?: pulumi.Input; /** * ID of the Routing Rule. */ routingRuleId?: pulumi.Input; } /** * The set of arguments for constructing a RoutingRule resource. */ export interface RoutingRuleArgs { /** * Configuration of resulting action based on matching routing rules condition. See below. */ actions: pulumi.Input[]>; /** * Conditions configuration. See below. */ conditions: pulumi.Input[]>; /** * Domain name. Must be between 1 and 512 characters in length. * * The following arguments are optional: */ domainName: pulumi.Input; /** * Order of rule evaluation. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Value must be between 1 and 1,000,000. */ priority: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } //# sourceMappingURL=routingRule.d.ts.map