@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
package/waf/ccRules.d.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
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 cc rules
|
|
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.getCcRules({
|
|
12
|
+
* ccTypes: [1],
|
|
13
|
+
* host: "www.tf-test.com",
|
|
14
|
+
* pathOrderBy: "ASC",
|
|
15
|
+
* ruleName: "tf",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
/** @deprecated volcengine.waf.CcRules has been deprecated in favor of volcengine.waf.getCcRules */
|
|
20
|
+
export declare function ccRules(args: CcRulesArgs, opts?: pulumi.InvokeOptions): Promise<CcRulesResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking CcRules.
|
|
23
|
+
*/
|
|
24
|
+
export interface CcRulesArgs {
|
|
25
|
+
/**
|
|
26
|
+
* The actions performed on subsequent requests after meeting the statistical conditions.
|
|
27
|
+
*/
|
|
28
|
+
ccTypes?: number[];
|
|
29
|
+
/**
|
|
30
|
+
* Website domain names that require the setting of protection rules.
|
|
31
|
+
*/
|
|
32
|
+
host: string;
|
|
33
|
+
/**
|
|
34
|
+
* A Name Regex of Resource.
|
|
35
|
+
*/
|
|
36
|
+
nameRegex?: string;
|
|
37
|
+
/**
|
|
38
|
+
* File name where to save data source results.
|
|
39
|
+
*/
|
|
40
|
+
outputFile?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The list shows the order.
|
|
43
|
+
*/
|
|
44
|
+
pathOrderBy: string;
|
|
45
|
+
/**
|
|
46
|
+
* Search by rule name in a fuzzy manner.
|
|
47
|
+
*/
|
|
48
|
+
ruleName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Search precisely according to the rule ID.
|
|
51
|
+
*/
|
|
52
|
+
ruleTag?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Fuzzy search by the requested path.
|
|
55
|
+
*/
|
|
56
|
+
url?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A collection of values returned by CcRules.
|
|
60
|
+
*/
|
|
61
|
+
export interface CcRulesResult {
|
|
62
|
+
/**
|
|
63
|
+
* The actions performed on subsequent requests after meeting the statistical conditions.
|
|
64
|
+
*/
|
|
65
|
+
readonly ccTypes?: number[];
|
|
66
|
+
/**
|
|
67
|
+
* The collection of query.
|
|
68
|
+
*/
|
|
69
|
+
readonly datas: outputs.waf.CcRulesData[];
|
|
70
|
+
/**
|
|
71
|
+
* Protected website domain names.
|
|
72
|
+
*/
|
|
73
|
+
readonly host: string;
|
|
74
|
+
/**
|
|
75
|
+
* The provider-assigned unique ID for this managed resource.
|
|
76
|
+
*/
|
|
77
|
+
readonly id: string;
|
|
78
|
+
readonly nameRegex?: string;
|
|
79
|
+
readonly outputFile?: string;
|
|
80
|
+
readonly pathOrderBy: string;
|
|
81
|
+
readonly ruleName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Rule label, that is, the complete rule ID.
|
|
84
|
+
*/
|
|
85
|
+
readonly ruleTag?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total count of query.
|
|
88
|
+
*/
|
|
89
|
+
readonly totalCount: number;
|
|
90
|
+
/**
|
|
91
|
+
* The requested path.
|
|
92
|
+
*/
|
|
93
|
+
readonly url?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Use this data source to query detailed information of waf cc rules
|
|
97
|
+
* ## Example Usage
|
|
98
|
+
*
|
|
99
|
+
* ```typescript
|
|
100
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
101
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
102
|
+
*
|
|
103
|
+
* const foo = volcengine.waf.getCcRules({
|
|
104
|
+
* ccTypes: [1],
|
|
105
|
+
* host: "www.tf-test.com",
|
|
106
|
+
* pathOrderBy: "ASC",
|
|
107
|
+
* ruleName: "tf",
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
/** @deprecated volcengine.waf.CcRules has been deprecated in favor of volcengine.waf.getCcRules */
|
|
112
|
+
export declare function ccRulesOutput(args: CcRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CcRulesResult>;
|
|
113
|
+
/**
|
|
114
|
+
* A collection of arguments for invoking CcRules.
|
|
115
|
+
*/
|
|
116
|
+
export interface CcRulesOutputArgs {
|
|
117
|
+
/**
|
|
118
|
+
* The actions performed on subsequent requests after meeting the statistical conditions.
|
|
119
|
+
*/
|
|
120
|
+
ccTypes?: pulumi.Input<pulumi.Input<number>[]>;
|
|
121
|
+
/**
|
|
122
|
+
* Website domain names that require the setting of protection rules.
|
|
123
|
+
*/
|
|
124
|
+
host: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* A Name Regex of Resource.
|
|
127
|
+
*/
|
|
128
|
+
nameRegex?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* File name where to save data source results.
|
|
131
|
+
*/
|
|
132
|
+
outputFile?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The list shows the order.
|
|
135
|
+
*/
|
|
136
|
+
pathOrderBy: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Search by rule name in a fuzzy manner.
|
|
139
|
+
*/
|
|
140
|
+
ruleName?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Search precisely according to the rule ID.
|
|
143
|
+
*/
|
|
144
|
+
ruleTag?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Fuzzy search by the requested path.
|
|
147
|
+
*/
|
|
148
|
+
url?: pulumi.Input<string>;
|
|
149
|
+
}
|
package/waf/ccRules.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
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.ccRulesOutput = exports.ccRules = 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 cc rules
|
|
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.getCcRules({
|
|
17
|
+
* ccTypes: [1],
|
|
18
|
+
* host: "www.tf-test.com",
|
|
19
|
+
* pathOrderBy: "ASC",
|
|
20
|
+
* ruleName: "tf",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
/** @deprecated volcengine.waf.CcRules has been deprecated in favor of volcengine.waf.getCcRules */
|
|
25
|
+
function ccRules(args, opts) {
|
|
26
|
+
pulumi.log.warn("ccRules is deprecated: volcengine.waf.CcRules has been deprecated in favor of volcengine.waf.getCcRules");
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("volcengine:waf/ccRules:CcRules", {
|
|
29
|
+
"ccTypes": args.ccTypes,
|
|
30
|
+
"host": args.host,
|
|
31
|
+
"nameRegex": args.nameRegex,
|
|
32
|
+
"outputFile": args.outputFile,
|
|
33
|
+
"pathOrderBy": args.pathOrderBy,
|
|
34
|
+
"ruleName": args.ruleName,
|
|
35
|
+
"ruleTag": args.ruleTag,
|
|
36
|
+
"url": args.url,
|
|
37
|
+
}, opts);
|
|
38
|
+
}
|
|
39
|
+
exports.ccRules = ccRules;
|
|
40
|
+
/**
|
|
41
|
+
* Use this data source to query detailed information of waf cc rules
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
47
|
+
*
|
|
48
|
+
* const foo = volcengine.waf.getCcRules({
|
|
49
|
+
* ccTypes: [1],
|
|
50
|
+
* host: "www.tf-test.com",
|
|
51
|
+
* pathOrderBy: "ASC",
|
|
52
|
+
* ruleName: "tf",
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
/** @deprecated volcengine.waf.CcRules has been deprecated in favor of volcengine.waf.getCcRules */
|
|
57
|
+
function ccRulesOutput(args, opts) {
|
|
58
|
+
return pulumi.output(args).apply((a) => ccRules(a, opts));
|
|
59
|
+
}
|
|
60
|
+
exports.ccRulesOutput = ccRulesOutput;
|
|
61
|
+
//# sourceMappingURL=ccRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ccRules.js","sourceRoot":"","sources":["../../waf/ccRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,mGAAmG;AACnG,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;IAE1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,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,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,0BAcC;AA6ED;;;;;;;;;;;;;;;GAeG;AACH,mGAAmG;AACnG,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
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 bot
|
|
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.CustomBot("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
|
+
* action: "observe",
|
|
33
|
+
* botType: "tf-test",
|
|
34
|
+
* description: "tf-test",
|
|
35
|
+
* enable: 1,
|
|
36
|
+
* host: "www.tf-test.com",
|
|
37
|
+
* projectName: "default",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* WafCustomBot can be imported using the id, e.g.
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import volcengine:waf/customBot:CustomBot default resource_id
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class CustomBot extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing CustomBot resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomBotState, opts?: pulumi.CustomResourceOptions): CustomBot;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of CustomBot. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj: any): obj is CustomBot;
|
|
65
|
+
/**
|
|
66
|
+
* Advanced conditions.
|
|
67
|
+
*/
|
|
68
|
+
readonly accurate: pulumi.Output<outputs.waf.CustomBotAccurate>;
|
|
69
|
+
/**
|
|
70
|
+
* The execution action of the Bot.
|
|
71
|
+
*/
|
|
72
|
+
readonly action: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to set advanced conditions.
|
|
75
|
+
*/
|
|
76
|
+
readonly advanced: pulumi.Output<number>;
|
|
77
|
+
/**
|
|
78
|
+
* bot name.
|
|
79
|
+
*/
|
|
80
|
+
readonly botType: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The description of bot.
|
|
83
|
+
*/
|
|
84
|
+
readonly description: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to enable bot.
|
|
87
|
+
*/
|
|
88
|
+
readonly enable: pulumi.Output<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Domain name information.
|
|
91
|
+
*/
|
|
92
|
+
readonly host: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The Name of the affiliated project resource.
|
|
95
|
+
*/
|
|
96
|
+
readonly projectName: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Rule unique identifier.
|
|
99
|
+
*/
|
|
100
|
+
readonly ruleTag: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The update time.
|
|
103
|
+
*/
|
|
104
|
+
readonly updateTime: pulumi.Output<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Create a CustomBot resource with the given unique name, arguments, and options.
|
|
107
|
+
*
|
|
108
|
+
* @param name The _unique_ name of the resource.
|
|
109
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
110
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
111
|
+
*/
|
|
112
|
+
constructor(name: string, args: CustomBotArgs, opts?: pulumi.CustomResourceOptions);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Input properties used for looking up and filtering CustomBot resources.
|
|
116
|
+
*/
|
|
117
|
+
export interface CustomBotState {
|
|
118
|
+
/**
|
|
119
|
+
* Advanced conditions.
|
|
120
|
+
*/
|
|
121
|
+
accurate?: pulumi.Input<inputs.waf.CustomBotAccurate>;
|
|
122
|
+
/**
|
|
123
|
+
* The execution action of the Bot.
|
|
124
|
+
*/
|
|
125
|
+
action?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Whether to set advanced conditions.
|
|
128
|
+
*/
|
|
129
|
+
advanced?: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* bot name.
|
|
132
|
+
*/
|
|
133
|
+
botType?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The description of bot.
|
|
136
|
+
*/
|
|
137
|
+
description?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Whether to enable bot.
|
|
140
|
+
*/
|
|
141
|
+
enable?: pulumi.Input<number>;
|
|
142
|
+
/**
|
|
143
|
+
* Domain name information.
|
|
144
|
+
*/
|
|
145
|
+
host?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* The Name of the affiliated project resource.
|
|
148
|
+
*/
|
|
149
|
+
projectName?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Rule unique identifier.
|
|
152
|
+
*/
|
|
153
|
+
ruleTag?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The update time.
|
|
156
|
+
*/
|
|
157
|
+
updateTime?: pulumi.Input<string>;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* The set of arguments for constructing a CustomBot resource.
|
|
161
|
+
*/
|
|
162
|
+
export interface CustomBotArgs {
|
|
163
|
+
/**
|
|
164
|
+
* Advanced conditions.
|
|
165
|
+
*/
|
|
166
|
+
accurate: pulumi.Input<inputs.waf.CustomBotAccurate>;
|
|
167
|
+
/**
|
|
168
|
+
* The execution action of the Bot.
|
|
169
|
+
*/
|
|
170
|
+
action: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* bot name.
|
|
173
|
+
*/
|
|
174
|
+
botType: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The description of bot.
|
|
177
|
+
*/
|
|
178
|
+
description?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Whether to enable bot.
|
|
181
|
+
*/
|
|
182
|
+
enable: pulumi.Input<number>;
|
|
183
|
+
/**
|
|
184
|
+
* Domain name information.
|
|
185
|
+
*/
|
|
186
|
+
host: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* The Name of the affiliated project resource.
|
|
189
|
+
*/
|
|
190
|
+
projectName?: pulumi.Input<string>;
|
|
191
|
+
}
|
package/waf/customBot.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
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.CustomBot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage waf custom bot
|
|
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.CustomBot("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
|
+
* action: "observe",
|
|
37
|
+
* botType: "tf-test",
|
|
38
|
+
* description: "tf-test",
|
|
39
|
+
* enable: 1,
|
|
40
|
+
* host: "www.tf-test.com",
|
|
41
|
+
* projectName: "default",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* WafCustomBot can be imported using the id, e.g.
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import volcengine:waf/customBot:CustomBot default resource_id
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
class CustomBot extends pulumi.CustomResource {
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing CustomBot resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name, id, state, opts) {
|
|
64
|
+
return new CustomBot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of CustomBot. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj) {
|
|
71
|
+
if (obj === undefined || obj === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return obj['__pulumiType'] === CustomBot.__pulumiType;
|
|
75
|
+
}
|
|
76
|
+
constructor(name, argsOrState, opts) {
|
|
77
|
+
let resourceInputs = {};
|
|
78
|
+
opts = opts || {};
|
|
79
|
+
if (opts.id) {
|
|
80
|
+
const state = argsOrState;
|
|
81
|
+
resourceInputs["accurate"] = state ? state.accurate : undefined;
|
|
82
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
83
|
+
resourceInputs["advanced"] = state ? state.advanced : undefined;
|
|
84
|
+
resourceInputs["botType"] = state ? state.botType : undefined;
|
|
85
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
86
|
+
resourceInputs["enable"] = state ? state.enable : undefined;
|
|
87
|
+
resourceInputs["host"] = state ? state.host : undefined;
|
|
88
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
89
|
+
resourceInputs["ruleTag"] = state ? state.ruleTag : undefined;
|
|
90
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const args = argsOrState;
|
|
94
|
+
if ((!args || args.accurate === undefined) && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'accurate'");
|
|
96
|
+
}
|
|
97
|
+
if ((!args || args.action === undefined) && !opts.urn) {
|
|
98
|
+
throw new Error("Missing required property 'action'");
|
|
99
|
+
}
|
|
100
|
+
if ((!args || args.botType === undefined) && !opts.urn) {
|
|
101
|
+
throw new Error("Missing required property 'botType'");
|
|
102
|
+
}
|
|
103
|
+
if ((!args || args.enable === undefined) && !opts.urn) {
|
|
104
|
+
throw new Error("Missing required property 'enable'");
|
|
105
|
+
}
|
|
106
|
+
if ((!args || args.host === undefined) && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'host'");
|
|
108
|
+
}
|
|
109
|
+
resourceInputs["accurate"] = args ? args.accurate : undefined;
|
|
110
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
111
|
+
resourceInputs["botType"] = args ? args.botType : undefined;
|
|
112
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
113
|
+
resourceInputs["enable"] = args ? args.enable : undefined;
|
|
114
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
115
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
116
|
+
resourceInputs["advanced"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["ruleTag"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
119
|
+
}
|
|
120
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
121
|
+
super(CustomBot.__pulumiType, name, resourceInputs, opts);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.CustomBot = CustomBot;
|
|
125
|
+
/** @internal */
|
|
126
|
+
CustomBot.__pulumiType = 'volcengine:waf/customBot:CustomBot';
|
|
127
|
+
//# sourceMappingURL=customBot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBot.js","sourceRoot":"","sources":["../../waf/customBot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IA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* as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to query detailed information of waf custom bots
|
|
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.getCustomBots({
|
|
12
|
+
* host: "www.tf-test.com",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
/** @deprecated volcengine.waf.CustomBots has been deprecated in favor of volcengine.waf.getCustomBots */
|
|
17
|
+
export declare function customBots(args?: CustomBotsArgs, opts?: pulumi.InvokeOptions): Promise<CustomBotsResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking CustomBots.
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomBotsArgs {
|
|
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
|
+
/**
|
|
36
|
+
* A collection of values returned by CustomBots.
|
|
37
|
+
*/
|
|
38
|
+
export interface CustomBotsResult {
|
|
39
|
+
/**
|
|
40
|
+
* The Details of Custom bot.
|
|
41
|
+
*/
|
|
42
|
+
readonly datas: outputs.waf.CustomBotsData[];
|
|
43
|
+
readonly host?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The provider-assigned unique ID for this managed resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly nameRegex?: string;
|
|
49
|
+
readonly outputFile?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The total count of query.
|
|
52
|
+
*/
|
|
53
|
+
readonly totalCount: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Use this data source to query detailed information of waf custom bots
|
|
57
|
+
* ## Example Usage
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
62
|
+
*
|
|
63
|
+
* const foo = volcengine.waf.getCustomBots({
|
|
64
|
+
* host: "www.tf-test.com",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
/** @deprecated volcengine.waf.CustomBots has been deprecated in favor of volcengine.waf.getCustomBots */
|
|
69
|
+
export declare function customBotsOutput(args?: CustomBotsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CustomBotsResult>;
|
|
70
|
+
/**
|
|
71
|
+
* A collection of arguments for invoking CustomBots.
|
|
72
|
+
*/
|
|
73
|
+
export interface CustomBotsOutputArgs {
|
|
74
|
+
/**
|
|
75
|
+
* The domain names that need to be viewed.
|
|
76
|
+
*/
|
|
77
|
+
host?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* A Name Regex of Resource.
|
|
80
|
+
*/
|
|
81
|
+
nameRegex?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* File name where to save data source results.
|
|
84
|
+
*/
|
|
85
|
+
outputFile?: pulumi.Input<string>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.customBotsOutput = exports.customBots = 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 bots
|
|
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.getCustomBots({
|
|
17
|
+
* host: "www.tf-test.com",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
/** @deprecated volcengine.waf.CustomBots has been deprecated in favor of volcengine.waf.getCustomBots */
|
|
22
|
+
function customBots(args, opts) {
|
|
23
|
+
pulumi.log.warn("customBots is deprecated: volcengine.waf.CustomBots has been deprecated in favor of volcengine.waf.getCustomBots");
|
|
24
|
+
args = args || {};
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("volcengine:waf/customBots:CustomBots", {
|
|
27
|
+
"host": args.host,
|
|
28
|
+
"nameRegex": args.nameRegex,
|
|
29
|
+
"outputFile": args.outputFile,
|
|
30
|
+
}, opts);
|
|
31
|
+
}
|
|
32
|
+
exports.customBots = customBots;
|
|
33
|
+
/**
|
|
34
|
+
* Use this data source to query detailed information of waf custom bots
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
40
|
+
*
|
|
41
|
+
* const foo = volcengine.waf.getCustomBots({
|
|
42
|
+
* host: "www.tf-test.com",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
/** @deprecated volcengine.waf.CustomBots has been deprecated in favor of volcengine.waf.getCustomBots */
|
|
47
|
+
function customBotsOutput(args, opts) {
|
|
48
|
+
return pulumi.output(args).apply((a) => customBots(a, opts));
|
|
49
|
+
}
|
|
50
|
+
exports.customBotsOutput = customBotsOutput;
|
|
51
|
+
//# sourceMappingURL=customBots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customBots.js","sourceRoot":"","sources":["../../waf/customBots.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,yGAAyG;AACzG,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,kHAAkH,CAAC,CAAA;IACnI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AAwCD;;;;;;;;;;;;GAYG;AACH,yGAAyG;AACzG,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|