@pulumi/aiven 6.19.0 → 6.21.0-alpha.1721884436

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 (96) hide show
  1. package/accountTeam.d.ts +6 -2
  2. package/accountTeam.js +6 -2
  3. package/accountTeam.js.map +1 -1
  4. package/accountTeamMember.d.ts +2 -2
  5. package/accountTeamMember.js +2 -2
  6. package/accountTeamProject.d.ts +2 -2
  7. package/accountTeamProject.js +2 -2
  8. package/clickhouse.d.ts +10 -10
  9. package/clickhouse.js +4 -4
  10. package/clickhouseDatabase.d.ts +20 -9
  11. package/clickhouseDatabase.js +17 -6
  12. package/clickhouseDatabase.js.map +1 -1
  13. package/clickhouseGrant.d.ts +39 -42
  14. package/clickhouseGrant.js +33 -36
  15. package/clickhouseGrant.js.map +1 -1
  16. package/clickhouseRole.d.ts +8 -16
  17. package/clickhouseRole.js +5 -13
  18. package/clickhouseRole.js.map +1 -1
  19. package/clickhouseUser.d.ts +15 -15
  20. package/clickhouseUser.js +6 -6
  21. package/flink.d.ts +9 -9
  22. package/flink.js +6 -6
  23. package/flinkApplication.d.ts +19 -19
  24. package/flinkApplication.js +6 -6
  25. package/flinkApplicationDeployment.d.ts +65 -26
  26. package/flinkApplicationDeployment.js +46 -7
  27. package/flinkApplicationDeployment.js.map +1 -1
  28. package/flinkApplicationVersion.d.ts +31 -26
  29. package/flinkApplicationVersion.js +11 -6
  30. package/flinkApplicationVersion.js.map +1 -1
  31. package/getClickhouse.d.ts +10 -10
  32. package/getClickhouse.js +8 -8
  33. package/getClickhouseDatabase.d.ts +13 -13
  34. package/getClickhouseDatabase.js +10 -10
  35. package/getClickhouseUser.d.ts +16 -16
  36. package/getClickhouseUser.js +10 -10
  37. package/getFlink.d.ts +9 -9
  38. package/getFlink.js +8 -8
  39. package/getFlinkApplication.d.ts +18 -18
  40. package/getFlinkApplication.js +10 -10
  41. package/getFlinkApplicationVersion.d.ts +24 -24
  42. package/getFlinkApplicationVersion.js +12 -12
  43. package/getKafkaAcl.d.ts +24 -24
  44. package/getKafkaAcl.js +14 -14
  45. package/getKafkaConnect.d.ts +8 -8
  46. package/getKafkaConnect.js +8 -8
  47. package/getKafkaConnector.d.ts +15 -15
  48. package/getKafkaConnector.js +10 -10
  49. package/getKafkaTopic.d.ts +2 -2
  50. package/getKafkaUser.d.ts +17 -17
  51. package/getKafkaUser.js +10 -10
  52. package/getTransitGatewayVpcAttachment.d.ts +1 -1
  53. package/getValkey.d.ts +187 -0
  54. package/getValkey.js +56 -0
  55. package/getValkey.js.map +1 -0
  56. package/getValkeyUser.d.ts +94 -0
  57. package/getValkeyUser.js +33 -0
  58. package/getValkeyUser.js.map +1 -0
  59. package/index.d.ts +12 -0
  60. package/index.js +18 -2
  61. package/index.js.map +1 -1
  62. package/kafkaAcl.d.ts +20 -18
  63. package/kafkaAcl.js +9 -7
  64. package/kafkaAcl.js.map +1 -1
  65. package/kafkaConnect.d.ts +35 -7
  66. package/kafkaConnect.js +35 -7
  67. package/kafkaConnect.js.map +1 -1
  68. package/kafkaConnector.d.ts +22 -19
  69. package/kafkaConnector.js +14 -11
  70. package/kafkaConnector.js.map +1 -1
  71. package/kafkaSchemaRegistryAcl.d.ts +1 -1
  72. package/kafkaSchemaRegistryAcl.js +1 -1
  73. package/kafkaTopic.d.ts +7 -7
  74. package/kafkaTopic.js +1 -1
  75. package/kafkaUser.d.ts +19 -19
  76. package/kafkaUser.js +7 -7
  77. package/organizationApplicationUser.d.ts +6 -1
  78. package/organizationApplicationUser.js +6 -1
  79. package/organizationApplicationUser.js.map +1 -1
  80. package/organizationApplicationUserToken.d.ts +3 -3
  81. package/organizationGroupProject.d.ts +4 -4
  82. package/organizationGroupProject.js +1 -1
  83. package/organizationUserGroupMember.d.ts +6 -4
  84. package/organizationUserGroupMember.js +3 -1
  85. package/organizationUserGroupMember.js.map +1 -1
  86. package/package.json +2 -2
  87. package/transitGatewayVpcAttachment.d.ts +3 -9
  88. package/transitGatewayVpcAttachment.js.map +1 -1
  89. package/types/input.d.ts +282 -14
  90. package/types/output.d.ts +566 -22
  91. package/valkey.d.ts +361 -0
  92. package/valkey.js +143 -0
  93. package/valkey.js.map +1 -0
  94. package/valkeyUser.d.ts +146 -0
  95. package/valkeyUser.js +82 -0
  96. package/valkeyUser.js.map +1 -0
