@volcengine/pulumi 0.0.17 → 0.0.20

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 (343) hide show
  1. package/autoscaling/scalingGroup.d.ts +1 -1
  2. package/bioos/cluster.d.ts +11 -11
  3. package/bioos/cluster.js +6 -6
  4. package/bioos/cluster.js.map +1 -1
  5. package/bioos/clusters.d.ts +3 -0
  6. package/bioos/clusters.js.map +1 -1
  7. package/bioos/workspace.d.ts +1 -1
  8. package/cen/grantInstance.d.ts +1 -1
  9. package/cen/grantInstance.js +1 -1
  10. package/clb/acl.d.ts +1 -1
  11. package/clb/certificate.d.ts +1 -1
  12. package/clb/clb.d.ts +68 -18
  13. package/clb/clb.js +38 -17
  14. package/clb/clb.js.map +1 -1
  15. package/clb/listener.d.ts +101 -0
  16. package/clb/listener.js +26 -0
  17. package/clb/listener.js.map +1 -1
  18. package/clb/serverGroup.d.ts +12 -0
  19. package/clb/serverGroup.js +2 -0
  20. package/clb/serverGroup.js.map +1 -1
  21. package/cr/registry.d.ts +1 -1
  22. package/cr/registry.js +1 -1
  23. package/direct_connect/bgpPeer.d.ts +175 -0
  24. package/direct_connect/bgpPeer.js +100 -0
  25. package/direct_connect/bgpPeer.js.map +1 -0
  26. package/direct_connect/bgpPeers.d.ts +129 -0
  27. package/direct_connect/bgpPeers.js +52 -0
  28. package/direct_connect/bgpPeers.js.map +1 -0
  29. package/direct_connect/connection.d.ts +217 -0
  30. package/direct_connect/connection.js +133 -0
  31. package/direct_connect/connection.js.map +1 -0
  32. package/direct_connect/connections.d.ts +154 -0
  33. package/direct_connect/connections.js +54 -0
  34. package/direct_connect/connections.js.map +1 -0
  35. package/direct_connect/gateway.d.ts +100 -0
  36. package/direct_connect/gateway.js +79 -0
  37. package/direct_connect/gateway.js.map +1 -0
  38. package/direct_connect/gatewayRoute.d.ts +143 -0
  39. package/direct_connect/gatewayRoute.js +97 -0
  40. package/direct_connect/gatewayRoute.js.map +1 -0
  41. package/direct_connect/gatewayRoutes.d.ts +141 -0
  42. package/direct_connect/gatewayRoutes.js +58 -0
  43. package/direct_connect/gatewayRoutes.js.map +1 -0
  44. package/direct_connect/gateways.d.ts +118 -0
  45. package/direct_connect/gateways.js +51 -0
  46. package/direct_connect/gateways.js.map +1 -0
  47. package/direct_connect/index.d.ts +30 -0
  48. package/direct_connect/index.js +57 -0
  49. package/direct_connect/index.js.map +1 -0
  50. package/direct_connect/virtualInterface.d.ts +263 -0
  51. package/direct_connect/virtualInterface.js +127 -0
  52. package/direct_connect/virtualInterface.js.map +1 -0
  53. package/direct_connect/virtualInterfaces.d.ts +178 -0
  54. package/direct_connect/virtualInterfaces.js +56 -0
  55. package/direct_connect/virtualInterfaces.js.map +1 -0
  56. package/ebs/volume.d.ts +1 -1
  57. package/ecs/availableResources.d.ts +114 -0
  58. package/ecs/availableResources.js +50 -0
  59. package/ecs/availableResources.js.map +1 -0
  60. package/ecs/command.d.ts +157 -0
  61. package/ecs/command.js +93 -0
  62. package/ecs/command.js.map +1 -0
  63. package/ecs/commands.d.ts +132 -0
  64. package/ecs/commands.js +52 -0
  65. package/ecs/commands.js.map +1 -0
  66. package/ecs/index.d.ts +21 -0
  67. package/ecs/index.js +26 -1
  68. package/ecs/index.js.map +1 -1
  69. package/ecs/instance.d.ts +25 -4
  70. package/ecs/instance.js +2 -0
  71. package/ecs/instance.js.map +1 -1
  72. package/ecs/invocation.d.ts +223 -0
  73. package/ecs/invocation.js +118 -0
  74. package/ecs/invocation.js.map +1 -0
  75. package/ecs/invocationResults.d.ts +116 -0
  76. package/ecs/invocationResults.js +51 -0
  77. package/ecs/invocationResults.js.map +1 -0
  78. package/ecs/invocations.d.ts +161 -0
  79. package/ecs/invocations.js +56 -0
  80. package/ecs/invocations.js.map +1 -0
  81. package/ecs/regions.d.ts +75 -0
  82. package/ecs/regions.js +47 -0
  83. package/ecs/regions.js.map +1 -0
  84. package/eip/address.d.ts +1 -1
  85. package/escloud/instance.d.ts +26 -13
  86. package/escloud/instance.js +26 -13
  87. package/escloud/instance.js.map +1 -1
  88. package/escloud/instances.d.ts +100 -6
  89. package/escloud/instances.js +100 -6
  90. package/escloud/instances.js.map +1 -1
  91. package/iam/index.d.ts +15 -0
  92. package/iam/index.js +22 -1
  93. package/iam/index.js.map +1 -1
  94. package/iam/userGroup.d.ts +95 -0
  95. package/iam/userGroup.js +79 -0
  96. package/iam/userGroup.js.map +1 -0
  97. package/iam/userGroupAttachment.d.ts +92 -0
  98. package/iam/userGroupAttachment.js +89 -0
  99. package/iam/userGroupAttachment.js.map +1 -0
  100. package/iam/userGroupPolicyAttachment.d.ts +105 -0
  101. package/iam/userGroupPolicyAttachment.js +95 -0
  102. package/iam/userGroupPolicyAttachment.js.map +1 -0
  103. package/iam/userGroupPolicyAttachments.d.ts +107 -0
  104. package/iam/userGroupPolicyAttachments.js +78 -0
  105. package/iam/userGroupPolicyAttachments.js.map +1 -0
  106. package/iam/userGroups.d.ts +87 -0
  107. package/iam/userGroups.js +59 -0
  108. package/iam/userGroups.js.map +1 -0
  109. package/index.d.ts +4 -1
  110. package/index.js +7 -1
  111. package/index.js.map +1 -1
  112. package/nas/fileSystem.d.ts +241 -0
  113. package/nas/fileSystem.js +123 -0
  114. package/nas/fileSystem.js.map +1 -0
  115. package/nas/fileSystems.d.ts +231 -0
  116. package/nas/fileSystems.js +90 -0
  117. package/nas/fileSystems.js.map +1 -0
  118. package/nas/index.d.ts +30 -0
  119. package/nas/index.js +55 -0
  120. package/nas/index.js.map +1 -0
  121. package/nas/mountPoint.d.ts +103 -0
  122. package/nas/mountPoint.js +80 -0
  123. package/nas/mountPoint.js.map +1 -0
  124. package/nas/mountPoints.d.ts +91 -0
  125. package/nas/mountPoints.js +29 -0
  126. package/nas/mountPoints.js.map +1 -0
  127. package/nas/permissionGroup.d.ts +116 -0
  128. package/nas/permissionGroup.js +92 -0
  129. package/nas/permissionGroup.js.map +1 -0
  130. package/nas/permissionGroups.d.ts +116 -0
  131. package/nas/permissionGroups.js +87 -0
  132. package/nas/permissionGroups.js.map +1 -0
  133. package/nas/regions.d.ts +62 -0
  134. package/nas/regions.js +42 -0
  135. package/nas/regions.js.map +1 -0
  136. package/nas/snapshot.d.ts +167 -0
  137. package/nas/snapshot.js +100 -0
  138. package/nas/snapshot.js.map +1 -0
  139. package/nas/snapshots.d.ts +131 -0
  140. package/nas/snapshots.js +59 -0
  141. package/nas/snapshots.js.map +1 -0
  142. package/nas/zones.d.ts +62 -0
  143. package/nas/zones.js +42 -0
  144. package/nas/zones.js.map +1 -0
  145. package/nat/gateway.d.ts +1 -1
  146. package/package.json +2 -2
  147. package/rds_mysql/account.d.ts +48 -4
  148. package/rds_mysql/account.js +48 -4
  149. package/rds_mysql/account.js.map +1 -1
  150. package/rds_mysql/accounts.d.ts +106 -6
  151. package/rds_mysql/accounts.js +106 -6
  152. package/rds_mysql/accounts.js.map +1 -1
  153. package/rds_mysql/allowlist.d.ts +7 -3
  154. package/rds_mysql/allowlist.js +7 -3
  155. package/rds_mysql/allowlist.js.map +1 -1
  156. package/rds_mysql/allowlistAssociate.d.ts +47 -3
  157. package/rds_mysql/allowlistAssociate.js +47 -3
  158. package/rds_mysql/allowlistAssociate.js.map +1 -1
  159. package/rds_mysql/allowlists.d.ts +102 -4
  160. package/rds_mysql/allowlists.js +102 -4
  161. package/rds_mysql/allowlists.js.map +1 -1
  162. package/rds_mysql/database.d.ts +38 -4
  163. package/rds_mysql/database.js +38 -4
  164. package/rds_mysql/database.js.map +1 -1
  165. package/rds_mysql/databases.d.ts +84 -6
  166. package/rds_mysql/databases.js +84 -6
  167. package/rds_mysql/databases.js.map +1 -1
  168. package/rds_mysql/instance.d.ts +18 -15
  169. package/rds_mysql/instance.js +17 -14
  170. package/rds_mysql/instance.js.map +1 -1
  171. package/rds_mysql/instanceReadonlyNode.d.ts +38 -3
  172. package/rds_mysql/instanceReadonlyNode.js +38 -3
  173. package/rds_mysql/instanceReadonlyNode.js.map +1 -1
  174. package/rds_mysql/instances.d.ts +74 -4
  175. package/rds_mysql/instances.js +74 -4
  176. package/rds_mysql/instances.js.map +1 -1
  177. package/redis/account.d.ts +32 -5
  178. package/redis/account.js +32 -5
  179. package/redis/account.js.map +1 -1
  180. package/redis/accounts.d.ts +74 -4
  181. package/redis/accounts.js +74 -4
  182. package/redis/accounts.js.map +1 -1
  183. package/redis/allowList.d.ts +2 -2
  184. package/redis/allowList.js +2 -2
  185. package/redis/allowListAssociate.d.ts +34 -6
  186. package/redis/allowListAssociate.js +34 -6
  187. package/redis/allowListAssociate.js.map +1 -1
  188. package/redis/allowLists.d.ts +78 -2
  189. package/redis/allowLists.js +78 -2
  190. package/redis/allowLists.js.map +1 -1
  191. package/redis/backup.d.ts +29 -1
  192. package/redis/backup.js +29 -1
  193. package/redis/backup.js.map +1 -1
  194. package/redis/backupRestore.d.ts +33 -3
  195. package/redis/backupRestore.js +33 -3
  196. package/redis/backupRestore.js.map +1 -1
  197. package/redis/backups.d.ts +68 -6
  198. package/redis/backups.js +68 -6
  199. package/redis/backups.js.map +1 -1
  200. package/redis/continuousBackup.d.ts +29 -1
  201. package/redis/continuousBackup.js +29 -1
  202. package/redis/continuousBackup.js.map +1 -1
  203. package/redis/endpoint.d.ts +37 -3
  204. package/redis/endpoint.js +37 -3
  205. package/redis/endpoint.js.map +1 -1
  206. package/redis/instance.d.ts +47 -35
  207. package/redis/instance.js +41 -32
  208. package/redis/instance.js.map +1 -1
  209. package/redis/instances.d.ts +60 -4
  210. package/redis/instances.js +60 -4
  211. package/redis/instances.js.map +1 -1
  212. package/tls/alarmNotifyGroup.d.ts +1 -1
  213. package/tls/index_.d.ts +33 -8
  214. package/tls/index_.js +23 -8
  215. package/tls/index_.js.map +1 -1
  216. package/tls/indexes.d.ts +2 -2
  217. package/tls/indexes.js +2 -2
  218. package/transit_router/bandwidthPackage.d.ts +211 -0
  219. package/transit_router/bandwidthPackage.js +102 -0
  220. package/transit_router/bandwidthPackage.js.map +1 -0
  221. package/transit_router/bandwidthPackages.d.ts +115 -0
  222. package/transit_router/bandwidthPackages.js +65 -0
  223. package/transit_router/bandwidthPackages.js.map +1 -0
  224. package/transit_router/directConnectGatewayAttachment.d.ts +116 -0
  225. package/transit_router/directConnectGatewayAttachment.js +87 -0
  226. package/transit_router/directConnectGatewayAttachment.js.map +1 -0
  227. package/transit_router/directConnectGatewayAttachments.d.ts +99 -0
  228. package/transit_router/directConnectGatewayAttachments.js +48 -0
  229. package/transit_router/directConnectGatewayAttachments.js.map +1 -0
  230. package/transit_router/grantRule.d.ts +95 -0
  231. package/transit_router/grantRule.js +82 -0
  232. package/transit_router/grantRule.js.map +1 -0
  233. package/transit_router/grantRules.d.ts +90 -0
  234. package/transit_router/grantRules.js +47 -0
  235. package/transit_router/grantRules.js.map +1 -0
  236. package/transit_router/index.d.ts +69 -0
  237. package/transit_router/index.js +110 -0
  238. package/transit_router/index.js.map +1 -0
  239. package/transit_router/peerAttachment.d.ts +179 -0
  240. package/transit_router/peerAttachment.js +105 -0
  241. package/transit_router/peerAttachment.js.map +1 -0
  242. package/transit_router/peerAttachments.d.ts +132 -0
  243. package/transit_router/peerAttachments.js +52 -0
  244. package/transit_router/peerAttachments.js.map +1 -0
  245. package/transit_router/routeEntries.d.ts +122 -0
  246. package/transit_router/routeEntries.js +52 -0
  247. package/transit_router/routeEntries.js.map +1 -0
  248. package/transit_router/routeEntry.d.ts +173 -0
  249. package/transit_router/routeEntry.js +103 -0
  250. package/transit_router/routeEntry.js.map +1 -0
  251. package/transit_router/routeTable.d.ts +135 -0
  252. package/transit_router/routeTable.js +89 -0
  253. package/transit_router/routeTable.js.map +1 -0
  254. package/transit_router/routeTableAssociation.d.ts +82 -0
  255. package/transit_router/routeTableAssociation.js +79 -0
  256. package/transit_router/routeTableAssociation.js.map +1 -0
  257. package/transit_router/routeTableAssociations.d.ts +92 -0
  258. package/transit_router/routeTableAssociations.js +49 -0
  259. package/transit_router/routeTableAssociations.js.map +1 -0
  260. package/transit_router/routeTablePropagation.d.ts +82 -0
  261. package/transit_router/routeTablePropagation.js +79 -0
  262. package/transit_router/routeTablePropagation.js.map +1 -0
  263. package/transit_router/routeTablePropagations.d.ts +92 -0
  264. package/transit_router/routeTablePropagations.js +49 -0
  265. package/transit_router/routeTablePropagations.js.map +1 -0
  266. package/transit_router/routeTables.d.ts +98 -0
  267. package/transit_router/routeTables.js +50 -0
  268. package/transit_router/routeTables.js.map +1 -0
  269. package/transit_router/sharedTransitRouterState.d.ts +82 -0
  270. package/transit_router/sharedTransitRouterState.js +79 -0
  271. package/transit_router/sharedTransitRouterState.js.map +1 -0
  272. package/transit_router/transitRouter.d.ts +148 -0
  273. package/transit_router/transitRouter.js +89 -0
  274. package/transit_router/transitRouter.js.map +1 -0
  275. package/transit_router/transitRouters.d.ts +89 -0
  276. package/transit_router/transitRouters.js +50 -0
  277. package/transit_router/transitRouters.js.map +1 -0
  278. package/transit_router/vpcAttachment.d.ts +164 -0
  279. package/transit_router/vpcAttachment.js +108 -0
  280. package/transit_router/vpcAttachment.js.map +1 -0
  281. package/transit_router/vpcAttachments.d.ts +101 -0
  282. package/transit_router/vpcAttachments.js +50 -0
  283. package/transit_router/vpcAttachments.js.map +1 -0
  284. package/transit_router/vpnAttachment.d.ts +153 -0
  285. package/transit_router/vpnAttachment.js +99 -0
  286. package/transit_router/vpnAttachment.js.map +1 -0
  287. package/transit_router/vpnAttachments.d.ts +101 -0
  288. package/transit_router/vpnAttachments.js +50 -0
  289. package/transit_router/vpnAttachments.js.map +1 -0
  290. package/types/input.d.ts +320 -2
  291. package/types/output.d.ts +5482 -3219
  292. package/vke/index.d.ts +3 -0
  293. package/vke/index.js +4 -1
  294. package/vke/index.js.map +1 -1
  295. package/vke/supportResourceTypes.d.ts +80 -0
  296. package/vke/supportResourceTypes.js +44 -0
  297. package/vke/supportResourceTypes.js.map +1 -0
  298. package/vpc/haVip.d.ts +206 -0
  299. package/vpc/haVip.js +120 -0
  300. package/vpc/haVip.js.map +1 -0
  301. package/vpc/haVipAssociate.d.ts +131 -0
  302. package/vpc/haVipAssociate.js +118 -0
  303. package/vpc/haVipAssociate.js.map +1 -0
  304. package/vpc/haVips.d.ts +192 -0
  305. package/vpc/haVips.js +90 -0
  306. package/vpc/haVips.js.map +1 -0
  307. package/vpc/index.d.ts +15 -0
  308. package/vpc/index.js +22 -1
  309. package/vpc/index.js.map +1 -1
  310. package/vpc/networkAcl.d.ts +1 -1
  311. package/vpc/networkInterface.d.ts +31 -1
  312. package/vpc/networkInterface.js +4 -0
  313. package/vpc/networkInterface.js.map +1 -1
  314. package/vpc/prefixList.d.ts +166 -0
  315. package/vpc/prefixList.js +106 -0
  316. package/vpc/prefixList.js.map +1 -0
  317. package/vpc/prefixLists.d.ts +151 -0
  318. package/vpc/prefixLists.js +92 -0
  319. package/vpc/prefixLists.js.map +1 -0
  320. package/vpc/routeTable.d.ts +1 -1
  321. package/vpc/securityGroup.d.ts +2 -2
  322. package/vpc/securityGroup.js +1 -1
  323. package/vpc/vpc.d.ts +1 -1
  324. package/vpn/connection.d.ts +1 -1
  325. package/vpn/customerGateway.d.ts +1 -1
  326. package/vpn/gateway.d.ts +37 -1
  327. package/vpn/gateway.js +6 -0
  328. package/vpn/gateway.js.map +1 -1
  329. package/vpn/index.d.ts +12 -0
  330. package/vpn/index.js +17 -1
  331. package/vpn/index.js.map +1 -1
  332. package/vpn/sslVpnClientCert.d.ts +201 -0
  333. package/vpn/sslVpnClientCert.js +131 -0
  334. package/vpn/sslVpnClientCert.js.map +1 -0
  335. package/vpn/sslVpnClientCerts.d.ts +192 -0
  336. package/vpn/sslVpnClientCerts.js +134 -0
  337. package/vpn/sslVpnClientCerts.js.map +1 -0
  338. package/vpn/sslVpnServer.d.ts +231 -0
  339. package/vpn/sslVpnServer.js +128 -0
  340. package/vpn/sslVpnServer.js.map +1 -0
  341. package/vpn/sslVpnServers.d.ts +167 -0
  342. package/vpn/sslVpnServers.js +117 -0
  343. package/vpn/sslVpnServers.js.map +1 -0
