@volcengine/pulumi 0.0.33 → 0.0.35
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/autoscaling/scalingGroup.d.ts +24 -0
- package/autoscaling/scalingGroup.js +4 -0
- package/autoscaling/scalingGroup.js.map +1 -1
- package/cen/interRegionBandwidth.d.ts +12 -0
- package/cen/interRegionBandwidth.js +2 -0
- package/cen/interRegionBandwidth.js.map +1 -1
- package/config/vars.d.ts +4 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/ecs/command.d.ts +65 -18
- package/ecs/command.js +10 -15
- package/ecs/command.js.map +1 -1
- package/ecs/commands.d.ts +26 -1
- package/ecs/commands.js +2 -0
- package/ecs/commands.js.map +1 -1
- package/ecs/getCommands.d.ts +26 -1
- package/ecs/getCommands.js +2 -0
- package/ecs/getCommands.js.map +1 -1
- package/ecs/getInvocations.d.ts +25 -0
- package/ecs/getInvocations.js +2 -0
- package/ecs/getInvocations.js.map +1 -1
- package/ecs/instance.d.ts +20 -0
- package/ecs/instance.js +4 -0
- package/ecs/instance.js.map +1 -1
- package/ecs/invocation.d.ts +53 -6
- package/ecs/invocation.js +15 -0
- package/ecs/invocation.js.map +1 -1
- package/ecs/invocations.d.ts +25 -0
- package/ecs/invocations.js +2 -0
- package/ecs/invocations.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/kafka/instance.d.ts +12 -0
- package/kafka/instance.js +2 -0
- package/kafka/instance.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +4 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/redis/getParameterGroups.d.ts +22 -0
- package/redis/getParameterGroups.js +22 -0
- package/redis/getParameterGroups.js.map +1 -1
- package/redis/parameterGroups.d.ts +22 -0
- package/redis/parameterGroups.js +22 -0
- package/redis/parameterGroups.js.map +1 -1
- package/tos/bucketCors.d.ts +120 -0
- package/tos/bucketCors.js +115 -0
- package/tos/bucketCors.js.map +1 -0
- package/tos/bucketEncryption.d.ts +105 -0
- package/tos/bucketEncryption.js +100 -0
- package/tos/bucketEncryption.js.map +1 -0
- package/tos/bucketNotification.d.ts +166 -0
- package/tos/bucketNotification.js +155 -0
- package/tos/bucketNotification.js.map +1 -0
- package/tos/index.d.ts +9 -0
- package/tos/index.js +16 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +6104 -3944
- package/types/output.d.ts +35681 -27825
- package/vke/node.d.ts +12 -0
- package/vke/node.js +2 -0
- package/vke/node.js.map +1 -1
- 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/networkInterface.d.ts +27 -7
- package/vpc/networkInterface.js +27 -7
- package/vpc/networkInterface.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,137 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage waf system bot
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const foo = new volcengine.waf.SystemBot("foo", {
|
|
11
|
+
* action: "observe",
|
|
12
|
+
* botType: "feed_fetcher",
|
|
13
|
+
* enable: 0,
|
|
14
|
+
* host: "www.tf-test.com",
|
|
15
|
+
* projectName: "default",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* WafSystemBot can be imported using the id, e.g.
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import volcengine:waf/systemBot:SystemBot default BotType:Host
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class SystemBot extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing SystemBot resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SystemBotState, opts?: pulumi.CustomResourceOptions): SystemBot;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of SystemBot. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj: any): obj is SystemBot;
|
|
43
|
+
/**
|
|
44
|
+
* The execution action of the Bot.
|
|
45
|
+
*/
|
|
46
|
+
readonly action: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The name of bot.
|
|
49
|
+
*/
|
|
50
|
+
readonly botType: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The description of the Bot.
|
|
53
|
+
*/
|
|
54
|
+
readonly description: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to enable bot.
|
|
57
|
+
*/
|
|
58
|
+
readonly enable: pulumi.Output<number>;
|
|
59
|
+
/**
|
|
60
|
+
* Domain name information.
|
|
61
|
+
*/
|
|
62
|
+
readonly host: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The Name of the affiliated project resource.
|
|
65
|
+
*/
|
|
66
|
+
readonly projectName: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The ID of the Bot rule.
|
|
69
|
+
*/
|
|
70
|
+
readonly ruleTag: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a SystemBot resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: SystemBotArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering SystemBot resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface SystemBotState {
|
|
84
|
+
/**
|
|
85
|
+
* The execution action of the Bot.
|
|
86
|
+
*/
|
|
87
|
+
action?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The name of bot.
|
|
90
|
+
*/
|
|
91
|
+
botType?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The description of the Bot.
|
|
94
|
+
*/
|
|
95
|
+
description?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Whether to enable bot.
|
|
98
|
+
*/
|
|
99
|
+
enable?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Domain name information.
|
|
102
|
+
*/
|
|
103
|
+
host?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The Name of the affiliated project resource.
|
|
106
|
+
*/
|
|
107
|
+
projectName?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The ID of the Bot rule.
|
|
110
|
+
*/
|
|
111
|
+
ruleTag?: pulumi.Input<string>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a SystemBot resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface SystemBotArgs {
|
|
117
|
+
/**
|
|
118
|
+
* The execution action of the Bot.
|
|
119
|
+
*/
|
|
120
|
+
action?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The name of bot.
|
|
123
|
+
*/
|
|
124
|
+
botType: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether to enable bot.
|
|
127
|
+
*/
|
|
128
|
+
enable?: pulumi.Input<number>;
|
|
129
|
+
/**
|
|
130
|
+
* Domain name information.
|
|
131
|
+
*/
|
|
132
|
+
host: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The Name of the affiliated project resource.
|
|
135
|
+
*/
|
|
136
|
+
projectName?: pulumi.Input<string>;
|
|
137
|
+
}
|
package/waf/systemBot.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
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.SystemBot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage waf system 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.SystemBot("foo", {
|
|
17
|
+
* action: "observe",
|
|
18
|
+
* botType: "feed_fetcher",
|
|
19
|
+
* enable: 0,
|
|
20
|
+
* host: "www.tf-test.com",
|
|
21
|
+
* projectName: "default",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* WafSystemBot can be imported using the id, e.g.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import volcengine:waf/systemBot:SystemBot default BotType:Host
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
class SystemBot extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing SystemBot resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, state, opts) {
|
|
44
|
+
return new SystemBot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of SystemBot. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === SystemBot.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
62
|
+
resourceInputs["botType"] = state ? state.botType : undefined;
|
|
63
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
64
|
+
resourceInputs["enable"] = state ? state.enable : undefined;
|
|
65
|
+
resourceInputs["host"] = state ? state.host : undefined;
|
|
66
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
67
|
+
resourceInputs["ruleTag"] = state ? state.ruleTag : undefined;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
const args = argsOrState;
|
|
71
|
+
if ((!args || args.botType === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'botType'");
|
|
73
|
+
}
|
|
74
|
+
if ((!args || args.host === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'host'");
|
|
76
|
+
}
|
|
77
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
78
|
+
resourceInputs["botType"] = args ? args.botType : undefined;
|
|
79
|
+
resourceInputs["enable"] = args ? args.enable : undefined;
|
|
80
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
81
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
82
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["ruleTag"] = undefined /*out*/;
|
|
84
|
+
}
|
|
85
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
|
+
super(SystemBot.__pulumiType, name, resourceInputs, opts);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.SystemBot = SystemBot;
|
|
90
|
+
/** @internal */
|
|
91
|
+
SystemBot.__pulumiType = 'volcengine:waf/systemBot:SystemBot';
|
|
92
|
+
//# sourceMappingURL=systemBot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemBot.js","sourceRoot":"","sources":["../../waf/systemBot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE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"../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to query detailed information of waf system 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.getSystemBots({
|
|
12
|
+
* host: "www.tf-test.com",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
/** @deprecated volcengine.waf.SystemBots has been deprecated in favor of volcengine.waf.getSystemBots */
|
|
17
|
+
export declare function systemBots(args: SystemBotsArgs, opts?: pulumi.InvokeOptions): Promise<SystemBotsResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking SystemBots.
|
|
20
|
+
*/
|
|
21
|
+
export interface SystemBotsArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Domain name information.
|
|
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 SystemBots.
|
|
37
|
+
*/
|
|
38
|
+
export interface SystemBotsResult {
|
|
39
|
+
/**
|
|
40
|
+
* Host the Bot configuration information.
|
|
41
|
+
*/
|
|
42
|
+
readonly datas: outputs.waf.SystemBotsData[];
|
|
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 system 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.getSystemBots({
|
|
64
|
+
* host: "www.tf-test.com",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
/** @deprecated volcengine.waf.SystemBots has been deprecated in favor of volcengine.waf.getSystemBots */
|
|
69
|
+
export declare function systemBotsOutput(args: SystemBotsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<SystemBotsResult>;
|
|
70
|
+
/**
|
|
71
|
+
* A collection of arguments for invoking SystemBots.
|
|
72
|
+
*/
|
|
73
|
+
export interface SystemBotsOutputArgs {
|
|
74
|
+
/**
|
|
75
|
+
* Domain name information.
|
|
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,50 @@
|
|
|
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.systemBotsOutput = exports.systemBots = 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 system 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.getSystemBots({
|
|
17
|
+
* host: "www.tf-test.com",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
/** @deprecated volcengine.waf.SystemBots has been deprecated in favor of volcengine.waf.getSystemBots */
|
|
22
|
+
function systemBots(args, opts) {
|
|
23
|
+
pulumi.log.warn("systemBots is deprecated: volcengine.waf.SystemBots has been deprecated in favor of volcengine.waf.getSystemBots");
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invoke("volcengine:waf/systemBots:SystemBots", {
|
|
26
|
+
"host": args.host,
|
|
27
|
+
"nameRegex": args.nameRegex,
|
|
28
|
+
"outputFile": args.outputFile,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.systemBots = systemBots;
|
|
32
|
+
/**
|
|
33
|
+
* Use this data source to query detailed information of waf system bots
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
39
|
+
*
|
|
40
|
+
* const foo = volcengine.waf.getSystemBots({
|
|
41
|
+
* host: "www.tf-test.com",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
/** @deprecated volcengine.waf.SystemBots has been deprecated in favor of volcengine.waf.getSystemBots */
|
|
46
|
+
function systemBotsOutput(args, opts) {
|
|
47
|
+
return pulumi.output(args).apply((a) => systemBots(a, opts));
|
|
48
|
+
}
|
|
49
|
+
exports.systemBotsOutput = systemBotsOutput;
|
|
50
|
+
//# sourceMappingURL=systemBots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemBots.js","sourceRoot":"","sources":["../../waf/systemBots.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,yGAAyG;AACzG,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,kHAAkH,CAAC,CAAA;IAEnI,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;AATD,gCASC;AAwCD;;;;;;;;;;;;GAYG;AACH,yGAAyG;AACzG,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,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"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 vulnerability
|
|
6
|
+
* ## Import
|
|
7
|
+
*
|
|
8
|
+
* WafVulnerability can be imported using the id, e.g.
|
|
9
|
+
*
|
|
10
|
+
* ```sh
|
|
11
|
+
* $ pulumi import volcengine:waf/vulnerability:Vulnerability default resource_id
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class Vulnerability extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing Vulnerability resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VulnerabilityState, opts?: pulumi.CustomResourceOptions): Vulnerability;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of Vulnerability. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is Vulnerability;
|
|
30
|
+
/**
|
|
31
|
+
* Protection mode.
|
|
32
|
+
*/
|
|
33
|
+
readonly action: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The advanced configuration of vulnerability protection currently supports automatic blocking of directory traversal attacks and high-frequency scanning attacks.
|
|
36
|
+
*/
|
|
37
|
+
readonly advanceConfig: pulumi.Output<outputs.waf.VulnerabilityAdvanceConfig>;
|
|
38
|
+
/**
|
|
39
|
+
* Protect website domain names.
|
|
40
|
+
*/
|
|
41
|
+
readonly host: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Detailed information of the vulnerability rules. By default, only the vulnerability protection rules of the custom mode are displayed.
|
|
44
|
+
*/
|
|
45
|
+
readonly ruleDetails: pulumi.Output<outputs.waf.VulnerabilityRuleDetail[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The enabled vulnerability rule categories, WAF has classified the managed rules according to their strictness.
|
|
48
|
+
*/
|
|
49
|
+
readonly ruleMode: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Custom rule switch.
|
|
52
|
+
*/
|
|
53
|
+
readonly systemRuleSwitches: pulumi.Output<outputs.waf.VulnerabilitySystemRuleSwitch[] | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a Vulnerability resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: VulnerabilityArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering Vulnerability resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface VulnerabilityState {
|
|
67
|
+
/**
|
|
68
|
+
* Protection mode.
|
|
69
|
+
*/
|
|
70
|
+
action?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The advanced configuration of vulnerability protection currently supports automatic blocking of directory traversal attacks and high-frequency scanning attacks.
|
|
73
|
+
*/
|
|
74
|
+
advanceConfig?: pulumi.Input<inputs.waf.VulnerabilityAdvanceConfig>;
|
|
75
|
+
/**
|
|
76
|
+
* Protect website domain names.
|
|
77
|
+
*/
|
|
78
|
+
host?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Detailed information of the vulnerability rules. By default, only the vulnerability protection rules of the custom mode are displayed.
|
|
81
|
+
*/
|
|
82
|
+
ruleDetails?: pulumi.Input<pulumi.Input<inputs.waf.VulnerabilityRuleDetail>[]>;
|
|
83
|
+
/**
|
|
84
|
+
* The enabled vulnerability rule categories, WAF has classified the managed rules according to their strictness.
|
|
85
|
+
*/
|
|
86
|
+
ruleMode?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Custom rule switch.
|
|
89
|
+
*/
|
|
90
|
+
systemRuleSwitches?: pulumi.Input<pulumi.Input<inputs.waf.VulnerabilitySystemRuleSwitch>[]>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a Vulnerability resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface VulnerabilityArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Protection mode.
|
|
98
|
+
*/
|
|
99
|
+
action?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The advanced configuration of vulnerability protection currently supports automatic blocking of directory traversal attacks and high-frequency scanning attacks.
|
|
102
|
+
*/
|
|
103
|
+
advanceConfig?: pulumi.Input<inputs.waf.VulnerabilityAdvanceConfig>;
|
|
104
|
+
/**
|
|
105
|
+
* Protect website domain names.
|
|
106
|
+
*/
|
|
107
|
+
host: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The enabled vulnerability rule categories, WAF has classified the managed rules according to their strictness.
|
|
110
|
+
*/
|
|
111
|
+
ruleMode?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Custom rule switch.
|
|
114
|
+
*/
|
|
115
|
+
systemRuleSwitches?: pulumi.Input<pulumi.Input<inputs.waf.VulnerabilitySystemRuleSwitch>[]>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.Vulnerability = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage waf vulnerability
|
|
10
|
+
* ## Import
|
|
11
|
+
*
|
|
12
|
+
* WafVulnerability can be imported using the id, e.g.
|
|
13
|
+
*
|
|
14
|
+
* ```sh
|
|
15
|
+
* $ pulumi import volcengine:waf/vulnerability:Vulnerability default resource_id
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
class Vulnerability extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing Vulnerability resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name, id, state, opts) {
|
|
29
|
+
return new Vulnerability(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of Vulnerability. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj) {
|
|
36
|
+
if (obj === undefined || obj === null) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return obj['__pulumiType'] === Vulnerability.__pulumiType;
|
|
40
|
+
}
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let resourceInputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
47
|
+
resourceInputs["advanceConfig"] = state ? state.advanceConfig : undefined;
|
|
48
|
+
resourceInputs["host"] = state ? state.host : undefined;
|
|
49
|
+
resourceInputs["ruleDetails"] = state ? state.ruleDetails : undefined;
|
|
50
|
+
resourceInputs["ruleMode"] = state ? state.ruleMode : undefined;
|
|
51
|
+
resourceInputs["systemRuleSwitches"] = state ? state.systemRuleSwitches : undefined;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if ((!args || args.host === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'host'");
|
|
57
|
+
}
|
|
58
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
59
|
+
resourceInputs["advanceConfig"] = args ? args.advanceConfig : undefined;
|
|
60
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
61
|
+
resourceInputs["ruleMode"] = args ? args.ruleMode : undefined;
|
|
62
|
+
resourceInputs["systemRuleSwitches"] = args ? args.systemRuleSwitches : undefined;
|
|
63
|
+
resourceInputs["ruleDetails"] = undefined /*out*/;
|
|
64
|
+
}
|
|
65
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
66
|
+
super(Vulnerability.__pulumiType, name, resourceInputs, opts);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Vulnerability = Vulnerability;
|
|
70
|
+
/** @internal */
|
|
71
|
+
Vulnerability.__pulumiType = 'volcengine:waf/vulnerability:Vulnerability';
|
|
72
|
+
//# sourceMappingURL=vulnerability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vulnerability.js","sourceRoot":"","sources":["../../waf/vulnerability.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;GASG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KA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