@pulumiverse/scaleway 1.18.0 → 1.19.0-alpha.1730362099

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 (44) hide show
  1. package/cockpitAlertManager.d.ts +27 -0
  2. package/cockpitAlertManager.js +27 -0
  3. package/cockpitAlertManager.js.map +1 -1
  4. package/getInstancePrivateNic.d.ts +1 -0
  5. package/getInstancePrivateNic.js.map +1 -1
  6. package/getRegistryImageTag.d.ts +93 -0
  7. package/getRegistryImageTag.js +36 -0
  8. package/getRegistryImageTag.js.map +1 -0
  9. package/index.d.ts +3 -27
  10. package/index.js +9 -45
  11. package/index.js.map +1 -1
  12. package/instancePrivateNic.d.ts +44 -1
  13. package/instancePrivateNic.js +34 -1
  14. package/instancePrivateNic.js.map +1 -1
  15. package/package.json +2 -2
  16. package/types/input.d.ts +0 -88
  17. package/types/output.d.ts +0 -88
  18. package/documentdbDatabase.d.ts +0 -149
  19. package/documentdbDatabase.js +0 -99
  20. package/documentdbDatabase.js.map +0 -1
  21. package/documentdbInstance.d.ts +0 -249
  22. package/documentdbInstance.js +0 -115
  23. package/documentdbInstance.js.map +0 -1
  24. package/documentdbPrivateNetworkEndpoint.d.ts +0 -130
  25. package/documentdbPrivateNetworkEndpoint.js +0 -97
  26. package/documentdbPrivateNetworkEndpoint.js.map +0 -1
  27. package/documentdbPrivilege.d.ts +0 -131
  28. package/documentdbPrivilege.js +0 -104
  29. package/documentdbPrivilege.js.map +0 -1
  30. package/documentdbReadReplica.d.ts +0 -146
  31. package/documentdbReadReplica.js +0 -109
  32. package/documentdbReadReplica.js.map +0 -1
  33. package/documentdbUser.d.ts +0 -150
  34. package/documentdbUser.js +0 -107
  35. package/documentdbUser.js.map +0 -1
  36. package/getDocumentdbDatabase.d.ts +0 -88
  37. package/getDocumentdbDatabase.js +0 -58
  38. package/getDocumentdbDatabase.js.map +0 -1
  39. package/getDocumentdbInstance.d.ts +0 -77
  40. package/getDocumentdbInstance.js +0 -36
  41. package/getDocumentdbInstance.js.map +0 -1
  42. package/getDocumentdbLoadBalancerEndpoint.d.ts +0 -80
  43. package/getDocumentdbLoadBalancerEndpoint.js +0 -36
  44. package/getDocumentdbLoadBalancerEndpoint.js.map +0 -1