package/accountTeam.d.ts CHANGED
@@ -5,12 +5,16 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * Creates and manages a team.
6
6
  *
7
7
  * > **Teams have been deprecated and are being migrated to groups**
8
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
9
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
8
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
9
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
10
10
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
11
11
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
12
12
  * migration guide for more information on the changes and migrating to groups.
13
13
  *
14
+ * > **Important**
15
+ * You can't delete the Account Owners team. **Deleting all other teams in your organization will disable the teams feature.**
16
+ * You won't be able to create new teams or access your Account Owners team.
17
+ *
14
18
  * ## Example Usage
15
19
  *
16
20
  * ```typescript
package/accountTeam.js CHANGED
@@ -11,12 +11,16 @@ const utilities = require("./utilities");
11
11
  * Creates and manages a team.
12
12
  *
13
13
  * > **Teams have been deprecated and are being migrated to groups**
14
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
15
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
14
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
15
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
16
16
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
17
17
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
18
18
  * migration guide for more information on the changes and migrating to groups.
19
19
  *
20
+ * > **Important**
21
+ * You can't delete the Account Owners team. **Deleting all other teams in your organization will disable the teams feature.**
22
+ * You won't be able to create new teams or access your Account Owners team.
23
+ *
20
24
  * ## Example Usage
21
25
  *
22
26
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"accountTeam.js","sourceRoot":"","sources":["../accountTeam.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAA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GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,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,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAhFL,kCAiFC;AAnEG,gBAAgB;AACO,wBAAY,GAAG,qCAAqC,CAAC"}
@@ -9,8 +9,8 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * deletes the pending invite if not accepted or removes the user from the team if they already accepted the invite.
10
10
  *
11
11
  * > **Teams have been deprecated and are being migrated to groups**
12
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
13
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
12
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
13
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
14
14
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
15
15
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
16
16
  * migration guide for more information on the changes and migrating to groups.
@@ -15,8 +15,8 @@ const utilities = require("./utilities");
15
15
  * deletes the pending invite if not accepted or removes the user from the team if they already accepted the invite.
16
16
  *
17
17
  * > **Teams have been deprecated and are being migrated to groups**
18
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
19
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
18
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
19
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
20
20
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
21
21
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
22
22
  * migration guide for more information on the changes and migrating to groups.
@@ -5,8 +5,8 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * Links an existing project to an existing team. Both the project and team should have the same `accountId`.
6
6
  *
7
7
  * > **Teams have been deprecated and are being migrated to groups**
8
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
9
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
8
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
9
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
10
10
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
11
11
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
12
12
  * migration guide for more information on the changes and migrating to groups.
@@ -11,8 +11,8 @@ const utilities = require("./utilities");
11
11
  * Links an existing project to an existing team. Both the project and team should have the same `accountId`.
12
12
  *
13
13
  * > **Teams have been deprecated and are being migrated to groups**
14
- * **On 2 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
15
- * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on your day to day operations.
14
+ * **On 30 September 2024** the Account Owners team will transition to super admin. Super admin have full access to the organization.
15
+ * The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions.
16
16
  * **From 4 November 2024** you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after
17
17
  * this date. **On 2 December 2024** all teams will be deleted and the teams feature will be completely removed. View the
18
18
  * migration guide for more information on the changes and migrating to groups.
package/clickhouse.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * The Clickhouse resource allows the creation and management of Aiven Clickhouse services.
5
+ * Creates and manages an [Aiven for ClickHouse®](https://aiven.io/docs/products/clickhouse/concepts/features-overview) service.
6
6
  *
7
7
  * ## Example Usage
8
8
  *
@@ -10,11 +10,11 @@ import * as outputs from "./types/output";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as aiven from "@pulumi/aiven";
12
12
  *
13
- * const clickhouse = new aiven.Clickhouse("clickhouse", {
14
- * project: pr1.project,
13
+ * const exampleClickhouse = new aiven.Clickhouse("example_clickhouse", {
14
+ * project: exampleProject.project,
15
15
  * cloudName: "google-europe-west1",
16
16
  * plan: "business-4",
17
- * serviceName: "my-clickhouse",
17
+ * serviceName: "example-clickhouse-service",
18
18
  * maintenanceWindowDow: "monday",
19
19
  * maintenanceWindowTime: "10:00:00",
20
20
  * });
@@ -47,7 +47,7 @@ export declare class Clickhouse extends pulumi.CustomResource {
47
47
  */
48
48
  readonly additionalDiskSpace: pulumi.Output<string | undefined>;
49
49
  /**
50
- * Clickhouse server provided values
50
+ * Values provided by the ClickHouse server.
51
51
  */
52
52
  readonly clickhouse: pulumi.Output<outputs.ClickhouseClickhouse>;
53
53
  /**
@@ -109,7 +109,7 @@ export declare class Clickhouse extends pulumi.CustomResource {
109
109
  */
110
110
  readonly serviceHost: pulumi.Output<string>;
111
111
  /**
112
- * Service integrations to specify when creating a service. Not applied after initial service creation
112
+ * Integrations with other services. Service integrations are only applied at service creation.
113
113
  */
114
114
  readonly serviceIntegrations: pulumi.Output<outputs.ClickhouseServiceIntegration[] | undefined>;
115
115
  /**
@@ -174,7 +174,7 @@ export interface ClickhouseState {
174
174
  */
175
175
  additionalDiskSpace?: pulumi.Input<string>;
176
176
  /**
177
- * Clickhouse server provided values
177
+ * Values provided by the ClickHouse server.
178
178
  */
179
179
  clickhouse?: pulumi.Input<inputs.ClickhouseClickhouse>;
180
180
  /**
@@ -236,7 +236,7 @@ export interface ClickhouseState {
236
236
  */
237
237
  serviceHost?: pulumi.Input<string>;
238
238
  /**
239
- * Service integrations to specify when creating a service. Not applied after initial service creation
239
+ * Integrations with other services. Service integrations are only applied at service creation.
240
240
  */
241
241
  serviceIntegrations?: pulumi.Input<pulumi.Input<inputs.ClickhouseServiceIntegration>[]>;
242
242
  /**
@@ -293,7 +293,7 @@ export interface ClickhouseArgs {
293
293
  */
294
294
  additionalDiskSpace?: pulumi.Input<string>;
295
295
  /**
296
- * Clickhouse server provided values
296
+ * Values provided by the ClickHouse server.
297
297
  */
298
298
  clickhouse?: pulumi.Input<inputs.ClickhouseClickhouse>;
299
299
  /**
@@ -331,7 +331,7 @@ export interface ClickhouseArgs {
331
331
  */
332
332
  projectVpcId?: pulumi.Input<string>;
333
333
  /**
334
- * Service integrations to specify when creating a service. Not applied after initial service creation
334
+ * Integrations with other services. Service integrations are only applied at service creation.
335
335
  */
336
336
  serviceIntegrations?: pulumi.Input<pulumi.Input<inputs.ClickhouseServiceIntegration>[]>;
337
337
  /**
package/clickhouse.js CHANGED
@@ -6,7 +6,7 @@ exports.Clickhouse = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The Clickhouse resource allows the creation and management of Aiven Clickhouse services.
9
+ * Creates and manages an [Aiven for ClickHouse®](https://aiven.io/docs/products/clickhouse/concepts/features-overview) service.
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -14,11 +14,11 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as aiven from "@pulumi/aiven";
16
16
  *
17
- * const clickhouse = new aiven.Clickhouse("clickhouse", {
18
- * project: pr1.project,
17
+ * const exampleClickhouse = new aiven.Clickhouse("example_clickhouse", {
18
+ * project: exampleProject.project,
19
19
  * cloudName: "google-europe-west1",
20
20
  * plan: "business-4",
21
- * serviceName: "my-clickhouse",
21
+ * serviceName: "example-clickhouse-service",
22
22
  * maintenanceWindowDow: "monday",
23
23
  * maintenanceWindowTime: "10:00:00",
24
24
  * });
@@ -1,6 +1,9 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The Clickhouse Database resource allows the creation and management of Aiven Clickhouse Databases.
3
+ * Creates and manages an Aiven for ClickHouse® database.
4
+ *
5
+ * > Tables cannot be created using Aiven Operator. To create a table,
6
+ * use the [Aiven Console or CLI](https://aiven.io/docs/products/clickhouse/howto/manage-databases-tables#create-a-table).
4
7
  *
5
8
  * ## Example Usage
6
9
  *
@@ -8,17 +11,25 @@ import * as pulumi from "@pulumi/pulumi";
8
11
  * import * as pulumi from "@pulumi/pulumi";
9
12
  * import * as aiven from "@pulumi/aiven";
10
13
  *
11
- * const clickhouseDb = new aiven.ClickhouseDatabase("clickhouse_db", {
12
- * project: ch.project,
13
- * serviceName: ch.serviceName,
14
- * name: "my-ch-db",
14
+ * const exampleClickhouse = new aiven.Clickhouse("example_clickhouse", {
15
+ * project: exampleProject.project,
16
+ * cloudName: "google-europe-west1",
17
+ * plan: "business-4",
18
+ * serviceName: "example-clickhouse-service",
19
+ * maintenanceWindowDow: "monday",
20
+ * maintenanceWindowTime: "10:00:00",
21
+ * });
22
+ * const exampleDb = new aiven.ClickhouseDatabase("example_db", {
23
+ * project: exampleProject.project,
24
+ * serviceName: exampleClickhouse.serviceName,
25
+ * name: "example-database",
15
26
  * });
16
27
  * ```
