@byteplus/pulumi-bytepluscc 0.0.34 → 0.0.36

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 (215) hide show
  1. package/cloudmonitor/eventRule.d.ts +226 -0
  2. package/cloudmonitor/eventRule.js +126 -0
  3. package/cloudmonitor/eventRule.js.map +1 -0
  4. package/cloudmonitor/getEventRule.d.ts +65 -0
  5. package/cloudmonitor/getEventRule.js +28 -0
  6. package/cloudmonitor/getEventRule.js.map +1 -0
  7. package/cloudmonitor/getEventRules.d.ts +22 -0
  8. package/cloudmonitor/getEventRules.js +24 -0
  9. package/cloudmonitor/getEventRules.js.map +1 -0
  10. package/cloudmonitor/index.d.ts +9 -0
  11. package/cloudmonitor/index.js +12 -1
  12. package/cloudmonitor/index.js.map +1 -1
  13. package/cr/getVpcEndpoint.d.ts +45 -0
  14. package/cr/getVpcEndpoint.js +28 -0
  15. package/cr/getVpcEndpoint.js.map +1 -0
  16. package/cr/getVpcEndpoints.d.ts +22 -0
  17. package/cr/getVpcEndpoints.js +24 -0
  18. package/cr/getVpcEndpoints.js.map +1 -0
  19. package/cr/index.d.ts +9 -0
  20. package/cr/index.js +12 -1
  21. package/cr/index.js.map +1 -1
  22. package/cr/vpcEndpoint.d.ts +62 -0
  23. package/cr/vpcEndpoint.js +66 -0
  24. package/cr/vpcEndpoint.js.map +1 -0
  25. package/dns/backup.d.ts +90 -0
  26. package/dns/backup.js +76 -0
  27. package/dns/backup.js.map +1 -0
  28. package/dns/backupSchedule.d.ts +89 -0
  29. package/dns/backupSchedule.js +80 -0
  30. package/dns/backupSchedule.js.map +1 -0
  31. package/dns/getBackup.d.ts +52 -0
  32. package/dns/getBackup.js +28 -0
  33. package/dns/getBackup.js.map +1 -0
  34. package/dns/getBackupSchedule.d.ts +48 -0
  35. package/dns/getBackupSchedule.js +28 -0
  36. package/dns/getBackupSchedule.js.map +1 -0
  37. package/dns/getBackupSchedules.d.ts +22 -0
  38. package/dns/getBackupSchedules.js +24 -0
  39. package/dns/getBackupSchedules.js.map +1 -0
  40. package/dns/getBackups.d.ts +22 -0
  41. package/dns/getBackups.js +24 -0
  42. package/dns/getBackups.js.map +1 -0
  43. package/dns/index.d.ts +18 -0
  44. package/dns/index.js +23 -1
  45. package/dns/index.js.map +1 -1
  46. package/gtm/getPolicies.d.ts +22 -0
  47. package/gtm/getPolicies.js +24 -0
  48. package/gtm/getPolicies.js.map +1 -0
  49. package/gtm/getPolicy.d.ts +65 -0
  50. package/gtm/getPolicy.js +28 -0
  51. package/gtm/getPolicy.js.map +1 -0
  52. package/gtm/index.d.ts +9 -0
  53. package/gtm/index.js +12 -1
  54. package/gtm/index.js.map +1 -1
  55. package/gtm/policy.d.ts +114 -0
  56. package/gtm/policy.js +76 -0
  57. package/gtm/policy.js.map +1 -0
  58. package/iam/allowedIpAddress.d.ts +107 -0
  59. package/iam/allowedIpAddress.js +95 -0
  60. package/iam/allowedIpAddress.js.map +1 -0
  61. package/iam/getAllowedIpAddress.d.ts +53 -0
  62. package/iam/getAllowedIpAddress.js +28 -0
  63. package/iam/getAllowedIpAddress.js.map +1 -0
  64. package/iam/getAllowedIpAddresses.d.ts +22 -0
  65. package/iam/getAllowedIpAddresses.js +24 -0
  66. package/iam/getAllowedIpAddresses.js.map +1 -0
  67. package/iam/index.d.ts +9 -0
  68. package/iam/index.js +12 -1
  69. package/iam/index.js.map +1 -1
  70. package/kafka/getGroup.d.ts +65 -0
  71. package/kafka/getGroup.js +28 -0
  72. package/kafka/getGroup.js.map +1 -0
  73. package/kafka/getGroups.d.ts +22 -0
  74. package/kafka/getGroups.js +24 -0
  75. package/kafka/getGroups.js.map +1 -0
  76. package/kafka/group.d.ts +127 -0
  77. package/kafka/group.js +93 -0
  78. package/kafka/group.js.map +1 -0
  79. package/kafka/index.d.ts +9 -0
  80. package/kafka/index.js +12 -1
  81. package/kafka/index.js.map +1 -1
  82. package/mongodb/endpoint.d.ts +175 -0
  83. package/mongodb/endpoint.js +97 -0
  84. package/mongodb/endpoint.js.map +1 -0
  85. package/mongodb/getEndpoint.d.ts +39 -0
  86. package/mongodb/getEndpoint.js +28 -0
  87. package/mongodb/getEndpoint.js.map +1 -0
  88. package/mongodb/getEndpoints.d.ts +22 -0
  89. package/mongodb/getEndpoints.js +24 -0
  90. package/mongodb/getEndpoints.js.map +1 -0
  91. package/mongodb/index.d.ts +9 -0
  92. package/mongodb/index.js +12 -1
  93. package/mongodb/index.js.map +1 -1
  94. package/package.json +1 -1
  95. package/privatelink/gatewayEndpoint.d.ts +182 -0
  96. package/privatelink/gatewayEndpoint.js +106 -0
  97. package/privatelink/gatewayEndpoint.js.map +1 -0
  98. package/privatelink/getGatewayEndpoint.d.ts +85 -0
  99. package/privatelink/getGatewayEndpoint.js +28 -0
  100. package/privatelink/getGatewayEndpoint.js.map +1 -0
  101. package/privatelink/getGatewayEndpoints.d.ts +22 -0
  102. package/privatelink/getGatewayEndpoints.js +24 -0
  103. package/privatelink/getGatewayEndpoints.js.map +1 -0
  104. package/privatelink/index.d.ts +9 -0
  105. package/privatelink/index.js +12 -1
  106. package/privatelink/index.js.map +1 -1
  107. package/rdsmssql/backup.d.ts +148 -0
  108. package/rdsmssql/backup.js +85 -0
  109. package/rdsmssql/backup.js.map +1 -0
  110. package/rdsmssql/getBackup.d.ts +89 -0
  111. package/rdsmssql/getBackup.js +28 -0
  112. package/rdsmssql/getBackup.js.map +1 -0
  113. package/rdsmssql/getBackups.d.ts +22 -0
  114. package/rdsmssql/getBackups.js +24 -0
  115. package/rdsmssql/getBackups.js.map +1 -0
  116. package/rdsmssql/index.d.ts +9 -0
  117. package/rdsmssql/index.js +12 -1
  118. package/rdsmssql/index.js.map +1 -1
  119. package/rdsmysql/allowList.d.ts +1 -0
  120. package/rdsmysql/allowList.js +1 -1
  121. package/rdsmysql/allowList.js.map +1 -1
  122. package/rdspostgresql/allowList.d.ts +24 -0
  123. package/rdspostgresql/allowList.js +4 -0
  124. package/rdspostgresql/allowList.js.map +1 -1
  125. package/rdspostgresql/getAllowList.d.ts +8 -0
  126. package/rdspostgresql/getAllowList.js.map +1 -1
  127. package/rdspostgresql/getInstanceSsl.d.ts +68 -0
  128. package/rdspostgresql/getInstanceSsl.js +28 -0
  129. package/rdspostgresql/getInstanceSsl.js.map +1 -0
  130. package/rdspostgresql/getInstanceSsls.d.ts +22 -0
  131. package/rdspostgresql/getInstanceSsls.js +24 -0
  132. package/rdspostgresql/getInstanceSsls.js.map +1 -0
  133. package/rdspostgresql/index.d.ts +9 -0
  134. package/rdspostgresql/index.js +12 -1
  135. package/rdspostgresql/index.js.map +1 -1
  136. package/rdspostgresql/instanceSsl.d.ts +134 -0
  137. package/rdspostgresql/instanceSsl.js +88 -0
  138. package/rdspostgresql/instanceSsl.js.map +1 -0
  139. package/redis/allowList.d.ts +2 -2
  140. package/redis/allowList.js +3 -0
  141. package/redis/allowList.js.map +1 -1
  142. package/storageebs/getSnapshotPolicies.d.ts +22 -0
  143. package/storageebs/getSnapshotPolicies.js +24 -0
  144. package/storageebs/getSnapshotPolicies.js.map +1 -0
  145. package/storageebs/getSnapshotPolicy.d.ts +93 -0
  146. package/storageebs/getSnapshotPolicy.js +28 -0
  147. package/storageebs/getSnapshotPolicy.js.map +1 -0
  148. package/storageebs/index.d.ts +9 -0
  149. package/storageebs/index.js +12 -1
  150. package/storageebs/index.js.map +1 -1
  151. package/storageebs/snapshotPolicy.d.ts +215 -0
  152. package/storageebs/snapshotPolicy.js +122 -0
  153. package/storageebs/snapshotPolicy.js.map +1 -0
  154. package/tls/etl.d.ts +222 -0
  155. package/tls/etl.js +113 -0
  156. package/tls/etl.js.map +1 -0
  157. package/tls/getEtl.d.ts +109 -0
  158. package/tls/getEtl.js +28 -0
  159. package/tls/getEtl.js.map +1 -0
  160. package/tls/getEtls.d.ts +22 -0
  161. package/tls/getEtls.js +24 -0
  162. package/tls/getEtls.js.map +1 -0
  163. package/tls/getHost.d.ts +52 -0
  164. package/tls/getHost.js +28 -0
  165. package/tls/getHost.js.map +1 -0
  166. package/tls/getHostGroup.d.ts +113 -0
  167. package/tls/getHostGroup.js +28 -0
  168. package/tls/getHostGroup.js.map +1 -0
  169. package/tls/getHostGroups.d.ts +22 -0
  170. package/tls/getHostGroups.js +24 -0
  171. package/tls/getHostGroups.js.map +1 -0
  172. package/tls/getHosts.d.ts +22 -0
  173. package/tls/getHosts.js +24 -0
  174. package/tls/getHosts.js.map +1 -0
  175. package/tls/host.d.ts +97 -0
  176. package/tls/host.js +82 -0
  177. package/tls/host.js.map +1 -0
  178. package/tls/hostGroup.d.ts +254 -0
  179. package/tls/hostGroup.js +121 -0
  180. package/tls/hostGroup.js.map +1 -0
  181. package/tls/index.d.ts +27 -0
  182. package/tls/index.js +35 -1
  183. package/tls/index.js.map +1 -1
  184. package/transitrouter/directConnectGatewayAttachment.d.ts +180 -0
  185. package/transitrouter/directConnectGatewayAttachment.js +106 -0
  186. package/transitrouter/directConnectGatewayAttachment.js.map +1 -0
  187. package/transitrouter/getDirectConnectGatewayAttachment.d.ts +89 -0
  188. package/transitrouter/getDirectConnectGatewayAttachment.js +28 -0
  189. package/transitrouter/getDirectConnectGatewayAttachment.js.map +1 -0
  190. package/transitrouter/getDirectConnectGatewayAttachments.d.ts +22 -0
  191. package/transitrouter/getDirectConnectGatewayAttachments.js +24 -0
  192. package/transitrouter/getDirectConnectGatewayAttachments.js.map +1 -0
  193. package/transitrouter/getTransitRouterBandwidthPackage.d.ts +141 -0
  194. package/transitrouter/getTransitRouterBandwidthPackage.js +28 -0
  195. package/transitrouter/getTransitRouterBandwidthPackage.js.map +1 -0
  196. package/transitrouter/getTransitRouterBandwidthPackages.d.ts +22 -0
  197. package/transitrouter/getTransitRouterBandwidthPackages.js +24 -0
  198. package/transitrouter/getTransitRouterBandwidthPackages.js.map +1 -0
  199. package/transitrouter/getTransitRouterRouteTableAssociation.d.ts +48 -0
  200. package/transitrouter/getTransitRouterRouteTableAssociation.js +28 -0
  201. package/transitrouter/getTransitRouterRouteTableAssociation.js.map +1 -0
  202. package/transitrouter/getTransitRouterRouteTableAssociations.d.ts +22 -0
  203. package/transitrouter/getTransitRouterRouteTableAssociations.js +24 -0
  204. package/transitrouter/getTransitRouterRouteTableAssociations.js.map +1 -0
  205. package/transitrouter/index.d.ts +27 -0
  206. package/transitrouter/index.js +34 -1
  207. package/transitrouter/index.js.map +1 -1
  208. package/transitrouter/transitRouterBandwidthPackage.d.ts +320 -0
  209. package/transitrouter/transitRouterBandwidthPackage.js +138 -0
  210. package/transitrouter/transitRouterBandwidthPackage.js.map +1 -0
  211. package/transitrouter/transitRouterRouteTableAssociation.d.ts +89 -0
  212. package/transitrouter/transitRouterRouteTableAssociation.js +80 -0
  213. package/transitrouter/transitRouterRouteTableAssociation.js.map +1 -0
  214. package/types/input.d.ts +651 -20
  215. package/types/output.d.ts +1910 -554
