@volcengine/pulumi 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apig/apigCustomDomain.d.ts +244 -0
- package/apig/apigCustomDomain.js +167 -0
- package/apig/apigCustomDomain.js.map +1 -0
- package/apig/apigGateway.d.ts +262 -0
- package/apig/apigGateway.js +150 -0
- package/apig/apigGateway.js.map +1 -0
- package/apig/apigGatewayService.d.ts +206 -0
- package/apig/apigGatewayService.js +159 -0
- package/apig/apigGatewayService.js.map +1 -0
- package/apig/apigRoute.d.ts +397 -0
- package/apig/apigRoute.js +299 -0
- package/apig/apigRoute.js.map +1 -0
- package/apig/apigUpstream.d.ts +375 -0
- package/apig/apigUpstream.js +278 -0
- package/apig/apigUpstream.js.map +1 -0
- package/apig/apigUpstreamSource.d.ts +214 -0
- package/apig/apigUpstreamSource.js +182 -0
- package/apig/apigUpstreamSource.js.map +1 -0
- package/apig/apigUpstreamVersion.d.ts +211 -0
- package/apig/apigUpstreamVersion.js +206 -0
- package/apig/apigUpstreamVersion.js.map +1 -0
- package/apig/customDomains.d.ts +112 -0
- package/apig/customDomains.js +55 -0
- package/apig/customDomains.js.map +1 -0
- package/apig/gatewayServices.d.ts +104 -0
- package/apig/gatewayServices.js +52 -0
- package/apig/gatewayServices.js.map +1 -0
- package/apig/gateways.d.ts +162 -0
- package/apig/gateways.js +63 -0
- package/apig/gateways.js.map +1 -0
- package/apig/getCustomDomains.d.ts +110 -0
- package/apig/getCustomDomains.js +52 -0
- package/apig/getCustomDomains.js.map +1 -0
- package/apig/getGatewayServices.d.ts +102 -0
- package/apig/getGatewayServices.js +49 -0
- package/apig/getGatewayServices.js.map +1 -0
- package/apig/getGateways.d.ts +160 -0
- package/apig/getGateways.js +60 -0
- package/apig/getGateways.js.map +1 -0
- package/apig/getRoutes.d.ts +153 -0
- package/apig/getRoutes.js +54 -0
- package/apig/getRoutes.js.map +1 -0
- package/apig/getUpstreamSources.d.ts +123 -0
- package/apig/getUpstreamSources.js +51 -0
- package/apig/getUpstreamSources.js.map +1 -0
- package/apig/getUpstreamVersions.d.ts +84 -0
- package/apig/getUpstreamVersions.js +47 -0
- package/apig/getUpstreamVersions.js.map +1 -0
- package/apig/getUpstreams.d.ts +140 -0
- package/apig/getUpstreams.js +60 -0
- package/apig/getUpstreams.js.map +1 -0
- package/apig/index.d.ts +63 -0
- package/apig/index.js +94 -0
- package/apig/index.js.map +1 -0
- package/apig/routes.d.ts +155 -0
- package/apig/routes.js +57 -0
- package/apig/routes.js.map +1 -0
- package/apig/upstreamSources.d.ts +125 -0
- package/apig/upstreamSources.js +54 -0
- package/apig/upstreamSources.js.map +1 -0
- package/apig/upstreamVersions.d.ts +86 -0
- package/apig/upstreamVersions.js +50 -0
- package/apig/upstreamVersions.js.map +1 -0
- package/apig/upstreams.d.ts +142 -0
- package/apig/upstreams.js +63 -0
- package/apig/upstreams.js.map +1 -0
- package/cen/interRegionBandwidth.d.ts +12 -0
- package/cen/interRegionBandwidth.js +2 -0
- package/cen/interRegionBandwidth.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/input.d.ts +5918 -4016
- package/types/output.d.ts +35080 -27674
- package/vpc/cidrBlockAssociate.d.ts +83 -0
- package/vpc/cidrBlockAssociate.js +80 -0
- package/vpc/cidrBlockAssociate.js.map +1 -0
- package/vpc/flowLog.d.ts +266 -0
- package/vpc/flowLog.js +148 -0
- package/vpc/flowLog.js.map +1 -0
- package/vpc/flowLogActive.d.ts +103 -0
- package/vpc/flowLogActive.js +101 -0
- package/vpc/flowLogActive.js.map +1 -0
- package/vpc/flowLogs.d.ts +231 -0
- package/vpc/flowLogs.js +63 -0
- package/vpc/flowLogs.js.map +1 -0
- package/vpc/getFlowLogs.d.ts +229 -0
- package/vpc/getFlowLogs.js +60 -0
- package/vpc/getFlowLogs.js.map +1 -0
- package/vpc/getSubnets.d.ts +9 -0
- package/vpc/getSubnets.js +1 -0
- package/vpc/getSubnets.js.map +1 -1
- package/vpc/getTrafficMirrorFilterRules.d.ts +103 -0
- package/vpc/getTrafficMirrorFilterRules.js +50 -0
- package/vpc/getTrafficMirrorFilterRules.js.map +1 -0
- package/vpc/getTrafficMirrorFilters.d.ts +118 -0
- package/vpc/getTrafficMirrorFilters.js +51 -0
- package/vpc/getTrafficMirrorFilters.js.map +1 -0
- package/vpc/getTrafficMirrorSessions.d.ts +187 -0
- package/vpc/getTrafficMirrorSessions.js +57 -0
- package/vpc/getTrafficMirrorSessions.js.map +1 -0
- package/vpc/getTrafficMirrorTargets.d.ts +121 -0
- package/vpc/getTrafficMirrorTargets.js +51 -0
- package/vpc/getTrafficMirrorTargets.js.map +1 -0
- package/vpc/getVpcs.d.ts +9 -0
- package/vpc/getVpcs.js +1 -0
- package/vpc/getVpcs.js.map +1 -1
- package/vpc/index.d.ts +51 -0
- package/vpc/index.js +67 -2
- package/vpc/index.js.map +1 -1
- package/vpc/subnets.d.ts +9 -0
- package/vpc/subnets.js +1 -0
- package/vpc/subnets.js.map +1 -1
- package/vpc/trafficMirrorFilter.d.ts +137 -0
- package/vpc/trafficMirrorFilter.js +88 -0
- package/vpc/trafficMirrorFilter.js.map +1 -0
- package/vpc/trafficMirrorFilterRule.d.ts +245 -0
- package/vpc/trafficMirrorFilterRule.js +144 -0
- package/vpc/trafficMirrorFilterRule.js.map +1 -0
- package/vpc/trafficMirrorFilterRules.d.ts +105 -0
- package/vpc/trafficMirrorFilterRules.js +53 -0
- package/vpc/trafficMirrorFilterRules.js.map +1 -0
- package/vpc/trafficMirrorFilters.d.ts +120 -0
- package/vpc/trafficMirrorFilters.js +54 -0
- package/vpc/trafficMirrorFilters.js.map +1 -0
- package/vpc/trafficMirrorSession.d.ts +330 -0
- package/vpc/trafficMirrorSession.js +221 -0
- package/vpc/trafficMirrorSession.js.map +1 -0
- package/vpc/trafficMirrorSessions.d.ts +189 -0
- package/vpc/trafficMirrorSessions.js +60 -0
- package/vpc/trafficMirrorSessions.js.map +1 -0
- package/vpc/trafficMirrorTarget.d.ts +222 -0
- package/vpc/trafficMirrorTarget.js +159 -0
- package/vpc/trafficMirrorTarget.js.map +1 -0
- package/vpc/trafficMirrorTargets.d.ts +123 -0
- package/vpc/trafficMirrorTargets.js +54 -0
- package/vpc/trafficMirrorTargets.js.map +1 -0
- package/vpc/vpc.d.ts +8 -0
- package/vpc/vpc.js +2 -0
- package/vpc/vpc.js.map +1 -1
- package/vpc/vpcs.d.ts +9 -0
- package/vpc/vpcs.js +1 -0
- package/vpc/vpcs.js.map +1 -1
- package/waf/aclRule.d.ts +326 -0
- package/waf/aclRule.js +150 -0
- package/waf/aclRule.js.map +1 -0
- package/waf/aclRules.d.ts +170 -0
- package/waf/aclRules.js +69 -0
- package/waf/aclRules.js.map +1 -0
- package/waf/botAnalyseProtectRule.d.ts +320 -0
- package/waf/botAnalyseProtectRule.js +171 -0
- package/waf/botAnalyseProtectRule.js.map +1 -0
- package/waf/botAnalyseProtectRules.d.ts +145 -0
- package/waf/botAnalyseProtectRules.js +57 -0
- package/waf/botAnalyseProtectRules.js.map +1 -0
- package/waf/ccRule.d.ts +337 -0
- package/waf/ccRule.js +182 -0
- package/waf/ccRule.js.map +1 -0
- package/waf/ccRules.d.ts +149 -0
- package/waf/ccRules.js +61 -0
- package/waf/ccRules.js.map +1 -0
- package/waf/customBot.d.ts +191 -0
- package/waf/customBot.js +127 -0
- package/waf/customBot.js.map +1 -0
- package/waf/customBots.d.ts +86 -0
- package/waf/customBots.js +51 -0
- package/waf/customBots.js.map +1 -0
- package/waf/customPage.d.ts +310 -0
- package/waf/customPage.js +160 -0
- package/waf/customPage.js.map +1 -0
- package/waf/customPages.d.ts +110 -0
- package/waf/customPages.js +52 -0
- package/waf/customPages.js.map +1 -0
- package/waf/domains.d.ts +94 -0
- package/waf/domains.js +48 -0
- package/waf/domains.js.map +1 -0
- package/waf/getAclRules.d.ts +168 -0
- package/waf/getAclRules.js +66 -0
- package/waf/getAclRules.js.map +1 -0
- package/waf/getBotAnalyseProtectRules.d.ts +143 -0
- package/waf/getBotAnalyseProtectRules.js +54 -0
- package/waf/getBotAnalyseProtectRules.js.map +1 -0
- package/waf/getCcRules.d.ts +147 -0
- package/waf/getCcRules.js +58 -0
- package/waf/getCcRules.js.map +1 -0
- package/waf/getCustomBots.d.ts +84 -0
- package/waf/getCustomBots.js +48 -0
- package/waf/getCustomBots.js.map +1 -0
- package/waf/getCustomPages.d.ts +108 -0
- package/waf/getCustomPages.js +49 -0
- package/waf/getCustomPages.js.map +1 -0
- package/waf/getDomains.d.ts +92 -0
- package/waf/getDomains.js +45 -0
- package/waf/getDomains.js.map +1 -0
- package/waf/getHostGroups.d.ts +146 -0
- package/waf/getHostGroups.js +55 -0
- package/waf/getHostGroups.js.map +1 -0
- package/waf/getIpGroups.d.ts +105 -0
- package/waf/getIpGroups.js +49 -0
- package/waf/getIpGroups.js.map +1 -0
- package/waf/getProhibitions.d.ts +127 -0
- package/waf/getProhibitions.js +55 -0
- package/waf/getProhibitions.js.map +1 -0
- package/waf/getServiceCertificates.d.ts +71 -0
- package/waf/getServiceCertificates.js +43 -0
- package/waf/getServiceCertificates.js.map +1 -0
- package/waf/getSystemBots.d.ts +84 -0
- package/waf/getSystemBots.js +47 -0
- package/waf/getSystemBots.js.map +1 -0
- package/waf/hostGroup.d.ts +152 -0
- package/waf/hostGroup.js +90 -0
- package/waf/hostGroup.js.map +1 -0
- package/waf/hostGroups.d.ts +148 -0
- package/waf/hostGroups.js +58 -0
- package/waf/hostGroups.js.map +1 -0
- package/waf/index.d.ts +99 -0
- package/waf/index.js +139 -0
- package/waf/index.js.map +1 -0
- package/waf/instanceCtl.d.ts +95 -0
- package/waf/instanceCtl.js +76 -0
- package/waf/instanceCtl.js.map +1 -0
- package/waf/ipGroup.d.ts +132 -0
- package/waf/ipGroup.js +93 -0
- package/waf/ipGroup.js.map +1 -0
- package/waf/ipGroups.d.ts +107 -0
- package/waf/ipGroups.js +52 -0
- package/waf/ipGroups.js.map +1 -0
- package/waf/prohibitions.d.ts +129 -0
- package/waf/prohibitions.js +58 -0
- package/waf/prohibitions.js.map +1 -0
- package/waf/serviceCertificates.d.ts +73 -0
- package/waf/serviceCertificates.js +46 -0
- package/waf/serviceCertificates.js.map +1 -0
- package/waf/systemBot.d.ts +137 -0
- package/waf/systemBot.js +92 -0
- package/waf/systemBot.js.map +1 -0
- package/waf/systemBots.d.ts +86 -0
- package/waf/systemBots.js +50 -0
- package/waf/systemBots.js.map +1 -0
- package/waf/vulnerability.d.ts +116 -0
- package/waf/vulnerability.js +72 -0
- package/waf/vulnerability.js.map +1 -0
- package/waf/wafDomain.d.ts +877 -0
- package/waf/wafDomain.js +252 -0
- package/waf/wafDomain.js.map +1 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a resource to manage waf custom page
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const foo = new volcengine.waf.CustomPage("foo", {
|
|
13
|
+
* accurate: {
|
|
14
|
+
* accurateRules: [
|
|
15
|
+
* {
|
|
16
|
+
* httpObj: "request.uri",
|
|
17
|
+
* objType: 1,
|
|
18
|
+
* opretar: 2,
|
|
19
|
+
* property: 0,
|
|
20
|
+
* valueString: "tf",
|
|
21
|
+
* },
|
|
22
|
+
* {
|
|
23
|
+
* httpObj: "request.schema",
|
|
24
|
+
* objType: 0,
|
|
25
|
+
* opretar: 2,
|
|
26
|
+
* property: 0,
|
|
27
|
+
* valueString: "tf-2",
|
|
28
|
+
* },
|
|
29
|
+
* ],
|
|
30
|
+
* logic: 2,
|
|
31
|
+
* },
|
|
32
|
+
* advanced: 1,
|
|
33
|
+
* body: "tf-test-body",
|
|
34
|
+
* clientIp: "ALL",
|
|
35
|
+
* code: 403,
|
|
36
|
+
* contentType: "text/html",
|
|
37
|
+
* description: "tf-test",
|
|
38
|
+
* enable: 1,
|
|
39
|
+
* host: "www.123.com",
|
|
40
|
+
* pageMode: 1,
|
|
41
|
+
* policy: 1,
|
|
42
|
+
* projectName: "default",
|
|
43
|
+
* redirectUrl: "/test/tf/path",
|
|
44
|
+
* url: "/tf-test",
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* WafCustomPage can be imported using the id, e.g.
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import volcengine:waf/customPage:CustomPage default resource_id:Host
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class CustomPage extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing CustomPage resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomPageState, opts?: pulumi.CustomResourceOptions): CustomPage;
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of CustomPage. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj: any): obj is CustomPage;
|
|
72
|
+
/**
|
|
73
|
+
* Advanced conditions.
|
|
74
|
+
*/
|
|
75
|
+
readonly accurate: pulumi.Output<outputs.waf.CustomPageAccurate>;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to configure advanced conditions.
|
|
78
|
+
*/
|
|
79
|
+
readonly advanced: pulumi.Output<number>;
|
|
80
|
+
/**
|
|
81
|
+
* The layout content of the response page.
|
|
82
|
+
*/
|
|
83
|
+
readonly body: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Fill in ALL, which means this rule will take effect on all IP addresses.
|
|
86
|
+
*/
|
|
87
|
+
readonly clientIp: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
|
|
90
|
+
*/
|
|
91
|
+
readonly code: pulumi.Output<number>;
|
|
92
|
+
/**
|
|
93
|
+
* The layout template of the response page. Required if PageMode=0 or 1.
|
|
94
|
+
*/
|
|
95
|
+
readonly contentType: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Rule description.
|
|
98
|
+
*/
|
|
99
|
+
readonly description: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Whether to enable the rule.
|
|
102
|
+
*/
|
|
103
|
+
readonly enable: pulumi.Output<number>;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the advanced conditional rule group.
|
|
106
|
+
*/
|
|
107
|
+
readonly groupId: pulumi.Output<number>;
|
|
108
|
+
/**
|
|
109
|
+
* Request header information.
|
|
110
|
+
*/
|
|
111
|
+
readonly header: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Domain name to be protected.
|
|
114
|
+
*/
|
|
115
|
+
readonly host: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The ID of Region.
|
|
118
|
+
*/
|
|
119
|
+
readonly isolationId: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Rule name.
|
|
122
|
+
*/
|
|
123
|
+
readonly name: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The layout template of the response page.
|
|
126
|
+
*/
|
|
127
|
+
readonly pageMode: pulumi.Output<number>;
|
|
128
|
+
/**
|
|
129
|
+
* Action to be taken on requests that match the rule.
|
|
130
|
+
*/
|
|
131
|
+
readonly policy: pulumi.Output<number>;
|
|
132
|
+
/**
|
|
133
|
+
* The name of the project to which your domain names belong.
|
|
134
|
+
*/
|
|
135
|
+
readonly projectName: pulumi.Output<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* The path where users should be redirected.
|
|
138
|
+
*/
|
|
139
|
+
readonly redirectUrl: pulumi.Output<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Unique identification of the rules.
|
|
142
|
+
*/
|
|
143
|
+
readonly ruleTag: pulumi.Output<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Rule update time.
|
|
146
|
+
*/
|
|
147
|
+
readonly updateTime: pulumi.Output<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Match the path.
|
|
150
|
+
*/
|
|
151
|
+
readonly url: pulumi.Output<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Create a CustomPage resource with the given unique name, arguments, and options.
|
|
154
|
+
*
|
|
155
|
+
* @param name The _unique_ name of the resource.
|
|
156
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
157
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
158
|
+
*/
|
|
159
|
+
constructor(name: string, args: CustomPageArgs, opts?: pulumi.CustomResourceOptions);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Input properties used for looking up and filtering CustomPage resources.
|
|
163
|
+
*/
|
|
164
|
+
export interface CustomPageState {
|
|
165
|
+
/**
|
|
166
|
+
* Advanced conditions.
|
|
167
|
+
*/
|
|
168
|
+
accurate?: pulumi.Input<inputs.waf.CustomPageAccurate>;
|
|
169
|
+
/**
|
|
170
|
+
* Whether to configure advanced conditions.
|
|
171
|
+
*/
|
|
172
|
+
advanced?: pulumi.Input<number>;
|
|
173
|
+
/**
|
|
174
|
+
* The layout content of the response page.
|
|
175
|
+
*/
|
|
176
|
+
body?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Fill in ALL, which means this rule will take effect on all IP addresses.
|
|
179
|
+
*/
|
|
180
|
+
clientIp?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
|
|
183
|
+
*/
|
|
184
|
+
code?: pulumi.Input<number>;
|
|
185
|
+
/**
|
|
186
|
+
* The layout template of the response page. Required if PageMode=0 or 1.
|
|
187
|
+
*/
|
|
188
|
+
contentType?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Rule description.
|
|
191
|
+
*/
|
|
192
|
+
description?: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Whether to enable the rule.
|
|
195
|
+
*/
|
|
196
|
+
enable?: pulumi.Input<number>;
|
|
197
|
+
/**
|
|
198
|
+
* The ID of the advanced conditional rule group.
|
|
199
|
+
*/
|
|
200
|
+
groupId?: pulumi.Input<number>;
|
|
201
|
+
/**
|
|
202
|
+
* Request header information.
|
|
203
|
+
*/
|
|
204
|
+
header?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Domain name to be protected.
|
|
207
|
+
*/
|
|
208
|
+
host?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* The ID of Region.
|
|
211
|
+
*/
|
|
212
|
+
isolationId?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Rule name.
|
|
215
|
+
*/
|
|
216
|
+
name?: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* The layout template of the response page.
|
|
219
|
+
*/
|
|
220
|
+
pageMode?: pulumi.Input<number>;
|
|
221
|
+
/**
|
|
222
|
+
* Action to be taken on requests that match the rule.
|
|
223
|
+
*/
|
|
224
|
+
policy?: pulumi.Input<number>;
|
|
225
|
+
/**
|
|
226
|
+
* The name of the project to which your domain names belong.
|
|
227
|
+
*/
|
|
228
|
+
projectName?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The path where users should be redirected.
|
|
231
|
+
*/
|
|
232
|
+
redirectUrl?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Unique identification of the rules.
|
|
235
|
+
*/
|
|
236
|
+
ruleTag?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Rule update time.
|
|
239
|
+
*/
|
|
240
|
+
updateTime?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* Match the path.
|
|
243
|
+
*/
|
|
244
|
+
url?: pulumi.Input<string>;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* The set of arguments for constructing a CustomPage resource.
|
|
248
|
+
*/
|
|
249
|
+
export interface CustomPageArgs {
|
|
250
|
+
/**
|
|
251
|
+
* Advanced conditions.
|
|
252
|
+
*/
|
|
253
|
+
accurate?: pulumi.Input<inputs.waf.CustomPageAccurate>;
|
|
254
|
+
/**
|
|
255
|
+
* Whether to configure advanced conditions.
|
|
256
|
+
*/
|
|
257
|
+
advanced?: pulumi.Input<number>;
|
|
258
|
+
/**
|
|
259
|
+
* The layout content of the response page.
|
|
260
|
+
*/
|
|
261
|
+
body?: pulumi.Input<string>;
|
|
262
|
+
/**
|
|
263
|
+
* Fill in ALL, which means this rule will take effect on all IP addresses.
|
|
264
|
+
*/
|
|
265
|
+
clientIp: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
|
|
268
|
+
*/
|
|
269
|
+
code: pulumi.Input<number>;
|
|
270
|
+
/**
|
|
271
|
+
* The layout template of the response page. Required if PageMode=0 or 1.
|
|
272
|
+
*/
|
|
273
|
+
contentType?: pulumi.Input<string>;
|
|
274
|
+
/**
|
|
275
|
+
* Rule description.
|
|
276
|
+
*/
|
|
277
|
+
description?: pulumi.Input<string>;
|
|
278
|
+
/**
|
|
279
|
+
* Whether to enable the rule.
|
|
280
|
+
*/
|
|
281
|
+
enable: pulumi.Input<number>;
|
|
282
|
+
/**
|
|
283
|
+
* Domain name to be protected.
|
|
284
|
+
*/
|
|
285
|
+
host: pulumi.Input<string>;
|
|
286
|
+
/**
|
|
287
|
+
* Rule name.
|
|
288
|
+
*/
|
|
289
|
+
name?: pulumi.Input<string>;
|
|
290
|
+
/**
|
|
291
|
+
* The layout template of the response page.
|
|
292
|
+
*/
|
|
293
|
+
pageMode: pulumi.Input<number>;
|
|
294
|
+
/**
|
|
295
|
+
* Action to be taken on requests that match the rule.
|
|
296
|
+
*/
|
|
297
|
+
policy: pulumi.Input<number>;
|
|
298
|
+
/**
|
|
299
|
+
* The name of the project to which your domain names belong.
|
|
300
|
+
*/
|
|
301
|
+
projectName?: pulumi.Input<string>;
|
|
302
|
+
/**
|
|
303
|
+
* The path where users should be redirected.
|
|
304
|
+
*/
|
|
305
|
+
redirectUrl?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* Match the path.
|
|
308
|
+
*/
|
|
309
|
+
url: pulumi.Input<string>;
|
|
310
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CustomPage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage waf custom page
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new volcengine.waf.CustomPage("foo", {
|
|
17
|
+
* accurate: {
|
|
18
|
+
* accurateRules: [
|
|
19
|
+
* {
|
|
20
|
+
* httpObj: "request.uri",
|
|
21
|
+
* objType: 1,
|
|
22
|
+
* opretar: 2,
|
|
23
|
+
* property: 0,
|
|
24
|
+
* valueString: "tf",
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* httpObj: "request.schema",
|
|
28
|
+
* objType: 0,
|
|
29
|
+
* opretar: 2,
|
|
30
|
+
* property: 0,
|
|
31
|
+
* valueString: "tf-2",
|
|
32
|
+
* },
|
|
33
|
+
* ],
|
|
34
|
+
* logic: 2,
|
|
35
|
+
* },
|
|
36
|
+
* advanced: 1,
|
|
37
|
+
* body: "tf-test-body",
|
|
38
|
+
* clientIp: "ALL",
|
|
39
|
+
* code: 403,
|
|
40
|
+
* contentType: "text/html",
|
|
41
|
+
* description: "tf-test",
|
|
42
|
+
* enable: 1,
|
|
43
|
+
* host: "www.123.com",
|
|
44
|
+
* pageMode: 1,
|
|
45
|
+
* policy: 1,
|
|
46
|
+
* projectName: "default",
|
|
47
|
+
* redirectUrl: "/test/tf/path",
|
|
48
|
+
* url: "/tf-test",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Import
|
|
53
|
+
*
|
|
54
|
+
* WafCustomPage can be imported using the id, e.g.
|
|
55
|
+
*
|
|
56
|
+
* ```sh
|
|
57
|
+
* $ pulumi import volcengine:waf/customPage:CustomPage default resource_id:Host
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
class CustomPage extends pulumi.CustomResource {
|
|
61
|
+
/**
|
|
62
|
+
* Get an existing CustomPage resource's state with the given name, ID, and optional extra
|
|
63
|
+
* properties used to qualify the lookup.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resulting resource.
|
|
66
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
+
* @param state Any extra arguments used during the lookup.
|
|
68
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
+
*/
|
|
70
|
+
static get(name, id, state, opts) {
|
|
71
|
+
return new CustomPage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of CustomPage. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj) {
|
|
78
|
+
if (obj === undefined || obj === null) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return obj['__pulumiType'] === CustomPage.__pulumiType;
|
|
82
|
+
}
|
|
83
|
+
constructor(name, argsOrState, opts) {
|
|
84
|
+
let resourceInputs = {};
|
|
85
|
+
opts = opts || {};
|
|
86
|
+
if (opts.id) {
|
|
87
|
+
const state = argsOrState;
|
|
88
|
+
resourceInputs["accurate"] = state ? state.accurate : undefined;
|
|
89
|
+
resourceInputs["advanced"] = state ? state.advanced : undefined;
|
|
90
|
+
resourceInputs["body"] = state ? state.body : undefined;
|
|
91
|
+
resourceInputs["clientIp"] = state ? state.clientIp : undefined;
|
|
92
|
+
resourceInputs["code"] = state ? state.code : undefined;
|
|
93
|
+
resourceInputs["contentType"] = state ? state.contentType : undefined;
|
|
94
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
95
|
+
resourceInputs["enable"] = state ? state.enable : undefined;
|
|
96
|
+
resourceInputs["groupId"] = state ? state.groupId : undefined;
|
|
97
|
+
resourceInputs["header"] = state ? state.header : undefined;
|
|
98
|
+
resourceInputs["host"] = state ? state.host : undefined;
|
|
99
|
+
resourceInputs["isolationId"] = state ? state.isolationId : undefined;
|
|
100
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
101
|
+
resourceInputs["pageMode"] = state ? state.pageMode : undefined;
|
|
102
|
+
resourceInputs["policy"] = state ? state.policy : undefined;
|
|
103
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
104
|
+
resourceInputs["redirectUrl"] = state ? state.redirectUrl : undefined;
|
|
105
|
+
resourceInputs["ruleTag"] = state ? state.ruleTag : undefined;
|
|
106
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
107
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
const args = argsOrState;
|
|
111
|
+
if ((!args || args.clientIp === undefined) && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'clientIp'");
|
|
113
|
+
}
|
|
114
|
+
if ((!args || args.code === undefined) && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'code'");
|
|
116
|
+
}
|
|
117
|
+
if ((!args || args.enable === undefined) && !opts.urn) {
|
|
118
|
+
throw new Error("Missing required property 'enable'");
|
|
119
|
+
}
|
|
120
|
+
if ((!args || args.host === undefined) && !opts.urn) {
|
|
121
|
+
throw new Error("Missing required property 'host'");
|
|
122
|
+
}
|
|
123
|
+
if ((!args || args.pageMode === undefined) && !opts.urn) {
|
|
124
|
+
throw new Error("Missing required property 'pageMode'");
|
|
125
|
+
}
|
|
126
|
+
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
127
|
+
throw new Error("Missing required property 'policy'");
|
|
128
|
+
}
|
|
129
|
+
if ((!args || args.url === undefined) && !opts.urn) {
|
|
130
|
+
throw new Error("Missing required property 'url'");
|
|
131
|
+
}
|
|
132
|
+
resourceInputs["accurate"] = args ? args.accurate : undefined;
|
|
133
|
+
resourceInputs["advanced"] = args ? args.advanced : undefined;
|
|
134
|
+
resourceInputs["body"] = args ? args.body : undefined;
|
|
135
|
+
resourceInputs["clientIp"] = args ? args.clientIp : undefined;
|
|
136
|
+
resourceInputs["code"] = args ? args.code : undefined;
|
|
137
|
+
resourceInputs["contentType"] = args ? args.contentType : undefined;
|
|
138
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
139
|
+
resourceInputs["enable"] = args ? args.enable : undefined;
|
|
140
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
141
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
142
|
+
resourceInputs["pageMode"] = args ? args.pageMode : undefined;
|
|
143
|
+
resourceInputs["policy"] = args ? args.policy : undefined;
|
|
144
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
145
|
+
resourceInputs["redirectUrl"] = args ? args.redirectUrl : undefined;
|
|
146
|
+
resourceInputs["url"] = args ? args.url : undefined;
|
|
147
|
+
resourceInputs["groupId"] = undefined /*out*/;
|
|
148
|
+
resourceInputs["header"] = undefined /*out*/;
|
|
149
|
+
resourceInputs["isolationId"] = undefined /*out*/;
|
|
150
|
+
resourceInputs["ruleTag"] = undefined /*out*/;
|
|
151
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
152
|
+
}
|
|
153
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
154
|
+
super(CustomPage.__pulumiType, name, resourceInputs, opts);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.CustomPage = CustomPage;
|
|
158
|
+
/** @internal */
|
|
159
|
+
CustomPage.__pulumiType = 'volcengine:waf/customPage:CustomPage';
|
|
160
|
+
//# sourceMappingURL=customPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPage.js","sourceRoot":"","sources":["../../waf/customPage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KA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CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA5LL,gCA6LC;AA/KG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to query detailed information of waf custom pages
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
*
|
|
11
|
+
* const foo = volcengine.waf.getCustomPages({
|
|
12
|
+
* host: "www.tf-test.com",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
/** @deprecated volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages */
|
|
17
|
+
export declare function customPages(args: CustomPagesArgs, opts?: pulumi.InvokeOptions): Promise<CustomPagesResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking CustomPages.
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomPagesArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The domain names that need to be viewed.
|
|
24
|
+
*/
|
|
25
|
+
host: string;
|
|
26
|
+
/**
|
|
27
|
+
* A Name Regex of Resource.
|
|
28
|
+
*/
|
|
29
|
+
nameRegex?: string;
|
|
30
|
+
/**
|
|
31
|
+
* File name where to save data source results.
|
|
32
|
+
*/
|
|
33
|
+
outputFile?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the project to which your domain names belong.
|
|
36
|
+
*/
|
|
37
|
+
projectName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identification of the rules.
|
|
40
|
+
*/
|
|
41
|
+
ruleTag?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A collection of values returned by CustomPages.
|
|
45
|
+
*/
|
|
46
|
+
export interface CustomPagesResult {
|
|
47
|
+
/**
|
|
48
|
+
* Details of the rules.
|
|
49
|
+
*/
|
|
50
|
+
readonly datas: outputs.waf.CustomPagesData[];
|
|
51
|
+
/**
|
|
52
|
+
* Domain name to be protected.
|
|
53
|
+
*/
|
|
54
|
+
readonly host: string;
|
|
55
|
+
/**
|
|
56
|
+
* The provider-assigned unique ID for this managed resource.
|
|
57
|
+
*/
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly nameRegex?: string;
|
|
60
|
+
readonly outputFile?: string;
|
|
61
|
+
readonly projectName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Unique identification of the rules.
|
|
64
|
+
*/
|
|
65
|
+
readonly ruleTag?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The total count of query.
|
|
68
|
+
*/
|
|
69
|
+
readonly totalCount: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Use this data source to query detailed information of waf custom pages
|
|
73
|
+
* ## Example Usage
|
|
74
|
+
*
|
|
75
|
+
* ```typescript
|
|
76
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
77
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
78
|
+
*
|
|
79
|
+
* const foo = volcengine.waf.getCustomPages({
|
|
80
|
+
* host: "www.tf-test.com",
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
/** @deprecated volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages */
|
|
85
|
+
export declare function customPagesOutput(args: CustomPagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CustomPagesResult>;
|
|
86
|
+
/**
|
|
87
|
+
* A collection of arguments for invoking CustomPages.
|
|
88
|
+
*/
|
|
89
|
+
export interface CustomPagesOutputArgs {
|
|
90
|
+
/**
|
|
91
|
+
* The domain names that need to be viewed.
|
|
92
|
+
*/
|
|
93
|
+
host: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* A Name Regex of Resource.
|
|
96
|
+
*/
|
|
97
|
+
nameRegex?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* File name where to save data source results.
|
|
100
|
+
*/
|
|
101
|
+
outputFile?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The name of the project to which your domain names belong.
|
|
104
|
+
*/
|
|
105
|
+
projectName?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Unique identification of the rules.
|
|
108
|
+
*/
|
|
109
|
+
ruleTag?: pulumi.Input<string>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.customPagesOutput = exports.customPages = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to query detailed information of waf custom pages
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
*
|
|
16
|
+
* const foo = volcengine.waf.getCustomPages({
|
|
17
|
+
* host: "www.tf-test.com",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
/** @deprecated volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages */
|
|
22
|
+
function customPages(args, opts) {
|
|
23
|
+
pulumi.log.warn("customPages is deprecated: volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages");
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invoke("volcengine:waf/customPages:CustomPages", {
|
|
26
|
+
"host": args.host,
|
|
27
|
+
"nameRegex": args.nameRegex,
|
|
28
|
+
"outputFile": args.outputFile,
|
|
29
|
+
"projectName": args.projectName,
|
|
30
|
+
"ruleTag": args.ruleTag,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.customPages = customPages;
|
|
34
|
+
/**
|
|
35
|
+
* Use this data source to query detailed information of waf custom pages
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
41
|
+
*
|
|
42
|
+
* const foo = volcengine.waf.getCustomPages({
|
|
43
|
+
* host: "www.tf-test.com",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
/** @deprecated volcengine.waf.CustomPages has been deprecated in favor of volcengine.waf.getCustomPages */
|
|
48
|
+
function customPagesOutput(args, opts) {
|
|
49
|
+
return pulumi.output(args).apply((a) => customPages(a, opts));
|
|
50
|
+
}
|
|
51
|
+
exports.customPagesOutput = customPagesOutput;
|
|
52
|
+
//# sourceMappingURL=customPages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPages.js","sourceRoot":"","sources":["../../waf/customPages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,2GAA2G;AAC3G,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,qHAAqH,CAAC,CAAA;IAEtI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kCAWC;AAwDD;;;;;;;;;;;;GAYG;AACH,2GAA2G;AAC3G,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|