@@ -0,0 +1,79 @@
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.Gateway = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage direct connect gateway
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.direct_connect.Gateway("foo", {
17
+ * description: "tf-test",
18
+ * directConnectGatewayName: "tf-test-gateway",
19
+ * tags: [{
20
+ * key: "k1",
21
+ * value: "v1",
22
+ * }],
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * DirectConnectGateway can be imported using the id, e.g.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import volcengine:direct_connect/gateway:Gateway default resource_id
32
+ * ```
33
+ */
34
+ class Gateway extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Gateway resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new Gateway(name, state, Object.assign(Object.assign({}, opts), { id: id }));
46
+ }
47
+ /**
48
+ * Returns true if the given object is an instance of Gateway. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj) {
52
+ if (obj === undefined || obj === null) {
53
+ return false;
54
+ }
55
+ return obj['__pulumiType'] === Gateway.__pulumiType;
56
+ }
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["description"] = state ? state.description : undefined;
63
+ resourceInputs["directConnectGatewayName"] = state ? state.directConnectGatewayName : undefined;
64
+ resourceInputs["tags"] = state ? state.tags : undefined;
65
+ }
66
+ else {
67
+ const args = argsOrState;
68
+ resourceInputs["description"] = args ? args.description : undefined;
69
+ resourceInputs["directConnectGatewayName"] = args ? args.directConnectGatewayName : undefined;
70
+ resourceInputs["tags"] = args ? args.tags : undefined;
71
+ }
72
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
73
+ super(Gateway.__pulumiType, name, resourceInputs, opts);
74
+ }
75
+ }
76
+ exports.Gateway = Gateway;
77
+ /** @internal */
78
+ Gateway.__pulumiType = 'volcengine:direct_connect/gateway:Gateway';
79
+ //# sourceMappingURL=gateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../direct_connect/gateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,0BAA0B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAsC,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAjEL,0BAkEC;AApDG,gBAAgB;AACO,oBAAY,GAAG,2CAA2C,CAAC"}
@@ -0,0 +1,143 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage direct connect gateway route
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as volcengine from "@volcengine/pulumi";
9
+ *
10
+ * const foo = new volcengine.direct_connect.GatewayRoute("foo", {
11
+ * destinationCidrBlock: "192.168.40.0/24",
12
+ * directConnectGatewayId: "dcg-172frxs5utjb44d1w33op****",
13
+ * nextHopId: "dcv-1729lrbfx7fuo4d1w34pk****",
14
+ * });
15
+ * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * DirectConnectGatewayRoute can be imported using the id, e.g.
20
+ *
21
+ * ```sh
22
+ * $ pulumi import volcengine:direct_connect/gatewayRoute:GatewayRoute default resource_id
23
+ * ```
24
+ */
25
+ export declare class GatewayRoute extends pulumi.CustomResource {
26
+ /**
27
+ * Get an existing GatewayRoute resource's state with the given name, ID, and optional extra
28
+ * properties used to qualify the lookup.
29
+ *
30
+ * @param name The _unique_ name of the resulting resource.
31
+ * @param id The _unique_ provider ID of the resource to lookup.
32
+ * @param state Any extra arguments used during the lookup.
33
+ * @param opts Optional settings to control the behavior of the CustomResource.
34
+ */
35
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GatewayRouteState, opts?: pulumi.CustomResourceOptions): GatewayRoute;
36
+ /**
37
+ * Returns true if the given object is an instance of GatewayRoute. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj: any): obj is GatewayRoute;
41
+ /**
42
+ * The id of account.
43
+ */
44
+ readonly accountId: pulumi.Output<string>;
45
+ /**
46
+ * The create time.
47
+ */
48
+ readonly creationTime: pulumi.Output<string>;
49
+ /**
50
+ * The cidr block.
51
+ */
52
+ readonly destinationCidrBlock: pulumi.Output<string>;
53
+ /**
54
+ * The id of direct connect gateway.
55
+ */
56
+ readonly directConnectGatewayId: pulumi.Output<string>;
57
+ /**
58
+ * The id of direct connect gateway route.
59
+ */
60
+ readonly directConnectGatewayRouteId: pulumi.Output<string>;
61
+ /**
62
+ * The id of next hop.
63
+ */
64
+ readonly nextHopId: pulumi.Output<string>;
65
+ /**
66
+ * The type of next hop.
67
+ */
68
+ readonly nextHopType: pulumi.Output<string>;
69
+ /**
70
+ * The type of route.
71
+ */
72
+ readonly routeType: pulumi.Output<string>;
73
+ /**
74
+ * The status info.
75
+ */
76
+ readonly status: pulumi.Output<string>;
77
+ /**
78
+ * Create a GatewayRoute resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args: GatewayRouteArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering GatewayRoute resources.
88
+ */
89
+ export interface GatewayRouteState {
90
+ /**
91
+ * The id of account.
92
+ */
93
+ accountId?: pulumi.Input<string>;
94
+ /**
95
+ * The create time.
96
+ */
97
+ creationTime?: pulumi.Input<string>;
98
+ /**
99
+ * The cidr block.
100
+ */
101
+ destinationCidrBlock?: pulumi.Input<string>;
102
+ /**
103
+ * The id of direct connect gateway.
104
+ */
105
+ directConnectGatewayId?: pulumi.Input<string>;
106
+ /**
107
+ * The id of direct connect gateway route.
108
+ */
109
+ directConnectGatewayRouteId?: pulumi.Input<string>;
110
+ /**
111
+ * The id of next hop.
112
+ */
113
+ nextHopId?: pulumi.Input<string>;
114
+ /**
115
+ * The type of next hop.
116
+ */
117
+ nextHopType?: pulumi.Input<string>;
118
+ /**
119
+ * The type of route.
120
+ */
121
+ routeType?: pulumi.Input<string>;
122
+ /**
123
+ * The status info.
124
+ */
125
+ status?: pulumi.Input<string>;
126
+ }
127
+ /**
128
+ * The set of arguments for constructing a GatewayRoute resource.
129
+ */
130
+ export interface GatewayRouteArgs {
131
+ /**
132
+ * The cidr block.
133
+ */
134
+ destinationCidrBlock: pulumi.Input<string>;
135
+ /**
136
+ * The id of direct connect gateway.
137
+ */
138
+ directConnectGatewayId: pulumi.Input<string>;
139
+ /**
140
+ * The id of next hop.
141
+ */
142
+ nextHopId: pulumi.Input<string>;
143
+ }
@@ -0,0 +1,97 @@
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.GatewayRoute = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage direct connect gateway route
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.direct_connect.GatewayRoute("foo", {
17
+ * destinationCidrBlock: "192.168.40.0/24",
18
+ * directConnectGatewayId: "dcg-172frxs5utjb44d1w33op****",
19
+ * nextHopId: "dcv-1729lrbfx7fuo4d1w34pk****",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * DirectConnectGatewayRoute can be imported using the id, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import volcengine:direct_connect/gatewayRoute:GatewayRoute default resource_id
29
+ * ```
30
+ */
31
+ class GatewayRoute extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing GatewayRoute resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new GatewayRoute(name, state, Object.assign(Object.assign({}, opts), { id: id }));
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of GatewayRoute. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === GatewayRoute.__pulumiType;
53
+ }
54
+ constructor(name, argsOrState, opts) {
55
+ let resourceInputs = {};
56
+ opts = opts || {};
57
+ if (opts.id) {
58
+ const state = argsOrState;
59
+ resourceInputs["accountId"] = state ? state.accountId : undefined;
60
+ resourceInputs["creationTime"] = state ? state.creationTime : undefined;
61
+ resourceInputs["destinationCidrBlock"] = state ? state.destinationCidrBlock : undefined;
62
+ resourceInputs["directConnectGatewayId"] = state ? state.directConnectGatewayId : undefined;
63
+ resourceInputs["directConnectGatewayRouteId"] = state ? state.directConnectGatewayRouteId : undefined;
64
+ resourceInputs["nextHopId"] = state ? state.nextHopId : undefined;
65
+ resourceInputs["nextHopType"] = state ? state.nextHopType : undefined;
66
+ resourceInputs["routeType"] = state ? state.routeType : undefined;
67
+ resourceInputs["status"] = state ? state.status : undefined;
68
+ }
69
+ else {
70
+ const args = argsOrState;
71
+ if ((!args || args.destinationCidrBlock === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'destinationCidrBlock'");
73
+ }
74
+ if ((!args || args.directConnectGatewayId === undefined) && !opts.urn) {
75
+ throw new Error("Missing required property 'directConnectGatewayId'");
76
+ }
77
+ if ((!args || args.nextHopId === undefined) && !opts.urn) {
78
+ throw new Error("Missing required property 'nextHopId'");
79
+ }
80
+ resourceInputs["destinationCidrBlock"] = args ? args.destinationCidrBlock : undefined;
81
+ resourceInputs["directConnectGatewayId"] = args ? args.directConnectGatewayId : undefined;
82
+ resourceInputs["nextHopId"] = args ? args.nextHopId : undefined;
83
+ resourceInputs["accountId"] = undefined /*out*/;
84
+ resourceInputs["creationTime"] = undefined /*out*/;
85
+ resourceInputs["directConnectGatewayRouteId"] = undefined /*out*/;
86
+ resourceInputs["nextHopType"] = undefined /*out*/;
87
+ resourceInputs["routeType"] = undefined /*out*/;
88
+ resourceInputs["status"] = undefined /*out*/;
89
+ }
90
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
+ super(GatewayRoute.__pulumiType, name, resourceInputs, opts);
92
+ }
93
+ }
94
+ exports.GatewayRoute = GatewayRoute;
95
+ /** @internal */
96
+ GatewayRoute.__pulumiType = 'volcengine:direct_connect/gatewayRoute:GatewayRoute';
97
+ //# sourceMappingURL=gatewayRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gatewayRoute.js","sourceRoot":"","sources":["../../direct_connect/gatewayRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,6BAA6B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC,SAAS,CAAC;YACtG,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,sBAAsB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnE,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;aACzE;YACD,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,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA9GL,oCA+GC;AAjGG,gBAAgB;AACO,yBAAY,GAAG,qDAAqD,CAAC"}
@@ -0,0 +1,141 @@
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 direct connect gateway routes
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const foo = volcengine.direct_connect.GatewayRoutes({
12
+ * ids: [
13
+ * "dcr-638ry33wmzggn3gd6gv****",
14
+ * "dcr-20d6tkadi2k8w65sqhgbj****",
15
+ * ],
16
+ * });
17
+ * ```
18
+ */
19
+ export declare function gatewayRoutes(args?: GatewayRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GatewayRoutesResult>;
20
+ /**
21
+ * A collection of arguments for invoking GatewayRoutes.
22
+ */
23
+ export interface GatewayRoutesArgs {
24
+ /**
25
+ * The cidr block.
26
+ */
27
+ destinationCidrBlock?: string;
28
+ /**
29
+ * The id of direct connect gateway.
30
+ */
31
+ directConnectGatewayId?: string;
32
+ /**
33
+ * A list of IDs.
34
+ */
35
+ ids?: string[];
36
+ /**
37
+ * The id of next hop.
38
+ */
39
+ nextHopId?: string;
40
+ /**
41
+ * The type of next hop.
42
+ */
43
+ nextHopType?: string;
44
+ /**
45
+ * File name where to save data source results.
46
+ */
47
+ outputFile?: string;
48
+ /**
49
+ * The type of route. The value can be BGP or CEN or Static.
50
+ */
51
+ routeType?: string;
52
+ }
53
+ /**
54
+ * A collection of values returned by GatewayRoutes.
55
+ */
56
+ export interface GatewayRoutesResult {
57
+ /**
58
+ * The cidr block.
59
+ */
60
+ readonly destinationCidrBlock?: string;
61
+ /**
62
+ * The id of direct connect gateway.
63
+ */
64
+ readonly directConnectGatewayId?: string;
65
+ /**
66
+ * The collection of query.
67
+ */
68
+ readonly directConnectGatewayRoutes: outputs.direct_connect.GatewayRoutesDirectConnectGatewayRoute[];
69
+ /**
70
+ * The provider-assigned unique ID for this managed resource.
71
+ */
72
+ readonly id: string;
73
+ readonly ids?: string[];
74
+ /**
75
+ * The id of next hop.
76
+ */
77
+ readonly nextHopId?: string;
78
+ /**
79
+ * The type of next hop.
80
+ */
81
+ readonly nextHopType?: string;
82
+ readonly outputFile?: string;
83
+ /**
84
+ * The type of route.
85
+ */
86
+ readonly routeType?: string;
87
+ /**
88
+ * The total count of query.
89
+ */
90
+ readonly totalCount: number;
91
+ }
92
+ /**
93
+ * Use this data source to query detailed information of direct connect gateway routes
94
+ * ## Example Usage
95
+ *
96
+ * ```typescript
97
+ * import * as pulumi from "@pulumi/pulumi";
98
+ * import * as volcengine from "@pulumi/volcengine";
99
+ *
100
+ * const foo = volcengine.direct_connect.GatewayRoutes({
101
+ * ids: [
102
+ * "dcr-638ry33wmzggn3gd6gv****",
103
+ * "dcr-20d6tkadi2k8w65sqhgbj****",
104
+ * ],
105
+ * });
106
+ * ```
107
+ */
108
+ export declare function gatewayRoutesOutput(args?: GatewayRoutesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GatewayRoutesResult>;
109
+ /**
110
+ * A collection of arguments for invoking GatewayRoutes.
111
+ */
112
+ export interface GatewayRoutesOutputArgs {
113
+ /**
114
+ * The cidr block.
115
+ */
116
+ destinationCidrBlock?: pulumi.Input<string>;
117
+ /**
118
+ * The id of direct connect gateway.
119
+ */
120
+ directConnectGatewayId?: pulumi.Input<string>;
121
+ /**
122
+ * A list of IDs.
123
+ */
124
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
125
+ /**
126
+ * The id of next hop.
127
+ */
128
+ nextHopId?: pulumi.Input<string>;
129
+ /**
130
+ * The type of next hop.
131
+ */
132
+ nextHopType?: pulumi.Input<string>;
133
+ /**
134
+ * File name where to save data source results.
135
+ */
136
+ outputFile?: pulumi.Input<string>;
137
+ /**
138
+ * The type of route. The value can be BGP or CEN or Static.
139
+ */
140
+ routeType?: pulumi.Input<string>;
141
+ }
@@ -0,0 +1,58 @@
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.gatewayRoutesOutput = exports.gatewayRoutes = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of direct connect gateway routes
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const foo = volcengine.direct_connect.GatewayRoutes({
17
+ * ids: [
18
+ * "dcr-638ry33wmzggn3gd6gv****",
19
+ * "dcr-20d6tkadi2k8w65sqhgbj****",
20
+ * ],
21
+ * });
22
+ * ```
23
+ */
24
+ function gatewayRoutes(args, opts) {
25
+ args = args || {};
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invoke("volcengine:direct_connect/gatewayRoutes:GatewayRoutes", {
28
+ "destinationCidrBlock": args.destinationCidrBlock,
29
+ "directConnectGatewayId": args.directConnectGatewayId,
30
+ "ids": args.ids,
31
+ "nextHopId": args.nextHopId,
32
+ "nextHopType": args.nextHopType,
33
+ "outputFile": args.outputFile,
34
+ "routeType": args.routeType,
35
+ }, opts);
36
+ }
37
+ exports.gatewayRoutes = gatewayRoutes;
38
+ /**
39
+ * Use this data source to query detailed information of direct connect gateway routes
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as volcengine from "@pulumi/volcengine";
45
+ *
46
+ * const foo = volcengine.direct_connect.GatewayRoutes({
47
+ * ids: [
48
+ * "dcr-638ry33wmzggn3gd6gv****",
49
+ * "dcr-20d6tkadi2k8w65sqhgbj****",
50
+ * ],
51
+ * });
52
+ * ```
53
+ */
54
+ function gatewayRoutesOutput(args, opts) {
55
+ return pulumi.output(args).apply((a) => gatewayRoutes(a, opts));
56
+ }
57
+ exports.gatewayRoutesOutput = gatewayRoutesOutput;
58
+ //# sourceMappingURL=gatewayRoutes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gatewayRoutes.js","sourceRoot":"","sources":["../../direct_connect/gatewayRoutes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,uDAAuD,EAAE;QAClF,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;QACrD,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,sCAaC;AA2ED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,118 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Use this data source to query detailed information of direct connect gateways
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@pulumi/volcengine";
11
+ *
12
+ * const foo = volcengine.direct_connect.Gateways({
13
+ * directConnectGatewayName: "tf-test",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function gateways(args?: GatewaysArgs, opts?: pulumi.InvokeOptions): Promise<GatewaysResult>;
18
+ /**
19
+ * A collection of arguments for invoking Gateways.
20
+ */
21
+ export interface GatewaysArgs {
22
+ /**
23
+ * The CEN ID which direct connect gateway belongs.
24
+ */
25
+ cenId?: string;
26
+ /**
27
+ * The direst connect gateway name.
28
+ */
29
+ directConnectGatewayName?: string;
30
+ /**
31
+ * A list of IDs.
32
+ */
33
+ ids?: string[];
34
+ /**
35
+ * A Name Regex of Resource.
36
+ */
37
+ nameRegex?: string;
38
+ /**
39
+ * File name where to save data source results.
40
+ */
41
+ outputFile?: string;
42
+ /**
43
+ * The filter tag of direct connect.
44
+ */
45
+ tagFilters?: inputs.direct_connect.GatewaysTagFilter[];
46
+ }
47
+ /**
48
+ * A collection of values returned by Gateways.
49
+ */
50
+ export interface GatewaysResult {
51
+ /**
52
+ * The cen ID.
53
+ */
54
+ readonly cenId?: string;
55
+ /**
56
+ * The direct connect gateway name.
57
+ */
58
+ readonly directConnectGatewayName?: string;
59
+ /**
60
+ * The collection of query.
61
+ */
62
+ readonly directConnectGateways: outputs.direct_connect.GatewaysDirectConnectGateway[];
63
+ /**
64
+ * The provider-assigned unique ID for this managed resource.
65
+ */
66
+ readonly id: string;
67
+ readonly ids?: string[];
68
+ readonly nameRegex?: string;
69
+ readonly outputFile?: string;
70
+ readonly tagFilters?: outputs.direct_connect.GatewaysTagFilter[];
71
+ /**
72
+ * The total count of query.
73
+ */
74
+ readonly totalCount: number;
75
+ }
76
+ /**
77
+ * Use this data source to query detailed information of direct connect gateways
78
+ * ## Example Usage
79
+ *
80
+ * ```typescript
81
+ * import * as pulumi from "@pulumi/pulumi";
82
+ * import * as volcengine from "@pulumi/volcengine";
83
+ *
84
+ * const foo = volcengine.direct_connect.Gateways({
85
+ * directConnectGatewayName: "tf-test",
86
+ * });
87
+ * ```
88
+ */
89
+ export declare function gatewaysOutput(args?: GatewaysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GatewaysResult>;
90
+ /**
91
+ * A collection of arguments for invoking Gateways.
92
+ */
93
+ export interface GatewaysOutputArgs {
94
+ /**
95
+ * The CEN ID which direct connect gateway belongs.
96
+ */
97
+ cenId?: pulumi.Input<string>;
98
+ /**
99
+ * The direst connect gateway name.
100
+ */
101
+ directConnectGatewayName?: pulumi.Input<string>;
102
+ /**
103
+ * A list of IDs.
104
+ */
105
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
106
+ /**
107
+ * A Name Regex of Resource.
108
+ */
109
+ nameRegex?: pulumi.Input<string>;
110
+ /**
111
+ * File name where to save data source results.
112
+ */
113
+ outputFile?: pulumi.Input<string>;
114
+ /**
115
+ * The filter tag of direct connect.
116
+ */
117
+ tagFilters?: pulumi.Input<pulumi.Input<inputs.direct_connect.GatewaysTagFilterArgs>[]>;
118
+ }