@pulumi/aiven 6.47.0-alpha.1767139386 → 6.47.0

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.
@@ -18,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
18
18
  * ## Import
19
19
  *
20
20
  * ```sh
21
- * $ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USERNAME
21
+ * $ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USER_ID # USER_ID is found in the systems.users table in ClickHouse
22
22
  * ```
23
23
  */
24
24
  export declare class ClickhouseUser extends pulumi.CustomResource {
package/clickhouseUser.js CHANGED
@@ -24,7 +24,7 @@ const utilities = require("./utilities");
24
24
  * ## Import
25
25
  *
26
26
  * ```sh
27
- * $ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USERNAME
27
+ * $ pulumi import aiven:index/clickhouseUser:ClickhouseUser example_user PROJECT/SERVICE_NAME/USER_ID # USER_ID is found in the systems.users table in ClickHouse
28
28
  * ```
29
29
  */
30
30
  class ClickhouseUser extends pulumi.CustomResource {
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * Gets information about an Aiven for MySQL® database.
4
6
  *
@@ -21,39 +23,44 @@ export declare function getMysqlDatabase(args: GetMysqlDatabaseArgs, opts?: pulu
21
23
  */
22
24
  export interface GetMysqlDatabaseArgs {
23
25
  /**
24
- * The name of the database. Changing this property forces recreation of the resource.
26
+ * Service database name.
25
27
  */
26
28
  databaseName: string;
27
29
  /**
28
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
30
+ * Project name.
29
31
  */
30
32
  project: string;
31
33
  /**
32
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
34
+ * Service name.
33
35
  */
34
36
  serviceName: string;
37
+ timeouts?: inputs.GetMysqlDatabaseTimeouts;
35
38
  }
36
39
  /**
37
40
  * A collection of values returned by getMysqlDatabase.
38
41
  */
39
42
  export interface GetMysqlDatabaseResult {
40
43
  /**
41
- * The name of the database. Changing this property forces recreation of the resource.
44
+ * Service database name.
42
45
  */
43
46
  readonly databaseName: string;
44
47
  /**
45
- * The provider-assigned unique ID for this managed resource.
48
+ * Resource ID composed as: `project/service_name/database_name`.
46
49
  */
47
50
  readonly id: string;
48
51
  /**
49
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
52
+ * Project name.
50
53
  */
51
54
  readonly project: string;
52
55
  /**
53
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
56
+ * Service name.
54
57
  */
55
58
  readonly serviceName: string;
59
+ /**
60
+ * @deprecated Instead use [`preventDestroy`](https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle#prevent-resource-deletion)
61
+ */
56
62
  readonly terminationProtection: boolean;
63
+ readonly timeouts?: outputs.GetMysqlDatabaseTimeouts;
57
64
  }
58
65
  /**
59
66
  * Gets information about an Aiven for MySQL® database.
@@ -77,15 +84,16 @@ export declare function getMysqlDatabaseOutput(args: GetMysqlDatabaseOutputArgs,
77
84
  */
78
85
  export interface GetMysqlDatabaseOutputArgs {
79
86
  /**
80
- * The name of the database. Changing this property forces recreation of the resource.
87
+ * Service database name.
81
88
  */
82
89
  databaseName: pulumi.Input<string>;
83
90
  /**
84
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
91
+ * Project name.
85
92
  */
86
93
  project: pulumi.Input<string>;
87
94
  /**
88
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
95
+ * Service name.
89
96
  */
90
97
  serviceName: pulumi.Input<string>;
98
+ timeouts?: pulumi.Input<inputs.GetMysqlDatabaseTimeoutsArgs>;
91
99
  }
@@ -27,6 +27,7 @@ function getMysqlDatabase(args, opts) {
27
27
  "databaseName": args.databaseName,
28
28
  "project": args.project,
29
29
  "serviceName": args.serviceName,
30
+ "timeouts": args.timeouts,
30
31
  }, opts);
31
32
  }
32
33
  exports.getMysqlDatabase = getMysqlDatabase;
@@ -52,6 +53,7 @@ function getMysqlDatabaseOutput(args, opts) {
52
53
  "databaseName": args.databaseName,
53
54
  "project": args.project,
54
55
  "serviceName": args.serviceName,
56
+ "timeouts": args.timeouts,
55
57
  }, opts);
