@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
123 lines (122 loc) • 3.55 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of ELB L7 rules.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const compareType = config.requireObject("compareType");
* const test = huaweicloud.DedicatedElb.getL7rules({
* compareType: compareType,
* });
* ```
*/
export declare function getL7rules(args: GetL7rulesArgs, opts?: pulumi.InvokeOptions): Promise<GetL7rulesResult>;
/**
* A collection of arguments for invoking getL7rules.
*/
export interface GetL7rulesArgs {
/**
* Specifies how requests are matched with the domain names or URL. Values options:
* **EQUAL_TO**, **REGEX**, **STARTS_WITH**.
*/
compareType?: string;
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: string;
/**
* Specifies the forwarding policy ID.
*/
l7policyId: string;
/**
* Specifies the forwarding rule ID.
*/
l7ruleId?: string;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the match type. Value options: **HOST_NAME**, **PATH**, **METHOD**, **HEADER**,
* **QUERY_STRING**, **SOURCE_IP**, **COOKIE**.
*/
type?: string;
/**
* Specifies the value of the match content.
*/
value?: string;
}
/**
* A collection of values returned by getL7rules.
*/
export interface GetL7rulesResult {
/**
* How the requests are matched with the domain name or URL.
*/
readonly compareType?: string;
readonly enterpriseProjectId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly l7policyId: string;
readonly l7ruleId?: string;
/**
* Lists the L7 rules.
* The l7rules structure is documented below.
*/
readonly l7rules: outputs.DedicatedElb.GetL7rulesL7rule[];
readonly region: string;
/**
* The type of the forwarding rule.
*/
readonly type?: string;
/**
* The value of the match item.
*/
readonly value?: string;
}
export declare function getL7rulesOutput(args: GetL7rulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetL7rulesResult>;
/**
* A collection of arguments for invoking getL7rules.
*/
export interface GetL7rulesOutputArgs {
/**
* Specifies how requests are matched with the domain names or URL. Values options:
* **EQUAL_TO**, **REGEX**, **STARTS_WITH**.
*/
compareType?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the forwarding policy ID.
*/
l7policyId: pulumi.Input<string>;
/**
* Specifies the forwarding rule ID.
*/
l7ruleId?: pulumi.Input<string>;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the match type. Value options: **HOST_NAME**, **PATH**, **METHOD**, **HEADER**,
* **QUERY_STRING**, **SOURCE_IP**, **COOKIE**.
*/
type?: pulumi.Input<string>;
/**
* Specifies the value of the match content.
*/
value?: pulumi.Input<string>;
}