@pulumiverse/scaleway 1.18.0 → 1.19.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.
- package/cockpitAlertManager.d.ts +27 -0
- package/cockpitAlertManager.js +27 -0
- package/cockpitAlertManager.js.map +1 -1
- package/getInstancePrivateNic.d.ts +1 -0
- package/getInstancePrivateNic.js.map +1 -1
- package/getRegistryImageTag.d.ts +93 -0
- package/getRegistryImageTag.js +36 -0
- package/getRegistryImageTag.js.map +1 -0
- package/index.d.ts +3 -27
- package/index.js +9 -45
- package/index.js.map +1 -1
- package/instancePrivateNic.d.ts +44 -1
- package/instancePrivateNic.js +34 -1
- package/instancePrivateNic.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +0 -88
- package/types/output.d.ts +0 -88
- package/documentdbDatabase.d.ts +0 -149
- package/documentdbDatabase.js +0 -99
- package/documentdbDatabase.js.map +0 -1
- package/documentdbInstance.d.ts +0 -249
- package/documentdbInstance.js +0 -115
- package/documentdbInstance.js.map +0 -1
- package/documentdbPrivateNetworkEndpoint.d.ts +0 -130
- package/documentdbPrivateNetworkEndpoint.js +0 -97
- package/documentdbPrivateNetworkEndpoint.js.map +0 -1
- package/documentdbPrivilege.d.ts +0 -131
- package/documentdbPrivilege.js +0 -104
- package/documentdbPrivilege.js.map +0 -1
- package/documentdbReadReplica.d.ts +0 -146
- package/documentdbReadReplica.js +0 -109
- package/documentdbReadReplica.js.map +0 -1
- package/documentdbUser.d.ts +0 -150
- package/documentdbUser.js +0 -107
- package/documentdbUser.js.map +0 -1
- package/getDocumentdbDatabase.d.ts +0 -88
- package/getDocumentdbDatabase.js +0 -58
- package/getDocumentdbDatabase.js.map +0 -1
- package/getDocumentdbInstance.d.ts +0 -77
- package/getDocumentdbInstance.js +0 -36
- package/getDocumentdbInstance.js.map +0 -1
- package/getDocumentdbLoadBalancerEndpoint.d.ts +0 -80
- package/getDocumentdbLoadBalancerEndpoint.js +0 -36
- package/getDocumentdbLoadBalancerEndpoint.js.map +0 -1
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Creates and manages Scaleway Database Private Network Endpoint.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ### Example Basic
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
14
|
-
*
|
|
15
|
-
* const pn = new scaleway.VpcPrivateNetwork("pn", {name: "my_private_network"});
|
|
16
|
-
* const instance = new scaleway.DocumentdbInstance("instance", {
|
|
17
|
-
* name: "test-document_db-basic",
|
|
18
|
-
* nodeType: "docdb-play2-pico",
|
|
19
|
-
* engine: "FerretDB-1",
|
|
20
|
-
* userName: "my_initial_user",
|
|
21
|
-
* password: "thiZ_is_v&ry_s3cret",
|
|
22
|
-
* volumeSizeInGb: 20,
|
|
23
|
-
* });
|
|
24
|
-
* const main = new scaleway.DocumentdbPrivateNetworkEndpoint("main", {
|
|
25
|
-
* instanceId: instance.id,
|
|
26
|
-
* privateNetwork: {
|
|
27
|
-
* ipNet: "172.16.32.3/22",
|
|
28
|
-
* id: pn.id,
|
|
29
|
-
* },
|
|
30
|
-
* }, {
|
|
31
|
-
* dependsOn: [pn],
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* Database Instance Endpoint can be imported using the `{region}/{endpoint_id}`, e.g.
|
|
38
|
-
*
|
|
39
|
-
* bash
|
|
40
|
-
*
|
|
41
|
-
* ```sh
|
|
42
|
-
* $ pulumi import scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint end fr-par/11111111-1111-1111-1111-111111111111
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export declare class DocumentdbPrivateNetworkEndpoint extends pulumi.CustomResource {
|
|
46
|
-
/**
|
|
47
|
-
* Get an existing DocumentdbPrivateNetworkEndpoint resource's state with the given name, ID, and optional extra
|
|
48
|
-
* properties used to qualify the lookup.
|
|
49
|
-
*
|
|
50
|
-
* @param name The _unique_ name of the resulting resource.
|
|
51
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
-
* @param state Any extra arguments used during the lookup.
|
|
53
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
-
*/
|
|
55
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DocumentdbPrivateNetworkEndpointState, opts?: pulumi.CustomResourceOptions): DocumentdbPrivateNetworkEndpoint;
|
|
56
|
-
/**
|
|
57
|
-
* Returns true if the given object is an instance of DocumentdbPrivateNetworkEndpoint. 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: any): obj is DocumentdbPrivateNetworkEndpoint;
|
|
61
|
-
/**
|
|
62
|
-
* UUID of the documentdb instance.
|
|
63
|
-
*/
|
|
64
|
-
readonly instanceId: pulumi.Output<string>;
|
|
65
|
-
/**
|
|
66
|
-
* The private network specs details. This is a list with maximum one element and supports the following attributes:
|
|
67
|
-
*/
|
|
68
|
-
readonly privateNetwork: pulumi.Output<outputs.DocumentdbPrivateNetworkEndpointPrivateNetwork | undefined>;
|
|
69
|
-
/**
|
|
70
|
-
* The region of the endpoint.
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* > **NOTE:** Please calculate your host IP.
|
|
74
|
-
* using cirhost. Otherwise, lets IPAM service
|
|
75
|
-
* handle the host IP on the network.
|
|
76
|
-
*/
|
|
77
|
-
readonly region: pulumi.Output<string>;
|
|
78
|
-
/**
|
|
79
|
-
* Create a DocumentdbPrivateNetworkEndpoint resource with the given unique name, arguments, and options.
|
|
80
|
-
*
|
|
81
|
-
* @param name The _unique_ name of the resource.
|
|
82
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
-
*/
|
|
85
|
-
constructor(name: string, args: DocumentdbPrivateNetworkEndpointArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Input properties used for looking up and filtering DocumentdbPrivateNetworkEndpoint resources.
|
|
89
|
-
*/
|
|
90
|
-
export interface DocumentdbPrivateNetworkEndpointState {
|
|
91
|
-
/**
|
|
92
|
-
* UUID of the documentdb instance.
|
|
93
|
-
*/
|
|
94
|
-
instanceId?: pulumi.Input<string>;
|
|
95
|
-
/**
|
|
96
|
-
* The private network specs details. This is a list with maximum one element and supports the following attributes:
|
|
97
|
-
*/
|
|
98
|
-
privateNetwork?: pulumi.Input<inputs.DocumentdbPrivateNetworkEndpointPrivateNetwork>;
|
|
99
|
-
/**
|
|
100
|
-
* The region of the endpoint.
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* > **NOTE:** Please calculate your host IP.
|
|
104
|
-
* using cirhost. Otherwise, lets IPAM service
|
|
105
|
-
* handle the host IP on the network.
|
|
106
|
-
*/
|
|
107
|
-
region?: pulumi.Input<string>;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* The set of arguments for constructing a DocumentdbPrivateNetworkEndpoint resource.
|
|
111
|
-
*/
|
|
112
|
-
export interface DocumentdbPrivateNetworkEndpointArgs {
|
|
113
|
-
/**
|
|
114
|
-
* UUID of the documentdb instance.
|
|
115
|
-
*/
|
|
116
|
-
instanceId: pulumi.Input<string>;
|
|
117
|
-
/**
|
|
118
|
-
* The private network specs details. This is a list with maximum one element and supports the following attributes:
|
|
119
|
-
*/
|
|
120
|
-
privateNetwork?: pulumi.Input<inputs.DocumentdbPrivateNetworkEndpointPrivateNetwork>;
|
|
121
|
-
/**
|
|
122
|
-
* The region of the endpoint.
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* > **NOTE:** Please calculate your host IP.
|
|
126
|
-
* using cirhost. Otherwise, lets IPAM service
|
|
127
|
-
* handle the host IP on the network.
|
|
128
|
-
*/
|
|
129
|
-
region?: pulumi.Input<string>;
|
|
130
|
-
}
|
|
@@ -1,97 +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.DocumentdbPrivateNetworkEndpoint = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Creates and manages Scaleway Database Private Network Endpoint.
|
|
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 pn = new scaleway.VpcPrivateNetwork("pn", {name: "my_private_network"});
|
|
20
|
-
* const instance = new scaleway.DocumentdbInstance("instance", {
|
|
21
|
-
* name: "test-document_db-basic",
|
|
22
|
-
* nodeType: "docdb-play2-pico",
|
|
23
|
-
* engine: "FerretDB-1",
|
|
24
|
-
* userName: "my_initial_user",
|
|
25
|
-
* password: "thiZ_is_v&ry_s3cret",
|
|
26
|
-
* volumeSizeInGb: 20,
|
|
27
|
-
* });
|
|
28
|
-
* const main = new scaleway.DocumentdbPrivateNetworkEndpoint("main", {
|
|
29
|
-
* instanceId: instance.id,
|
|
30
|
-
* privateNetwork: {
|
|
31
|
-
* ipNet: "172.16.32.3/22",
|
|
32
|
-
* id: pn.id,
|
|
33
|
-
* },
|
|
34
|
-
* }, {
|
|
35
|
-
* dependsOn: [pn],
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* ## Import
|
|
40
|
-
*
|
|
41
|
-
* Database Instance Endpoint can be imported using the `{region}/{endpoint_id}`, e.g.
|
|
42
|
-
*
|
|
43
|
-
* bash
|
|
44
|
-
*
|
|
45
|
-
* ```sh
|
|
46
|
-
* $ pulumi import scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint end fr-par/11111111-1111-1111-1111-111111111111
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
class DocumentdbPrivateNetworkEndpoint extends pulumi.CustomResource {
|
|
50
|
-
/**
|
|
51
|
-
* Get an existing DocumentdbPrivateNetworkEndpoint resource's state with the given name, ID, and optional extra
|
|
52
|
-
* properties used to qualify the lookup.
|
|
53
|
-
*
|
|
54
|
-
* @param name The _unique_ name of the resulting resource.
|
|
55
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
-
* @param state Any extra arguments used during the lookup.
|
|
57
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
-
*/
|
|
59
|
-
static get(name, id, state, opts) {
|
|
60
|
-
return new DocumentdbPrivateNetworkEndpoint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Returns true if the given object is an instance of DocumentdbPrivateNetworkEndpoint. This is designed to work even
|
|
64
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
-
*/
|
|
66
|
-
static isInstance(obj) {
|
|
67
|
-
if (obj === undefined || obj === null) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
return obj['__pulumiType'] === DocumentdbPrivateNetworkEndpoint.__pulumiType;
|
|
71
|
-
}
|
|
72
|
-
constructor(name, argsOrState, opts) {
|
|
73
|
-
let resourceInputs = {};
|
|
74
|
-
opts = opts || {};
|
|
75
|
-
if (opts.id) {
|
|
76
|
-
const state = argsOrState;
|
|
77
|
-
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
78
|
-
resourceInputs["privateNetwork"] = state ? state.privateNetwork : undefined;
|
|
79
|
-
resourceInputs["region"] = state ? state.region : undefined;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
const args = argsOrState;
|
|
83
|
-
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'instanceId'");
|
|
85
|
-
}
|
|
86
|
-
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
87
|
-
resourceInputs["privateNetwork"] = args ? args.privateNetwork : undefined;
|
|
88
|
-
resourceInputs["region"] = args ? args.region : undefined;
|
|
89
|
-
}
|
|
90
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
-
super(DocumentdbPrivateNetworkEndpoint.__pulumiType, name, resourceInputs, opts);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.DocumentdbPrivateNetworkEndpoint = DocumentdbPrivateNetworkEndpoint;
|
|
95
|
-
/** @internal */
|
|
96
|
-
DocumentdbPrivateNetworkEndpoint.__pulumiType = 'scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint';
|
|
97
|
-
//# sourceMappingURL=documentdbPrivateNetworkEndpoint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentdbPrivateNetworkEndpoint.js","sourceRoot":"","sources":["../documentdbPrivateNetworkEndpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG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AS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AAzEL,4EA0EC;AA5DG,gBAAgB;AACO,6CAAY,GAAG,kFAAkF,CAAC"}
|
package/documentdbPrivilege.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Create and manage Scaleway DocumentDB database privilege.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
10
|
-
*
|
|
11
|
-
* const instance = new scaleway.DocumentdbInstance("instance", {
|
|
12
|
-
* name: "test-document_db-basic",
|
|
13
|
-
* nodeType: "docdb-play2-pico",
|
|
14
|
-
* engine: "FerretDB-1",
|
|
15
|
-
* userName: "my_initial_user",
|
|
16
|
-
* password: "thiZ_is_v&ry_s3cret",
|
|
17
|
-
* volumeSizeInGb: 20,
|
|
18
|
-
* });
|
|
19
|
-
* const main = new scaleway.DocumentdbPrivilege("main", {
|
|
20
|
-
* instanceId: instance.id,
|
|
21
|
-
* userName: "my-db-user",
|
|
22
|
-
* databaseName: "my-db-name",
|
|
23
|
-
* permission: "all",
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ## Import
|
|
28
|
-
*
|
|
29
|
-
* The user privileges can be imported using the `{region}/{instance_id}/{database_name}/{user_name}`, e.g.
|
|
30
|
-
*
|
|
31
|
-
* bash
|
|
32
|
-
*
|
|
33
|
-
* ```sh
|
|
34
|
-
* $ pulumi import scaleway:index/documentdbPrivilege:DocumentdbPrivilege o fr-par/11111111-1111-1111-1111-111111111111/database_name/foo
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare class DocumentdbPrivilege extends pulumi.CustomResource {
|
|
38
|
-
/**
|
|
39
|
-
* Get an existing DocumentdbPrivilege 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?: DocumentdbPrivilegeState, opts?: pulumi.CustomResourceOptions): DocumentdbPrivilege;
|
|
48
|
-
/**
|
|
49
|
-
* Returns true if the given object is an instance of DocumentdbPrivilege. 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 DocumentdbPrivilege;
|
|
53
|
-
/**
|
|
54
|
-
* Name of the database (e.g. `my-db-name`).
|
|
55
|
-
*/
|
|
56
|
-
readonly databaseName: pulumi.Output<string>;
|
|
57
|
-
/**
|
|
58
|
-
* UUID of the rdb instance.
|
|
59
|
-
*/
|
|
60
|
-
readonly instanceId: pulumi.Output<string>;
|
|
61
|
-
/**
|
|
62
|
-
* Permission to set. Valid values are `readonly`, `readwrite`, `all`, `custom` and `none`.
|
|
63
|
-
*/
|
|
64
|
-
readonly permission: pulumi.Output<string>;
|
|
65
|
-
/**
|
|
66
|
-
* `region`) The region in which the resource exists.
|
|
67
|
-
*/
|
|
68
|
-
readonly region: pulumi.Output<string>;
|
|
69
|
-
/**
|
|
70
|
-
* Name of the user (e.g. `my-db-user`).
|
|
71
|
-
*/
|
|
72
|
-
readonly userName: pulumi.Output<string>;
|
|
73
|
-
/**
|
|
74
|
-
* Create a DocumentdbPrivilege resource with the given unique name, arguments, and options.
|
|
75
|
-
*
|
|
76
|
-
* @param name The _unique_ name of the resource.
|
|
77
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
-
*/
|
|
80
|
-
constructor(name: string, args: DocumentdbPrivilegeArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Input properties used for looking up and filtering DocumentdbPrivilege resources.
|
|
84
|
-
*/
|
|
85
|
-
export interface DocumentdbPrivilegeState {
|
|
86
|
-
/**
|
|
87
|
-
* Name of the database (e.g. `my-db-name`).
|
|
88
|
-
*/
|
|
89
|
-
databaseName?: pulumi.Input<string>;
|
|
90
|
-
/**
|
|
91
|
-
* UUID of the rdb instance.
|
|
92
|
-
*/
|
|
93
|
-
instanceId?: pulumi.Input<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Permission to set. Valid values are `readonly`, `readwrite`, `all`, `custom` and `none`.
|
|
96
|
-
*/
|
|
97
|
-
permission?: pulumi.Input<string>;
|
|
98
|
-
/**
|
|
99
|
-
* `region`) The region in which the resource exists.
|
|
100
|
-
*/
|
|
101
|
-
region?: pulumi.Input<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Name of the user (e.g. `my-db-user`).
|
|
104
|
-
*/
|
|
105
|
-
userName?: pulumi.Input<string>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* The set of arguments for constructing a DocumentdbPrivilege resource.
|
|
109
|
-
*/
|
|
110
|
-
export interface DocumentdbPrivilegeArgs {
|
|
111
|
-
/**
|
|
112
|
-
* Name of the database (e.g. `my-db-name`).
|
|
113
|
-
*/
|
|
114
|
-
databaseName: pulumi.Input<string>;
|
|
115
|
-
/**
|
|
116
|
-
* UUID of the rdb instance.
|
|
117
|
-
*/
|
|
118
|
-
instanceId: pulumi.Input<string>;
|
|
119
|
-
/**
|
|
120
|
-
* Permission to set. Valid values are `readonly`, `readwrite`, `all`, `custom` and `none`.
|
|
121
|
-
*/
|
|
122
|
-
permission: pulumi.Input<string>;
|
|
123
|
-
/**
|
|
124
|
-
* `region`) The region in which the resource exists.
|
|
125
|
-
*/
|
|
126
|
-
region?: pulumi.Input<string>;
|
|
127
|
-
/**
|
|
128
|
-
* Name of the user (e.g. `my-db-user`).
|
|
129
|
-
*/
|
|
130
|
-
userName: pulumi.Input<string>;
|
|
131
|
-
}
|
package/documentdbPrivilege.js
DELETED
|
@@ -1,104 +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.DocumentdbPrivilege = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Create and manage Scaleway DocumentDB database privilege.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
16
|
-
*
|
|
17
|
-
* const instance = new scaleway.DocumentdbInstance("instance", {
|
|
18
|
-
* name: "test-document_db-basic",
|
|
19
|
-
* nodeType: "docdb-play2-pico",
|
|
20
|
-
* engine: "FerretDB-1",
|
|
21
|
-
* userName: "my_initial_user",
|
|
22
|
-
* password: "thiZ_is_v&ry_s3cret",
|
|
23
|
-
* volumeSizeInGb: 20,
|
|
24
|
-
* });
|
|
25
|
-
* const main = new scaleway.DocumentdbPrivilege("main", {
|
|
26
|
-
* instanceId: instance.id,
|
|
27
|
-
* userName: "my-db-user",
|
|
28
|
-
* databaseName: "my-db-name",
|
|
29
|
-
* permission: "all",
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* ## Import
|
|
34
|
-
*
|
|
35
|
-
* The user privileges can be imported using the `{region}/{instance_id}/{database_name}/{user_name}`, e.g.
|
|
36
|
-
*
|
|
37
|
-
* bash
|
|
38
|
-
*
|
|
39
|
-
* ```sh
|
|
40
|
-
* $ pulumi import scaleway:index/documentdbPrivilege:DocumentdbPrivilege o fr-par/11111111-1111-1111-1111-111111111111/database_name/foo
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
class DocumentdbPrivilege extends pulumi.CustomResource {
|
|
44
|
-
/**
|
|
45
|
-
* Get an existing DocumentdbPrivilege 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 DocumentdbPrivilege(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns true if the given object is an instance of DocumentdbPrivilege. 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'] === DocumentdbPrivilege.__pulumiType;
|
|
65
|
-
}
|
|
66
|
-
constructor(name, argsOrState, opts) {
|
|
67
|
-
let resourceInputs = {};
|
|
68
|
-
opts = opts || {};
|
|
69
|
-
if (opts.id) {
|
|
70
|
-
const state = argsOrState;
|
|
71
|
-
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
72
|
-
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
73
|
-
resourceInputs["permission"] = state ? state.permission : undefined;
|
|
74
|
-
resourceInputs["region"] = state ? state.region : undefined;
|
|
75
|
-
resourceInputs["userName"] = state ? state.userName : undefined;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
const args = argsOrState;
|
|
79
|
-
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
80
|
-
throw new Error("Missing required property 'databaseName'");
|
|
81
|
-
}
|
|
82
|
-
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
83
|
-
throw new Error("Missing required property 'instanceId'");
|
|
84
|
-
}
|
|
85
|
-
if ((!args || args.permission === undefined) && !opts.urn) {
|
|
86
|
-
throw new Error("Missing required property 'permission'");
|
|
87
|
-
}
|
|
88
|
-
if ((!args || args.userName === undefined) && !opts.urn) {
|
|
89
|
-
throw new Error("Missing required property 'userName'");
|
|
90
|
-
}
|
|
91
|
-
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
92
|
-
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
93
|
-
resourceInputs["permission"] = args ? args.permission : undefined;
|
|
94
|
-
resourceInputs["region"] = args ? args.region : undefined;
|
|
95
|
-
resourceInputs["userName"] = args ? args.userName : undefined;
|
|
96
|
-
}
|
|
97
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
-
super(DocumentdbPrivilege.__pulumiType, name, resourceInputs, opts);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.DocumentdbPrivilege = DocumentdbPrivilege;
|
|
102
|
-
/** @internal */
|
|
103
|
-
DocumentdbPrivilege.__pulumiType = 'scaleway:index/documentdbPrivilege:DocumentdbPrivilege';
|
|
104
|
-
//# sourceMappingURL=documentdbPrivilege.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentdbPrivilege.js","sourceRoot":"","sources":["../documentdbPrivilege.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC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CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAzFL,kDA0FC;AA5EG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* Creates and manages Scaleway DocumentDB Database read replicas.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ### Basic
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
14
|
-
*
|
|
15
|
-
* const replica = new scaleway.DocumentdbReadReplica("replica", {
|
|
16
|
-
* instanceId: "11111111-1111-1111-1111-111111111111",
|
|
17
|
-
* directAccess: {},
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* ### Private network
|
|
22
|
-
*
|
|
23
|
-
* ```typescript
|
|
24
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
-
* import * as scaleway from "@pulumiverse/scaleway";
|
|
26
|
-
*
|
|
27
|
-
* const pn = new scaleway.VpcPrivateNetwork("pn", {});
|
|
28
|
-
* const instance = new scaleway.DocumentdbInstance("instance", {
|
|
29
|
-
* name: "document_db-read-replica-basic",
|
|
30
|
-
* nodeType: "docdb-play2-pico",
|
|
31
|
-
* engine: "FerretDB-1",
|
|
32
|
-
* userName: "my_initial_user",
|
|
33
|
-
* password: "thiZ_is_v&ry_s3cret",
|
|
34
|
-
* volumeSizeInGb: 20,
|
|
35
|
-
* });
|
|
36
|
-
* const replica = new scaleway.DocumentdbReadReplica("replica", {
|
|
37
|
-
* instanceId: instance.id,
|
|
38
|
-
* privateNetwork: {
|
|
39
|
-
* privateNetworkId: pn.id,
|
|
40
|
-
* serviceIp: "192.168.1.254/24",
|
|
41
|
-
* },
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* ## Import
|
|
46
|
-
*
|
|
47
|
-
* Database Read replica can be imported using the `{region}/{id}`, e.g.
|
|
48
|
-
*
|
|
49
|
-
* bash
|
|
50
|
-
*
|
|
51
|
-
* ```sh
|
|
52
|
-
* $ pulumi import scaleway:index/documentdbReadReplica:DocumentdbReadReplica rr fr-par/11111111-1111-1111-1111-111111111111
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare class DocumentdbReadReplica extends pulumi.CustomResource {
|
|
56
|
-
/**
|
|
57
|
-
* Get an existing DocumentdbReadReplica resource's state with the given name, ID, and optional extra
|
|
58
|
-
* properties used to qualify the lookup.
|
|
59
|
-
*
|
|
60
|
-
* @param name The _unique_ name of the resulting resource.
|
|
61
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
-
* @param state Any extra arguments used during the lookup.
|
|
63
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
-
*/
|
|
65
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DocumentdbReadReplicaState, opts?: pulumi.CustomResourceOptions): DocumentdbReadReplica;
|
|
66
|
-
/**
|
|
67
|
-
* Returns true if the given object is an instance of DocumentdbReadReplica. This is designed to work even
|
|
68
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
-
*/
|
|
70
|
-
static isInstance(obj: any): obj is DocumentdbReadReplica;
|
|
71
|
-
/**
|
|
72
|
-
* Creates a direct access endpoint to documentdb replica.
|
|
73
|
-
*/
|
|
74
|
-
readonly directAccess: pulumi.Output<outputs.DocumentdbReadReplicaDirectAccess | undefined>;
|
|
75
|
-
/**
|
|
76
|
-
* UUID of the documentdb instance.
|
|
77
|
-
*
|
|
78
|
-
* > **Important:** The replica musts contains at least one of `directAccess` or `privateNetwork`. It can contain both.
|
|
79
|
-
*/
|
|
80
|
-
readonly instanceId: pulumi.Output<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Create an endpoint in a private network.
|
|
83
|
-
*/
|
|
84
|
-
readonly privateNetwork: pulumi.Output<outputs.DocumentdbReadReplicaPrivateNetwork | undefined>;
|
|
85
|
-
/**
|
|
86
|
-
* `region`) The region
|
|
87
|
-
* in which the Database read replica should be created.
|
|
88
|
-
*/
|
|
89
|
-
readonly region: pulumi.Output<string>;
|
|
90
|
-
/**
|
|
91
|
-
* Create a DocumentdbReadReplica resource with the given unique name, arguments, and options.
|
|
92
|
-
*
|
|
93
|
-
* @param name The _unique_ name of the resource.
|
|
94
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
-
*/
|
|
97
|
-
constructor(name: string, args: DocumentdbReadReplicaArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Input properties used for looking up and filtering DocumentdbReadReplica resources.
|
|
101
|
-
*/
|
|
102
|
-
export interface DocumentdbReadReplicaState {
|
|
103
|
-
/**
|
|
104
|
-
* Creates a direct access endpoint to documentdb replica.
|
|
105
|
-
*/
|
|
106
|
-
directAccess?: pulumi.Input<inputs.DocumentdbReadReplicaDirectAccess>;
|
|
107
|
-
/**
|
|
108
|
-
* UUID of the documentdb instance.
|
|
109
|
-
*
|
|
110
|
-
* > **Important:** The replica musts contains at least one of `directAccess` or `privateNetwork`. It can contain both.
|
|
111
|
-
*/
|
|
112
|
-
instanceId?: pulumi.Input<string>;
|
|
113
|
-
/**
|
|
114
|
-
* Create an endpoint in a private network.
|
|
115
|
-
*/
|
|
116
|
-
privateNetwork?: pulumi.Input<inputs.DocumentdbReadReplicaPrivateNetwork>;
|
|
117
|
-
/**
|
|
118
|
-
* `region`) The region
|
|
119
|
-
* in which the Database read replica should be created.
|
|
120
|
-
*/
|
|
121
|
-
region?: pulumi.Input<string>;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* The set of arguments for constructing a DocumentdbReadReplica resource.
|
|
125
|
-
*/
|
|
126
|
-
export interface DocumentdbReadReplicaArgs {
|
|
127
|
-
/**
|
|
128
|
-
* Creates a direct access endpoint to documentdb replica.
|
|
129
|
-
*/
|
|
130
|
-
directAccess?: pulumi.Input<inputs.DocumentdbReadReplicaDirectAccess>;
|
|
131
|
-
/**
|
|
132
|
-
* UUID of the documentdb instance.
|
|
133
|
-
*
|
|
134
|
-
* > **Important:** The replica musts contains at least one of `directAccess` or `privateNetwork`. It can contain both.
|
|
135
|
-
*/
|
|
136
|
-
instanceId: pulumi.Input<string>;
|
|
137
|
-
/**
|
|
138
|
-
* Create an endpoint in a private network.
|
|
139
|
-
*/
|
|
140
|
-
privateNetwork?: pulumi.Input<inputs.DocumentdbReadReplicaPrivateNetwork>;
|
|
141
|
-
/**
|
|
142
|
-
* `region`) The region
|
|
143
|
-
* in which the Database read replica should be created.
|
|
144
|
-
*/
|
|
145
|
-
region?: pulumi.Input<string>;
|
|
146
|
-
}
|