@volcengine/pulumi-volcenginecc 0.0.29 → 0.0.31

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.
Files changed (127) hide show
  1. package/cen/bandwidthPackage.d.ts +320 -0
  2. package/cen/bandwidthPackage.js +134 -0
  3. package/cen/bandwidthPackage.js.map +1 -0
  4. package/cen/getBandwidthPackage.d.ts +137 -0
  5. package/cen/getBandwidthPackage.js +28 -0
  6. package/cen/getBandwidthPackage.js.map +1 -0
  7. package/cen/getBandwidthPackages.d.ts +22 -0
  8. package/cen/getBandwidthPackages.js +24 -0
  9. package/cen/getBandwidthPackages.js.map +1 -0
  10. package/cen/index.d.ts +9 -0
  11. package/cen/index.js +12 -1
  12. package/cen/index.js.map +1 -1
  13. package/clb/clb.d.ts +8 -0
  14. package/clb/clb.js +2 -0
  15. package/clb/clb.js.map +1 -1
  16. package/clb/getClb.d.ts +4 -0
  17. package/clb/getClb.js.map +1 -1
  18. package/iam/accesskey.d.ts +2 -2
  19. package/iam/accesskey.js +2 -2
  20. package/iam/accesskey.js.map +1 -1
  21. package/iam/getOidcProvider.d.ts +72 -0
  22. package/iam/getOidcProvider.js +28 -0
  23. package/iam/getOidcProvider.js.map +1 -0
  24. package/iam/getOidcProviders.d.ts +22 -0
  25. package/iam/getOidcProviders.js +24 -0
  26. package/iam/getOidcProviders.js.map +1 -0
  27. package/iam/getSamlProvider.d.ts +38 -0
  28. package/iam/getSamlProvider.js +28 -0
  29. package/iam/getSamlProvider.js.map +1 -0
  30. package/iam/getSamlProviders.d.ts +22 -0
  31. package/iam/getSamlProviders.js +24 -0
  32. package/iam/getSamlProviders.js.map +1 -0
  33. package/iam/index.d.ts +18 -0
  34. package/iam/index.js +23 -1
  35. package/iam/index.js.map +1 -1
  36. package/iam/oidcProvider.d.ts +160 -0
  37. package/iam/oidcProvider.js +105 -0
  38. package/iam/oidcProvider.js.map +1 -0
  39. package/iam/samlProvider.d.ts +156 -0
  40. package/iam/samlProvider.js +100 -0
  41. package/iam/samlProvider.js.map +1 -0
  42. package/mongodb/getInstance.d.ts +1 -1
  43. package/mongodb/instance.d.ts +3 -3
  44. package/package.json +1 -1
  45. package/privatelink/getVpcEndpoint.d.ts +137 -0
  46. package/privatelink/getVpcEndpoint.js +28 -0
  47. package/privatelink/getVpcEndpoint.js.map +1 -0
  48. package/privatelink/getVpcEndpoints.d.ts +22 -0
  49. package/privatelink/getVpcEndpoints.js +24 -0
  50. package/privatelink/getVpcEndpoints.js.map +1 -0
  51. package/privatelink/index.d.ts +9 -0
  52. package/privatelink/index.js +12 -1
  53. package/privatelink/index.js.map +1 -1
  54. package/privatelink/vpcEndpoint.d.ts +277 -0
  55. package/privatelink/vpcEndpoint.js +106 -0
  56. package/privatelink/vpcEndpoint.js.map +1 -0
  57. package/rdspostgresql/getInstance.d.ts +153 -0
  58. package/rdspostgresql/getInstance.js +28 -0
  59. package/rdspostgresql/getInstance.js.map +1 -0
  60. package/rdspostgresql/getInstances.d.ts +22 -0
  61. package/rdspostgresql/getInstances.js +24 -0
  62. package/rdspostgresql/getInstances.js.map +1 -0
  63. package/rdspostgresql/index.d.ts +9 -0
  64. package/rdspostgresql/index.js +12 -1
  65. package/rdspostgresql/index.js.map +1 -1
  66. package/rdspostgresql/instance.d.ts +303 -0
  67. package/rdspostgresql/instance.js +132 -0
  68. package/rdspostgresql/instance.js.map +1 -0
  69. package/tls/consumerGroup.d.ts +128 -0
  70. package/tls/consumerGroup.js +98 -0
  71. package/tls/consumerGroup.js.map +1 -0
  72. package/tls/getConsumerGroup.d.ts +60 -0
  73. package/tls/getConsumerGroup.js +28 -0
  74. package/tls/getConsumerGroup.js.map +1 -0
  75. package/tls/getConsumerGroups.d.ts +22 -0
  76. package/tls/getConsumerGroups.js +24 -0
  77. package/tls/getConsumerGroups.js.map +1 -0
  78. package/tls/getImportTask.d.ts +89 -0
  79. package/tls/getImportTask.js +28 -0
  80. package/tls/getImportTask.js.map +1 -0
  81. package/tls/getImportTasks.d.ts +22 -0
  82. package/tls/getImportTasks.js +24 -0
  83. package/tls/getImportTasks.js.map +1 -0
  84. package/tls/importTask.d.ts +183 -0
  85. package/tls/importTask.js +97 -0
  86. package/tls/importTask.js.map +1 -0
  87. package/tls/index.d.ts +18 -0
  88. package/tls/index.js +23 -1
  89. package/tls/index.js.map +1 -1
  90. package/types/input.d.ts +908 -93
  91. package/types/output.d.ts +1652 -146
  92. package/vedbm/endpoint.d.ts +247 -0
  93. package/vedbm/endpoint.js +93 -0
  94. package/vedbm/endpoint.js.map +1 -0
  95. package/vedbm/getEndpoint.d.ts +105 -0
  96. package/vedbm/getEndpoint.js +28 -0
  97. package/vedbm/getEndpoint.js.map +1 -0
  98. package/vedbm/getEndpoints.d.ts +22 -0
  99. package/vedbm/getEndpoints.js +24 -0
  100. package/vedbm/getEndpoints.js.map +1 -0
  101. package/vedbm/index.d.ts +9 -0
  102. package/vedbm/index.js +12 -1
  103. package/vedbm/index.js.map +1 -1
  104. package/vefaas/getTimer.d.ts +80 -0
  105. package/vefaas/getTimer.js +28 -0
  106. package/vefaas/getTimer.js.map +1 -0
  107. package/vefaas/getTimers.d.ts +22 -0
  108. package/vefaas/getTimers.js +24 -0
  109. package/vefaas/getTimers.js.map +1 -0
  110. package/vefaas/index.d.ts +9 -0
  111. package/vefaas/index.js +12 -1
  112. package/vefaas/index.js.map +1 -1
  113. package/vefaas/timer.d.ts +183 -0
  114. package/vefaas/timer.js +96 -0
  115. package/vefaas/timer.js.map +1 -0
  116. package/vmp/alertingRule.d.ts +167 -0
  117. package/vmp/alertingRule.js +90 -0
  118. package/vmp/alertingRule.js.map +1 -0
  119. package/vmp/getAlertingRule.d.ts +93 -0
  120. package/vmp/getAlertingRule.js +28 -0
  121. package/vmp/getAlertingRule.js.map +1 -0
  122. package/vmp/getAlertingRules.d.ts +22 -0
  123. package/vmp/getAlertingRules.js +24 -0
  124. package/vmp/getAlertingRules.js.map +1 -0
  125. package/vmp/index.d.ts +9 -0
  126. package/vmp/index.js +12 -1
  127. package/vmp/index.js.map +1 -1