@@ -0,0 +1,215 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Automatic snapshot policy
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
12
+ *
13
+ * const storageEBSSnapshotPolicyDemo = new bytepluscc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", {
14
+ * autoSnapshotPolicyName: "ccapi-test",
15
+ * timePoints: [
16
+ * "0",
17
+ * "1",
18
+ * ],
19
+ * repeatWeekdays: [
20
+ * "2",
21
+ * "5",
22
+ * ],
23
+ * retentionDays: 7,
24
+ * projectName: "default",
25
+ * addVolumeIds: [
26
+ * "vol-3x594jtg0g4cxxxxx",
27
+ * "vol-3x594j4dvp4i4txxxxx",
28
+ * ],
29
+ * tags: [{
30
+ * key: "env",
31
+ * value: "test",
32
+ * }],
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * ```sh
39
+ * $ pulumi import bytepluscc:storageebs/snapshotPolicy:SnapshotPolicy example "auto_snapshot_policy_id"
40
+ * ```
41
+ */
42
+ export declare class SnapshotPolicy extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing SnapshotPolicy resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnapshotPolicyState, opts?: pulumi.CustomResourceOptions): SnapshotPolicy;
53
+ /**
54
+ * Returns true if the given object is an instance of SnapshotPolicy. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj: any): obj is SnapshotPolicy;
58
+ /**
59
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
60
+ */
61
+ readonly addVolumeIds: pulumi.Output<string[]>;
62
+ /**
63
+ * Automatic snapshot policy ID.
64
+ */
65
+ readonly autoSnapshotPolicyId: pulumi.Output<string>;
66
+ /**
67
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
68
+ */
69
+ readonly autoSnapshotPolicyName: pulumi.Output<string>;
70
+ /**
71
+ * Creation time of the automatic snapshot policy.
72
+ */
73
+ readonly createdAt: pulumi.Output<string>;
74
+ /**
75
+ * Project associated with the automatic snapshot policy.
76
+ */
77
+ readonly projectName: pulumi.Output<string>;
78
+ /**
79
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
80
+ */
81
+ readonly removeVolumeIds: pulumi.Output<string[]>;
82
+ /**
83
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
84
+ */
85
+ readonly repeatDays: pulumi.Output<number>;
86
+ /**
87
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
88
+ */
89
+ readonly repeatWeekdays: pulumi.Output<string[]>;
90
+ /**
91
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
92
+ */
93
+ readonly retentionDays: pulumi.Output<number>;
94
+ /**
95
+ * Reserved parameter.
96
+ */
97
+ readonly status: pulumi.Output<string>;
98
+ readonly tags: pulumi.Output<outputs.storageebs.SnapshotPolicyTag[]>;
99
+ /**
100
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
101
+ */
102
+ readonly timePoints: pulumi.Output<string[]>;
103
+ /**
104
+ * Update time of the automatic snapshot policy.
105
+ */
106
+ readonly updatedAt: pulumi.Output<string>;
107
+ /**
108
+ * Total number of cloud disks.
109
+ */
110
+ readonly volumeNums: pulumi.Output<number>;
111
+ /**
112
+ * Create a SnapshotPolicy resource with the given unique name, arguments, and options.
113
+ *
114
+ * @param name The _unique_ name of the resource.
115
+ * @param args The arguments to use to populate this resource's properties.
116
+ * @param opts A bag of options that control this resource's behavior.
117
+ */
118
+ constructor(name: string, args: SnapshotPolicyArgs, opts?: pulumi.CustomResourceOptions);
119
+ }
120
+ /**
121
+ * Input properties used for looking up and filtering SnapshotPolicy resources.
122
+ */
123
+ export interface SnapshotPolicyState {
124
+ /**
125
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
126
+ */
127
+ addVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
128
+ /**
129
+ * Automatic snapshot policy ID.
130
+ */
131
+ autoSnapshotPolicyId?: pulumi.Input<string>;
132
+ /**
133
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
134
+ */
135
+ autoSnapshotPolicyName?: pulumi.Input<string>;
136
+ /**
137
+ * Creation time of the automatic snapshot policy.
138
+ */
139
+ createdAt?: pulumi.Input<string>;
140
+ /**
141
+ * Project associated with the automatic snapshot policy.
142
+ */
143
+ projectName?: pulumi.Input<string>;
144
+ /**
145
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
146
+ */
147
+ removeVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
148
+ /**
149
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
150
+ */
151
+ repeatDays?: pulumi.Input<number>;
152
+ /**
153
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
154
+ */
155
+ repeatWeekdays?: pulumi.Input<pulumi.Input<string>[]>;
156
+ /**
157
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
158
+ */
159
+ retentionDays?: pulumi.Input<number>;
160
+ /**
161
+ * Reserved parameter.
162
+ */
163
+ status?: pulumi.Input<string>;
164
+ tags?: pulumi.Input<pulumi.Input<inputs.storageebs.SnapshotPolicyTag>[]>;
165
+ /**
166
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
167
+ */
168
+ timePoints?: pulumi.Input<pulumi.Input<string>[]>;
169
+ /**
170
+ * Update time of the automatic snapshot policy.
171
+ */
172
+ updatedAt?: pulumi.Input<string>;
173
+ /**
174
+ * Total number of cloud disks.
175
+ */
176
+ volumeNums?: pulumi.Input<number>;
177
+ }
178
+ /**
179
+ * The set of arguments for constructing a SnapshotPolicy resource.
180
+ */
181
+ export interface SnapshotPolicyArgs {
182
+ /**
183
+ * List of cloud disk IDs to associate with the automatic snapshot policy.
184
+ */
185
+ addVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
186
+ /**
187
+ * Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (*). It can include Chinese, letters, numbers, underscores (*), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
188
+ */
189
+ autoSnapshotPolicyName: pulumi.Input<string>;
190
+ /**
191
+ * Project associated with the automatic snapshot policy.
192
+ */
193
+ projectName?: pulumi.Input<string>;
194
+ /**
195
+ * List of cloud disk IDs to disassociate from the automatic snapshot policy.
196
+ */
197
+ removeVolumeIds?: pulumi.Input<pulumi.Input<string>[]>;
198
+ /**
199
+ * Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
200
+ */
201
+ repeatDays?: pulumi.Input<number>;
202
+ /**
203
+ * Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
204
+ */
205
+ repeatWeekdays?: pulumi.Input<pulumi.Input<string>[]>;
206
+ /**
207
+ * Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
208
+ */
209
+ retentionDays: pulumi.Input<number>;
210
+ tags?: pulumi.Input<pulumi.Input<inputs.storageebs.SnapshotPolicyTag>[]>;
211
+ /**
212
+ * Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
213
+ */
214
+ timePoints: pulumi.Input<pulumi.Input<string>[]>;
215
+ }
@@ -0,0 +1,122 @@
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.SnapshotPolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Automatic snapshot policy
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
16
+ *
17
+ * const storageEBSSnapshotPolicyDemo = new bytepluscc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", {
18
+ * autoSnapshotPolicyName: "ccapi-test",
19
+ * timePoints: [
20
+ * "0",
21
+ * "1",
22
+ * ],
23
+ * repeatWeekdays: [
24
+ * "2",
25
+ * "5",
26
+ * ],
27
+ * retentionDays: 7,
28
+ * projectName: "default",
29
+ * addVolumeIds: [
30
+ * "vol-3x594jtg0g4cxxxxx",
31
+ * "vol-3x594j4dvp4i4txxxxx",
32
+ * ],
33
+ * tags: [{
34
+ * key: "env",
35
+ * value: "test",
36
+ * }],
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * ```sh
43
+ * $ pulumi import bytepluscc:storageebs/snapshotPolicy:SnapshotPolicy example "auto_snapshot_policy_id"
44
+ * ```
45
+ */
46
+ class SnapshotPolicy extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing SnapshotPolicy resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name, id, state, opts) {
57
+ return new SnapshotPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
58
+ }
59
+ /**
60
+ * Returns true if the given object is an instance of SnapshotPolicy. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj) {
64
+ if (obj === undefined || obj === null) {
65
+ return false;
66
+ }
67
+ return obj['__pulumiType'] === SnapshotPolicy.__pulumiType;
68
+ }
69
+ constructor(name, argsOrState, opts) {
70
+ let resourceInputs = {};
71
+ opts = opts || {};
72
+ if (opts.id) {
73
+ const state = argsOrState;
74
+ resourceInputs["addVolumeIds"] = state ? state.addVolumeIds : undefined;
75
+ resourceInputs["autoSnapshotPolicyId"] = state ? state.autoSnapshotPolicyId : undefined;
76
+ resourceInputs["autoSnapshotPolicyName"] = state ? state.autoSnapshotPolicyName : undefined;
77
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
78
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
79
+ resourceInputs["removeVolumeIds"] = state ? state.removeVolumeIds : undefined;
80
+ resourceInputs["repeatDays"] = state ? state.repeatDays : undefined;
81
+ resourceInputs["repeatWeekdays"] = state ? state.repeatWeekdays : undefined;
82
+ resourceInputs["retentionDays"] = state ? state.retentionDays : undefined;
83
+ resourceInputs["status"] = state ? state.status : undefined;
84
+ resourceInputs["tags"] = state ? state.tags : undefined;
85
+ resourceInputs["timePoints"] = state ? state.timePoints : undefined;
86
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
87
+ resourceInputs["volumeNums"] = state ? state.volumeNums : undefined;
88
+ }
89
+ else {
90
+ const args = argsOrState;
91
+ if ((!args || args.autoSnapshotPolicyName === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'autoSnapshotPolicyName'");
93
+ }
94
+ if ((!args || args.retentionDays === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'retentionDays'");
96
+ }
97
+ if ((!args || args.timePoints === undefined) && !opts.urn) {
98
+ throw new Error("Missing required property 'timePoints'");
99
+ }
100
+ resourceInputs["addVolumeIds"] = args ? args.addVolumeIds : undefined;
101
+ resourceInputs["autoSnapshotPolicyName"] = args ? args.autoSnapshotPolicyName : undefined;
102
+ resourceInputs["projectName"] = args ? args.projectName : undefined;
103
+ resourceInputs["removeVolumeIds"] = args ? args.removeVolumeIds : undefined;
104
+ resourceInputs["repeatDays"] = args ? args.repeatDays : undefined;
105
+ resourceInputs["repeatWeekdays"] = args ? args.repeatWeekdays : undefined;
106
+ resourceInputs["retentionDays"] = args ? args.retentionDays : undefined;
107
+ resourceInputs["tags"] = args ? args.tags : undefined;
108
+ resourceInputs["timePoints"] = args ? args.timePoints : undefined;
109
+ resourceInputs["autoSnapshotPolicyId"] = undefined /*out*/;
110
+ resourceInputs["createdAt"] = undefined /*out*/;
111
+ resourceInputs["status"] = undefined /*out*/;
112
+ resourceInputs["updatedAt"] = undefined /*out*/;
113
+ resourceInputs["volumeNums"] = undefined /*out*/;
114
+ }
115
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
116
+ super(SnapshotPolicy.__pulumiType, name, resourceInputs, opts);
117
+ }
118
+ }
119
+ exports.SnapshotPolicy = SnapshotPolicy;
120
+ /** @internal */
121
+ SnapshotPolicy.__pulumiType = 'bytepluscc:storageebs/snapshotPolicy:SnapshotPolicy';
122
+ //# sourceMappingURL=snapshotPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshotPolicy.js","sourceRoot":"","sources":["../../storageebs/snapshotPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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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AC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAzIL,wCA0IC;AA5HG,gBAAgB;AACO,2BAAY,GAAG,qDAAqD,CAAC"}
package/tls/etl.d.ts ADDED
@@ -0,0 +1,222 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * The data processing task cleanses, transforms, and distributes log data in the log service, processing data from the source log topic and outputting it to the target log topic
6
+ *
7
+ * ## Import
8
+ *
9
+ * ```sh
10
+ * $ pulumi import bytepluscc:tls/etl:Etl example "task_id"
11
+ * ```
12
+ */
13
+ export declare class Etl extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing Etl 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?: EtlState, opts?: pulumi.CustomResourceOptions): Etl;
24
+ /**
25
+ * Returns true if the given object is an instance of Etl. 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 Etl;
29
+ /**
30
+ * Creation time of the data processing task
31
+ */
32
+ readonly createTime: pulumi.Output<string>;
33
+ /**
34
+ * Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
35
+ */
36
+ readonly description: pulumi.Output<string>;
37
+ /**
38
+ * Syntax type of the processing rule. Fixed as NORMAL
39
+ */
40
+ readonly dslType: pulumi.Output<string>;
41
+ /**
42
+ * Whether the data processing task is enabled. true: Enabled. false: Disabled
43
+ */
44
+ readonly enable: pulumi.Output<boolean>;
45
+ /**
46
+ * Task scheduling status. WAITING: Preparing. RUNNING: Running. STOPPING: Stopping. STOPPED: Stopped. RESTARTING: Restarting
47
+ */
48
+ readonly etlStatus: pulumi.Output<string>;
49
+ /**
50
+ * The processing start time of the data processing task, in seconds as a Unix timestamp
51
+ */
52
+ readonly fromTime: pulumi.Output<number>;
53
+ /**
54
+ * The most recent activation time of the data processing task
55
+ */
56
+ readonly lastEnableTime: pulumi.Output<string>;
57
+ /**
58
+ * Modification time of the data processing task
59
+ */
60
+ readonly modifyTime: pulumi.Output<string>;
61
+ /**
62
+ * Data processing task name
63
+ */
64
+ readonly name: pulumi.Output<string>;
65
+ /**
66
+ * Log project ID to which the data processing task belongs
67
+ */
68
+ readonly projectId: pulumi.Output<string>;
69
+ /**
70
+ * Log project name to which the data processing task belongs
71
+ */
72
+ readonly projectName: pulumi.Output<string>;
73
+ /**
74
+ * Processing rule script used by the data processing task
75
+ */
76
+ readonly script: pulumi.Output<string>;
77
+ /**
78
+ * Source log topic ID of the data processing task
79
+ */
80
+ readonly sourceTopicId: pulumi.Output<string>;
81
+ /**
82
+ * Source log topic name of the data processing task
83
+ */
84
+ readonly sourceTopicName: pulumi.Output<string>;
85
+ readonly targetResources: pulumi.Output<outputs.tls.EtlTargetResource[]>;
86
+ /**
87
+ * Data processing task ID
88
+ */
89
+ readonly taskId: pulumi.Output<string>;
90
+ /**
91
+ * Type of the data processing task. Fixed as Resident
92
+ */
93
+ readonly taskType: pulumi.Output<string>;
94
+ /**
95
+ * The processing end time of the data processing task, in seconds as a Unix timestamp
96
+ */
97
+ readonly toTime: pulumi.Output<number>;
98
+ /**
99
+ * Create a Etl resource with the given unique name, arguments, and options.
100
+ *
101
+ * @param name The _unique_ name of the resource.
102
+ * @param args The arguments to use to populate this resource's properties.
103
+ * @param opts A bag of options that control this resource's behavior.
104
+ */
105
+ constructor(name: string, args: EtlArgs, opts?: pulumi.CustomResourceOptions);
106
+ }
107
+ /**
108
+ * Input properties used for looking up and filtering Etl resources.
109
+ */
110
+ export interface EtlState {
111
+ /**
112
+ * Creation time of the data processing task
113
+ */
114
+ createTime?: pulumi.Input<string>;
115
+ /**
116
+ * Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
117
+ */
118
+ description?: pulumi.Input<string>;
119
+ /**
120
+ * Syntax type of the processing rule. Fixed as NORMAL
121
+ */
122
+ dslType?: pulumi.Input<string>;
123
+ /**
124
+ * Whether the data processing task is enabled. true: Enabled. false: Disabled
125
+ */
126
+ enable?: pulumi.Input<boolean>;
127
+ /**
128
+ * Task scheduling status. WAITING: Preparing. RUNNING: Running. STOPPING: Stopping. STOPPED: Stopped. RESTARTING: Restarting
129
+ */
130
+ etlStatus?: pulumi.Input<string>;
131
+ /**
132
+ * The processing start time of the data processing task, in seconds as a Unix timestamp
133
+ */
134
+ fromTime?: pulumi.Input<number>;
135
+ /**
136
+ * The most recent activation time of the data processing task
137
+ */
138
+ lastEnableTime?: pulumi.Input<string>;
139
+ /**
140
+ * Modification time of the data processing task
141
+ */
142
+ modifyTime?: pulumi.Input<string>;
143
+ /**
144
+ * Data processing task name
145
+ */
146
+ name?: pulumi.Input<string>;
147
+ /**
148
+ * Log project ID to which the data processing task belongs
149
+ */
150
+ projectId?: pulumi.Input<string>;
151
+ /**
152
+ * Log project name to which the data processing task belongs
153
+ */
154
+ projectName?: pulumi.Input<string>;
155
+ /**
156
+ * Processing rule script used by the data processing task
157
+ */
158
+ script?: pulumi.Input<string>;
159
+ /**
160
+ * Source log topic ID of the data processing task
161
+ */
162
+ sourceTopicId?: pulumi.Input<string>;
163
+ /**
164
+ * Source log topic name of the data processing task
165
+ */
166
+ sourceTopicName?: pulumi.Input<string>;
167
+ targetResources?: pulumi.Input<pulumi.Input<inputs.tls.EtlTargetResource>[]>;
168
+ /**
169
+ * Data processing task ID
170
+ */
171
+ taskId?: pulumi.Input<string>;
172
+ /**
173
+ * Type of the data processing task. Fixed as Resident
174
+ */
175
+ taskType?: pulumi.Input<string>;
176
+ /**
177
+ * The processing end time of the data processing task, in seconds as a Unix timestamp
178
+ */
179
+ toTime?: pulumi.Input<number>;
180
+ }
181
+ /**
182
+ * The set of arguments for constructing a Etl resource.
183
+ */
184
+ export interface EtlArgs {
185
+ /**
186
+ * Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
187
+ */
188
+ description?: pulumi.Input<string>;
189
+ /**
190
+ * Syntax type of the processing rule. Fixed as NORMAL
191
+ */
192
+ dslType: pulumi.Input<string>;
193
+ /**
194
+ * Whether the data processing task is enabled. true: Enabled. false: Disabled
195
+ */
196
+ enable: pulumi.Input<boolean>;
197
+ /**
198
+ * The processing start time of the data processing task, in seconds as a Unix timestamp
199
+ */
200
+ fromTime?: pulumi.Input<number>;
201
+ /**
202
+ * Data processing task name
203
+ */
204
+ name: pulumi.Input<string>;
205
+ /**
206
+ * Processing rule script used by the data processing task
207
+ */
208
+ script: pulumi.Input<string>;
209
+ /**
210
+ * Source log topic ID of the data processing task
211
+ */
212
+ sourceTopicId: pulumi.Input<string>;
213
+ targetResources: pulumi.Input<pulumi.Input<inputs.tls.EtlTargetResource>[]>;
214
+ /**
215
+ * Type of the data processing task. Fixed as Resident
216
+ */
217
+ taskType: pulumi.Input<string>;
218
+ /**
219
+ * The processing end time of the data processing task, in seconds as a Unix timestamp
220
+ */
221
+ toTime?: pulumi.Input<number>;
222
+ }
package/tls/etl.js ADDED
@@ -0,0 +1,113 @@
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.Etl = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * The data processing task cleanses, transforms, and distributes log data in the log service, processing data from the source log topic and outputting it to the target log topic
10
+ *
11
+ * ## Import
12
+ *
13
+ * ```sh
14
+ * $ pulumi import bytepluscc:tls/etl:Etl example "task_id"
15
+ * ```
16
+ */
17
+ class Etl extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing Etl 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 Etl(name, state, Object.assign(Object.assign({}, opts), { id: id }));
29
+ }
30
+ /**
31
+ * Returns true if the given object is an instance of Etl. 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'] === Etl.__pulumiType;
39
+ }
40
+ constructor(name, argsOrState, opts) {
41
+ let resourceInputs = {};
42
+ opts = opts || {};
43
+ if (opts.id) {
44
+ const state = argsOrState;
45
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
46
+ resourceInputs["description"] = state ? state.description : undefined;
47
+ resourceInputs["dslType"] = state ? state.dslType : undefined;
48
+ resourceInputs["enable"] = state ? state.enable : undefined;
49
+ resourceInputs["etlStatus"] = state ? state.etlStatus : undefined;
50
+ resourceInputs["fromTime"] = state ? state.fromTime : undefined;
51
+ resourceInputs["lastEnableTime"] = state ? state.lastEnableTime : undefined;
52
+ resourceInputs["modifyTime"] = state ? state.modifyTime : undefined;
53
+ resourceInputs["name"] = state ? state.name : undefined;
54
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
55
+ resourceInputs["projectName"] = state ? state.projectName : undefined;
56
+ resourceInputs["script"] = state ? state.script : undefined;
57
+ resourceInputs["sourceTopicId"] = state ? state.sourceTopicId : undefined;
58
+ resourceInputs["sourceTopicName"] = state ? state.sourceTopicName : undefined;
59
+ resourceInputs["targetResources"] = state ? state.targetResources : undefined;
60
+ resourceInputs["taskId"] = state ? state.taskId : undefined;
61
+ resourceInputs["taskType"] = state ? state.taskType : undefined;
62
+ resourceInputs["toTime"] = state ? state.toTime : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ if ((!args || args.dslType === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'dslType'");
68
+ }
69
+ if ((!args || args.enable === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'enable'");
71
+ }
72
+ if ((!args || args.name === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'name'");
74
+ }
75
+ if ((!args || args.script === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'script'");
77
+ }
78
+ if ((!args || args.sourceTopicId === undefined) && !opts.urn) {
79
+ throw new Error("Missing required property 'sourceTopicId'");
80
+ }
81
+ if ((!args || args.targetResources === undefined) && !opts.urn) {
82
+ throw new Error("Missing required property 'targetResources'");
83
+ }
84
+ if ((!args || args.taskType === undefined) && !opts.urn) {
85
+ throw new Error("Missing required property 'taskType'");
86
+ }
87
+ resourceInputs["description"] = args ? args.description : undefined;
88
+ resourceInputs["dslType"] = args ? args.dslType : undefined;
89
+ resourceInputs["enable"] = args ? args.enable : undefined;
90
+ resourceInputs["fromTime"] = args ? args.fromTime : undefined;
91
+ resourceInputs["name"] = args ? args.name : undefined;
92
+ resourceInputs["script"] = args ? args.script : undefined;
93
+ resourceInputs["sourceTopicId"] = args ? args.sourceTopicId : undefined;
94
+ resourceInputs["targetResources"] = args ? args.targetResources : undefined;
95
+ resourceInputs["taskType"] = args ? args.taskType : undefined;
96
+ resourceInputs["toTime"] = args ? args.toTime : undefined;
97
+ resourceInputs["createTime"] = undefined /*out*/;
98
+ resourceInputs["etlStatus"] = undefined /*out*/;
99
+ resourceInputs["lastEnableTime"] = undefined /*out*/;
100
+ resourceInputs["modifyTime"] = undefined /*out*/;
101
+ resourceInputs["projectId"] = undefined /*out*/;
102
+ resourceInputs["projectName"] = undefined /*out*/;
103
+ resourceInputs["sourceTopicName"] = undefined /*out*/;
104
+ resourceInputs["taskId"] = undefined /*out*/;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(Etl.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.Etl = Etl;
111
+ /** @internal */
112
+ Etl.__pulumiType = 'bytepluscc:tls/etl:Etl';
113
+ //# sourceMappingURL=etl.js.map