@pulumi/linode 3.8.0 → 3.9.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/databaseAccessControls.d.ts +102 -0
- package/databaseAccessControls.js +92 -0
- package/databaseAccessControls.js.map +1 -0
- package/databaseMongodb.d.ts +377 -0
- package/databaseMongodb.js +209 -0
- package/databaseMongodb.js.map +1 -0
- package/databaseMysql.d.ts +38 -6
- package/databaseMysql.js +23 -2
- package/databaseMysql.js.map +1 -1
- package/databasePostgresql.d.ts +353 -0
- package/databasePostgresql.js +199 -0
- package/databasePostgresql.js.map +1 -0
- package/firewall.d.ts +2 -1
- package/firewall.js +2 -1
- package/firewall.js.map +1 -1
- package/getDatabaseBackups.d.ts +116 -0
- package/getDatabaseBackups.js +71 -0
- package/getDatabaseBackups.js.map +1 -0
- package/getDatabaseEngines.d.ts +0 -2
- package/getDatabaseEngines.js +0 -2
- package/getDatabaseEngines.js.map +1 -1
- package/getDatabaseMongodb.d.ts +137 -0
- package/getDatabaseMongodb.js +103 -0
- package/getDatabaseMongodb.js.map +1 -0
- package/getDatabaseMysql.d.ts +125 -0
- package/getDatabaseMysql.js +95 -0
- package/getDatabaseMysql.js.map +1 -0
- package/getDatabaseMysqlBackups.d.ts +1 -1
- package/getDatabaseMysqlBackups.js +1 -1
- package/getDatabasePostgresql.d.ts +129 -0
- package/getDatabasePostgresql.js +97 -0
- package/getDatabasePostgresql.js.map +1 -0
- package/getDatabases.d.ts +0 -2
- package/getDatabases.js +0 -2
- package/getDatabases.js.map +1 -1
- package/getIpv6Range.d.ts +62 -0
- package/getIpv6Range.js +49 -0
- package/getIpv6Range.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.js +25 -0
- package/index.js.map +1 -1
- package/instance.d.ts +15 -3
- package/instance.js +2 -0
- package/instance.js.map +1 -1
- package/instanceIp.d.ts +2 -1
- package/instanceIp.js +2 -1
- package/instanceIp.js.map +1 -1
- package/instanceSharedIps.d.ts +60 -0
- package/instanceSharedIps.js +57 -0
- package/instanceSharedIps.js.map +1 -0
- package/ipv6Range.d.ts +3 -3
- package/lkeCluster.d.ts +6 -6
- package/lkeCluster.js +6 -6
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/stackScript.d.ts +1 -1
- package/stackScript.js +1 -1
- package/types/input.d.ts +69 -17
- package/types/output.d.ts +65 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages the access control for a Linode Database. Only one `linode.DatabaseAccessControls` resource should be defined per-database.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* Grant a Linode access to a database:
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as linode from "@pulumi/linode";
|
|
12
|
+
*
|
|
13
|
+
* const my_instance = new linode.Instance("my-instance", {
|
|
14
|
+
* label: "myinstance",
|
|
15
|
+
* region: "us-southeast",
|
|
16
|
+
* type: "g6-nanode-1",
|
|
17
|
+
* image: "linode/alpine3.14",
|
|
18
|
+
* });
|
|
19
|
+
* const my_db = new linode.DatabaseMysql("my-db", {
|
|
20
|
+
* label: "mydatabase",
|
|
21
|
+
* engineId: "mysql/8.0.26",
|
|
22
|
+
* region: "us-southeast",
|
|
23
|
+
* type: "g6-nanode-1",
|
|
24
|
+
* });
|
|
25
|
+
* const my_access = new linode.DatabaseAccessControls("my-access", {
|
|
26
|
+
* databaseId: my_db.id,
|
|
27
|
+
* databaseType: "mysql",
|
|
28
|
+
* allowLists: [my_instance.ipAddress],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class DatabaseAccessControls extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing DatabaseAccessControls resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseAccessControlsState, opts?: pulumi.CustomResourceOptions): DatabaseAccessControls;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of DatabaseAccessControls. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj: any): obj is DatabaseAccessControls;
|
|
48
|
+
/**
|
|
49
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
50
|
+
*/
|
|
51
|
+
readonly allowLists: pulumi.Output<string[]>;
|
|
52
|
+
/**
|
|
53
|
+
* The unique ID of the target database.
|
|
54
|
+
*/
|
|
55
|
+
readonly databaseId: pulumi.Output<number>;
|
|
56
|
+
/**
|
|
57
|
+
* The unique type of the target database. (`mysql`, `mongodb`, `postgresql`)
|
|
58
|
+
*/
|
|
59
|
+
readonly databaseType: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Create a DatabaseAccessControls resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: DatabaseAccessControlsArgs, opts?: pulumi.CustomResourceOptions);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Input properties used for looking up and filtering DatabaseAccessControls resources.
|
|
71
|
+
*/
|
|
72
|
+
export interface DatabaseAccessControlsState {
|
|
73
|
+
/**
|
|
74
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
75
|
+
*/
|
|
76
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
77
|
+
/**
|
|
78
|
+
* The unique ID of the target database.
|
|
79
|
+
*/
|
|
80
|
+
databaseId?: pulumi.Input<number>;
|
|
81
|
+
/**
|
|
82
|
+
* The unique type of the target database. (`mysql`, `mongodb`, `postgresql`)
|
|
83
|
+
*/
|
|
84
|
+
databaseType?: pulumi.Input<string>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The set of arguments for constructing a DatabaseAccessControls resource.
|
|
88
|
+
*/
|
|
89
|
+
export interface DatabaseAccessControlsArgs {
|
|
90
|
+
/**
|
|
91
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
92
|
+
*/
|
|
93
|
+
allowLists: pulumi.Input<pulumi.Input<string>[]>;
|
|
94
|
+
/**
|
|
95
|
+
* The unique ID of the target database.
|
|
96
|
+
*/
|
|
97
|
+
databaseId: pulumi.Input<number>;
|
|
98
|
+
/**
|
|
99
|
+
* The unique type of the target database. (`mysql`, `mongodb`, `postgresql`)
|
|
100
|
+
*/
|
|
101
|
+
databaseType: pulumi.Input<string>;
|
|
102
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.DatabaseAccessControls = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages the access control for a Linode Database. Only one `linode.DatabaseAccessControls` resource should be defined per-database.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Grant a Linode access to a database:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as linode from "@pulumi/linode";
|
|
18
|
+
*
|
|
19
|
+
* const my_instance = new linode.Instance("my-instance", {
|
|
20
|
+
* label: "myinstance",
|
|
21
|
+
* region: "us-southeast",
|
|
22
|
+
* type: "g6-nanode-1",
|
|
23
|
+
* image: "linode/alpine3.14",
|
|
24
|
+
* });
|
|
25
|
+
* const my_db = new linode.DatabaseMysql("my-db", {
|
|
26
|
+
* label: "mydatabase",
|
|
27
|
+
* engineId: "mysql/8.0.26",
|
|
28
|
+
* region: "us-southeast",
|
|
29
|
+
* type: "g6-nanode-1",
|
|
30
|
+
* });
|
|
31
|
+
* const my_access = new linode.DatabaseAccessControls("my-access", {
|
|
32
|
+
* databaseId: my_db.id,
|
|
33
|
+
* databaseType: "mysql",
|
|
34
|
+
* allowLists: [my_instance.ipAddress],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
class DatabaseAccessControls extends pulumi.CustomResource {
|
|
39
|
+
constructor(name, argsOrState, opts) {
|
|
40
|
+
let resourceInputs = {};
|
|
41
|
+
opts = opts || {};
|
|
42
|
+
if (opts.id) {
|
|
43
|
+
const state = argsOrState;
|
|
44
|
+
resourceInputs["allowLists"] = state ? state.allowLists : undefined;
|
|
45
|
+
resourceInputs["databaseId"] = state ? state.databaseId : undefined;
|
|
46
|
+
resourceInputs["databaseType"] = state ? state.databaseType : undefined;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const args = argsOrState;
|
|
50
|
+
if ((!args || args.allowLists === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'allowLists'");
|
|
52
|
+
}
|
|
53
|
+
if ((!args || args.databaseId === undefined) && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'databaseId'");
|
|
55
|
+
}
|
|
56
|
+
if ((!args || args.databaseType === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'databaseType'");
|
|
58
|
+
}
|
|
59
|
+
resourceInputs["allowLists"] = args ? args.allowLists : undefined;
|
|
60
|
+
resourceInputs["databaseId"] = args ? args.databaseId : undefined;
|
|
61
|
+
resourceInputs["databaseType"] = args ? args.databaseType : undefined;
|
|
62
|
+
}
|
|
63
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
64
|
+
super(DatabaseAccessControls.__pulumiType, name, resourceInputs, opts);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing DatabaseAccessControls resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param state Any extra arguments used during the lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name, id, state, opts) {
|
|
76
|
+
return new DatabaseAccessControls(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of DatabaseAccessControls. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj) {
|
|
83
|
+
if (obj === undefined || obj === null) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return obj['__pulumiType'] === DatabaseAccessControls.__pulumiType;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.DatabaseAccessControls = DatabaseAccessControls;
|
|
90
|
+
/** @internal */
|
|
91
|
+
DatabaseAccessControls.__pulumiType = 'linode:index/databaseAccessControls:DatabaseAccessControls';
|
|
92
|
+
//# sourceMappingURL=databaseAccessControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databaseAccessControls.js","sourceRoot":"","sources":["../databaseAccessControls.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAiD7D,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;aAAM;YACH,MAAM,IAAI,GAAG,WAAqD,CAAC;YACnE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,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,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;;AA1BL,wDA2EC;AA7DG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides a Linode Mongo Database resource. This can be used to create, modify, and delete Linode MongoDB Databases.
|
|
5
|
+
* For more information, see the [Linode APIv4 docs](https://www.linode.com/docs/api/databases/).
|
|
6
|
+
*
|
|
7
|
+
* Please keep in mind that Managed Databases can take up to an hour to provision.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* Creating a simple MongoDB database instance:
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as linode from "@pulumi/linode";
|
|
16
|
+
*
|
|
17
|
+
* const foobar = new linode.DatabaseMongodb("foobar", {
|
|
18
|
+
* engineId: "mongodb/4.4.10",
|
|
19
|
+
* label: "mydatabase",
|
|
20
|
+
* region: "us-southeast",
|
|
21
|
+
* type: "g6-nanode-1",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Creating a complex MongoDB database instance:
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as linode from "@pulumi/linode";
|
|
30
|
+
*
|
|
31
|
+
* const foobar = new linode.DatabaseMongodb("foobar", {
|
|
32
|
+
* allowLists: ["0.0.0.0/0"],
|
|
33
|
+
* clusterSize: 3,
|
|
34
|
+
* compressionType: "zlib",
|
|
35
|
+
* encrypted: true,
|
|
36
|
+
* engineId: "mongodb/4.4.10",
|
|
37
|
+
* label: "mydatabase",
|
|
38
|
+
* region: "us-southeast",
|
|
39
|
+
* sslConnection: true,
|
|
40
|
+
* storageEngine: "wiredtiger",
|
|
41
|
+
* type: "g6-nanode-1",
|
|
42
|
+
* updates: {
|
|
43
|
+
* dayOfWeek: "saturday",
|
|
44
|
+
* duration: 1,
|
|
45
|
+
* frequency: "monthly",
|
|
46
|
+
* hourOfDay: 22,
|
|
47
|
+
* weekOfMonth: 2,
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
* ## updates
|
|
52
|
+
*
|
|
53
|
+
* The following arguments are supported in the `updates` specification block:
|
|
54
|
+
*
|
|
55
|
+
* * `dayOfWeek` - (Required) The day to perform maintenance. (`monday`, `tuesday`, ...)
|
|
56
|
+
*
|
|
57
|
+
* * `duration` - (Required) The maximum maintenance window time in hours. (`1`..`3`)
|
|
58
|
+
*
|
|
59
|
+
* * `frequency` - (Required) Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
|
|
60
|
+
*
|
|
61
|
+
* * `hourOfDay` - (Required) The hour to begin maintenance based in UTC time. (`0`..`23`)
|
|
62
|
+
*
|
|
63
|
+
* * `weekOfMonth` - (Optional) The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
|
|
64
|
+
*
|
|
65
|
+
* ## Attributes
|
|
66
|
+
*
|
|
67
|
+
* In addition to all arguments above, the following attributes are exported:
|
|
68
|
+
*
|
|
69
|
+
* * `id` - The ID of the Managed Database.
|
|
70
|
+
*
|
|
71
|
+
* * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
72
|
+
*
|
|
73
|
+
* * `created` - When this Managed Database was created.
|
|
74
|
+
*
|
|
75
|
+
* * `engine` - The Managed Database engine. (e.g. `mongodb`)
|
|
76
|
+
*
|
|
77
|
+
* * `hostPrimary` - The primary host for the Managed Database.
|
|
78
|
+
*
|
|
79
|
+
* * `hostSecondary` - The secondary/private network host for the Managed Database.
|
|
80
|
+
*
|
|
81
|
+
* * `peers` - A set of peer addresses for this Database.
|
|
82
|
+
*
|
|
83
|
+
* * `port` - The access port for this Managed Database.
|
|
84
|
+
*
|
|
85
|
+
* * `replicaSet` - Label for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same replica set.
|
|
86
|
+
*
|
|
87
|
+
* * `rootPassword` - The randomly-generated root password for the Managed Database instance.
|
|
88
|
+
*
|
|
89
|
+
* * `rootUsername` - The root username for the Managed Database instance.
|
|
90
|
+
*
|
|
91
|
+
* * `status` - The operating status of the Managed Database.
|
|
92
|
+
*
|
|
93
|
+
* * `updated` - When this Managed Database was last updated.
|
|
94
|
+
*
|
|
95
|
+
* * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
|
|
96
|
+
*
|
|
97
|
+
* ## Import
|
|
98
|
+
*
|
|
99
|
+
* Linode MongoDB Databases can be imported using the `id`, e.g.
|
|
100
|
+
*
|
|
101
|
+
* ```sh
|
|
102
|
+
* $ pulumi import linode:index/databaseMongodb:DatabaseMongodb foobar 1234567
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
export declare class DatabaseMongodb extends pulumi.CustomResource {
|
|
106
|
+
/**
|
|
107
|
+
* Get an existing DatabaseMongodb resource's state with the given name, ID, and optional extra
|
|
108
|
+
* properties used to qualify the lookup.
|
|
109
|
+
*
|
|
110
|
+
* @param name The _unique_ name of the resulting resource.
|
|
111
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
112
|
+
* @param state Any extra arguments used during the lookup.
|
|
113
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
114
|
+
*/
|
|
115
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseMongodbState, opts?: pulumi.CustomResourceOptions): DatabaseMongodb;
|
|
116
|
+
/**
|
|
117
|
+
* Returns true if the given object is an instance of DatabaseMongodb. This is designed to work even
|
|
118
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
119
|
+
*/
|
|
120
|
+
static isInstance(obj: any): obj is DatabaseMongodb;
|
|
121
|
+
/**
|
|
122
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format. Use `linode.DatabaseAccessControls` to manage your allow list separately.
|
|
123
|
+
*/
|
|
124
|
+
readonly allowLists: pulumi.Output<string[]>;
|
|
125
|
+
/**
|
|
126
|
+
* The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
127
|
+
*/
|
|
128
|
+
readonly caCert: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
131
|
+
*/
|
|
132
|
+
readonly clusterSize: pulumi.Output<number | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* The type of data compression for this Database. (`none`, `snappy`, `zlib`; default `none`)
|
|
135
|
+
*/
|
|
136
|
+
readonly compressionType: pulumi.Output<string | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* When this Managed Database was created.
|
|
139
|
+
*/
|
|
140
|
+
readonly created: pulumi.Output<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
143
|
+
*/
|
|
144
|
+
readonly encrypted: pulumi.Output<boolean | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* The Managed Database engine.
|
|
147
|
+
*/
|
|
148
|
+
readonly engine: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The Managed Database engine in engine/version format. (e.g. `mongo/4.4.10`)
|
|
151
|
+
*/
|
|
152
|
+
readonly engineId: pulumi.Output<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The primary host for the Managed Database.
|
|
155
|
+
*/
|
|
156
|
+
readonly hostPrimary: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The secondary host for the Managed Database.
|
|
159
|
+
*/
|
|
160
|
+
readonly hostSecondary: pulumi.Output<string>;
|
|
161
|
+
/**
|
|
162
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
163
|
+
*/
|
|
164
|
+
readonly label: pulumi.Output<string>;
|
|
165
|
+
/**
|
|
166
|
+
* A set of peer addresses for this Database.
|
|
167
|
+
*/
|
|
168
|
+
readonly peers: pulumi.Output<string[]>;
|
|
169
|
+
/**
|
|
170
|
+
* The access port for this Managed Database.
|
|
171
|
+
*/
|
|
172
|
+
readonly port: pulumi.Output<number>;
|
|
173
|
+
/**
|
|
174
|
+
* The region to use for the Managed Database.
|
|
175
|
+
*/
|
|
176
|
+
readonly region: pulumi.Output<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Label for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same
|
|
179
|
+
* replica set.
|
|
180
|
+
*/
|
|
181
|
+
readonly replicaSet: pulumi.Output<string>;
|
|
182
|
+
/**
|
|
183
|
+
* The randomly-generated root password for the Managed Database instance.
|
|
184
|
+
*/
|
|
185
|
+
readonly rootPassword: pulumi.Output<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The root username for the Managed Database instance.
|
|
188
|
+
*/
|
|
189
|
+
readonly rootUsername: pulumi.Output<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
192
|
+
*/
|
|
193
|
+
readonly sslConnection: pulumi.Output<boolean | undefined>;
|
|
194
|
+
/**
|
|
195
|
+
* The operating status of the Managed Database.
|
|
196
|
+
*/
|
|
197
|
+
readonly status: pulumi.Output<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The type of storage engine for this Database. (`mmapv1`, `wiredtiger`; default `wiredtiger`)
|
|
200
|
+
*/
|
|
201
|
+
readonly storageEngine: pulumi.Output<string | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
204
|
+
*/
|
|
205
|
+
readonly type: pulumi.Output<string>;
|
|
206
|
+
/**
|
|
207
|
+
* When this Managed Database was last updated.
|
|
208
|
+
*/
|
|
209
|
+
readonly updated: pulumi.Output<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Configuration settings for automated patch update maintenance for the Managed Database.
|
|
212
|
+
*/
|
|
213
|
+
readonly updates: pulumi.Output<outputs.DatabaseMongodbUpdates>;
|
|
214
|
+
/**
|
|
215
|
+
* The Managed Database engine version.
|
|
216
|
+
*/
|
|
217
|
+
readonly version: pulumi.Output<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Create a DatabaseMongodb resource with the given unique name, arguments, and options.
|
|
220
|
+
*
|
|
221
|
+
* @param name The _unique_ name of the resource.
|
|
222
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
223
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
224
|
+
*/
|
|
225
|
+
constructor(name: string, args: DatabaseMongodbArgs, opts?: pulumi.CustomResourceOptions);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Input properties used for looking up and filtering DatabaseMongodb resources.
|
|
229
|
+
*/
|
|
230
|
+
export interface DatabaseMongodbState {
|
|
231
|
+
/**
|
|
232
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format. Use `linode.DatabaseAccessControls` to manage your allow list separately.
|
|
233
|
+
*/
|
|
234
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
235
|
+
/**
|
|
236
|
+
* The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
237
|
+
*/
|
|
238
|
+
caCert?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
241
|
+
*/
|
|
242
|
+
clusterSize?: pulumi.Input<number>;
|
|
243
|
+
/**
|
|
244
|
+
* The type of data compression for this Database. (`none`, `snappy`, `zlib`; default `none`)
|
|
245
|
+
*/
|
|
246
|
+
compressionType?: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* When this Managed Database was created.
|
|
249
|
+
*/
|
|
250
|
+
created?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
253
|
+
*/
|
|
254
|
+
encrypted?: pulumi.Input<boolean>;
|
|
255
|
+
/**
|
|
256
|
+
* The Managed Database engine.
|
|
257
|
+
*/
|
|
258
|
+
engine?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* The Managed Database engine in engine/version format. (e.g. `mongo/4.4.10`)
|
|
261
|
+
*/
|
|
262
|
+
engineId?: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* The primary host for the Managed Database.
|
|
265
|
+
*/
|
|
266
|
+
hostPrimary?: pulumi.Input<string>;
|
|
267
|
+
/**
|
|
268
|
+
* The secondary host for the Managed Database.
|
|
269
|
+
*/
|
|
270
|
+
hostSecondary?: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
273
|
+
*/
|
|
274
|
+
label?: pulumi.Input<string>;
|
|
275
|
+
/**
|
|
276
|
+
* A set of peer addresses for this Database.
|
|
277
|
+
*/
|
|
278
|
+
peers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
279
|
+
/**
|
|
280
|
+
* The access port for this Managed Database.
|
|
281
|
+
*/
|
|
282
|
+
port?: pulumi.Input<number>;
|
|
283
|
+
/**
|
|
284
|
+
* The region to use for the Managed Database.
|
|
285
|
+
*/
|
|
286
|
+
region?: pulumi.Input<string>;
|
|
287
|
+
/**
|
|
288
|
+
* Label for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same
|
|
289
|
+
* replica set.
|
|
290
|
+
*/
|
|
291
|
+
replicaSet?: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* The randomly-generated root password for the Managed Database instance.
|
|
294
|
+
*/
|
|
295
|
+
rootPassword?: pulumi.Input<string>;
|
|
296
|
+
/**
|
|
297
|
+
* The root username for the Managed Database instance.
|
|
298
|
+
*/
|
|
299
|
+
rootUsername?: pulumi.Input<string>;
|
|
300
|
+
/**
|
|
301
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
302
|
+
*/
|
|
303
|
+
sslConnection?: pulumi.Input<boolean>;
|
|
304
|
+
/**
|
|
305
|
+
* The operating status of the Managed Database.
|
|
306
|
+
*/
|
|
307
|
+
status?: pulumi.Input<string>;
|
|
308
|
+
/**
|
|
309
|
+
* The type of storage engine for this Database. (`mmapv1`, `wiredtiger`; default `wiredtiger`)
|
|
310
|
+
*/
|
|
311
|
+
storageEngine?: pulumi.Input<string>;
|
|
312
|
+
/**
|
|
313
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
314
|
+
*/
|
|
315
|
+
type?: pulumi.Input<string>;
|
|
316
|
+
/**
|
|
317
|
+
* When this Managed Database was last updated.
|
|
318
|
+
*/
|
|
319
|
+
updated?: pulumi.Input<string>;
|
|
320
|
+
/**
|
|
321
|
+
* Configuration settings for automated patch update maintenance for the Managed Database.
|
|
322
|
+
*/
|
|
323
|
+
updates?: pulumi.Input<inputs.DatabaseMongodbUpdates>;
|
|
324
|
+
/**
|
|
325
|
+
* The Managed Database engine version.
|
|
326
|
+
*/
|
|
327
|
+
version?: pulumi.Input<string>;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* The set of arguments for constructing a DatabaseMongodb resource.
|
|
331
|
+
*/
|
|
332
|
+
export interface DatabaseMongodbArgs {
|
|
333
|
+
/**
|
|
334
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format. Use `linode.DatabaseAccessControls` to manage your allow list separately.
|
|
335
|
+
*/
|
|
336
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
337
|
+
/**
|
|
338
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
339
|
+
*/
|
|
340
|
+
clusterSize?: pulumi.Input<number>;
|
|
341
|
+
/**
|
|
342
|
+
* The type of data compression for this Database. (`none`, `snappy`, `zlib`; default `none`)
|
|
343
|
+
*/
|
|
344
|
+
compressionType?: pulumi.Input<string>;
|
|
345
|
+
/**
|
|
346
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
347
|
+
*/
|
|
348
|
+
encrypted?: pulumi.Input<boolean>;
|
|
349
|
+
/**
|
|
350
|
+
* The Managed Database engine in engine/version format. (e.g. `mongo/4.4.10`)
|
|
351
|
+
*/
|
|
352
|
+
engineId: pulumi.Input<string>;
|
|
353
|
+
/**
|
|
354
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
355
|
+
*/
|
|
356
|
+
label: pulumi.Input<string>;
|
|
357
|
+
/**
|
|
358
|
+
* The region to use for the Managed Database.
|
|
359
|
+
*/
|
|
360
|
+
region: pulumi.Input<string>;
|
|
361
|
+
/**
|
|
362
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
363
|
+
*/
|
|
364
|
+
sslConnection?: pulumi.Input<boolean>;
|
|
365
|
+
/**
|
|
366
|
+
* The type of storage engine for this Database. (`mmapv1`, `wiredtiger`; default `wiredtiger`)
|
|
367
|
+
*/
|
|
368
|
+
storageEngine?: pulumi.Input<string>;
|
|
369
|
+
/**
|
|
370
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
371
|
+
*/
|
|
372
|
+
type: pulumi.Input<string>;
|
|
373
|
+
/**
|
|
374
|
+
* Configuration settings for automated patch update maintenance for the Managed Database.
|
|
375
|
+
*/
|
|
376
|
+
updates?: pulumi.Input<inputs.DatabaseMongodbUpdates>;
|
|
377
|
+
}
|