56
58
  }
57
59
  exports.getMysqlDatabaseOutput = getMysqlDatabaseOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"getMysqlDatabase.js","sourceRoot":"","sources":["../getMysqlDatabase.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+CAA+C,EAAE;QAC1E,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4CAOC;AA0CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAAiC;IACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+CAA+C,EAAE;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 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * Gets information about an Aiven for MySQL® service user.
4
6
  *
@@ -21,15 +23,16 @@ export declare function getMysqlUser(args: GetMysqlUserArgs, opts?: pulumi.Invok
21
23
  */
22
24
  export interface GetMysqlUserArgs {
23
25
  /**
24
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
26
+ * Project name.
25
27
  */
26
28
  project: string;
27
29
  /**
28
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
30
+ * The name of the MySQL® service user.
29
31
  */
30
32
  serviceName: string;
33
+ timeouts?: inputs.GetMysqlUserTimeouts;
31
34
  /**
32
- * The name of the MySQL service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
35
+ * The name of the MySQL® service user.
33
36
  */
34
37
  username: string;
35
38
  }
@@ -38,39 +41,48 @@ export interface GetMysqlUserArgs {
38
41
  */
39
42
  export interface GetMysqlUserResult {
40
43
  /**
41
- * Access certificate for the user.
44
+ * Access certificate for TLS client authentication.
42
45
  */
43
46
  readonly accessCert: string;
44
47
  /**
45
- * Access certificate key for the user.
48
+ * Access key for TLS client authentication.
46
49
  */
47
50
  readonly accessKey: string;
48
51
  /**
49
- * Authentication details. The possible values are `cachingSha2Password`, `mysqlNativePassword` and `null`.
52
+ * Service specific authentication details. Currently only used for MySQL where accepted options are 'mysql*native*password' and 'caching*sha2*password', latter being default when this is not explicitly set. The possible values are `cachingSha2Password` and `mysqlNativePassword`.
50
53
  */
51
54
  readonly authentication: string;
52
55
  /**
53
- * The provider-assigned unique ID for this managed resource.
56
+ * Resource ID composed as: `project/service_name/username`.
54
57
  */
55
58
  readonly id: string;
56
59
  /**
57
- * The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
60
+ * The password of the service user (auto-generated if not provided). The field conflicts with `passwordWo`.
58
61
  */
59
62
  readonly password: string;
60
63
  /**
61
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
64
+ * The password of the service user (write-only, not stored in state). The field is required with `passwordWoVersion`. The field conflicts with `password`.
65
+ */
66
+ readonly passwordWo: string;
67
+ /**
68
+ * Version number for `passwordWo`. Increment this to rotate the password. The field is required with `passwordWo`.
69
+ */
70
+ readonly passwordWoVersion: number;
71
+ /**
72
+ * Project name.
62
73
  */
63
74
  readonly project: string;
64
75
  /**
65
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
76
+ * The name of the MySQL® service user.
66
77
  */
67
78
  readonly serviceName: string;
79
+ readonly timeouts?: outputs.GetMysqlUserTimeouts;
68
80
  /**
69
81
  * User account type, such as primary or regular account.
70
82
  */
71
83
  readonly type: string;
72
84
  /**
73
- * The name of the MySQL service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
85
+ * The name of the MySQL® service user.
74
86
  */
75
87
  readonly username: string;
76
88
  }
@@ -96,15 +108,16 @@ export declare function getMysqlUserOutput(args: GetMysqlUserOutputArgs, opts?:
96
108
  */
97
109
  export interface GetMysqlUserOutputArgs {
98
110
  /**
99
- * The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
111
+ * Project name.
100
112
  */
101
113
  project: pulumi.Input<string>;
102
114
  /**
103
- * The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
115
+ * The name of the MySQL® service user.
104
116
  */
105
117
  serviceName: pulumi.Input<string>;
118
+ timeouts?: pulumi.Input<inputs.GetMysqlUserTimeoutsArgs>;
106
119
  /**
107
- * The name of the MySQL service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
120
+ * The name of the MySQL® service user.
108
121
  */
109
122
  username: pulumi.Input<string>;
110
123
  }
package/getMysqlUser.js CHANGED
@@ -26,6 +26,7 @@ function getMysqlUser(args, opts) {
26
26
  return pulumi.runtime.invoke("aiven:index/getMysqlUser:getMysqlUser", {
27
27
  "project": args.project,
28
28
  "serviceName": args.serviceName,
29
+ "timeouts": args.timeouts,
29
30
  "username": args.username,
30
31
  }, opts);
31
32
  }
@@ -51,6 +52,7 @@ function getMysqlUserOutput(args, opts) {
51
52
  return pulumi.runtime.invokeOutput("aiven:index/getMysqlUser:getMysqlUser", {
52
53
  "project": args.project,
53
54
  "serviceName": args.serviceName,
55
+ "timeouts": args.timeouts,
54
56
  "username": args.username,
55
57
  }, opts);
56
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getMysqlUser.js","sourceRoot":"","sources":["../getMysqlUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AA6DD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC"}
1
+ {"version":3,"file":"getMysqlUser.js","sourceRoot":"","sources":["../getMysqlUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AAuED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC"}
@@ -1,33 +1,49 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * Gets information about an organizational unit.
4
6
  *
5
7
  * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as aiven from "@pulumi/aiven";
12
+ *
13
+ * const exampleUnit = aiven.getOrganizationalUnit({
14
+ * name: "Example organizational unit",
15
+ * });
16
+ * ```
6
17
  */
7
- export declare function getOrganizationalUnit(args: GetOrganizationalUnitArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationalUnitResult>;
18
+ export declare function getOrganizationalUnit(args?: GetOrganizationalUnitArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationalUnitResult>;
8
19
  /**
9
20
  * A collection of arguments for invoking getOrganizationalUnit.
10
21
  */
11
22
  export interface GetOrganizationalUnitArgs {
12
23
  /**
13
- * The name of the organizational unit.
24
+ * The ID of this resource. Exactly one of the fields must be specified: `id` or `name`.
25
+ */
26
+ id?: string;
27
+ /**
28
+ * The name of the organizational unit. Exactly one of the fields must be specified: `id` or `name`.
14
29
  */
15
- name: string;
30
+ name?: string;
31
+ timeouts?: inputs.GetOrganizationalUnitTimeouts;
16
32
  }
17
33
  /**
18
34
  * A collection of values returned by getOrganizationalUnit.
19
35
  */
20
36
  export interface GetOrganizationalUnitResult {
21
37
  /**
22
- * Time of creation.
38
+ * Timestamp in ISO 8601 format, always in UTC.
23
39
  */
24
40
  readonly createTime: string;
25
41
  /**
26
- * The provider-assigned unique ID for this managed resource.
42
+ * The ID of this resource. Exactly one of the fields must be specified: `id` or `name`.
27
43
  */
28
44
  readonly id: string;
29
45
  /**
30
- * The name of the organizational unit.
46
+ * The name of the organizational unit. Exactly one of the fields must be specified: `id` or `name`.
31
47
  */
32
48
  readonly name: string;
33
49
  /**
@@ -35,11 +51,12 @@ export interface GetOrganizationalUnitResult {
35
51
  */
36
52
  readonly parentId: string;
37
53
  /**
38
- * Tenant ID.
54
+ * Tenant identifier.
39
55
  */
40
56
  readonly tenantId: string;
57
+ readonly timeouts?: outputs.GetOrganizationalUnitTimeouts;
41
58
  /**
42
- * Time of last update.
59
+ * Timestamp in ISO 8601 format, always in UTC.
43
60
  */
44
61
  readonly updateTime: string;
45
62
  }
@@ -47,14 +64,28 @@ export interface GetOrganizationalUnitResult {
47
64
  * Gets information about an organizational unit.
48
65
  *
49
66
  * ## Example Usage
67
+ *
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as aiven from "@pulumi/aiven";
71
+ *
72
+ * const exampleUnit = aiven.getOrganizationalUnit({
73
+ * name: "Example organizational unit",
74
+ * });
75
+ * ```
50
76
  */
51
- export declare function getOrganizationalUnitOutput(args: GetOrganizationalUnitOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationalUnitResult>;
77
+ export declare function getOrganizationalUnitOutput(args?: GetOrganizationalUnitOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationalUnitResult>;
52
78
  /**
53
79
  * A collection of arguments for invoking getOrganizationalUnit.
54
80
  */
55
81
  export interface GetOrganizationalUnitOutputArgs {
56
82
  /**
57
- * The name of the organizational unit.
83
+ * The ID of this resource. Exactly one of the fields must be specified: `id` or `name`.
84
+ */
85
+ id?: pulumi.Input<string>;
86
+ /**
87
+ * The name of the organizational unit. Exactly one of the fields must be specified: `id` or `name`.
58
88
  */
59
- name: pulumi.Input<string>;
89
+ name?: pulumi.Input<string>;
90
+ timeouts?: pulumi.Input<inputs.GetOrganizationalUnitTimeoutsArgs>;
60
91
  }
@@ -9,11 +9,23 @@ const utilities = require("./utilities");
9
9
  * Gets information about an organizational unit.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aiven from "@pulumi/aiven";
16
+ *
17
+ * const exampleUnit = aiven.getOrganizationalUnit({
18
+ * name: "Example organizational unit",
19
+ * });
20
+ * ```
12
21
  */
13
22
  function getOrganizationalUnit(args, opts) {
23
+ args = args || {};
14
24
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
15
25
  return pulumi.runtime.invoke("aiven:index/getOrganizationalUnit:getOrganizationalUnit", {
26
+ "id": args.id,
16
27
  "name": args.name,
28
+ "timeouts": args.timeouts,
17
29
  }, opts);
18
30
  }
19
31
  exports.getOrganizationalUnit = getOrganizationalUnit;
@@ -21,11 +33,23 @@ exports.getOrganizationalUnit = getOrganizationalUnit;
21
33
  * Gets information about an organizational unit.
22
34
  *
23
35
  * ## Example Usage
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as aiven from "@pulumi/aiven";
40
+ *
41
+ * const exampleUnit = aiven.getOrganizationalUnit({
42
+ * name: "Example organizational unit",
43
+ * });
44
+ * ```
24
45
  */
25
46
  function getOrganizationalUnitOutput(args, opts) {
47
+ args = args || {};
26
48
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
49
  return pulumi.runtime.invokeOutput("aiven:index/getOrganizationalUnit:getOrganizationalUnit", {
50
+ "id": args.id,
28
51
  "name": args.name,
52
+ "timeouts": args.timeouts,
29
53
  }, opts);
30
54
  }
31
55
  exports.getOrganizationalUnitOutput = getOrganizationalUnitOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganizationalUnit.js","sourceRoot":"","sources":["../getOrganizationalUnit.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yDAAyD,EAAE;QACpF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,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AE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kEAQC"}
@@ -32,6 +32,10 @@ export interface GetServiceComponentArgs {
32
32
  * Kafka authentication method. This is a value specific to the 'kafka' service component. The possible values are `certificate` and `sasl`.
33
33
  */
34
34
  kafkaAuthenticationMethod?: string;
35
+ /**
36
+ * Kafka certificate used. The possible values are `letsencrypt` and `projectCa`.
37
+ */
38
+ kafkaSslCa?: string;
35
39
  /**
36
40
  * Project name
37
41
  */
@@ -135,6 +139,10 @@ export interface GetServiceComponentOutputArgs {
135
139
  * Kafka authentication method. This is a value specific to the 'kafka' service component. The possible values are `certificate` and `sasl`.
136
140
  */
137
141
  kafkaAuthenticationMethod?: pulumi.Input<string>;
142
+ /**
143
+ * Kafka certificate used. The possible values are `letsencrypt` and `projectCa`.
144
+ */
145
+ kafkaSslCa?: pulumi.Input<string>;
138
146
  /**
139
147
  * Project name
140
148
  */
@@ -30,6 +30,7 @@ function getServiceComponent(args, opts) {
30
30
  return pulumi.runtime.invoke("aiven:index/getServiceComponent:getServiceComponent", {
31
31
  "component": args.component,
32
32
  "kafkaAuthenticationMethod": args.kafkaAuthenticationMethod,
33
+ "kafkaSslCa": args.kafkaSslCa,
33
34
  "project": args.project,
34
35
  "route": args.route,
35
36
  "serviceName": args.serviceName,
@@ -63,6 +64,7 @@ function getServiceComponentOutput(args, opts) {
63
64
  return pulumi.runtime.invokeOutput("aiven:index/getServiceComponent:getServiceComponent", {
64
65
  "component": args.component,
65
66
  "kafkaAuthenticationMethod": args.kafkaAuthenticationMethod,
67
+ "kafkaSslCa": args.kafkaSslCa,
66
68
  "project": args.project,
67
69
  "route": args.route,
68
70
  "serviceName": args.serviceName,
@@ -1 +1 @@
1
- {"version":3,"file":"getServiceComponent.js","sourceRoot":"","sources":["../getServiceComponent.ts"],"names":[],"mappings":";AA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I,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,8DAYC"}
@@ -0,0 +1,89 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * A list of all services in a project.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as aiven from "@pulumi/aiven";
12
+ *
13
+ * // Use the `aiven_service_list` data source to query all services in a project.
14
+ * const allServices = aiven.getServiceList({
15
+ * project: "example-project-name",
16
+ * });
17
+ * export const serviceNames = allServices.then(allServices => .map(service => (service.name)));
18
+ * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType)));
19
+ * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service)));
20
+ * export const kafkaServiceNames = kafkaServices.map(service => (service.name));
21
+ * ```
22
+ */
23
+ export declare function getServiceList(args: GetServiceListArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceListResult>;
24
+ /**
25
+ * A collection of arguments for invoking getServiceList.
26
+ */
27
+ export interface GetServiceListArgs {
28
+ /**
29
+ * Project name.
30
+ */
31
+ project: string;
32
+ /**
33
+ * List of services under the project.
34
+ */
35
+ services?: inputs.GetServiceListService[];
36
+ timeouts?: inputs.GetServiceListTimeouts;
37
+ }
38
+ /**
39
+ * A collection of values returned by getServiceList.
40
+ */
41
+ export interface GetServiceListResult {
42
+ /**
43
+ * Resource ID, equal to `project`.
44
+ */
45
+ readonly id: string;
46
+ /**
47
+ * Project name.
48
+ */
49
+ readonly project: string;
50
+ /**
51
+ * List of services under the project.
52
+ */
53
+ readonly services?: outputs.GetServiceListService[];
54
+ readonly timeouts?: outputs.GetServiceListTimeouts;
55
+ }
56
+ /**
57
+ * A list of all services in a project.
58
+ *
59
+ * ## Example Usage
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as aiven from "@pulumi/aiven";
64
+ *
65
+ * // Use the `aiven_service_list` data source to query all services in a project.
66
+ * const allServices = aiven.getServiceList({
67
+ * project: "example-project-name",
68
+ * });
69
+ * export const serviceNames = allServices.then(allServices => .map(service => (service.name)));
70
+ * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType)));
71
+ * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service)));
72
+ * export const kafkaServiceNames = kafkaServices.map(service => (service.name));
73
+ * ```
74
+ */
75
+ export declare function getServiceListOutput(args: GetServiceListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceListResult>;
76
+ /**
77
+ * A collection of arguments for invoking getServiceList.
78
+ */
79
+ export interface GetServiceListOutputArgs {
80
+ /**
81
+ * Project name.
82
+ */
83
+ project: pulumi.Input<string>;
84
+ /**
85
+ * List of services under the project.
86
+ */
87
+ services?: pulumi.Input<pulumi.Input<inputs.GetServiceListServiceArgs>[]>;
88
+ timeouts?: pulumi.Input<inputs.GetServiceListTimeoutsArgs>;
89
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.getServiceListOutput = exports.getServiceList = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * A list of all services in a project.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aiven from "@pulumi/aiven";
16
+ *
17
+ * // Use the `aiven_service_list` data source to query all services in a project.
18
+ * const allServices = aiven.getServiceList({
19
+ * project: "example-project-name",
20
+ * });
21
+ * export const serviceNames = allServices.then(allServices => .map(service => (service.name)));
22
+ * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType)));
23
+ * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service)));
24
+ * export const kafkaServiceNames = kafkaServices.map(service => (service.name));
25
+ * ```
26
+ */
27
+ function getServiceList(args, opts) {
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
+ return pulumi.runtime.invoke("aiven:index/getServiceList:getServiceList", {
30
+ "project": args.project,
31
+ "services": args.services,
32
+ "timeouts": args.timeouts,
33
+ }, opts);
34
+ }
35
+ exports.getServiceList = getServiceList;
36
+ /**
37
+ * A list of all services in a project.
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as aiven from "@pulumi/aiven";
44
+ *
45
+ * // Use the `aiven_service_list` data source to query all services in a project.
46
+ * const allServices = aiven.getServiceList({
47
+ * project: "example-project-name",
48
+ * });
49
+ * export const serviceNames = allServices.then(allServices => .map(service => (service.name)));
50
+ * export const serviceTypes = allServices.then(allServices => .map(service => (service.serviceType)));
51
+ * const kafkaServices = allServices.then(allServices => .filter(service => service.serviceType == "kafka").map(service => (service)));
52
+ * export const kafkaServiceNames = kafkaServices.map(service => (service.name));
53
+ * ```
54
+ */
55
+ function getServiceListOutput(args, opts) {
56
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
57
+ return pulumi.runtime.invokeOutput("aiven:index/getServiceList:getServiceList", {
58
+ "project": args.project,
59
+ "services": args.services,
60
+ "timeouts": args.timeouts,
61
+ }, opts);
62
+ }
63
+ exports.getServiceListOutput = getServiceListOutput;
64
+ //# sourceMappingURL=getServiceList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getServiceList.js","sourceRoot":"","sources":["../getServiceList.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AAmCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2CAA2C,EAAE;QAC5E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oDAOC"}
package/index.d.ts CHANGED
@@ -346,6 +346,9 @@ export declare const getServiceIntegrationOutput: typeof import("./getServiceInt
346
346
  export { GetServiceIntegrationEndpointArgs, GetServiceIntegrationEndpointResult, GetServiceIntegrationEndpointOutputArgs } from "./getServiceIntegrationEndpoint";
347
347
  export declare const getServiceIntegrationEndpoint: typeof import("./getServiceIntegrationEndpoint").getServiceIntegrationEndpoint;
348
348
  export declare const getServiceIntegrationEndpointOutput: typeof import("./getServiceIntegrationEndpoint").getServiceIntegrationEndpointOutput;
349
+ export { GetServiceListArgs, GetServiceListResult, GetServiceListOutputArgs } from "./getServiceList";
350
+ export declare const getServiceList: typeof import("./getServiceList").getServiceList;
351
+ export declare const getServiceListOutput: typeof import("./getServiceList").getServiceListOutput;
349
352
  export { GetServicePlanArgs, GetServicePlanResult, GetServicePlanOutputArgs } from "./getServicePlan";
350
353
  export declare const getServicePlan: typeof import("./getServicePlan").getServicePlan;
351
354
  export declare const getServicePlanOutput: typeof import("./getServicePlan").getServicePlanOutput;