17
28
  *
18
29
  * ## Import
19
30
  *
20
31
  * ```sh
21
- * $ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db PROJECT/SERVICE_NAME/NAME
32
+ * $ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase example_db PROJECT/SERVICE_NAME/DATABASE_NAME
22
33
  * ```
23
34
  */
24
35
  export declare class ClickhouseDatabase extends pulumi.CustomResource {
@@ -38,7 +49,7 @@ export declare class ClickhouseDatabase extends pulumi.CustomResource {
38
49
  */
39
50
  static isInstance(obj: any): obj is ClickhouseDatabase;
40
51
  /**
41
- * The name of the Clickhouse database. Changing this property forces recreation of the resource.
52
+ * The name of the ClickHouse database. Changing this property forces recreation of the resource.
42
53
  */
43
54
  readonly name: pulumi.Output<string>;
44
55
  /**
@@ -64,7 +75,7 @@ export declare class ClickhouseDatabase extends pulumi.CustomResource {
64
75
  */
65
76
  export interface ClickhouseDatabaseState {
66
77
  /**
67
- * The name of the Clickhouse database. Changing this property forces recreation of the resource.
78
+ * The name of the ClickHouse database. Changing this property forces recreation of the resource.
68
79
  */
69
80
  name?: pulumi.Input<string>;
70
81
  /**
@@ -82,7 +93,7 @@ export interface ClickhouseDatabaseState {
82
93
  */
83
94
  export interface ClickhouseDatabaseArgs {
84
95
  /**
85
- * The name of the Clickhouse database. Changing this property forces recreation of the resource.
96
+ * The name of the ClickHouse database. Changing this property forces recreation of the resource.
86
97
  */
87
98
  name?: pulumi.Input<string>;
88
99
  /**
@@ -6,7 +6,10 @@ exports.ClickhouseDatabase = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The Clickhouse Database resource allows the creation and management of Aiven Clickhouse Databases.
9
+ * Creates and manages an Aiven for ClickHouse® database.
10
+ *
11
+ * > Tables cannot be created using Aiven Operator. To create a table,
12
+ * use the [Aiven Console or CLI](https://aiven.io/docs/products/clickhouse/howto/manage-databases-tables#create-a-table).
10
13
  *
11
14
  * ## Example Usage
12
15
  *
@@ -14,17 +17,25 @@ const utilities = require("./utilities");
14
17
  * import * as pulumi from "@pulumi/pulumi";
15
18
  * import * as aiven from "@pulumi/aiven";
16
19
  *
17
- * const clickhouseDb = new aiven.ClickhouseDatabase("clickhouse_db", {
18
- * project: ch.project,
19
- * serviceName: ch.serviceName,
20
- * name: "my-ch-db",
20
+ * const exampleClickhouse = new aiven.Clickhouse("example_clickhouse", {
21
+ * project: exampleProject.project,
22
+ * cloudName: "google-europe-west1",
23
+ * plan: "business-4",
24
+ * serviceName: "example-clickhouse-service",
25
+ * maintenanceWindowDow: "monday",
26
+ * maintenanceWindowTime: "10:00:00",
27
+ * });
28
+ * const exampleDb = new aiven.ClickhouseDatabase("example_db", {
29
+ * project: exampleProject.project,
30
+ * serviceName: exampleClickhouse.serviceName,
31
+ * name: "example-database",
21
32
  * });
22
33
  * ```
23
34
  *
24
35
  * ## Import
25
36
  *
26
37
  * ```sh
27
- * $ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db PROJECT/SERVICE_NAME/NAME
38
+ * $ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase example_db PROJECT/SERVICE_NAME/DATABASE_NAME
28
39
  * ```
29
40
  */
30
41
  class ClickhouseDatabase extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"clickhouseDatabase.js","sourceRoot":"","sources":["../clickhouseDatabase.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,kBAAmB,SAAQ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IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AA1EL,gDA2EC;AA7DG,gBAAgB;AACO,+BAAY,GAAG,mDAAmD,CAAC"}
@@ -2,12 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * The Clickhouse Grant resource allows the creation and management of Grants in Aiven Clickhouse services.
5
+ * Creates and manages ClickHouse grants to give users and roles privileges to a ClickHouse service.
6
6
  *
7
- * Notes:
8
- * * Due to a ambiguity in the GRANT syntax in clickhouse you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.
9
- * * To grant a privilege on all tables of a database, do not write table = "*". Instead, omit the table and only keep the database.
10
- * * Currently changes will first revoke all grants and then reissue the remaining grants for convergence.
7
+ * **Note:**
8
+ * * Users cannot have the same name as roles.
9
+ * * To grant a privilege on all tables of a database, omit the table and only keep the database. Don't use `table="*"`.
10
+ * * Changes first revoke all grants and then reissue the remaining grants for convergence.
11
11
  *
12
12
  * ## Example Usage
13
13
  *
@@ -15,52 +15,49 @@ import * as outputs from "./types/output";
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as aiven from "@pulumi/aiven";
17
17
  *
18
- * const clickhouse = new aiven.Clickhouse("clickhouse", {
19
- * project: aivenProjectName,
20
- * cloudName: "google-europe-west1",
21
- * plan: "startup-8",
22
- * serviceName: "exapmle-clickhouse",
18
+ * const exampleRole = new aiven.ClickhouseRole("example_role", {
19
+ * project: exampleProject.project,
20
+ * serviceName: exampleClickhouse.serviceName,
21
+ * role: "example-role",
23
22
  * });
24
- * const demodb = new aiven.ClickhouseDatabase("demodb", {
25
- * project: clickhouse.project,
26
- * serviceName: clickhouse.serviceName,
27
- * name: "demo",
28
- * });
29
- * const demo = new aiven.ClickhouseRole("demo", {
30
- * project: clickhouse.project,
31
- * serviceName: clickhouse.serviceName,
32
- * role: "demo-role",
33
- * });
34
- * const demo_role_grant = new aiven.ClickhouseGrant("demo-role-grant", {
35
- * project: clickhouse.project,
36
- * serviceName: clickhouse.serviceName,
37
- * role: demo.role,
23
+ * // Grant privileges to the example role.
24
+ * const rolePrivileges = new aiven.ClickhouseGrant("role_privileges", {
25
+ * project: exampleProject.project,
26
+ * serviceName: exampleClickhouse.serviceName,
27
+ * role: exampleRole.role,
38
28
  * privilegeGrants: [
39
29
  * {
40
30
  * privilege: "INSERT",
41
- * database: demodb.name,
42
- * table: "demo-table",
31
+ * database: exampleDb.name,
32
+ * table: "example-table",
43
33
  * },
44
34
  * {
45
35
  * privilege: "SELECT",
46
- * database: demodb.name,
36
+ * database: exampleDb.name,
47
37
  * },
48
38
  * ],
49
39
  * });
50
- * const demoClickhouseUser = new aiven.ClickhouseUser("demo", {
51
- * project: clickhouse.project,
52
- * serviceName: clickhouse.serviceName,
53
- * username: "demo-user",
40
+ * // Grant the role to the user.
41
+ * const exampleUser = new aiven.ClickhouseUser("example_user", {
42
+ * project: exampleProject.project,
43
+ * serviceName: exampleClickhouse.serviceName,
44
+ * username: "example-user",
54
45
  * });
55
- * const demo_user_grant = new aiven.ClickhouseGrant("demo-user-grant", {
56
- * project: clickhouse.project,
57
- * serviceName: clickhouse.serviceName,
58
- * user: demoClickhouseUser.username,
46
+ * const userRoleAssignment = new aiven.ClickhouseGrant("user_role_assignment", {
47
+ * project: exampleProject.project,
48
+ * serviceName: exampleClickhouse.serviceName,
49
+ * user: exampleUser.username,
59
50
  * roleGrants: [{
60
- * role: demo.role,
51
+ * role: exampleRole.role,
61
52
  * }],
62
53
  * });
63
54
  * ```
55
+ *
56
+ * ## Import
57
+ *
58
+ * ```sh
59
+ * $ pulumi import aiven:index/clickhouseGrant:ClickhouseGrant example_grant PROJECT/SERVICE_NAME/ID
60
+ * ```
64
61
  */
65
62
  export declare class ClickhouseGrant extends pulumi.CustomResource {
66
63
  /**
@@ -79,7 +76,7 @@ export declare class ClickhouseGrant extends pulumi.CustomResource {
79
76
  */
80
77
  static isInstance(obj: any): obj is ClickhouseGrant;
81
78
  /**
82
- * Configuration to grant a privilege. Changing this property forces recreation of the resource.
79
+ * Grant privileges. Changing this property forces recreation of the resource.
83
80
  */
84
81
  readonly privilegeGrants: pulumi.Output<outputs.ClickhouseGrantPrivilegeGrant[] | undefined>;
85
82
  /**
@@ -91,7 +88,7 @@ export declare class ClickhouseGrant extends pulumi.CustomResource {
91
88
  */
92
89
  readonly role: pulumi.Output<string | undefined>;
93
90
  /**
94
- * Configuration to grant a role. Changing this property forces recreation of the resource.
91
+ * Grant roles. Changing this property forces recreation of the resource.
95
92
  */
96
93
  readonly roleGrants: pulumi.Output<outputs.ClickhouseGrantRoleGrant[] | undefined>;
97
94
  /**
@@ -116,7 +113,7 @@ export declare class ClickhouseGrant extends pulumi.CustomResource {
116
113
  */
117
114
  export interface ClickhouseGrantState {
118
115
  /**
119
- * Configuration to grant a privilege. Changing this property forces recreation of the resource.
116
+ * Grant privileges. Changing this property forces recreation of the resource.
120
117
  */
121
118
  privilegeGrants?: pulumi.Input<pulumi.Input<inputs.ClickhouseGrantPrivilegeGrant>[]>;
122
119
  /**
@@ -128,7 +125,7 @@ export interface ClickhouseGrantState {
128
125
  */
129
126
  role?: pulumi.Input<string>;
130
127
  /**
131
- * Configuration to grant a role. Changing this property forces recreation of the resource.
128
+ * Grant roles. Changing this property forces recreation of the resource.
132
129
  */
133
130
  roleGrants?: pulumi.Input<pulumi.Input<inputs.ClickhouseGrantRoleGrant>[]>;
134
131
  /**
@@ -145,7 +142,7 @@ export interface ClickhouseGrantState {
145
142
  */
146
143
  export interface ClickhouseGrantArgs {
147
144
  /**
148
- * Configuration to grant a privilege. Changing this property forces recreation of the resource.
145
+ * Grant privileges. Changing this property forces recreation of the resource.
149
146
  */
150
147
  privilegeGrants?: pulumi.Input<pulumi.Input<inputs.ClickhouseGrantPrivilegeGrant>[]>;
151
148
  /**
@@ -157,7 +154,7 @@ export interface ClickhouseGrantArgs {
157
154
  */
158
155
  role?: pulumi.Input<string>;
159
156
  /**
160
- * Configuration to grant a role. Changing this property forces recreation of the resource.
157
+ * Grant roles. Changing this property forces recreation of the resource.
161
158
  */
162
159
  roleGrants?: pulumi.Input<pulumi.Input<inputs.ClickhouseGrantRoleGrant>[]>;
163
160
  /**
@@ -6,12 +6,12 @@ exports.ClickhouseGrant = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The Clickhouse Grant resource allows the creation and management of Grants in Aiven Clickhouse services.
9
+ * Creates and manages ClickHouse grants to give users and roles privileges to a ClickHouse service.
10
10
  *
11
- * Notes:
12
- * * Due to a ambiguity in the GRANT syntax in clickhouse you should not have users and roles with the same name. It is not clear if a grant refers to the user or the role.
13
- * * To grant a privilege on all tables of a database, do not write table = "*". Instead, omit the table and only keep the database.
14
- * * Currently changes will first revoke all grants and then reissue the remaining grants for convergence.
11
+ * **Note:**
12
+ * * Users cannot have the same name as roles.
13
+ * * To grant a privilege on all tables of a database, omit the table and only keep the database. Don't use `table="*"`.
14
+ * * Changes first revoke all grants and then reissue the remaining grants for convergence.
15
15
  *
16
16
  * ## Example Usage
17
17
  *
@@ -19,52 +19,49 @@ const utilities = require("./utilities");
19
19
  * import * as pulumi from "@pulumi/pulumi";
20
20
  * import * as aiven from "@pulumi/aiven";
21
21
  *
22
- * const clickhouse = new aiven.Clickhouse("clickhouse", {
23
- * project: aivenProjectName,
24
- * cloudName: "google-europe-west1",
25
- * plan: "startup-8",
26
- * serviceName: "exapmle-clickhouse",
22
+ * const exampleRole = new aiven.ClickhouseRole("example_role", {
23
+ * project: exampleProject.project,
24
+ * serviceName: exampleClickhouse.serviceName,
25
+ * role: "example-role",
27
26
  * });
28
- * const demodb = new aiven.ClickhouseDatabase("demodb", {
29
- * project: clickhouse.project,
30
- * serviceName: clickhouse.serviceName,
31
- * name: "demo",
32
- * });
33
- * const demo = new aiven.ClickhouseRole("demo", {
34
- * project: clickhouse.project,
35
- * serviceName: clickhouse.serviceName,
36
- * role: "demo-role",
37
- * });
38
- * const demo_role_grant = new aiven.ClickhouseGrant("demo-role-grant", {
39
- * project: clickhouse.project,
40
- * serviceName: clickhouse.serviceName,
41
- * role: demo.role,
27
+ * // Grant privileges to the example role.
28
+ * const rolePrivileges = new aiven.ClickhouseGrant("role_privileges", {
29
+ * project: exampleProject.project,
30
+ * serviceName: exampleClickhouse.serviceName,
31
+ * role: exampleRole.role,
42
32
  * privilegeGrants: [
43
33
  * {
44
34
  * privilege: "INSERT",
45
- * database: demodb.name,
46
- * table: "demo-table",
35
+ * database: exampleDb.name,
36
+ * table: "example-table",
47
37
  * },
48
38
  * {
49
39
  * privilege: "SELECT",
50
- * database: demodb.name,
40
+ * database: exampleDb.name,
51
41
  * },
52
42
  * ],
53
43
  * });
54
- * const demoClickhouseUser = new aiven.ClickhouseUser("demo", {
55
- * project: clickhouse.project,
56
- * serviceName: clickhouse.serviceName,
57
- * username: "demo-user",
44
+ * // Grant the role to the user.
45
+ * const exampleUser = new aiven.ClickhouseUser("example_user", {
46
+ * project: exampleProject.project,
47
+ * serviceName: exampleClickhouse.serviceName,
48
+ * username: "example-user",
58
49
  * });
59
- * const demo_user_grant = new aiven.ClickhouseGrant("demo-user-grant", {
60
- * project: clickhouse.project,
61
- * serviceName: clickhouse.serviceName,
62
- * user: demoClickhouseUser.username,
50
+ * const userRoleAssignment = new aiven.ClickhouseGrant("user_role_assignment", {
51
+ * project: exampleProject.project,
52
+ * serviceName: exampleClickhouse.serviceName,
53
+ * user: exampleUser.username,
63
54
  * roleGrants: [{
64
- * role: demo.role,
55
+ * role: exampleRole.role,
65
56
  * }],
66
57
  * });
67
58
  * ```
59
+ *
60
+ * ## Import
61
+ *
62
+ * ```sh
63
+ * $ pulumi import aiven:index/clickhouseGrant:ClickhouseGrant example_grant PROJECT/SERVICE_NAME/ID
64
+ * ```
68
65
  */
69
66
  class ClickhouseGrant extends pulumi.CustomResource {
70
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"clickhouseGrant.js","sourceRoot":"","sources":["../clickhouseGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,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