@pulumi/aiven 4.4.0 → 4.5.1

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 (313) hide show
  1. package/account.d.ts +13 -31
  2. package/account.js +4 -6
  3. package/account.js.map +1 -1
  4. package/accountAuthentication.d.ts +31 -53
  5. package/accountAuthentication.js +5 -7
  6. package/accountAuthentication.js.map +1 -1
  7. package/accountTeam.d.ts +12 -22
  8. package/accountTeam.js +2 -4
  9. package/accountTeam.js.map +1 -1
  10. package/accountTeamMember.d.ts +16 -39
  11. package/accountTeamMember.js +4 -6
  12. package/accountTeamMember.js.map +1 -1
  13. package/accountTeamProject.d.ts +12 -17
  14. package/accountTeamProject.js +0 -2
  15. package/accountTeamProject.js.map +1 -1
  16. package/awsPrivatelink.d.ts +13 -27
  17. package/awsPrivatelink.js +0 -2
  18. package/awsPrivatelink.js.map +1 -1
  19. package/azurePrivatelink.d.ts +120 -0
  20. package/azurePrivatelink.js +86 -0
  21. package/azurePrivatelink.js.map +1 -0
  22. package/azurePrivatelinkConnectionApproval.d.ts +91 -0
  23. package/azurePrivatelinkConnectionApproval.js +66 -0
  24. package/azurePrivatelinkConnectionApproval.js.map +1 -0
  25. package/billingGroup.d.ts +0 -2
  26. package/billingGroup.js +0 -2
  27. package/billingGroup.js.map +1 -1
  28. package/cassandra.d.ts +101 -135
  29. package/cassandra.js +14 -4
  30. package/cassandra.js.map +1 -1
  31. package/clickhouse.d.ts +304 -0
  32. package/clickhouse.js +122 -0
  33. package/clickhouse.js.map +1 -0
  34. package/clickhouseDatabase.d.ts +105 -0
  35. package/clickhouseDatabase.js +76 -0
  36. package/clickhouseDatabase.js.map +1 -0
  37. package/clickhouseGrant.d.ts +169 -0
  38. package/clickhouseGrant.js +125 -0
  39. package/clickhouseGrant.js.map +1 -0
  40. package/clickhouseRole.d.ts +75 -0
  41. package/clickhouseRole.js +65 -0
  42. package/clickhouseRole.js.map +1 -0
  43. package/clickhouseUser.d.ts +112 -0
  44. package/clickhouseUser.js +84 -0
  45. package/clickhouseUser.js.map +1 -0
  46. package/connectionPool.d.ts +23 -53
  47. package/connectionPool.js +0 -4
  48. package/connectionPool.js.map +1 -1
  49. package/database.d.ts +18 -23
  50. package/database.js +0 -2
  51. package/database.js.map +1 -1
  52. package/elasticSearch.d.ts +97 -134
  53. package/elasticSearch.js +14 -4
  54. package/elasticSearch.js.map +1 -1
  55. package/elasticSearchAcl.d.ts +14 -26
  56. package/elasticSearchAcl.js +2 -5
  57. package/elasticSearchAcl.js.map +1 -1
  58. package/elasticSearchAclConfig.d.ts +12 -23
  59. package/elasticSearchAclConfig.js +0 -2
  60. package/elasticSearchAclConfig.js.map +1 -1
  61. package/elasticSearchAclRule.d.ts +15 -20
  62. package/elasticSearchAclRule.js +0 -2
  63. package/elasticSearchAclRule.js.map +1 -1
  64. package/flink.d.ts +311 -0
  65. package/flink.js +125 -0
  66. package/flink.js.map +1 -0
  67. package/flinkJob.d.ts +136 -0
  68. package/flinkJob.js +100 -0
  69. package/flinkJob.js.map +1 -0
  70. package/flinkJobTable.d.ts +224 -0
  71. package/flinkJobTable.js +114 -0
  72. package/flinkJobTable.js.map +1 -0
  73. package/getAccount.d.ts +10 -49
  74. package/getAccount.js +0 -7
  75. package/getAccount.js.map +1 -1
  76. package/getAccountAuthentication.d.ts +21 -103
  77. package/getAccountAuthentication.js +0 -12
  78. package/getAccountAuthentication.js.map +1 -1
  79. package/getAccountTeam.d.ts +13 -33
  80. package/getAccountTeam.js +0 -5
  81. package/getAccountTeam.js.map +1 -1
  82. package/getAccountTeamMember.d.ts +18 -43
  83. package/getAccountTeamMember.js +0 -5
  84. package/getAccountTeamMember.js.map +1 -1
  85. package/getAccountTeamProject.d.ts +17 -21
  86. package/getAccountTeamProject.js +0 -3
  87. package/getAccountTeamProject.js.map +1 -1
  88. package/getAwsPrivatelink.d.ts +14 -42
  89. package/getAwsPrivatelink.js +0 -5
  90. package/getAwsPrivatelink.js.map +1 -1
  91. package/getAzurePrivatelink.d.ts +81 -0
  92. package/getAzurePrivatelink.js +38 -0
  93. package/getAzurePrivatelink.js.map +1 -0
  94. package/getBillingGroup.d.ts +96 -0
  95. package/getBillingGroup.js +36 -0
  96. package/getBillingGroup.js.map +1 -0
  97. package/getCassanda.d.ts +118 -44
  98. package/getCassanda.js +15 -17
  99. package/getCassanda.js.map +1 -1
  100. package/getCassandra.d.ts +62 -223
  101. package/getCassandra.js +1 -20
  102. package/getCassandra.js.map +1 -1
  103. package/getClickhouse.d.ts +154 -0
  104. package/getClickhouse.js +38 -0
  105. package/getClickhouse.js.map +1 -0
  106. package/getClickhouseDatabase.d.ts +75 -0
  107. package/getClickhouseDatabase.js +40 -0
  108. package/getClickhouseDatabase.js.map +1 -0
  109. package/getClickhouseUser.d.ts +86 -0
  110. package/getClickhouseUser.js +40 -0
  111. package/getClickhouseUser.js.map +1 -0
  112. package/getConnectionPool.d.ts +26 -74
  113. package/getConnectionPool.js +0 -7
  114. package/getConnectionPool.js.map +1 -1
  115. package/getDatabase.d.ts +22 -29
  116. package/getDatabase.js +0 -5
  117. package/getDatabase.js.map +1 -1
  118. package/getElasticSearch.d.ts +61 -222
  119. package/getElasticSearch.js +0 -19
  120. package/getElasticSearch.js.map +1 -1
  121. package/getElasticSearchAcl.d.ts +22 -36
  122. package/getElasticSearchAcl.js +1 -7
  123. package/getElasticSearchAcl.js.map +1 -1
  124. package/getElasticSearchAclConfig.d.ts +41 -6
  125. package/getElasticSearchAclConfig.js +15 -2
  126. package/getElasticSearchAclConfig.js.map +1 -1
  127. package/getElasticSearchAclRule.d.ts +56 -2
  128. package/getElasticSearchAclRule.js +17 -1
  129. package/getElasticSearchAclRule.js.map +1 -1
  130. package/getFlink.d.ts +154 -0
  131. package/getFlink.js +38 -0
  132. package/getFlink.js.map +1 -0
  133. package/getGrafana.d.ts +61 -222
  134. package/getGrafana.js +0 -19
  135. package/getGrafana.js.map +1 -1
  136. package/getInfluxDb.d.ts +61 -222
  137. package/getInfluxDb.js +0 -19
  138. package/getInfluxDb.js.map +1 -1
  139. package/getKafka.d.ts +65 -221
  140. package/getKafka.js +0 -20
  141. package/getKafka.js.map +1 -1
  142. package/getKafkaAcl.d.ts +31 -21
  143. package/getKafkaAcl.js +2 -5
  144. package/getKafkaAcl.js.map +1 -1
  145. package/getKafkaConnect.d.ts +61 -222
  146. package/getKafkaConnect.js +0 -19
  147. package/getKafkaConnect.js.map +1 -1
  148. package/getKafkaConnector.d.ts +31 -73
  149. package/getKafkaConnector.js +0 -15
  150. package/getKafkaConnector.js.map +1 -1
  151. package/getKafkaMirrorMaker.d.ts +61 -222
  152. package/getKafkaMirrorMaker.js +0 -19
  153. package/getKafkaMirrorMaker.js.map +1 -1
  154. package/getKafkaSchema.d.ts +23 -37
  155. package/getKafkaSchema.js +1 -7
  156. package/getKafkaSchema.js.map +1 -1
  157. package/getKafkaSchemaConfiguration.d.ts +29 -41
  158. package/getKafkaSchemaConfiguration.js +4 -10
  159. package/getKafkaSchemaConfiguration.js.map +1 -1
  160. package/getKafkaTopic.d.ts +34 -95
  161. package/getKafkaTopic.js +0 -18
  162. package/getKafkaTopic.js.map +1 -1
  163. package/getM3Aggregator.d.ts +62 -223
  164. package/getM3Aggregator.js +1 -20
  165. package/getM3Aggregator.js.map +1 -1
  166. package/getM3Db.d.ts +61 -222
  167. package/getM3Db.js +0 -19
  168. package/getM3Db.js.map +1 -1
  169. package/getMirrorMakerReplicationFlow.d.ts +45 -52
  170. package/getMirrorMakerReplicationFlow.js +1 -11
  171. package/getMirrorMakerReplicationFlow.js.map +1 -1
  172. package/getMySql.d.ts +61 -222
  173. package/getMySql.js +0 -19
  174. package/getMySql.js.map +1 -1
  175. package/getOpenSearch.d.ts +61 -216
  176. package/getOpenSearch.js +0 -19
  177. package/getOpenSearch.js.map +1 -1
  178. package/getOpenSearchAclConfig.d.ts +41 -6
  179. package/getOpenSearchAclConfig.js +15 -2
  180. package/getOpenSearchAclConfig.js.map +1 -1
  181. package/getOpenSearchAclRule.d.ts +62 -0
  182. package/getOpenSearchAclRule.js +17 -0
  183. package/getOpenSearchAclRule.js.map +1 -1
  184. package/getPg.d.ts +61 -222
  185. package/getPg.js +0 -19
  186. package/getPg.js.map +1 -1
  187. package/getProject.d.ts +49 -166
  188. package/getProject.js +0 -20
  189. package/getProject.js.map +1 -1
  190. package/getProjectUser.d.ts +13 -34
  191. package/getProjectUser.js +0 -4
  192. package/getProjectUser.js.map +1 -1
  193. package/getProjectVpc.d.ts +13 -30
  194. package/getProjectVpc.js +0 -4
  195. package/getProjectVpc.js.map +1 -1
  196. package/getRedis.d.ts +60 -221
  197. package/getRedis.js +0 -19
  198. package/getRedis.js.map +1 -1
  199. package/getService.d.ts +203 -105
  200. package/getService.js +3 -37
  201. package/getService.js.map +1 -1
  202. package/getServiceComponent.d.ts +38 -90
  203. package/getServiceComponent.js +1 -22
  204. package/getServiceComponent.js.map +1 -1
  205. package/getServiceIntegration.d.ts +67 -95
  206. package/getServiceIntegration.js +1 -41
  207. package/getServiceIntegration.js.map +1 -1
  208. package/getServiceIntegrationEndpoint.d.ts +61 -63
  209. package/getServiceIntegrationEndpoint.js +1 -17
  210. package/getServiceIntegrationEndpoint.js.map +1 -1
  211. package/getServiceUser.d.ts +37 -78
  212. package/getServiceUser.js +0 -13
  213. package/getServiceUser.js.map +1 -1
  214. package/getTransitGatewayVpcAttachment.d.ts +29 -40
  215. package/getTransitGatewayVpcAttachment.js +1 -9
  216. package/getTransitGatewayVpcAttachment.js.map +1 -1
  217. package/getVpcPeeringConnection.d.ts +27 -92
  218. package/getVpcPeeringConnection.js +1 -11
  219. package/getVpcPeeringConnection.js.map +1 -1
  220. package/grafana.d.ts +97 -134
  221. package/grafana.js +14 -4
  222. package/grafana.js.map +1 -1
  223. package/index.d.ts +17 -0
  224. package/index.js +61 -0
  225. package/index.js.map +1 -1
  226. package/influxDb.d.ts +97 -131
  227. package/influxDb.js +14 -4
  228. package/influxDb.js.map +1 -1
  229. package/kafka.d.ts +110 -128
  230. package/kafka.js +14 -2
  231. package/kafka.js.map +1 -1
  232. package/kafkaAcl.d.ts +15 -29
  233. package/kafkaAcl.js +0 -2
  234. package/kafkaAcl.js.map +1 -1
  235. package/kafkaConnect.d.ts +97 -134
  236. package/kafkaConnect.js +14 -4
  237. package/kafkaConnect.js.map +1 -1
  238. package/kafkaConnector.d.ts +34 -44
  239. package/kafkaConnector.js +8 -16
  240. package/kafkaConnector.js.map +1 -1
  241. package/kafkaMirrorMaker.d.ts +97 -131
  242. package/kafkaMirrorMaker.js +14 -4
  243. package/kafkaMirrorMaker.js.map +1 -1
  244. package/kafkaSchema.d.ts +45 -31
  245. package/kafkaSchema.js +28 -2
  246. package/kafkaSchema.js.map +1 -1
  247. package/kafkaSchemaConfiguration.d.ts +11 -31
  248. package/kafkaSchemaConfiguration.js +0 -5
  249. package/kafkaSchemaConfiguration.js.map +1 -1
  250. package/kafkaTopic.d.ts +58 -48
  251. package/kafkaTopic.js +28 -0
  252. package/kafkaTopic.js.map +1 -1
  253. package/m3aggregator.d.ts +97 -131
  254. package/m3aggregator.js +14 -4
  255. package/m3aggregator.js.map +1 -1
  256. package/m3db.d.ts +97 -131
  257. package/m3db.js +14 -4
  258. package/m3db.js.map +1 -1
  259. package/mirrorMakerReplicationFlow.d.ts +34 -40
  260. package/mirrorMakerReplicationFlow.js +1 -4
  261. package/mirrorMakerReplicationFlow.js.map +1 -1
  262. package/mySql.d.ts +104 -150
  263. package/mySql.js +14 -4
  264. package/mySql.js.map +1 -1
  265. package/openSearch.d.ts +101 -132
  266. package/openSearch.js +14 -4
  267. package/openSearch.js.map +1 -1
  268. package/openSearchAclConfig.d.ts +31 -29
  269. package/openSearchAclConfig.js +19 -8
  270. package/openSearchAclConfig.js.map +1 -1
  271. package/openSearchAclRule.d.ts +30 -35
  272. package/openSearchAclRule.js +15 -17
  273. package/openSearchAclRule.js.map +1 -1
  274. package/package.json +2 -2
  275. package/package.json.dev +2 -2
  276. package/pg.d.ts +101 -126
  277. package/pg.js +15 -0
  278. package/pg.js.map +1 -1
  279. package/project.d.ts +60 -121
  280. package/project.js +3 -5
  281. package/project.js.map +1 -1
  282. package/projectUser.d.ts +11 -19
  283. package/projectUser.js +0 -2
  284. package/projectUser.js.map +1 -1
  285. package/projectVpc.d.ts +11 -18
  286. package/projectVpc.js +0 -2
  287. package/projectVpc.js.map +1 -1
  288. package/redis.d.ts +99 -136
  289. package/redis.js +13 -3
  290. package/redis.js.map +1 -1
  291. package/service.d.ts +184 -121
  292. package/service.js +44 -21
  293. package/service.js.map +1 -1
  294. package/serviceIntegration.d.ts +18 -185
  295. package/serviceIntegration.js +4 -40
  296. package/serviceIntegration.js.map +1 -1
  297. package/serviceIntegrationEndpoint.d.ts +9 -49
  298. package/serviceIntegrationEndpoint.js +0 -34
  299. package/serviceIntegrationEndpoint.js.map +1 -1
  300. package/serviceUser.d.ts +45 -40
  301. package/serviceUser.js +2 -4
  302. package/serviceUser.js.map +1 -1
  303. package/staticIp.d.ts +95 -0
  304. package/staticIp.js +68 -0
  305. package/staticIp.js.map +1 -0
  306. package/transitGatewayVpcAttachment.d.ts +16 -19
  307. package/transitGatewayVpcAttachment.js +1 -4
  308. package/transitGatewayVpcAttachment.js.map +1 -1
  309. package/types/input.d.ts +1440 -9809
  310. package/types/output.d.ts +1744 -3691
  311. package/vpcPeeringConnection.d.ts +27 -58
  312. package/vpcPeeringConnection.js +0 -22
  313. package/vpcPeeringConnection.js.map +1 -1