@@ -0,0 +1,303 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Cloud database instance management
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import volcenginecc:rdspostgresql/instance:Instance example "instance_id"
11
+ * ```
12
+ */
13
+ export declare class Instance extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing Instance resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param state Any extra arguments used during the lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance;
24
+ /**
25
+ * Returns true if the given object is an instance of Instance. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj: any): obj is Instance;
29
+ /**
30
+ * Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
31
+ */
32
+ readonly allowListIds: pulumi.Output<string[]>;
33
+ /**
34
+ * Payment method
35
+ */
36
+ readonly chargeDetail: pulumi.Output<outputs.rdspostgresql.InstanceChargeDetail>;
37
+ /**
38
+ * Instance creation time
39
+ */
40
+ readonly createTime: pulumi.Output<string>;
41
+ /**
42
+ * Synchronization mode. Value: Async (asynchronous synchronization)
43
+ */
44
+ readonly dataSyncMode: pulumi.Output<string>;
45
+ /**
46
+ * Compatible version
47
+ */
48
+ readonly dbEngineVersion: pulumi.Output<string>;
49
+ readonly endpoints: pulumi.Output<outputs.rdspostgresql.InstanceEndpoint[]>;
50
+ /**
51
+ * Instance ID
52
+ */
53
+ readonly instanceId: pulumi.Output<string>;
54
+ /**
55
+ * Instance name
56
+ */
57
+ readonly instanceName: pulumi.Output<string>;
58
+ /**
59
+ * Instance status
60
+ */
61
+ readonly instanceStatus: pulumi.Output<string>;
62
+ /**
63
+ * Instance type. Value: HA (high availability edition)
64
+ */
65
+ readonly instanceType: pulumi.Output<string>;
66
+ /**
67
+ * Instance maintenance window
68
+ */
69
+ readonly maintenanceWindow: pulumi.Output<outputs.rdspostgresql.InstanceMaintenanceWindow>;
70
+ /**
71
+ * Memory size, unit: GB
72
+ */
73
+ readonly memory: pulumi.Output<number>;
74
+ readonly nodeInfos: pulumi.Output<outputs.rdspostgresql.InstanceNodeInfo[]>;
75
+ /**
76
+ * Number of nodes
77
+ */
78
+ readonly nodeNumber: pulumi.Output<number>;
79
+ /**
80
+ * Primary node specification
81
+ */
82
+ readonly nodeSpec: pulumi.Output<string>;
83
+ /**
84
+ * Project. Default value: default project
85
+ */
86
+ readonly projectName: pulumi.Output<string>;
87
+ /**
88
+ * Data file space used by the primary node. Unit: Byte
89
+ */
90
+ readonly storageDataUse: pulumi.Output<number>;
91
+ /**
92
+ * Log file space used by the primary node. Unit: Byte
93
+ */
94
+ readonly storageLogUse: pulumi.Output<number>;
95
+ /**
96
+ * Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
97
+ */
98
+ readonly storageSpace: pulumi.Output<number>;
99
+ /**
100
+ * Temporary file space used by the primary node. Unit: Byte
101
+ */
102
+ readonly storageTempUse: pulumi.Output<number>;
103
+ /**
104
+ * Instance storage type, fixed value LocalSSD (local SSD disk)
105
+ */
106
+ readonly storageType: pulumi.Output<string>;
107
+ /**
108
+ * Used storage space of the instance. Unit: Byte
109
+ */
110
+ readonly storageUse: pulumi.Output<number>;
111
+ /**
112
+ * Used WAL file space of the instance's primary node. Unit: Byte
113
+ */
114
+ readonly storageWalUse: pulumi.Output<number>;
115
+ /**
116
+ * Subnet ID
117
+ */
118
+ readonly subnetId: pulumi.Output<string>;
119
+ readonly tags: pulumi.Output<outputs.rdspostgresql.InstanceTag[]>;
120
+ /**
121
+ * Instance update time
122
+ */
123
+ readonly updateTime: pulumi.Output<string>;
124
+ /**
125
+ * CPU size. For example: 1 means 1U
126
+ */
127
+ readonly vcpu: pulumi.Output<number>;
128
+ /**
129
+ * Use this parameter to specify the private network for the instance
130
+ */
131
+ readonly vpcId: pulumi.Output<string>;
132
+ /**
133
+ * Availability zone ID
134
+ */
135
+ readonly zoneId: pulumi.Output<string>;
136
+ /**
137
+ * Create a Instance resource with the given unique name, arguments, and options.
138
+ *
139
+ * @param name The _unique_ name of the resource.
140
+ * @param args The arguments to use to populate this resource's properties.
141
+ * @param opts A bag of options that control this resource's behavior.
142
+ */
143
+ constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions);
144
+ }
145
+ /**
146
+ * Input properties used for looking up and filtering Instance resources.
147
+ */
148
+ export interface InstanceState {
149
+ /**
150
+ * Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
151
+ */
152
+ allowListIds?: pulumi.Input<pulumi.Input<string>[]>;
153
+ /**
154
+ * Payment method
155
+ */
156
+ chargeDetail?: pulumi.Input<inputs.rdspostgresql.InstanceChargeDetail>;
157
+ /**
158
+ * Instance creation time
159
+ */
160
+ createTime?: pulumi.Input<string>;
161
+ /**
162
+ * Synchronization mode. Value: Async (asynchronous synchronization)
163
+ */
164
+ dataSyncMode?: pulumi.Input<string>;
165
+ /**
166
+ * Compatible version
167
+ */
168
+ dbEngineVersion?: pulumi.Input<string>;
169
+ endpoints?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceEndpoint>[]>;
170
+ /**
171
+ * Instance ID
172
+ */
173
+ instanceId?: pulumi.Input<string>;
174
+ /**
175
+ * Instance name
176
+ */
177
+ instanceName?: pulumi.Input<string>;
178
+ /**
179
+ * Instance status
180
+ */
181
+ instanceStatus?: pulumi.Input<string>;
182
+ /**
183
+ * Instance type. Value: HA (high availability edition)
184
+ */
185
+ instanceType?: pulumi.Input<string>;
186
+ /**
187
+ * Instance maintenance window
188
+ */
189
+ maintenanceWindow?: pulumi.Input<inputs.rdspostgresql.InstanceMaintenanceWindow>;
190
+ /**
191
+ * Memory size, unit: GB
192
+ */
193
+ memory?: pulumi.Input<number>;
194
+ nodeInfos?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceNodeInfo>[]>;
195
+ /**
196
+ * Number of nodes
197
+ */
198
+ nodeNumber?: pulumi.Input<number>;
199
+ /**
200
+ * Primary node specification
201
+ */
202
+ nodeSpec?: pulumi.Input<string>;
203
+ /**
204
+ * Project. Default value: default project
205
+ */
206
+ projectName?: pulumi.Input<string>;
207
+ /**
208
+ * Data file space used by the primary node. Unit: Byte
209
+ */
210
+ storageDataUse?: pulumi.Input<number>;
211
+ /**
212
+ * Log file space used by the primary node. Unit: Byte
213
+ */
214
+ storageLogUse?: pulumi.Input<number>;
215
+ /**
216
+ * Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
217
+ */
218
+ storageSpace?: pulumi.Input<number>;
219
+ /**
220
+ * Temporary file space used by the primary node. Unit: Byte
221
+ */
222
+ storageTempUse?: pulumi.Input<number>;
223
+ /**
224
+ * Instance storage type, fixed value LocalSSD (local SSD disk)
225
+ */
226
+ storageType?: pulumi.Input<string>;
227
+ /**
228
+ * Used storage space of the instance. Unit: Byte
229
+ */
230
+ storageUse?: pulumi.Input<number>;
231
+ /**
232
+ * Used WAL file space of the instance's primary node. Unit: Byte
233
+ */
234
+ storageWalUse?: pulumi.Input<number>;
235
+ /**
236
+ * Subnet ID
237
+ */
238
+ subnetId?: pulumi.Input<string>;
239
+ tags?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceTag>[]>;
240
+ /**
241
+ * Instance update time
242
+ */
243
+ updateTime?: pulumi.Input<string>;
244
+ /**
245
+ * CPU size. For example: 1 means 1U
246
+ */
247
+ vcpu?: pulumi.Input<number>;
248
+ /**
249
+ * Use this parameter to specify the private network for the instance
250
+ */
251
+ vpcId?: pulumi.Input<string>;
252
+ /**
253
+ * Availability zone ID
254
+ */
255
+ zoneId?: pulumi.Input<string>;
256
+ }
257
+ /**
258
+ * The set of arguments for constructing a Instance resource.
259
+ */
260
+ export interface InstanceArgs {
261
+ /**
262
+ * Allowlist ID. To bind multiple allowlists, separate allowlist IDs with commas (,). An instance can bind up to 100 allowlists.
263
+ */
264
+ allowListIds?: pulumi.Input<pulumi.Input<string>[]>;
265
+ /**
266
+ * Payment method
267
+ */
268
+ chargeDetail: pulumi.Input<inputs.rdspostgresql.InstanceChargeDetail>;
269
+ /**
270
+ * Compatible version
271
+ */
272
+ dbEngineVersion: pulumi.Input<string>;
273
+ /**
274
+ * Instance name
275
+ */
276
+ instanceName?: pulumi.Input<string>;
277
+ /**
278
+ * Instance maintenance window
279
+ */
280
+ maintenanceWindow?: pulumi.Input<inputs.rdspostgresql.InstanceMaintenanceWindow>;
281
+ nodeInfos: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceNodeInfo>[]>;
282
+ /**
283
+ * Project. Default value: default project
284
+ */
285
+ projectName?: pulumi.Input<string>;
286
+ /**
287
+ * Instance storage space. Value range: [20, 3000], unit: GB, increment: 10GB. Default value is 100
288
+ */
289
+ storageSpace?: pulumi.Input<number>;
290
+ /**
291
+ * Instance storage type, fixed value LocalSSD (local SSD disk)
292
+ */
293
+ storageType: pulumi.Input<string>;
294
+ /**
295
+ * Subnet ID
296
+ */
297
+ subnetId: pulumi.Input<string>;
298
+ tags?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.InstanceTag>[]>;
299
+ /**
300
+ * Use this parameter to specify the private network for the instance
301
+ */
302
+ vpcId: pulumi.Input<string>;
303
+ }
@@ -0,0 +1,132 @@
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.Instance = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Cloud database instance management
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import volcenginecc:rdspostgresql/instance:Instance example "instance_id"
15
+ * ```
16
+ */
17
+ class Instance extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing Instance resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param state Any extra arguments used during the lookup.
25
+ * @param opts Optional settings to control the behavior of the CustomResource.
26
+ */
27
+ static get(name, id, state, opts) {
28
+ return new Instance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of Instance. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ static isInstance(obj) {
35
+ if (obj === undefined || obj === null) {
36
+ return false;
37
+ }
38
+ return obj['__pulumiType'] === Instance.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["allowListIds"] = state ? state.allowListIds : undefined;
46
+ resourceInputs["chargeDetail"] = state ? state.chargeDetail : undefined;
47
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
48
+ resourceInputs["dataSyncMode"] = state ? state.dataSyncMode : undefined;
49
+ resourceInputs["dbEngineVersion"] = state ? state.dbEngineVersion : undefined;
50
+ resourceInputs["endpoints"] = state ? state.endpoints : undefined;
51
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
52
+ resourceInputs["instanceName"] = state ? state.instanceName : undefined;
53
+ resourceInputs["instanceStatus"] = state ? state.instanceStatus : undefined;
54
+ resourceInputs["instanceType"] = state ? state.instanceType : undefined;
55
+ resourceInputs["maintenanceWindow"] = state ? state.maintenanceWindow : undefined;
56
+ resourceInputs["memory"] = state ? state.memory : undefined;
57
+ resourceInputs["nodeInfos"] = state ? state.nodeInfos : undefined;
58
+ resourceInputs["nodeNumber"] = state ? state.nodeNumber : undefined;
59
+ resourceInputs["nodeSpec"] = state ? state.nodeSpec : undefined;
60
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
61
+ resourceInputs["storageDataUse"] = state ? state.storageDataUse : undefined;
62
+ resourceInputs["storageLogUse"] = state ? state.storageLogUse : undefined;
63
+ resourceInputs["storageSpace"] = state ? state.storageSpace : undefined;
64
+ resourceInputs["storageTempUse"] = state ? state.storageTempUse : undefined;
65
+ resourceInputs["storageType"] = state ? state.storageType : undefined;
66
+ resourceInputs["storageUse"] = state ? state.storageUse : undefined;
67
+ resourceInputs["storageWalUse"] = state ? state.storageWalUse : undefined;
68
+ resourceInputs["subnetId"] = state ? state.subnetId : undefined;
69
+ resourceInputs["tags"] = state ? state.tags : undefined;
70
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
71
+ resourceInputs["vcpu"] = state ? state.vcpu : undefined;
72
+ resourceInputs["vpcId"] = state ? state.vpcId : undefined;
73
+ resourceInputs["zoneId"] = state ? state.zoneId : undefined;
74
+ }
75
+ else {
76
+ const args = argsOrState;
77
+ if ((!args || args.chargeDetail === undefined) && !opts.urn) {
78
+ throw new Error("Missing required property 'chargeDetail'");
79
+ }
80
+ if ((!args || args.dbEngineVersion === undefined) && !opts.urn) {
81
+ throw new Error("Missing required property 'dbEngineVersion'");
82
+ }
83
+ if ((!args || args.nodeInfos === undefined) && !opts.urn) {
84
+ throw new Error("Missing required property 'nodeInfos'");
85
+ }
86
+ if ((!args || args.storageType === undefined) && !opts.urn) {
87
+ throw new Error("Missing required property 'storageType'");
88
+ }
89
+ if ((!args || args.subnetId === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'subnetId'");
91
+ }
92
+ if ((!args || args.vpcId === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'vpcId'");
94
+ }
95
+ resourceInputs["allowListIds"] = args ? args.allowListIds : undefined;
96
+ resourceInputs["chargeDetail"] = args ? args.chargeDetail : undefined;
97
+ resourceInputs["dbEngineVersion"] = args ? args.dbEngineVersion : undefined;
98
+ resourceInputs["instanceName"] = args ? args.instanceName : undefined;
99
+ resourceInputs["maintenanceWindow"] = args ? args.maintenanceWindow : undefined;
100
+ resourceInputs["nodeInfos"] = args ? args.nodeInfos : undefined;
101
+ resourceInputs["projectName"] = args ? args.projectName : undefined;
102
+ resourceInputs["storageSpace"] = args ? args.storageSpace : undefined;
103
+ resourceInputs["storageType"] = args ? args.storageType : undefined;
104
+ resourceInputs["subnetId"] = args ? args.subnetId : undefined;
105
+ resourceInputs["tags"] = args ? args.tags : undefined;
106
+ resourceInputs["vpcId"] = args ? args.vpcId : undefined;
107
+ resourceInputs["createTime"] = undefined /*out*/;
108
+ resourceInputs["dataSyncMode"] = undefined /*out*/;
109
+ resourceInputs["endpoints"] = undefined /*out*/;
110
+ resourceInputs["instanceId"] = undefined /*out*/;
111
+ resourceInputs["instanceStatus"] = undefined /*out*/;
112
+ resourceInputs["instanceType"] = undefined /*out*/;
113
+ resourceInputs["memory"] = undefined /*out*/;
114
+ resourceInputs["nodeNumber"] = undefined /*out*/;
115
+ resourceInputs["nodeSpec"] = undefined /*out*/;
116
+ resourceInputs["storageDataUse"] = undefined /*out*/;
117
+ resourceInputs["storageLogUse"] = undefined /*out*/;
118
+ resourceInputs["storageTempUse"] = undefined /*out*/;
119
+ resourceInputs["storageUse"] = undefined /*out*/;
120
+ resourceInputs["storageWalUse"] = undefined /*out*/;
121
+ resourceInputs["updateTime"] = undefined /*out*/;
122
+ resourceInputs["vcpu"] = undefined /*out*/;
123
+ resourceInputs["zoneId"] = undefined /*out*/;
124
+ }
125
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
126
+ super(Instance.__pulumiType, name, resourceInputs, opts);
127
+ }
128
+ }
129
+ exports.Instance = Instance;
130
+ /** @internal */
131
+ Instance.__pulumiType = 'volcenginecc:rdspostgresql/instance:Instance';
132
+ //# sourceMappingURL=instance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.js","sourceRoot":"","sources":["../../rdspostgresql/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAsHD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,c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CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtOL,4BAuOC;AAzNG,gBAAgB;AACO,qBAAY,GAAG,8CAA8C,CAAC"}
@@ -0,0 +1,128 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A virtual collection of multiple consumers. When consuming log data at the consumer group level, all consumers in the group subscribe to the same log topic and jointly consume data from that log topic. Each consumer consumes data from one or more Shards in the log topic, and there is no duplicate consumption of data among consumers.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
10
+ *
11
+ * const tLSConsumerGroupDemo = new volcenginecc.tls.ConsumerGroup("TLSConsumerGroupDemo", {
12
+ * projectId: "c6fef4c1-041f-43*****",
13
+ * topicIdLists: ["bead2d9c*****"],
14
+ * consumerGroupName: "test-gruopname",
15
+ * heartbeatTtl: 10,
16
+ * orderedConsume: true,
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * ```sh
23
+ * $ pulumi import volcenginecc:tls/consumerGroup:ConsumerGroup example "project_id|consumer_group_name"
24
+ * ```
25
+ */
26
+ export declare class ConsumerGroup extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing ConsumerGroup resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConsumerGroupState, opts?: pulumi.CustomResourceOptions): ConsumerGroup;
37
+ /**
38
+ * Returns true if the given object is an instance of ConsumerGroup. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is ConsumerGroup;
42
+ /**
43
+ * Consumer group name.
44
+ */
45
+ readonly consumerGroupName: pulumi.Output<string>;
46
+ /**
47
+ * Heartbeat timeout in seconds. Value range: 1~300.
48
+ */
49
+ readonly heartbeatTtl: pulumi.Output<number>;
50
+ /**
51
+ * Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
52
+ */
53
+ readonly orderedConsume: pulumi.Output<boolean>;
54
+ /**
55
+ * ID of the log project to which the consumer group belongs.
56
+ */
57
+ readonly projectId: pulumi.Output<string>;
58
+ /**
59
+ * Name of the log project to which the consumer group belongs.
60
+ */
61
+ readonly projectName: pulumi.Output<string>;
62
+ /**
63
+ * List of log topic IDs to be consumed by the consumer group.
64
+ */
65
+ readonly topicIdLists: pulumi.Output<string[]>;
66
+ /**
67
+ * Create a ConsumerGroup resource with the given unique name, arguments, and options.
68
+ *
69
+ * @param name The _unique_ name of the resource.
70
+ * @param args The arguments to use to populate this resource's properties.
71
+ * @param opts A bag of options that control this resource's behavior.
72
+ */
73
+ constructor(name: string, args: ConsumerGroupArgs, opts?: pulumi.CustomResourceOptions);
74
+ }
75
+ /**
76
+ * Input properties used for looking up and filtering ConsumerGroup resources.
77
+ */
78
+ export interface ConsumerGroupState {
79
+ /**
80
+ * Consumer group name.
81
+ */
82
+ consumerGroupName?: pulumi.Input<string>;
83
+ /**
84
+ * Heartbeat timeout in seconds. Value range: 1~300.
85
+ */
86
+ heartbeatTtl?: pulumi.Input<number>;
87
+ /**
88
+ * Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
89
+ */
90
+ orderedConsume?: pulumi.Input<boolean>;
91
+ /**
92
+ * ID of the log project to which the consumer group belongs.
93
+ */
94
+ projectId?: pulumi.Input<string>;
95
+ /**
96
+ * Name of the log project to which the consumer group belongs.
97
+ */
98
+ projectName?: pulumi.Input<string>;
99
+ /**
100
+ * List of log topic IDs to be consumed by the consumer group.
101
+ */
102
+ topicIdLists?: pulumi.Input<pulumi.Input<string>[]>;
103
+ }
104
+ /**
105
+ * The set of arguments for constructing a ConsumerGroup resource.
106
+ */
107
+ export interface ConsumerGroupArgs {
108
+ /**
109
+ * Consumer group name.
110
+ */
111
+ consumerGroupName: pulumi.Input<string>;
112
+ /**
113
+ * Heartbeat timeout in seconds. Value range: 1~300.
114
+ */
115
+ heartbeatTtl: pulumi.Input<number>;
116
+ /**
117
+ * Whether to consume in order. true: Consume in order within the Shard. After a Shard splits, finish consuming data from the original Shard first, then consume data from the new Shards created by the split in parallel. After a Shard merges, finish consuming data from the original Shard first, then consume data from the new Shard created by the merge. false: Do not consume in order. All Shards are consumed simultaneously, and any new Shards created by splitting or merging are also consumed immediately.
118
+ */
119
+ orderedConsume: pulumi.Input<boolean>;
120
+ /**
121
+ * ID of the log project to which the consumer group belongs.
122
+ */
123
+ projectId: pulumi.Input<string>;
124
+ /**
125
+ * List of log topic IDs to be consumed by the consumer group.
126
+ */
127
+ topicIdLists: pulumi.Input<pulumi.Input<string>[]>;
128
+ }
@@ -0,0 +1,98 @@
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.ConsumerGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * A virtual collection of multiple consumers. When consuming log data at the consumer group level, all consumers in the group subscribe to the same log topic and jointly consume data from that log topic. Each consumer consumes data from one or more Shards in the log topic, and there is no duplicate consumption of data among consumers.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
16
+ *
17
+ * const tLSConsumerGroupDemo = new volcenginecc.tls.ConsumerGroup("TLSConsumerGroupDemo", {
18
+ * projectId: "c6fef4c1-041f-43*****",
19
+ * topicIdLists: ["bead2d9c*****"],
20
+ * consumerGroupName: "test-gruopname",
21
+ * heartbeatTtl: 10,
22
+ * orderedConsume: true,
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * ```sh
29
+ * $ pulumi import volcenginecc:tls/consumerGroup:ConsumerGroup example "project_id|consumer_group_name"
30
+ * ```
31
+ */
32
+ class ConsumerGroup extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing ConsumerGroup resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new ConsumerGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of ConsumerGroup. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === ConsumerGroup.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["consumerGroupName"] = state ? state.consumerGroupName : undefined;
61
+ resourceInputs["heartbeatTtl"] = state ? state.heartbeatTtl : undefined;
62
+ resourceInputs["orderedConsume"] = state ? state.orderedConsume : undefined;
63
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
64
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
65
+ resourceInputs["topicIdLists"] = state ? state.topicIdLists : undefined;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ if ((!args || args.consumerGroupName === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'consumerGroupName'");
71
+ }
72
+ if ((!args || args.heartbeatTtl === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'heartbeatTtl'");
74
+ }
75
+ if ((!args || args.orderedConsume === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'orderedConsume'");
77
+ }
78
+ if ((!args || args.projectId === undefined) && !opts.urn) {
79
+ throw new Error("Missing required property 'projectId'");
80
+ }
81
+ if ((!args || args.topicIdLists === undefined) && !opts.urn) {
82
+ throw new Error("Missing required property 'topicIdLists'");
83
+ }
84
+ resourceInputs["consumerGroupName"] = args ? args.consumerGroupName : undefined;
85
+ resourceInputs["heartbeatTtl"] = args ? args.heartbeatTtl : undefined;
86
+ resourceInputs["orderedConsume"] = args ? args.orderedConsume : undefined;
87
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
88
+ resourceInputs["topicIdLists"] = args ? args.topicIdLists : undefined;
89
+ resourceInputs["projectName"] = undefined /*out*/;
90
+ }
91
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
92
+ super(ConsumerGroup.__pulumiType, name, resourceInputs, opts);
93
+ }
94
+ }
95
+ exports.ConsumerGroup = ConsumerGroup;
96
+ /** @internal */
97
+ ConsumerGroup.__pulumiType = 'volcenginecc:tls/consumerGroup:ConsumerGroup';
98
+ //# sourceMappingURL=consumerGroup.js.map