@volcengine/pulumi 0.0.27 → 0.0.28
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/clb/clb.d.ts +8 -8
- package/clb/clb.js +0 -3
- package/clb/clb.js.map +1 -1
- package/cloud_firewall/cfwAddressBook.d.ts +128 -0
- package/cloud_firewall/cfwAddressBook.js +93 -0
- package/cloud_firewall/cfwAddressBook.js.map +1 -0
- package/cloud_firewall/cfwAddressBooks.d.ts +122 -0
- package/cloud_firewall/cfwAddressBooks.js +53 -0
- package/cloud_firewall/cfwAddressBooks.js.map +1 -0
- package/cloud_firewall/cfwControlPolicies.d.ts +176 -0
- package/cloud_firewall/cfwControlPolicies.js +56 -0
- package/cloud_firewall/cfwControlPolicies.js.map +1 -0
- package/cloud_firewall/cfwControlPolicy.d.ts +384 -0
- package/cloud_firewall/cfwControlPolicy.js +170 -0
- package/cloud_firewall/cfwControlPolicy.js.map +1 -0
- package/cloud_firewall/cfwControlPolicyPriority.d.ts +135 -0
- package/cloud_firewall/cfwControlPolicyPriority.js +116 -0
- package/cloud_firewall/cfwControlPolicyPriority.js.map +1 -0
- package/cloud_firewall/cfwDnsControlPolicies.d.ts +160 -0
- package/cloud_firewall/cfwDnsControlPolicies.js +80 -0
- package/cloud_firewall/cfwDnsControlPolicies.js.map +1 -0
- package/cloud_firewall/cfwDnsControlPolicy.d.ts +173 -0
- package/cloud_firewall/cfwDnsControlPolicy.js +107 -0
- package/cloud_firewall/cfwDnsControlPolicy.js.map +1 -0
- package/cloud_firewall/cfwNatFirewallControlPolicies.d.ts +200 -0
- package/cloud_firewall/cfwNatFirewallControlPolicies.js +58 -0
- package/cloud_firewall/cfwNatFirewallControlPolicies.js.map +1 -0
- package/cloud_firewall/cfwNatFirewallControlPolicy.d.ts +406 -0
- package/cloud_firewall/cfwNatFirewallControlPolicy.js +179 -0
- package/cloud_firewall/cfwNatFirewallControlPolicy.js.map +1 -0
- package/cloud_firewall/cfwNatFirewallControlPolicyPriority.d.ts +150 -0
- package/cloud_firewall/cfwNatFirewallControlPolicyPriority.js +124 -0
- package/cloud_firewall/cfwNatFirewallControlPolicyPriority.js.map +1 -0
- package/cloud_firewall/cfwVpcFirewallAclRule.d.ts +392 -0
- package/cloud_firewall/cfwVpcFirewallAclRule.js +172 -0
- package/cloud_firewall/cfwVpcFirewallAclRule.js.map +1 -0
- package/cloud_firewall/cfwVpcFirewallAclRulePriority.d.ts +135 -0
- package/cloud_firewall/cfwVpcFirewallAclRulePriority.js +116 -0
- package/cloud_firewall/cfwVpcFirewallAclRulePriority.js.map +1 -0
- package/cloud_firewall/cfwVpcFirewallAclRules.d.ts +182 -0
- package/cloud_firewall/cfwVpcFirewallAclRules.js +62 -0
- package/cloud_firewall/cfwVpcFirewallAclRules.js.map +1 -0
- package/cloud_firewall/index.d.ts +39 -0
- package/cloud_firewall/index.js +72 -0
- package/cloud_firewall/index.js.map +1 -0
- package/cloud_monitor/rule.d.ts +29 -11
- package/cloud_monitor/rule.js +10 -2
- package/cloud_monitor/rule.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/dns/backup.d.ts +83 -0
- package/dns/backup.js +75 -0
- package/dns/backup.js.map +1 -0
- package/dns/backupSchedule.d.ts +90 -0
- package/dns/backupSchedule.js +81 -0
- package/dns/backupSchedule.js.map +1 -0
- package/dns/backups.d.ts +84 -0
- package/dns/backups.js +47 -0
- package/dns/backups.js.map +1 -0
- package/dns/index.d.ts +24 -0
- package/dns/index.js +49 -0
- package/dns/index.js.map +1 -0
- package/dns/record.d.ts +220 -0
- package/dns/record.js +115 -0
- package/dns/record.js.map +1 -0
- package/dns/recordSets.d.ts +122 -0
- package/dns/recordSets.js +58 -0
- package/dns/recordSets.js.map +1 -0
- package/dns/records.d.ts +150 -0
- package/dns/records.js +53 -0
- package/dns/records.js.map +1 -0
- package/dns/zone.d.ts +225 -0
- package/dns/zone.js +113 -0
- package/dns/zone.js.map +1 -0
- package/dns/zones.d.ts +169 -0
- package/dns/zones.js +61 -0
- package/dns/zones.js.map +1 -0
- package/ebs/volume.d.ts +27 -15
- package/ebs/volume.js +2 -0
- package/ebs/volume.js.map +1 -1
- package/ecs/instance.d.ts +12 -0
- package/ecs/instance.js +2 -0
- package/ecs/instance.js.map +1 -1
- package/escloud/instance.d.ts +1 -1
- package/escloud/instance.js +1 -1
- package/escloud/instances.d.ts +2 -2
- package/escloud/instances.js +2 -2
- package/escloud/regions.d.ts +2 -2
- package/escloud/regions.js +2 -2
- package/escloud/zones.d.ts +2 -2
- package/escloud/zones.js +2 -2
- package/escloud_v2/escloudInstanceV2.d.ts +496 -0
- package/escloud_v2/escloudInstanceV2.js +243 -0
- package/escloud_v2/escloudInstanceV2.js.map +1 -0
- package/escloud_v2/escloudInstancesV2.d.ts +53 -0
- package/escloud_v2/escloudInstancesV2.js +28 -0
- package/escloud_v2/escloudInstancesV2.js.map +1 -0
- package/escloud_v2/escloudIpWhiteList.d.ts +188 -0
- package/escloud_v2/escloudIpWhiteList.js +171 -0
- package/escloud_v2/escloudIpWhiteList.js.map +1 -0
- package/escloud_v2/index.d.ts +9 -0
- package/escloud_v2/index.js +30 -0
- package/escloud_v2/index.js.map +1 -0
- package/index.d.ts +6 -1
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/mongodb/account.d.ts +188 -0
- package/mongodb/account.js +142 -0
- package/mongodb/account.js.map +1 -0
- package/mongodb/accounts.d.ts +16 -4
- package/mongodb/accounts.js +1 -0
- package/mongodb/accounts.js.map +1 -1
- package/mongodb/endpoint.d.ts +3 -3
- package/mongodb/index.d.ts +3 -0
- package/mongodb/index.js +6 -1
- package/mongodb/index.js.map +1 -1
- package/mongodb/instance.d.ts +117 -46
- package/mongodb/instance.js +40 -7
- package/mongodb/instance.js.map +1 -1
- package/mongodb/instanceParameter.d.ts +3 -3
- package/mongodb/instances.d.ts +12 -0
- package/mongodb/instances.js +1 -0
- package/mongodb/instances.js.map +1 -1
- package/mongodb/mongoAllowList.d.ts +43 -4
- package/mongodb/mongoAllowList.js +10 -1
- package/mongodb/mongoAllowList.js.map +1 -1
- package/mongodb/mongoAllowLists.d.ts +12 -0
- package/mongodb/mongoAllowLists.js +1 -0
- package/mongodb/mongoAllowLists.js.map +1 -1
- package/package.json +1 -1
- package/privatelink/vpcEndpoint.d.ts +20 -0
- package/privatelink/vpcEndpoint.js +4 -0
- package/privatelink/vpcEndpoint.js.map +1 -1
- package/provider.d.ts +8 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/rabbitmq/index.d.ts +15 -0
- package/rabbitmq/index.js +38 -0
- package/rabbitmq/index.js.map +1 -0
- package/rabbitmq/instance.d.ts +323 -0
- package/rabbitmq/instance.js +172 -0
- package/rabbitmq/instance.js.map +1 -0
- package/rabbitmq/instancePlugin.d.ts +173 -0
- package/rabbitmq/instancePlugin.js +128 -0
- package/rabbitmq/instancePlugin.js.map +1 -0
- package/rabbitmq/instancePlugins.d.ts +154 -0
- package/rabbitmq/instancePlugins.js +117 -0
- package/rabbitmq/instancePlugins.js.map +1 -0
- package/rabbitmq/instances.d.ts +251 -0
- package/rabbitmq/instances.js +126 -0
- package/rabbitmq/instances.js.map +1 -0
- package/rabbitmq/publicAddress.d.ts +124 -0
- package/rabbitmq/publicAddress.js +121 -0
- package/rabbitmq/publicAddress.js.map +1 -0
- package/rds_mysql/account.d.ts +15 -5
- package/rds_mysql/account.js +15 -5
- package/rds_mysql/account.js.map +1 -1
- package/rds_mysql/allowlist.d.ts +77 -8
- package/rds_mysql/allowlist.js +22 -7
- package/rds_mysql/allowlist.js.map +1 -1
- package/rds_mysql/backup.d.ts +128 -0
- package/rds_mysql/backup.js +85 -0
- package/rds_mysql/backup.js.map +1 -0
- package/rds_mysql/backupPolicy.d.ts +380 -0
- package/rds_mysql/backupPolicy.js +125 -0
- package/rds_mysql/backupPolicy.js.map +1 -0
- package/rds_mysql/backups.d.ts +178 -0
- package/rds_mysql/backups.js +68 -0
- package/rds_mysql/backups.js.map +1 -0
- package/rds_mysql/endpoint.d.ts +254 -0
- package/rds_mysql/endpoint.js +124 -0
- package/rds_mysql/endpoint.js.map +1 -0
- package/rds_mysql/endpointPublicAddress.d.ts +108 -0
- package/rds_mysql/endpointPublicAddress.js +88 -0
- package/rds_mysql/endpointPublicAddress.js.map +1 -0
- package/rds_mysql/endpoints.d.ts +75 -0
- package/rds_mysql/endpoints.js +46 -0
- package/rds_mysql/endpoints.js.map +1 -0
- package/rds_mysql/index.d.ts +33 -0
- package/rds_mysql/index.js +44 -1
- package/rds_mysql/index.js.map +1 -1
- package/rds_mysql/instance.d.ts +107 -5
- package/rds_mysql/instance.js +21 -3
- package/rds_mysql/instance.js.map +1 -1
- package/rds_mysql/instanceSpecs.d.ts +122 -0
- package/rds_mysql/instanceSpecs.js +52 -0
- package/rds_mysql/instanceSpecs.js.map +1 -0
- package/rds_mysql/parameterTemplate.d.ts +132 -0
- package/rds_mysql/parameterTemplate.js +97 -0
- package/rds_mysql/parameterTemplate.js.map +1 -0
- package/rds_mysql/parameterTemplates.d.ts +124 -0
- package/rds_mysql/parameterTemplates.js +52 -0
- package/rds_mysql/parameterTemplates.js.map +1 -0
- package/rds_mysql/regions.d.ts +62 -0
- package/rds_mysql/regions.js +42 -0
- package/rds_mysql/regions.js.map +1 -0
- package/rds_mysql/zones.d.ts +62 -0
- package/rds_mysql/zones.js +42 -0
- package/rds_mysql/zones.js.map +1 -0
- package/redis/instance.d.ts +4 -4
- package/redis/instance.js +4 -4
- package/rocketmq/accessKeys.d.ts +90 -0
- package/rocketmq/accessKeys.js +47 -0
- package/rocketmq/accessKeys.js.map +1 -0
- package/rocketmq/allowLists.d.ts +62 -0
- package/rocketmq/allowLists.js +42 -0
- package/rocketmq/allowLists.js.map +1 -0
- package/rocketmq/groups.d.ts +99 -0
- package/rocketmq/groups.js +48 -0
- package/rocketmq/groups.js.map +1 -0
- package/rocketmq/index.d.ts +36 -0
- package/rocketmq/index.js +67 -0
- package/rocketmq/index.js.map +1 -0
- package/rocketmq/instances.d.ts +193 -0
- package/rocketmq/instances.js +57 -0
- package/rocketmq/instances.js.map +1 -0
- package/rocketmq/rocketMQAccessKey.d.ts +176 -0
- package/rocketmq/rocketMQAccessKey.js +130 -0
- package/rocketmq/rocketMQAccessKey.js.map +1 -0
- package/rocketmq/rocketMQAllowList.d.ts +132 -0
- package/rocketmq/rocketMQAllowList.js +93 -0
- package/rocketmq/rocketMQAllowList.js.map +1 -0
- package/rocketmq/rocketMQAllowListAssociate.d.ts +121 -0
- package/rocketmq/rocketMQAllowListAssociate.js +118 -0
- package/rocketmq/rocketMQAllowListAssociate.js.map +1 -0
- package/rocketmq/rocketMQGroup.d.ts +190 -0
- package/rocketmq/rocketMQGroup.js +129 -0
- package/rocketmq/rocketMQGroup.js.map +1 -0
- package/rocketmq/rocketMQInstance.d.ts +351 -0
- package/rocketmq/rocketMQInstance.js +171 -0
- package/rocketmq/rocketMQInstance.js.map +1 -0
- package/rocketmq/rocketMQPublicAddress.d.ts +133 -0
- package/rocketmq/rocketMQPublicAddress.js +120 -0
- package/rocketmq/rocketMQPublicAddress.js.map +1 -0
- package/rocketmq/rocketMQTopic.d.ts +191 -0
- package/rocketmq/rocketMQTopic.js +140 -0
- package/rocketmq/rocketMQTopic.js.map +1 -0
- package/rocketmq/topics.d.ts +121 -0
- package/rocketmq/topics.js +49 -0
- package/rocketmq/topics.js.map +1 -0
- package/tos/bucket.d.ts +27 -1
- package/tos/bucket.js +7 -1
- package/tos/bucket.js.map +1 -1
- package/tos/bucketInventories.d.ts +156 -0
- package/tos/bucketInventories.js +108 -0
- package/tos/bucketInventories.js.map +1 -0
- package/tos/bucketInventory.d.ts +180 -0
- package/tos/bucketInventory.js +127 -0
- package/tos/bucketInventory.js.map +1 -0
- package/tos/bucketObject.d.ts +11 -3
- package/tos/bucketObject.js +2 -0
- package/tos/bucketObject.js.map +1 -1
- package/tos/bucketRealtimeLog.d.ts +100 -0
- package/tos/bucketRealtimeLog.js +88 -0
- package/tos/bucketRealtimeLog.js.map +1 -0
- package/tos/index.d.ts +9 -0
- package/tos/index.js +14 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +570 -8
- package/types/output.d.ts +8719 -5442
- package/vke/nodePool.d.ts +1 -0
- package/vke/nodePool.js +1 -0
- package/vke/nodePool.js.map +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage cfw control policy priority
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const fooCfwAddressBook = new volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook", {
|
|
11
|
+
* groupName: "acc-test-address-book",
|
|
12
|
+
* description: "acc-test",
|
|
13
|
+
* groupType: "ip",
|
|
14
|
+
* addressLists: [
|
|
15
|
+
* "192.168.1.1",
|
|
16
|
+
* "192.168.2.2",
|
|
17
|
+
* ],
|
|
18
|
+
* });
|
|
19
|
+
* const fooCfwControlPolicy = new volcengine.cloud_firewall.CfwControlPolicy("fooCfwControlPolicy", {
|
|
20
|
+
* direction: "in",
|
|
21
|
+
* action: "accept",
|
|
22
|
+
* destinationType: "group",
|
|
23
|
+
* destination: fooCfwAddressBook.id,
|
|
24
|
+
* proto: "TCP",
|
|
25
|
+
* sourceType: "net",
|
|
26
|
+
* source: "0.0.0.0/0",
|
|
27
|
+
* description: "acc-test-control-policy",
|
|
28
|
+
* destPortType: "port",
|
|
29
|
+
* destPort: "300",
|
|
30
|
+
* repeatType: "Weekly",
|
|
31
|
+
* repeatStartTime: "01:00",
|
|
32
|
+
* repeatEndTime: "11:00",
|
|
33
|
+
* repeatDays: [
|
|
34
|
+
* 2,
|
|
35
|
+
* 5,
|
|
36
|
+
* ],
|
|
37
|
+
* startTime: 1736092800,
|
|
38
|
+
* endTime: 1738339140,
|
|
39
|
+
* priority: 1,
|
|
40
|
+
* status: true,
|
|
41
|
+
* });
|
|
42
|
+
* const fooCfwControlPolicyPriority = new volcengine.cloud_firewall.CfwControlPolicyPriority("fooCfwControlPolicyPriority", {
|
|
43
|
+
* direction: "in",
|
|
44
|
+
* ruleId: fooCfwControlPolicy.ruleId,
|
|
45
|
+
* newPrio: 5,
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ## Import
|
|
50
|
+
*
|
|
51
|
+
* ControlPolicyPriority can be imported using the direction:rule_id, e.g.
|
|
52
|
+
*
|
|
53
|
+
* ```sh
|
|
54
|
+
* $ pulumi import volcengine:cloud_firewall/cfwControlPolicyPriority:CfwControlPolicyPriority default resource_id
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare class CfwControlPolicyPriority extends pulumi.CustomResource {
|
|
58
|
+
/**
|
|
59
|
+
* Get an existing CfwControlPolicyPriority resource's state with the given name, ID, and optional extra
|
|
60
|
+
* properties used to qualify the lookup.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resulting resource.
|
|
63
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
64
|
+
* @param state Any extra arguments used during the lookup.
|
|
65
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
66
|
+
*/
|
|
67
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CfwControlPolicyPriorityState, opts?: pulumi.CustomResourceOptions): CfwControlPolicyPriority;
|
|
68
|
+
/**
|
|
69
|
+
* Returns true if the given object is an instance of CfwControlPolicyPriority. This is designed to work even
|
|
70
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
71
|
+
*/
|
|
72
|
+
static isInstance(obj: any): obj is CfwControlPolicyPriority;
|
|
73
|
+
/**
|
|
74
|
+
* The direction of the control policy. Valid values: `in`, `out`.
|
|
75
|
+
*/
|
|
76
|
+
readonly direction: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority.
|
|
79
|
+
*/
|
|
80
|
+
readonly newPrio: pulumi.Output<number | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* The priority of the control policy.
|
|
83
|
+
*/
|
|
84
|
+
readonly prio: pulumi.Output<number>;
|
|
85
|
+
/**
|
|
86
|
+
* The rule id of the control policy.
|
|
87
|
+
*/
|
|
88
|
+
readonly ruleId: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Create a CfwControlPolicyPriority resource with the given unique name, arguments, and options.
|
|
91
|
+
*
|
|
92
|
+
* @param name The _unique_ name of the resource.
|
|
93
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
94
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
95
|
+
*/
|
|
96
|
+
constructor(name: string, args: CfwControlPolicyPriorityArgs, opts?: pulumi.CustomResourceOptions);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Input properties used for looking up and filtering CfwControlPolicyPriority resources.
|
|
100
|
+
*/
|
|
101
|
+
export interface CfwControlPolicyPriorityState {
|
|
102
|
+
/**
|
|
103
|
+
* The direction of the control policy. Valid values: `in`, `out`.
|
|
104
|
+
*/
|
|
105
|
+
direction?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority.
|
|
108
|
+
*/
|
|
109
|
+
newPrio?: pulumi.Input<number>;
|
|
110
|
+
/**
|
|
111
|
+
* The priority of the control policy.
|
|
112
|
+
*/
|
|
113
|
+
prio?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* The rule id of the control policy.
|
|
116
|
+
*/
|
|
117
|
+
ruleId?: pulumi.Input<string>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The set of arguments for constructing a CfwControlPolicyPriority resource.
|
|
121
|
+
*/
|
|
122
|
+
export interface CfwControlPolicyPriorityArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The direction of the control policy. Valid values: `in`, `out`.
|
|
125
|
+
*/
|
|
126
|
+
direction: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The new priority of the control policy. The priority increases in order from 1, with lower priority indicating higher priority.
|
|
129
|
+
*/
|
|
130
|
+
newPrio?: pulumi.Input<number>;
|
|
131
|
+
/**
|
|
132
|
+
* The rule id of the control policy.
|
|
133
|
+
*/
|
|
134
|
+
ruleId: pulumi.Input<string>;
|
|
135
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.CfwControlPolicyPriority = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage cfw control policy priority
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const fooCfwAddressBook = new volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook", {
|
|
17
|
+
* groupName: "acc-test-address-book",
|
|
18
|
+
* description: "acc-test",
|
|
19
|
+
* groupType: "ip",
|
|
20
|
+
* addressLists: [
|
|
21
|
+
* "192.168.1.1",
|
|
22
|
+
* "192.168.2.2",
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
* const fooCfwControlPolicy = new volcengine.cloud_firewall.CfwControlPolicy("fooCfwControlPolicy", {
|
|
26
|
+
* direction: "in",
|
|
27
|
+
* action: "accept",
|
|
28
|
+
* destinationType: "group",
|
|
29
|
+
* destination: fooCfwAddressBook.id,
|
|
30
|
+
* proto: "TCP",
|
|
31
|
+
* sourceType: "net",
|
|
32
|
+
* source: "0.0.0.0/0",
|
|
33
|
+
* description: "acc-test-control-policy",
|
|
34
|
+
* destPortType: "port",
|
|
35
|
+
* destPort: "300",
|
|
36
|
+
* repeatType: "Weekly",
|
|
37
|
+
* repeatStartTime: "01:00",
|
|
38
|
+
* repeatEndTime: "11:00",
|
|
39
|
+
* repeatDays: [
|
|
40
|
+
* 2,
|
|
41
|
+
* 5,
|
|
42
|
+
* ],
|
|
43
|
+
* startTime: 1736092800,
|
|
44
|
+
* endTime: 1738339140,
|
|
45
|
+
* priority: 1,
|
|
46
|
+
* status: true,
|
|
47
|
+
* });
|
|
48
|
+
* const fooCfwControlPolicyPriority = new volcengine.cloud_firewall.CfwControlPolicyPriority("fooCfwControlPolicyPriority", {
|
|
49
|
+
* direction: "in",
|
|
50
|
+
* ruleId: fooCfwControlPolicy.ruleId,
|
|
51
|
+
* newPrio: 5,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* ControlPolicyPriority can be imported using the direction:rule_id, e.g.
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import volcengine:cloud_firewall/cfwControlPolicyPriority:CfwControlPolicyPriority default resource_id
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
class CfwControlPolicyPriority extends pulumi.CustomResource {
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing CfwControlPolicyPriority resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name, id, state, opts) {
|
|
74
|
+
return new CfwControlPolicyPriority(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of CfwControlPolicyPriority. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj) {
|
|
81
|
+
if (obj === undefined || obj === null) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return obj['__pulumiType'] === CfwControlPolicyPriority.__pulumiType;
|
|
85
|
+
}
|
|
86
|
+
constructor(name, argsOrState, opts) {
|
|
87
|
+
let resourceInputs = {};
|
|
88
|
+
opts = opts || {};
|
|
89
|
+
if (opts.id) {
|
|
90
|
+
const state = argsOrState;
|
|
91
|
+
resourceInputs["direction"] = state ? state.direction : undefined;
|
|
92
|
+
resourceInputs["newPrio"] = state ? state.newPrio : undefined;
|
|
93
|
+
resourceInputs["prio"] = state ? state.prio : undefined;
|
|
94
|
+
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
const args = argsOrState;
|
|
98
|
+
if ((!args || args.direction === undefined) && !opts.urn) {
|
|
99
|
+
throw new Error("Missing required property 'direction'");
|
|
100
|
+
}
|
|
101
|
+
if ((!args || args.ruleId === undefined) && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'ruleId'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["direction"] = args ? args.direction : undefined;
|
|
105
|
+
resourceInputs["newPrio"] = args ? args.newPrio : undefined;
|
|
106
|
+
resourceInputs["ruleId"] = args ? args.ruleId : undefined;
|
|
107
|
+
resourceInputs["prio"] = undefined /*out*/;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
super(CfwControlPolicyPriority.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.CfwControlPolicyPriority = CfwControlPolicyPriority;
|
|
114
|
+
/** @internal */
|
|
115
|
+
CfwControlPolicyPriority.__pulumiType = 'volcengine:cloud_firewall/cfwControlPolicyPriority:CfwControlPolicyPriority';
|
|
116
|
+
//# sourceMappingURL=cfwControlPolicyPriority.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cfwControlPolicyPriority.js","sourceRoot":"","sources":["../../cloud_firewall/cfwControlPolicyPriority.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,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,KAAK,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuD,CAAC;YACrE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AA7EL,4DA8EC;AAhEG,gBAAgB;AACO,qCAAY,GAAG,6EAA6E,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
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 cfw dns control policies
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
13
|
+
* vpcName: "acc-test-vpc",
|
|
14
|
+
* cidrBlock: "172.16.0.0/16",
|
|
15
|
+
* });
|
|
16
|
+
* const fooCfwDnsControlPolicy = new volcengine.cloud_firewall.CfwDnsControlPolicy("fooCfwDnsControlPolicy", {
|
|
17
|
+
* description: "acc-test-dns-control-policy",
|
|
18
|
+
* destinationType: "domain",
|
|
19
|
+
* destination: "www.test.com",
|
|
20
|
+
* sources: [{
|
|
21
|
+
* vpcId: fooVpc.id,
|
|
22
|
+
* region: "cn-beijing",
|
|
23
|
+
* }],
|
|
24
|
+
* });
|
|
25
|
+
* const fooCfwDnsControlPolicies = volcengine.cloud_firewall.CfwDnsControlPoliciesOutput({
|
|
26
|
+
* ids: [fooCfwDnsControlPolicy.id],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function cfwDnsControlPolicies(args?: CfwDnsControlPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<CfwDnsControlPoliciesResult>;
|
|
31
|
+
/**
|
|
32
|
+
* A collection of arguments for invoking CfwDnsControlPolicies.
|
|
33
|
+
*/
|
|
34
|
+
export interface CfwDnsControlPoliciesArgs {
|
|
35
|
+
/**
|
|
36
|
+
* The description of the dns control policy. This field support fuzzy query.
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The destination list of the dns control policy. This field support fuzzy query.
|
|
41
|
+
*/
|
|
42
|
+
destinations?: string[];
|
|
43
|
+
/**
|
|
44
|
+
* The rule id list of the dns control policy. This field support fuzzy query.
|
|
45
|
+
*/
|
|
46
|
+
ids?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* The internet firewall id of the dns control policy.
|
|
49
|
+
*/
|
|
50
|
+
internetFirewallId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* File name where to save data source results.
|
|
53
|
+
*/
|
|
54
|
+
outputFile?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The source list of the dns control policy. This field support fuzzy query.
|
|
57
|
+
*/
|
|
58
|
+
sources?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* The enable status list of the dns control policy. This field support fuzzy query.
|
|
61
|
+
*/
|
|
62
|
+
statuses?: boolean[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A collection of values returned by CfwDnsControlPolicies.
|
|
66
|
+
*/
|
|
67
|
+
export interface CfwDnsControlPoliciesResult {
|
|
68
|
+
/**
|
|
69
|
+
* The description of the dns control policy.
|
|
70
|
+
*/
|
|
71
|
+
readonly description?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The destination of the dns control policy.
|
|
74
|
+
*/
|
|
75
|
+
readonly destinations?: string[];
|
|
76
|
+
/**
|
|
77
|
+
* The collection of query.
|
|
78
|
+
*/
|
|
79
|
+
readonly dnsControlPolicies: outputs.cloud_firewall.CfwDnsControlPoliciesDnsControlPolicy[];
|
|
80
|
+
/**
|
|
81
|
+
* The provider-assigned unique ID for this managed resource.
|
|
82
|
+
*/
|
|
83
|
+
readonly id: string;
|
|
84
|
+
readonly ids?: string[];
|
|
85
|
+
readonly internetFirewallId?: string;
|
|
86
|
+
readonly outputFile?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The source vpc list of the dns control policy.
|
|
89
|
+
*/
|
|
90
|
+
readonly sources?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Whether to enable the dns control policy.
|
|
93
|
+
*/
|
|
94
|
+
readonly statuses?: boolean[];
|
|
95
|
+
/**
|
|
96
|
+
* The total count of query.
|
|
97
|
+
*/
|
|
98
|
+
readonly totalCount: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Use this data source to query detailed information of cfw dns control policies
|
|
102
|
+
* ## Example Usage
|
|
103
|
+
*
|
|
104
|
+
* ```typescript
|
|
105
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
106
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
107
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
108
|
+
*
|
|
109
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
110
|
+
* vpcName: "acc-test-vpc",
|
|
111
|
+
* cidrBlock: "172.16.0.0/16",
|
|
112
|
+
* });
|
|
113
|
+
* const fooCfwDnsControlPolicy = new volcengine.cloud_firewall.CfwDnsControlPolicy("fooCfwDnsControlPolicy", {
|
|
114
|
+
* description: "acc-test-dns-control-policy",
|
|
115
|
+
* destinationType: "domain",
|
|
116
|
+
* destination: "www.test.com",
|
|
117
|
+
* sources: [{
|
|
118
|
+
* vpcId: fooVpc.id,
|
|
119
|
+
* region: "cn-beijing",
|
|
120
|
+
* }],
|
|
121
|
+
* });
|
|
122
|
+
* const fooCfwDnsControlPolicies = volcengine.cloud_firewall.CfwDnsControlPoliciesOutput({
|
|
123
|
+
* ids: [fooCfwDnsControlPolicy.id],
|
|
124
|
+
* });
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
export declare function cfwDnsControlPoliciesOutput(args?: CfwDnsControlPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CfwDnsControlPoliciesResult>;
|
|
128
|
+
/**
|
|
129
|
+
* A collection of arguments for invoking CfwDnsControlPolicies.
|
|
130
|
+
*/
|
|
131
|
+
export interface CfwDnsControlPoliciesOutputArgs {
|
|
132
|
+
/**
|
|
133
|
+
* The description of the dns control policy. This field support fuzzy query.
|
|
134
|
+
*/
|
|
135
|
+
description?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* The destination list of the dns control policy. This field support fuzzy query.
|
|
138
|
+
*/
|
|
139
|
+
destinations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* The rule id list of the dns control policy. This field support fuzzy query.
|
|
142
|
+
*/
|
|
143
|
+
ids?: pulumi.Input<pulumi.Input<string>[]>;
|
|
144
|
+
/**
|
|
145
|
+
* The internet firewall id of the dns control policy.
|
|
146
|
+
*/
|
|
147
|
+
internetFirewallId?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* File name where to save data source results.
|
|
150
|
+
*/
|
|
151
|
+
outputFile?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The source list of the dns control policy. This field support fuzzy query.
|
|
154
|
+
*/
|
|
155
|
+
sources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
156
|
+
/**
|
|
157
|
+
* The enable status list of the dns control policy. This field support fuzzy query.
|
|
158
|
+
*/
|
|
159
|
+
statuses?: pulumi.Input<pulumi.Input<boolean>[]>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.cfwDnsControlPoliciesOutput = exports.cfwDnsControlPolicies = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to query detailed information of cfw dns control policies
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
18
|
+
* vpcName: "acc-test-vpc",
|
|
19
|
+
* cidrBlock: "172.16.0.0/16",
|
|
20
|
+
* });
|
|
21
|
+
* const fooCfwDnsControlPolicy = new volcengine.cloud_firewall.CfwDnsControlPolicy("fooCfwDnsControlPolicy", {
|
|
22
|
+
* description: "acc-test-dns-control-policy",
|
|
23
|
+
* destinationType: "domain",
|
|
24
|
+
* destination: "www.test.com",
|
|
25
|
+
* sources: [{
|
|
26
|
+
* vpcId: fooVpc.id,
|
|
27
|
+
* region: "cn-beijing",
|
|
28
|
+
* }],
|
|
29
|
+
* });
|
|
30
|
+
* const fooCfwDnsControlPolicies = volcengine.cloud_firewall.CfwDnsControlPoliciesOutput({
|
|
31
|
+
* ids: [fooCfwDnsControlPolicy.id],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
function cfwDnsControlPolicies(args, opts) {
|
|
36
|
+
args = args || {};
|
|
37
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
38
|
+
return pulumi.runtime.invoke("volcengine:cloud_firewall/cfwDnsControlPolicies:CfwDnsControlPolicies", {
|
|
39
|
+
"description": args.description,
|
|
40
|
+
"destinations": args.destinations,
|
|
41
|
+
"ids": args.ids,
|
|
42
|
+
"internetFirewallId": args.internetFirewallId,
|
|
43
|
+
"outputFile": args.outputFile,
|
|
44
|
+
"sources": args.sources,
|
|
45
|
+
"statuses": args.statuses,
|
|
46
|
+
}, opts);
|
|
47
|
+
}
|
|
48
|
+
exports.cfwDnsControlPolicies = cfwDnsControlPolicies;
|
|
49
|
+
/**
|
|
50
|
+
* Use this data source to query detailed information of cfw dns control policies
|
|
51
|
+
* ## Example Usage
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
56
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
57
|
+
*
|
|
58
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
59
|
+
* vpcName: "acc-test-vpc",
|
|
60
|
+
* cidrBlock: "172.16.0.0/16",
|
|
61
|
+
* });
|
|
62
|
+
* const fooCfwDnsControlPolicy = new volcengine.cloud_firewall.CfwDnsControlPolicy("fooCfwDnsControlPolicy", {
|
|
63
|
+
* description: "acc-test-dns-control-policy",
|
|
64
|
+
* destinationType: "domain",
|
|
65
|
+
* destination: "www.test.com",
|
|
66
|
+
* sources: [{
|
|
67
|
+
* vpcId: fooVpc.id,
|
|
68
|
+
* region: "cn-beijing",
|
|
69
|
+
* }],
|
|
70
|
+
* });
|
|
71
|
+
* const fooCfwDnsControlPolicies = volcengine.cloud_firewall.CfwDnsControlPoliciesOutput({
|
|
72
|
+
* ids: [fooCfwDnsControlPolicy.id],
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
function cfwDnsControlPoliciesOutput(args, opts) {
|
|
77
|
+
return pulumi.output(args).apply((a) => cfwDnsControlPolicies(a, opts));
|
|
78
|
+
}
|
|
79
|
+
exports.cfwDnsControlPoliciesOutput = cfwDnsControlPoliciesOutput;
|
|
80
|
+
//# sourceMappingURL=cfwDnsControlPolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cfwDnsControlPolicies.js","sourceRoot":"","sources":["../../cloud_firewall/cfwDnsControlPolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,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,uEAAuE,EAAE;QAClG,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,sDAaC;AAwED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAA2B;IAC3G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
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 cfw dns control policy
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
13
|
+
* vpcName: "acc-test-vpc",
|
|
14
|
+
* cidrBlock: "172.16.0.0/16",
|
|
15
|
+
* });
|
|
16
|
+
* const fooCfwDnsControlPolicy = new volcengine.cloud_firewall.CfwDnsControlPolicy("fooCfwDnsControlPolicy", {
|
|
17
|
+
* description: "acc-test-dns-control-policy",
|
|
18
|
+
* destinationType: "domain",
|
|
19
|
+
* destination: "www.test.com",
|
|
20
|
+
* sources: [{
|
|
21
|
+
* vpcId: fooVpc.id,
|
|
22
|
+
* region: "cn-beijing",
|
|
23
|
+
* }],
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* DnsControlPolicy can be imported using the id, e.g.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import volcengine:cloud_firewall/cfwDnsControlPolicy:CfwDnsControlPolicy default resource_id
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class CfwDnsControlPolicy extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing CfwDnsControlPolicy resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CfwDnsControlPolicyState, opts?: pulumi.CustomResourceOptions): CfwDnsControlPolicy;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of CfwDnsControlPolicy. 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: any): obj is CfwDnsControlPolicy;
|
|
51
|
+
/**
|
|
52
|
+
* The account id of the dns control policy.
|
|
53
|
+
*/
|
|
54
|
+
readonly accountId: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The description of the dns control policy.
|
|
57
|
+
*/
|
|
58
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The destination of the dns control policy.
|
|
61
|
+
*/
|
|
62
|
+
readonly destination: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The destination type of the dns control policy. Valid values: `group`, `domain`.
|
|
65
|
+
*/
|
|
66
|
+
readonly destinationType: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The hit count of the dns control policy.
|
|
69
|
+
*/
|
|
70
|
+
readonly hitCnt: pulumi.Output<number>;
|
|
71
|
+
/**
|
|
72
|
+
* The internet firewall id of the control policy.
|
|
73
|
+
*/
|
|
74
|
+
readonly internetFirewallId: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The last hit time of the dns control policy. Unix timestamp.
|
|
77
|
+
*/
|
|
78
|
+
readonly lastHitTime: pulumi.Output<number>;
|
|
79
|
+
/**
|
|
80
|
+
* The source vpc list of the dns control policy.
|
|
81
|
+
*/
|
|
82
|
+
readonly sources: pulumi.Output<outputs.cloud_firewall.CfwDnsControlPolicySource[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Whether to enable the dns control policy.
|
|
85
|
+
*/
|
|
86
|
+
readonly status: pulumi.Output<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* The use count of the dns control policy.
|
|
89
|
+
*/
|
|
90
|
+
readonly useCount: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a CfwDnsControlPolicy resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: CfwDnsControlPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering CfwDnsControlPolicy resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface CfwDnsControlPolicyState {
|
|
104
|
+
/**
|
|
105
|
+
* The account id of the dns control policy.
|
|
106
|
+
*/
|
|
107
|
+
accountId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The description of the dns control policy.
|
|
110
|
+
*/
|
|
111
|
+
description?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The destination of the dns control policy.
|
|
114
|
+
*/
|
|
115
|
+
destination?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The destination type of the dns control policy. Valid values: `group`, `domain`.
|
|
118
|
+
*/
|
|
119
|
+
destinationType?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The hit count of the dns control policy.
|
|
122
|
+
*/
|
|
123
|
+
hitCnt?: pulumi.Input<number>;
|
|
124
|
+
/**
|
|
125
|
+
* The internet firewall id of the control policy.
|
|
126
|
+
*/
|
|
127
|
+
internetFirewallId?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The last hit time of the dns control policy. Unix timestamp.
|
|
130
|
+
*/
|
|
131
|
+
lastHitTime?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* The source vpc list of the dns control policy.
|
|
134
|
+
*/
|
|
135
|
+
sources?: pulumi.Input<pulumi.Input<inputs.cloud_firewall.CfwDnsControlPolicySource>[]>;
|
|
136
|
+
/**
|
|
137
|
+
* Whether to enable the dns control policy.
|
|
138
|
+
*/
|
|
139
|
+
status?: pulumi.Input<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* The use count of the dns control policy.
|
|
142
|
+
*/
|
|
143
|
+
useCount?: pulumi.Input<number>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The set of arguments for constructing a CfwDnsControlPolicy resource.
|
|
147
|
+
*/
|
|
148
|
+
export interface CfwDnsControlPolicyArgs {
|
|
149
|
+
/**
|
|
150
|
+
* The description of the dns control policy.
|
|
151
|
+
*/
|
|
152
|
+
description?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The destination of the dns control policy.
|
|
155
|
+
*/
|
|
156
|
+
destination: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The destination type of the dns control policy. Valid values: `group`, `domain`.
|
|
159
|
+
*/
|
|
160
|
+
destinationType: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The internet firewall id of the control policy.
|
|
163
|
+
*/
|
|
164
|
+
internetFirewallId?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* The source vpc list of the dns control policy.
|
|
167
|
+
*/
|
|
168
|
+
sources: pulumi.Input<pulumi.Input<inputs.cloud_firewall.CfwDnsControlPolicySource>[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Whether to enable the dns control policy.
|
|
171
|
+
*/
|
|
172
|
+
status?: pulumi.Input<boolean>;
|
|
173
|
+
}
|