package/flink.js ADDED
@@ -0,0 +1,125 @@
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.Flink = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The Flink resource allows the creation and management of Aiven Flink services.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aiven from "@pulumi/aiven";
16
+ *
17
+ * const flink = new aiven.Flink("flink", {
18
+ * project: data.aiven_project.pr1.project,
19
+ * cloudName: "google-europe-west1",
20
+ * plan: "business-4",
21
+ * serviceName: "my-flink",
22
+ * maintenanceWindowDow: "monday",
23
+ * maintenanceWindowTime: "10:00:00",
24
+ * flinkUserConfig: {
25
+ * flinkVersion: 1.13,
26
+ * },
27
+ * });
28
+ * ```
29
+ */
30
+ class Flink extends pulumi.CustomResource {
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["cloudName"] = state ? state.cloudName : undefined;
37
+ resourceInputs["components"] = state ? state.components : undefined;
38
+ resourceInputs["diskSpace"] = state ? state.diskSpace : undefined;
39
+ resourceInputs["diskSpaceCap"] = state ? state.diskSpaceCap : undefined;
40
+ resourceInputs["diskSpaceDefault"] = state ? state.diskSpaceDefault : undefined;
41
+ resourceInputs["diskSpaceStep"] = state ? state.diskSpaceStep : undefined;
42
+ resourceInputs["diskSpaceUsed"] = state ? state.diskSpaceUsed : undefined;
43
+ resourceInputs["flink"] = state ? state.flink : undefined;
44
+ resourceInputs["flinkUserConfig"] = state ? state.flinkUserConfig : undefined;
45
+ resourceInputs["maintenanceWindowDow"] = state ? state.maintenanceWindowDow : undefined;
46
+ resourceInputs["maintenanceWindowTime"] = state ? state.maintenanceWindowTime : undefined;
47
+ resourceInputs["plan"] = state ? state.plan : undefined;
48
+ resourceInputs["project"] = state ? state.project : undefined;
49
+ resourceInputs["projectVpcId"] = state ? state.projectVpcId : undefined;
50
+ resourceInputs["serviceHost"] = state ? state.serviceHost : undefined;
51
+ resourceInputs["serviceIntegrations"] = state ? state.serviceIntegrations : undefined;
52
+ resourceInputs["serviceName"] = state ? state.serviceName : undefined;
53
+ resourceInputs["servicePassword"] = state ? state.servicePassword : undefined;
54
+ resourceInputs["servicePort"] = state ? state.servicePort : undefined;
55
+ resourceInputs["serviceType"] = state ? state.serviceType : undefined;
56
+ resourceInputs["serviceUri"] = state ? state.serviceUri : undefined;
57
+ resourceInputs["serviceUsername"] = state ? state.serviceUsername : undefined;
58
+ resourceInputs["state"] = state ? state.state : undefined;
59
+ resourceInputs["staticIps"] = state ? state.staticIps : undefined;
60
+ resourceInputs["terminationProtection"] = state ? state.terminationProtection : undefined;
61
+ }
62
+ else {
63
+ const args = argsOrState;
64
+ if ((!args || args.project === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'project'");
66
+ }
67
+ if ((!args || args.serviceName === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'serviceName'");
69
+ }
70
+ resourceInputs["cloudName"] = args ? args.cloudName : undefined;
71
+ resourceInputs["diskSpace"] = args ? args.diskSpace : undefined;
72
+ resourceInputs["flink"] = args ? args.flink : undefined;
73
+ resourceInputs["flinkUserConfig"] = args ? args.flinkUserConfig : undefined;
74
+ resourceInputs["maintenanceWindowDow"] = args ? args.maintenanceWindowDow : undefined;
75
+ resourceInputs["maintenanceWindowTime"] = args ? args.maintenanceWindowTime : undefined;
76
+ resourceInputs["plan"] = args ? args.plan : undefined;
77
+ resourceInputs["project"] = args ? args.project : undefined;
78
+ resourceInputs["projectVpcId"] = args ? args.projectVpcId : undefined;
79
+ resourceInputs["serviceIntegrations"] = args ? args.serviceIntegrations : undefined;
80
+ resourceInputs["serviceName"] = args ? args.serviceName : undefined;
81
+ resourceInputs["staticIps"] = args ? args.staticIps : undefined;
82
+ resourceInputs["terminationProtection"] = args ? args.terminationProtection : undefined;
83
+ resourceInputs["components"] = undefined /*out*/;
84
+ resourceInputs["diskSpaceCap"] = undefined /*out*/;
85
+ resourceInputs["diskSpaceDefault"] = undefined /*out*/;
86
+ resourceInputs["diskSpaceStep"] = undefined /*out*/;
87
+ resourceInputs["diskSpaceUsed"] = undefined /*out*/;
88
+ resourceInputs["serviceHost"] = undefined /*out*/;
89
+ resourceInputs["servicePassword"] = undefined /*out*/;
90
+ resourceInputs["servicePort"] = undefined /*out*/;
91
+ resourceInputs["serviceType"] = undefined /*out*/;
92
+ resourceInputs["serviceUri"] = undefined /*out*/;
93
+ resourceInputs["serviceUsername"] = undefined /*out*/;
94
+ resourceInputs["state"] = undefined /*out*/;
95
+ }
96
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
97
+ super(Flink.__pulumiType, name, resourceInputs, opts);
98
+ }
99
+ /**
100
+ * Get an existing Flink resource's state with the given name, ID, and optional extra
101
+ * properties used to qualify the lookup.
102
+ *
103
+ * @param name The _unique_ name of the resulting resource.
104
+ * @param id The _unique_ provider ID of the resource to lookup.
105
+ * @param state Any extra arguments used during the lookup.
106
+ * @param opts Optional settings to control the behavior of the CustomResource.
107
+ */
108
+ static get(name, id, state, opts) {
109
+ return new Flink(name, state, Object.assign(Object.assign({}, opts), { id: id }));
110
+ }
111
+ /**
112
+ * Returns true if the given object is an instance of Flink. This is designed to work even
113
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
114
+ */
115
+ static isInstance(obj) {
116
+ if (obj === undefined || obj === null) {
117
+ return false;
118
+ }
119
+ return obj['__pulumiType'] === Flink.__pulumiType;
120
+ }
121
+ }
122
+ exports.Flink = Flink;
123
+ /** @internal */
124
+ Flink.__pulumiType = 'aiven:index/flink:Flink';
125
+ //# sourceMappingURL=flink.js.map
package/flink.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flink.js","sourceRoot":"","sources":["../flink.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAyI5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CA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Aiven Jobs.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as aiven from "@pulumi/aiven";
10
+ *
11
+ * const job = new aiven.FlinkJob("job", {
12
+ * project: aiven_flink.flink.project,
13
+ * serviceName: aiven_flink.flink.service_name,
14
+ * jobName: "<JOB_NAME>",
15
+ * tableIds: [
16
+ * aiven_flink_table.source.table_id,
17
+ * aiven_flink_table.sink.table_id,
18
+ * ],
19
+ * statement: ` INSERT INTO ${aiven_flink_table.sink.table_name}
20
+ * SELECT * FROM ${aiven_flink_table.source.table_name}
21
+ * WHERE `cpu` > 50
22
+ * `,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare class FlinkJob extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing FlinkJob 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?: FlinkJobState, opts?: pulumi.CustomResourceOptions): FlinkJob;
37
+ /**
38
+ * Returns true if the given object is an instance of FlinkJob. 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 FlinkJob;
42
+ /**
43
+ * The Job ID of the flink job in the flink service.
44
+ */
45
+ readonly jobId: pulumi.Output<string>;
46
+ /**
47
+ * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
48
+ */
49
+ readonly jobName: pulumi.Output<string>;
50
+ /**
51
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
52
+ */
53
+ readonly project: pulumi.Output<string>;
54
+ /**
55
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
56
+ */
57
+ readonly serviceName: pulumi.Output<string>;
58
+ /**
59
+ * The current state of the flink job in the flink service
60
+ */
61
+ readonly state: pulumi.Output<string>;
62
+ /**
63
+ * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
64
+ */
65
+ readonly statement: pulumi.Output<string>;
66
+ /**
67
+ * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
68
+ */
69
+ readonly tableIds: pulumi.Output<string[]>;
70
+ /**
71
+ * Create a FlinkJob resource with the given unique name, arguments, and options.
72
+ *
73
+ * @param name The _unique_ name of the resource.
74
+ * @param args The arguments to use to populate this resource's properties.
75
+ * @param opts A bag of options that control this resource's behavior.
76
+ */
77
+ constructor(name: string, args: FlinkJobArgs, opts?: pulumi.CustomResourceOptions);
78
+ }
79
+ /**
80
+ * Input properties used for looking up and filtering FlinkJob resources.
81
+ */
82
+ export interface FlinkJobState {
83
+ /**
84
+ * The Job ID of the flink job in the flink service.
85
+ */
86
+ jobId?: pulumi.Input<string>;
87
+ /**
88
+ * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
89
+ */
90
+ jobName?: pulumi.Input<string>;
91
+ /**
92
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
93
+ */
94
+ project?: pulumi.Input<string>;
95
+ /**
96
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
97
+ */
98
+ serviceName?: pulumi.Input<string>;
99
+ /**
100
+ * The current state of the flink job in the flink service
101
+ */
102
+ state?: pulumi.Input<string>;
103
+ /**
104
+ * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
105
+ */
106
+ statement?: pulumi.Input<string>;
107
+ /**
108
+ * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
109
+ */
110
+ tableIds?: pulumi.Input<pulumi.Input<string>[]>;
111
+ }
112
+ /**
113
+ * The set of arguments for constructing a FlinkJob resource.
114
+ */
115
+ export interface FlinkJobArgs {
116
+ /**
117
+ * Specifies the name of the service that this job is submitted to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
118
+ */
119
+ jobName: pulumi.Input<string>;
120
+ /**
121
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
122
+ */
123
+ project: pulumi.Input<string>;
124
+ /**
125
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
126
+ */
127
+ serviceName: pulumi.Input<string>;
128
+ /**
129
+ * The SQL statement to define the job. This property cannot be changed, doing so forces recreation of the resource.
130
+ */
131
+ statement: pulumi.Input<string>;
132
+ /**
133
+ * A list of table ids that are required in the job runtime. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
134
+ */
135
+ tableIds: pulumi.Input<pulumi.Input<string>[]>;
136
+ }
package/flinkJob.js ADDED
@@ -0,0 +1,100 @@
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.FlinkJob = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The Flink Job resource allows the creation and management of Aiven Jobs.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aiven from "@pulumi/aiven";
16
+ *
17
+ * const job = new aiven.FlinkJob("job", {
18
+ * project: aiven_flink.flink.project,
19
+ * serviceName: aiven_flink.flink.service_name,
20
+ * jobName: "<JOB_NAME>",
21
+ * tableIds: [
22
+ * aiven_flink_table.source.table_id,
23
+ * aiven_flink_table.sink.table_id,
24
+ * ],
25
+ * statement: ` INSERT INTO ${aiven_flink_table.sink.table_name}
26
+ * SELECT * FROM ${aiven_flink_table.source.table_name}
27
+ * WHERE `cpu` > 50
28
+ * `,
29
+ * });
30
+ * ```
31
+ */
32
+ class FlinkJob extends pulumi.CustomResource {
33
+ constructor(name, argsOrState, opts) {
34
+ let resourceInputs = {};
35
+ opts = opts || {};
36
+ if (opts.id) {
37
+ const state = argsOrState;
38
+ resourceInputs["jobId"] = state ? state.jobId : undefined;
39
+ resourceInputs["jobName"] = state ? state.jobName : undefined;
40
+ resourceInputs["project"] = state ? state.project : undefined;
41
+ resourceInputs["serviceName"] = state ? state.serviceName : undefined;
42
+ resourceInputs["state"] = state ? state.state : undefined;
43
+ resourceInputs["statement"] = state ? state.statement : undefined;
44
+ resourceInputs["tableIds"] = state ? state.tableIds : undefined;
45
+ }
46
+ else {
47
+ const args = argsOrState;
48
+ if ((!args || args.jobName === undefined) && !opts.urn) {
49
+ throw new Error("Missing required property 'jobName'");
50
+ }
51
+ if ((!args || args.project === undefined) && !opts.urn) {
52
+ throw new Error("Missing required property 'project'");
53
+ }
54
+ if ((!args || args.serviceName === undefined) && !opts.urn) {
55
+ throw new Error("Missing required property 'serviceName'");
56
+ }
57
+ if ((!args || args.statement === undefined) && !opts.urn) {
58
+ throw new Error("Missing required property 'statement'");
59
+ }
60
+ if ((!args || args.tableIds === undefined) && !opts.urn) {
61
+ throw new Error("Missing required property 'tableIds'");
62
+ }
63
+ resourceInputs["jobName"] = args ? args.jobName : undefined;
64
+ resourceInputs["project"] = args ? args.project : undefined;
65
+ resourceInputs["serviceName"] = args ? args.serviceName : undefined;
66
+ resourceInputs["statement"] = args ? args.statement : undefined;
67
+ resourceInputs["tableIds"] = args ? args.tableIds : undefined;
68
+ resourceInputs["jobId"] = undefined /*out*/;
69
+ resourceInputs["state"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(FlinkJob.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ /**
75
+ * Get an existing FlinkJob resource's state with the given name, ID, and optional extra
76
+ * properties used to qualify the lookup.
77
+ *
78
+ * @param name The _unique_ name of the resulting resource.
79
+ * @param id The _unique_ provider ID of the resource to lookup.
80
+ * @param state Any extra arguments used during the lookup.
81
+ * @param opts Optional settings to control the behavior of the CustomResource.
82
+ */
83
+ static get(name, id, state, opts) {
84
+ return new FlinkJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of FlinkJob. This is designed to work even
88
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
89
+ */
90
+ static isInstance(obj) {
91
+ if (obj === undefined || obj === null) {
92
+ return false;
93
+ }
94
+ return obj['__pulumiType'] === FlinkJob.__pulumiType;
95
+ }
96
+ }
97
+ exports.FlinkJob = FlinkJob;
98
+ /** @internal */
99
+ FlinkJob.__pulumiType = 'aiven:index/flinkJob:FlinkJob';
100
+ //# sourceMappingURL=flinkJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flinkJob.js","sourceRoot":"","sources":["../flinkJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAiE/C,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,OAAO,CAAC,GAAG,KAAK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AC;IAvGD;;;;;;;;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;;AA1BL,4BAyGC;AA3FG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,224 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The Flink Table resource allows the creation and management of Aiven Tables.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as aiven from "@pulumi/aiven";
10
+ *
11
+ * const table = new aiven.FlinkJobTable("table", {
12
+ * project: data.aiven_project.pr1.project,
13
+ * serviceName: aiven_flink.flink.service_name,
14
+ * tableName: "<TABLE_NAME>",
15
+ * integrationId: aiven_service_integration.flink_kafka.service_id,
16
+ * jdbcTable: "<JDBC_TABLE_NAME>",
17
+ * kafkaTopic: aiven_kafka_topic.table_topic.topic_name,
18
+ * schemaSql: ` `+"`cpu`"+` INT,
19
+ * `+"`node`"+` INT,
20
+ * `+"`occurred_at`"+` TIMESTAMP(3) METADATA FROM 'timestamp',
21
+ * WATERMARK FOR `+"`occurred_at`"+` AS `+"`occurred_at`"+` - INTERVAL '5' SECOND
22
+ * `,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare class FlinkJobTable extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing FlinkJobTable 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?: FlinkJobTableState, opts?: pulumi.CustomResourceOptions): FlinkJobTable;
37
+ /**
38
+ * Returns true if the given object is an instance of FlinkJobTable. 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 FlinkJobTable;
42
+ /**
43
+ * The id of the service integration that is used with this table. It must have the service integration type `flink`. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
44
+ */
45
+ readonly integrationId: pulumi.Output<string>;
46
+ /**
47
+ * Name of the jdbc table that is to be connected to this table. Valid if the service integration id refers to a mysql or postgres service. This property cannot be changed, doing so forces recreation of the resource.
48
+ */
49
+ readonly jdbcTable: pulumi.Output<string | undefined>;
50
+ /**
51
+ * When used as a source, upsert Kafka connectors update values that use an existing key and delete values that are null. For sinks, the connector correspondingly writes update or delete messages in a compacted topic. If no matching key is found, the values are added as new entries. For more information, see the Apache Flink documentation The possible values are `kafka` and `upsert-kafka`. This property cannot be changed, doing so forces recreation of the resource.
52
+ */
53
+ readonly kafkaConnectorType: pulumi.Output<string | undefined>;
54
+ /**
55
+ * Defines an explicit list of physical columns from the table schema that configure the data type for the key format. This property cannot be changed, doing so forces recreation of the resource.
56
+ */
57
+ readonly kafkaKeyFields: pulumi.Output<string[] | undefined>;
58
+ /**
59
+ * Kafka Key Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
60
+ */
61
+ readonly kafkaKeyFormat: pulumi.Output<string | undefined>;
62
+ /**
63
+ * Startup mode The possible values are `earliest-offset`, `latest-offset`, `group-offsets` and `timestamp`. This property cannot be changed, doing so forces recreation of the resource.
64
+ */
65
+ readonly kafkaStartupMode: pulumi.Output<string | undefined>;
66
+ /**
67
+ * Name of the kafka topic that is to be connected to this table. Valid if the service integration id refers to a kafka service. This property cannot be changed, doing so forces recreation of the resource.
68
+ */
69
+ readonly kafkaTopic: pulumi.Output<string | undefined>;
70
+ /**
71
+ * Kafka Value Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
72
+ */
73
+ readonly kafkaValueFormat: pulumi.Output<string | undefined>;
74
+ /**
75
+ * [LIKE](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#like) statement for table creation. This property cannot be changed, doing so forces recreation of the resource.
76
+ */
77
+ readonly likeOptions: pulumi.Output<string | undefined>;
78
+ /**
79
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
80
+ */
81
+ readonly project: pulumi.Output<string>;
82
+ /**
83
+ * The SQL statement to create the table. This property cannot be changed, doing so forces recreation of the resource.
84
+ */
85
+ readonly schemaSql: pulumi.Output<string>;
86
+ /**
87
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
88
+ */
89
+ readonly serviceName: pulumi.Output<string>;
90
+ /**
91
+ * The Table ID of the flink table in the flink service.
92
+ */
93
+ readonly tableId: pulumi.Output<string>;
94
+ /**
95
+ * Specifies the name of the table. This property cannot be changed, doing so forces recreation of the resource.
96
+ */
97
+ readonly tableName: pulumi.Output<string>;
98
+ /**
99
+ * Create a FlinkJobTable 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: FlinkJobTableArgs, opts?: pulumi.CustomResourceOptions);
106
+ }
107
+ /**
108
+ * Input properties used for looking up and filtering FlinkJobTable resources.
109
+ */
110
+ export interface FlinkJobTableState {
111
+ /**
112
+ * The id of the service integration that is used with this table. It must have the service integration type `flink`. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
113
+ */
114
+ integrationId?: pulumi.Input<string>;
115
+ /**
116
+ * Name of the jdbc table that is to be connected to this table. Valid if the service integration id refers to a mysql or postgres service. This property cannot be changed, doing so forces recreation of the resource.
117
+ */
118
+ jdbcTable?: pulumi.Input<string>;
119
+ /**
120
+ * When used as a source, upsert Kafka connectors update values that use an existing key and delete values that are null. For sinks, the connector correspondingly writes update or delete messages in a compacted topic. If no matching key is found, the values are added as new entries. For more information, see the Apache Flink documentation The possible values are `kafka` and `upsert-kafka`. This property cannot be changed, doing so forces recreation of the resource.
121
+ */
122
+ kafkaConnectorType?: pulumi.Input<string>;
123
+ /**
124
+ * Defines an explicit list of physical columns from the table schema that configure the data type for the key format. This property cannot be changed, doing so forces recreation of the resource.
125
+ */
126
+ kafkaKeyFields?: pulumi.Input<pulumi.Input<string>[]>;
127
+ /**
128
+ * Kafka Key Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
129
+ */
130
+ kafkaKeyFormat?: pulumi.Input<string>;
131
+ /**
132
+ * Startup mode The possible values are `earliest-offset`, `latest-offset`, `group-offsets` and `timestamp`. This property cannot be changed, doing so forces recreation of the resource.
133
+ */
134
+ kafkaStartupMode?: pulumi.Input<string>;
135
+ /**
136
+ * Name of the kafka topic that is to be connected to this table. Valid if the service integration id refers to a kafka service. This property cannot be changed, doing so forces recreation of the resource.
137
+ */
138
+ kafkaTopic?: pulumi.Input<string>;
139
+ /**
140
+ * Kafka Value Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
141
+ */
142
+ kafkaValueFormat?: pulumi.Input<string>;
143
+ /**
144
+ * [LIKE](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#like) statement for table creation. This property cannot be changed, doing so forces recreation of the resource.
145
+ */
146
+ likeOptions?: pulumi.Input<string>;
147
+ /**
148
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
149
+ */
150
+ project?: pulumi.Input<string>;
151
+ /**
152
+ * The SQL statement to create the table. This property cannot be changed, doing so forces recreation of the resource.
153
+ */
154
+ schemaSql?: pulumi.Input<string>;
155
+ /**
156
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
157
+ */
158
+ serviceName?: pulumi.Input<string>;
159
+ /**
160
+ * The Table ID of the flink table in the flink service.
161
+ */
162
+ tableId?: pulumi.Input<string>;
163
+ /**
164
+ * Specifies the name of the table. This property cannot be changed, doing so forces recreation of the resource.
165
+ */
166
+ tableName?: pulumi.Input<string>;
167
+ }
168
+ /**
169
+ * The set of arguments for constructing a FlinkJobTable resource.
170
+ */
171
+ export interface FlinkJobTableArgs {
172
+ /**
173
+ * The id of the service integration that is used with this table. It must have the service integration type `flink`. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
174
+ */
175
+ integrationId: pulumi.Input<string>;
176
+ /**
177
+ * Name of the jdbc table that is to be connected to this table. Valid if the service integration id refers to a mysql or postgres service. This property cannot be changed, doing so forces recreation of the resource.
178
+ */
179
+ jdbcTable?: pulumi.Input<string>;
180
+ /**
181
+ * When used as a source, upsert Kafka connectors update values that use an existing key and delete values that are null. For sinks, the connector correspondingly writes update or delete messages in a compacted topic. If no matching key is found, the values are added as new entries. For more information, see the Apache Flink documentation The possible values are `kafka` and `upsert-kafka`. This property cannot be changed, doing so forces recreation of the resource.
182
+ */
183
+ kafkaConnectorType?: pulumi.Input<string>;
184
+ /**
185
+ * Defines an explicit list of physical columns from the table schema that configure the data type for the key format. This property cannot be changed, doing so forces recreation of the resource.
186
+ */
187
+ kafkaKeyFields?: pulumi.Input<pulumi.Input<string>[]>;
188
+ /**
189
+ * Kafka Key Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
190
+ */
191
+ kafkaKeyFormat?: pulumi.Input<string>;
192
+ /**
193
+ * Startup mode The possible values are `earliest-offset`, `latest-offset`, `group-offsets` and `timestamp`. This property cannot be changed, doing so forces recreation of the resource.
194
+ */
195
+ kafkaStartupMode?: pulumi.Input<string>;
196
+ /**
197
+ * Name of the kafka topic that is to be connected to this table. Valid if the service integration id refers to a kafka service. This property cannot be changed, doing so forces recreation of the resource.
198
+ */
199
+ kafkaTopic?: pulumi.Input<string>;
200
+ /**
201
+ * Kafka Value Format The possible values are `avro`, `avro-confluent`, `debezium-avro-confluent`, `debezium-json` and `json`. This property cannot be changed, doing so forces recreation of the resource.
202
+ */
203
+ kafkaValueFormat?: pulumi.Input<string>;
204
+ /**
205
+ * [LIKE](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#like) statement for table creation. This property cannot be changed, doing so forces recreation of the resource.
206
+ */
207
+ likeOptions?: pulumi.Input<string>;
208
+ /**
209
+ * Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
210
+ */
211
+ project: pulumi.Input<string>;
212
+ /**
213
+ * The SQL statement to create the table. This property cannot be changed, doing so forces recreation of the resource.
214
+ */
215
+ schemaSql: pulumi.Input<string>;
216
+ /**
217
+ * Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
218
+ */
219
+ serviceName: pulumi.Input<string>;
220
+ /**
221
+ * Specifies the name of the table. This property cannot be changed, doing so forces recreation of the resource.
222
+ */
223
+ tableName: pulumi.Input<string>;
224
+ }