@@ -1,149 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Creates and manages Scaleway DocumentDB database.
4
- *
5
- * ## Example Usage
6
- *
7
- * ### Basic
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as scaleway from "@pulumiverse/scaleway";
12
- *
13
- * const instance = new scaleway.DocumentdbInstance("instance", {
14
- * name: "test-document_db-basic",
15
- * nodeType: "docdb-play2-pico",
16
- * engine: "FerretDB-1",
17
- * userName: "my_initial_user",
18
- * password: "thiZ_is_v&ry_s3cret",
19
- * volumeSizeInGb: 20,
20
- * });
21
- * const main = new scaleway.DocumentdbDatabase("main", {
22
- * instanceId: instance.id,
23
- * name: "my-new-database",
24
- * });
25
- * ```
26
- *
27
- * ## Import
28
- *
29
- * DocumentDB Database can be imported using the `{region}/{id}/{DBNAME}`, e.g.
30
- *
31
- * bash
32
- *
33
- * ```sh
34
- * $ pulumi import scaleway:index/documentdbDatabase:DocumentdbDatabase mydb fr-par/11111111-1111-1111-1111-111111111111/mydb
35
- * ```
36
- */
37
- export declare class DocumentdbDatabase extends pulumi.CustomResource {
38
- /**
39
- * Get an existing DocumentdbDatabase resource's state with the given name, ID, and optional extra
40
- * properties used to qualify the lookup.
41
- *
42
- * @param name The _unique_ name of the resulting resource.
43
- * @param id The _unique_ provider ID of the resource to lookup.
44
- * @param state Any extra arguments used during the lookup.
45
- * @param opts Optional settings to control the behavior of the CustomResource.
46
- */
47
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DocumentdbDatabaseState, opts?: pulumi.CustomResourceOptions): DocumentdbDatabase;
48
- /**
49
- * Returns true if the given object is an instance of DocumentdbDatabase. This is designed to work even
50
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
- */
52
- static isInstance(obj: any): obj is DocumentdbDatabase;
53
- /**
54
- * UUID of the documentdb instance.
55
- *
56
- * > **Important:** Updates to `instanceId` will recreate the Database.
57
- */
58
- readonly instanceId: pulumi.Output<string>;
59
- /**
60
- * Whether the database is managed or not.
61
- */
62
- readonly managed: pulumi.Output<boolean>;
63
- /**
64
- * Name of the database (e.g. `my-new-database`).
65
- */
66
- readonly name: pulumi.Output<string>;
67
- /**
68
- * The name of the owner of the database.
69
- */
70
- readonly owner: pulumi.Output<string>;
71
- /**
72
- * The projectId you want to attach the resource to
73
- */
74
- readonly projectId: pulumi.Output<string>;
75
- /**
76
- * `region`) The region in which the resource exists.
77
- */
78
- readonly region: pulumi.Output<string>;
79
- /**
80
- * Size in gigabytes of the database.
81
- */
82
- readonly size: pulumi.Output<string>;
83
- /**
84
- * Create a DocumentdbDatabase resource with the given unique name, arguments, and options.
85
- *
86
- * @param name The _unique_ name of the resource.
87
- * @param args The arguments to use to populate this resource's properties.
88
- * @param opts A bag of options that control this resource's behavior.
89
- */
90
- constructor(name: string, args: DocumentdbDatabaseArgs, opts?: pulumi.CustomResourceOptions);
91
- }
92
- /**
93
- * Input properties used for looking up and filtering DocumentdbDatabase resources.
94
- */
95
- export interface DocumentdbDatabaseState {
96
- /**
97
- * UUID of the documentdb instance.
98
- *
99
- * > **Important:** Updates to `instanceId` will recreate the Database.
100
- */
101
- instanceId?: pulumi.Input<string>;
102
- /**
103
- * Whether the database is managed or not.
104
- */
105
- managed?: pulumi.Input<boolean>;
106
- /**
107
- * Name of the database (e.g. `my-new-database`).
108
- */
109
- name?: pulumi.Input<string>;
110
- /**
111
- * The name of the owner of the database.
112
- */
113
- owner?: pulumi.Input<string>;
114
- /**
115
- * The projectId you want to attach the resource to
116
- */
117
- projectId?: pulumi.Input<string>;
118
- /**
119
- * `region`) The region in which the resource exists.
120
- */
121
- region?: pulumi.Input<string>;
122
- /**
123
- * Size in gigabytes of the database.
124
- */
125
- size?: pulumi.Input<string>;
126
- }
127
- /**
128
- * The set of arguments for constructing a DocumentdbDatabase resource.
129
- */
130
- export interface DocumentdbDatabaseArgs {
131
- /**
132
- * UUID of the documentdb instance.
133
- *
134
- * > **Important:** Updates to `instanceId` will recreate the Database.
135
- */
136
- instanceId: pulumi.Input<string>;
137
- /**
138
- * Name of the database (e.g. `my-new-database`).
139
- */
140
- name?: pulumi.Input<string>;
141
- /**
142
- * The projectId you want to attach the resource to
143
- */
144
- projectId?: pulumi.Input<string>;
145
- /**
146
- * `region`) The region in which the resource exists.
147
- */
148
- region?: pulumi.Input<string>;
149
- }
@@ -1,99 +0,0 @@
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.DocumentdbDatabase = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Creates and manages Scaleway DocumentDB database.
10
- *
11
- * ## Example Usage
12
- *
13
- * ### Basic
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as scaleway from "@pulumiverse/scaleway";
18
- *
19
- * const instance = new scaleway.DocumentdbInstance("instance", {
20
- * name: "test-document_db-basic",
21
- * nodeType: "docdb-play2-pico",
22
- * engine: "FerretDB-1",
23
- * userName: "my_initial_user",
24
- * password: "thiZ_is_v&ry_s3cret",
25
- * volumeSizeInGb: 20,
26
- * });
27
- * const main = new scaleway.DocumentdbDatabase("main", {
28
- * instanceId: instance.id,
29
- * name: "my-new-database",
30
- * });
31
- * ```
32
- *
33
- * ## Import
34
- *
35
- * DocumentDB Database can be imported using the `{region}/{id}/{DBNAME}`, e.g.
36
- *
37
- * bash
38
- *
39
- * ```sh
40
- * $ pulumi import scaleway:index/documentdbDatabase:DocumentdbDatabase mydb fr-par/11111111-1111-1111-1111-111111111111/mydb
41
- * ```
42
- */
43
- class DocumentdbDatabase extends pulumi.CustomResource {
44
- /**
45
- * Get an existing DocumentdbDatabase resource's state with the given name, ID, and optional extra
46
- * properties used to qualify the lookup.
47
- *
48
- * @param name The _unique_ name of the resulting resource.
49
- * @param id The _unique_ provider ID of the resource to lookup.
50
- * @param state Any extra arguments used during the lookup.
51
- * @param opts Optional settings to control the behavior of the CustomResource.
52
- */
53
- static get(name, id, state, opts) {
54
- return new DocumentdbDatabase(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
- }
56
- /**
57
- * Returns true if the given object is an instance of DocumentdbDatabase. This is designed to work even
58
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
- */
60
- static isInstance(obj) {
61
- if (obj === undefined || obj === null) {
62
- return false;
63
- }
64
- return obj['__pulumiType'] === DocumentdbDatabase.__pulumiType;
65
- }
66
- constructor(name, argsOrState, opts) {
67
- let resourceInputs = {};
68
- opts = opts || {};
69
- if (opts.id) {
70
- const state = argsOrState;
71
- resourceInputs["instanceId"] = state ? state.instanceId : undefined;
72
- resourceInputs["managed"] = state ? state.managed : undefined;
73
- resourceInputs["name"] = state ? state.name : undefined;
74
- resourceInputs["owner"] = state ? state.owner : undefined;
75
- resourceInputs["projectId"] = state ? state.projectId : undefined;
76
- resourceInputs["region"] = state ? state.region : undefined;
77
- resourceInputs["size"] = state ? state.size : undefined;
78
- }
79
- else {
80
- const args = argsOrState;
81
- if ((!args || args.instanceId === undefined) && !opts.urn) {
82
- throw new Error("Missing required property 'instanceId'");
83
- }
84
- resourceInputs["instanceId"] = args ? args.instanceId : undefined;
85
- resourceInputs["name"] = args ? args.name : undefined;
86
- resourceInputs["projectId"] = args ? args.projectId : undefined;
87
- resourceInputs["region"] = args ? args.region : undefined;
88
- resourceInputs["managed"] = undefined /*out*/;
89
- resourceInputs["owner"] = undefined /*out*/;
90
- resourceInputs["size"] = undefined /*out*/;
91
- }
92
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
93
- super(DocumentdbDatabase.__pulumiType, name, resourceInputs, opts);
94
- }
95
- }
96
- exports.DocumentdbDatabase = DocumentdbDatabase;
97
- /** @internal */
98
- DocumentdbDatabase.__pulumiType = 'scaleway:index/documentdbDatabase:DocumentdbDatabase';
99
- //# sourceMappingURL=documentdbDatabase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentdbDatabase.js","sourceRoot":"","sources":["../documentdbDatabase.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAyCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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S,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;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;;AA9FL,gDA+FC;AAjFG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
@@ -1,249 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Creates and manages Scaleway Database Instances.
4
- *
5
- * ## Example Usage
6
- *
7
- * ### Example Basic
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as scaleway from "@pulumiverse/scaleway";
12
- *
13
- * const main = new scaleway.DocumentdbInstance("main", {
14
- * name: "test-documentdb-instance-basic",
15
- * nodeType: "docdb-play2-pico",
16
- * engine: "FerretDB-1",
17
- * userName: "my_initial_user",
18
- * password: "thiZ_is_v&ry_s3cret",
19
- * tags: [
20
- * "terraform-test",
21
- * "scaleway_documentdb_instance",
22
- * "minimal",
23
- * ],
24
- * volumeSizeInGb: 20,
25
- * });
26
- * ```
27
- *
28
- * ## Import
29
- *
30
- * Database Instance can be imported using the `{region}/{id}`, e.g.
31
- *
32
- * bash
33
- *
34
- * ```sh
35
- * $ pulumi import scaleway:index/documentdbInstance:DocumentdbInstance db fr-par/11111111-1111-1111-1111-111111111111
36
- * ```
37
- */
38
- export declare class DocumentdbInstance extends pulumi.CustomResource {
39
- /**
40
- * Get an existing DocumentdbInstance resource's state with the given name, ID, and optional extra
41
- * properties used to qualify the lookup.
42
- *
43
- * @param name The _unique_ name of the resulting resource.
44
- * @param id The _unique_ provider ID of the resource to lookup.
45
- * @param state Any extra arguments used during the lookup.
46
- * @param opts Optional settings to control the behavior of the CustomResource.
47
- */
48
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DocumentdbInstanceState, opts?: pulumi.CustomResourceOptions): DocumentdbInstance;
49
- /**
50
- * Returns true if the given object is an instance of DocumentdbInstance. This is designed to work even
51
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
- */
53
- static isInstance(obj: any): obj is DocumentdbInstance;
54
- /**
55
- * Database Instance's engine version (e.g. `FerretDB-1`).
56
- *
57
- * > **Important:** Updates to `engine` will recreate the Database Instance.
58
- */
59
- readonly engine: pulumi.Output<string>;
60
- /**
61
- * Enable or disable high availability for the database instance.
62
- */
63
- readonly isHaCluster: pulumi.Output<boolean | undefined>;
64
- /**
65
- * The name of the Database Instance.
66
- */
67
- readonly name: pulumi.Output<string>;
68
- /**
69
- * The type of database instance you want to create (e.g. `docdb-play2-pico`).
70
- *
71
- * > **Important:** Updates to `nodeType` will upgrade the Database Instance to the desired `nodeType` without any
72
- * interruption. Keep in mind that you cannot downgrade a Database Instance.
73
- */
74
- readonly nodeType: pulumi.Output<string>;
75
- /**
76
- * Password for the first user of the database instance.
77
- */
78
- readonly password: pulumi.Output<string | undefined>;
79
- /**
80
- * `projectId`) The ID of the project the Database
81
- * Instance is associated with.
82
- */
83
- readonly projectId: pulumi.Output<string>;
84
- /**
85
- * `region`) The region
86
- * in which the Database Instance should be created.
87
- */
88
- readonly region: pulumi.Output<string>;
89
- /**
90
- * The tags associated with the Database Instance.
91
- */
92
- readonly tags: pulumi.Output<string[] | undefined>;
93
- /**
94
- * Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service. More about the telemetry [here](https://docs.ferretdb.io/telemetry/#configure-telemetry).
95
- *
96
- * > **Important:** Updates to `isHaCluster` will recreate the Database Instance.
97
- */
98
- readonly telemetryEnabled: pulumi.Output<boolean | undefined>;
99
- /**
100
- * Identifier for the first user of the database instance.
101
- *
102
- * > **Important:** Updates to `userName` will recreate the Database Instance.
103
- */
104
- readonly userName: pulumi.Output<string | undefined>;
105
- /**
106
- * Volume size (in GB) when `volumeType` is set to `bssd`.
107
- */
108
- readonly volumeSizeInGb: pulumi.Output<number>;
109
- /**
110
- * Type of volume where data are stored (`bssd` or `lssd`).
111
- */
112
- readonly volumeType: pulumi.Output<string | undefined>;
113
- /**
114
- * Create a DocumentdbInstance resource with the given unique name, arguments, and options.
115
- *
116
- * @param name The _unique_ name of the resource.
117
- * @param args The arguments to use to populate this resource's properties.
118
- * @param opts A bag of options that control this resource's behavior.
119
- */
120
- constructor(name: string, args: DocumentdbInstanceArgs, opts?: pulumi.CustomResourceOptions);
121
- }
122
- /**
123
- * Input properties used for looking up and filtering DocumentdbInstance resources.
124
- */
125
- export interface DocumentdbInstanceState {
126
- /**
127
- * Database Instance's engine version (e.g. `FerretDB-1`).
128
- *
129
- * > **Important:** Updates to `engine` will recreate the Database Instance.
130
- */
131
- engine?: pulumi.Input<string>;
132
- /**
133
- * Enable or disable high availability for the database instance.
134
- */
135
- isHaCluster?: pulumi.Input<boolean>;
136
- /**
137
- * The name of the Database Instance.
138
- */
139
- name?: pulumi.Input<string>;
140
- /**
141
- * The type of database instance you want to create (e.g. `docdb-play2-pico`).
142
- *
143
- * > **Important:** Updates to `nodeType` will upgrade the Database Instance to the desired `nodeType` without any
144
- * interruption. Keep in mind that you cannot downgrade a Database Instance.
145
- */
146
- nodeType?: pulumi.Input<string>;
147
- /**
148
- * Password for the first user of the database instance.
149
- */
150
- password?: pulumi.Input<string>;
151
- /**
152
- * `projectId`) The ID of the project the Database
153
- * Instance is associated with.
154
- */
155
- projectId?: pulumi.Input<string>;
156
- /**
157
- * `region`) The region
158
- * in which the Database Instance should be created.
159
- */
160
- region?: pulumi.Input<string>;
161
- /**
162
- * The tags associated with the Database Instance.
163
- */
164
- tags?: pulumi.Input<pulumi.Input<string>[]>;
165
- /**
166
- * Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service. More about the telemetry [here](https://docs.ferretdb.io/telemetry/#configure-telemetry).
167
- *
168
- * > **Important:** Updates to `isHaCluster` will recreate the Database Instance.
169
- */
170
- telemetryEnabled?: pulumi.Input<boolean>;
171
- /**
172
- * Identifier for the first user of the database instance.
173
- *
174
- * > **Important:** Updates to `userName` will recreate the Database Instance.
175
- */
176
- userName?: pulumi.Input<string>;
177
- /**
178
- * Volume size (in GB) when `volumeType` is set to `bssd`.
179
- */
180
- volumeSizeInGb?: pulumi.Input<number>;
181
- /**
182
- * Type of volume where data are stored (`bssd` or `lssd`).
183
- */
184
- volumeType?: pulumi.Input<string>;
185
- }
186
- /**
187
- * The set of arguments for constructing a DocumentdbInstance resource.
188
- */
189
- export interface DocumentdbInstanceArgs {
190
- /**
191
- * Database Instance's engine version (e.g. `FerretDB-1`).
192
- *
193
- * > **Important:** Updates to `engine` will recreate the Database Instance.
194
- */
195
- engine: pulumi.Input<string>;
196
- /**
197
- * Enable or disable high availability for the database instance.
198
- */
199
- isHaCluster?: pulumi.Input<boolean>;
200
- /**
201
- * The name of the Database Instance.
202
- */
203
- name?: pulumi.Input<string>;
204
- /**
205
- * The type of database instance you want to create (e.g. `docdb-play2-pico`).
206
- *
207
- * > **Important:** Updates to `nodeType` will upgrade the Database Instance to the desired `nodeType` without any
208
- * interruption. Keep in mind that you cannot downgrade a Database Instance.
209
- */
210
- nodeType: pulumi.Input<string>;
211
- /**
212
- * Password for the first user of the database instance.
213
- */
214
- password?: pulumi.Input<string>;
215
- /**
216
- * `projectId`) The ID of the project the Database
217
- * Instance is associated with.
218
- */
219
- projectId?: pulumi.Input<string>;
220
- /**
221
- * `region`) The region
222
- * in which the Database Instance should be created.
223
- */
224
- region?: pulumi.Input<string>;
225
- /**
226
- * The tags associated with the Database Instance.
227
- */
228
- tags?: pulumi.Input<pulumi.Input<string>[]>;
229
- /**
230
- * Enable telemetry to collects basic anonymous usage data and sends them to FerretDB telemetry service. More about the telemetry [here](https://docs.ferretdb.io/telemetry/#configure-telemetry).
231
- *
232
- * > **Important:** Updates to `isHaCluster` will recreate the Database Instance.
233
- */
234
- telemetryEnabled?: pulumi.Input<boolean>;
235
- /**
236
- * Identifier for the first user of the database instance.
237
- *
238
- * > **Important:** Updates to `userName` will recreate the Database Instance.
239
- */
240
- userName?: pulumi.Input<string>;
241
- /**
242
- * Volume size (in GB) when `volumeType` is set to `bssd`.
243
- */
244
- volumeSizeInGb?: pulumi.Input<number>;
245
- /**
246
- * Type of volume where data are stored (`bssd` or `lssd`).
247
- */
248
- volumeType?: pulumi.Input<string>;
249
- }
@@ -1,115 +0,0 @@
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.DocumentdbInstance = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Creates and manages Scaleway Database Instances.
10
- *
11
- * ## Example Usage
12
- *
13
- * ### Example Basic
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as scaleway from "@pulumiverse/scaleway";
18
- *
19
- * const main = new scaleway.DocumentdbInstance("main", {
20
- * name: "test-documentdb-instance-basic",
21
- * nodeType: "docdb-play2-pico",
22
- * engine: "FerretDB-1",
23
- * userName: "my_initial_user",
24
- * password: "thiZ_is_v&ry_s3cret",
25
- * tags: [
26
- * "terraform-test",
27
- * "scaleway_documentdb_instance",
28
- * "minimal",
29
- * ],
30
- * volumeSizeInGb: 20,
31
- * });
32
- * ```
33
- *
34
- * ## Import
35
- *
36
- * Database Instance can be imported using the `{region}/{id}`, e.g.
37
- *
38
- * bash
39
- *
40
- * ```sh
41
- * $ pulumi import scaleway:index/documentdbInstance:DocumentdbInstance db fr-par/11111111-1111-1111-1111-111111111111
42
- * ```
43
- */
44
- class DocumentdbInstance extends pulumi.CustomResource {
45
- /**
46
- * Get an existing DocumentdbInstance resource's state with the given name, ID, and optional extra
47
- * properties used to qualify the lookup.
48
- *
49
- * @param name The _unique_ name of the resulting resource.
50
- * @param id The _unique_ provider ID of the resource to lookup.
51
- * @param state Any extra arguments used during the lookup.
52
- * @param opts Optional settings to control the behavior of the CustomResource.
53
- */
54
- static get(name, id, state, opts) {
55
- return new DocumentdbInstance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
56
- }
57
- /**
58
- * Returns true if the given object is an instance of DocumentdbInstance. This is designed to work even
59
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
- */
61
- static isInstance(obj) {
62
- if (obj === undefined || obj === null) {
63
- return false;
64
- }
65
- return obj['__pulumiType'] === DocumentdbInstance.__pulumiType;
66
- }
67
- constructor(name, argsOrState, opts) {
68
- let resourceInputs = {};
69
- opts = opts || {};
70
- if (opts.id) {
71
- const state = argsOrState;
72
- resourceInputs["engine"] = state ? state.engine : undefined;
73
- resourceInputs["isHaCluster"] = state ? state.isHaCluster : undefined;
74
- resourceInputs["name"] = state ? state.name : undefined;
75
- resourceInputs["nodeType"] = state ? state.nodeType : undefined;
76
- resourceInputs["password"] = state ? state.password : undefined;
77
- resourceInputs["projectId"] = state ? state.projectId : undefined;
78
- resourceInputs["region"] = state ? state.region : undefined;
79
- resourceInputs["tags"] = state ? state.tags : undefined;
80
- resourceInputs["telemetryEnabled"] = state ? state.telemetryEnabled : undefined;
81
- resourceInputs["userName"] = state ? state.userName : undefined;
82
- resourceInputs["volumeSizeInGb"] = state ? state.volumeSizeInGb : undefined;
83
- resourceInputs["volumeType"] = state ? state.volumeType : undefined;
84
- }
85
- else {
86
- const args = argsOrState;
87
- if ((!args || args.engine === undefined) && !opts.urn) {
88
- throw new Error("Missing required property 'engine'");
89
- }
90
- if ((!args || args.nodeType === undefined) && !opts.urn) {
91
- throw new Error("Missing required property 'nodeType'");
92
- }
93
- resourceInputs["engine"] = args ? args.engine : undefined;
94
- resourceInputs["isHaCluster"] = args ? args.isHaCluster : undefined;
95
- resourceInputs["name"] = args ? args.name : undefined;
96
- resourceInputs["nodeType"] = args ? args.nodeType : undefined;
97
- resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
98
- resourceInputs["projectId"] = args ? args.projectId : undefined;
99
- resourceInputs["region"] = args ? args.region : undefined;
100
- resourceInputs["tags"] = args ? args.tags : undefined;
101
- resourceInputs["telemetryEnabled"] = args ? args.telemetryEnabled : undefined;
102
- resourceInputs["userName"] = args ? args.userName : undefined;
103
- resourceInputs["volumeSizeInGb"] = args ? args.volumeSizeInGb : undefined;
104
- resourceInputs["volumeType"] = args ? args.volumeType : undefined;
105
- }
106
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
- const secretOpts = { additionalSecretOutputs: ["password"] };
108
- opts = pulumi.mergeOptions(opts, secretOpts);
109
- super(DocumentdbInstance.__pulumiType, name, resourceInputs, opts);
110
- }
111
- }
112
- exports.DocumentdbInstance = DocumentdbInstance;
113
- /** @internal */
114
- DocumentdbInstance.__pulumiType = 'scaleway:index/documentdbInstance:DocumentdbInstance';
115
- //# sourceMappingURL=documentdbInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentdbInstance.js","sourceRoot":"","sources":["../documentdbInstance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,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