@lshay-provider/planetscale 0.0.0-stage → 1.21.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/README.md +3 -3
- package/bin/config/index.d.ts +2 -0
- package/bin/config/index.d.ts.map +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +13 -0
- package/bin/config/vars.d.ts.map +1 -0
- package/bin/config/vars.js +48 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/getDatabasePostgres.d.ts +56 -0
- package/bin/getDatabasePostgres.d.ts.map +1 -0
- package/bin/getDatabasePostgres.js +47 -0
- package/bin/getDatabasePostgres.js.map +1 -0
- package/bin/getDatabaseVitess.d.ts +62 -0
- package/bin/getDatabaseVitess.d.ts.map +1 -0
- package/bin/getDatabaseVitess.js +47 -0
- package/bin/getDatabaseVitess.js.map +1 -0
- package/bin/getDatabases.d.ts +31 -0
- package/bin/getDatabases.d.ts.map +1 -0
- package/bin/getDatabases.js +49 -0
- package/bin/getDatabases.js.map +1 -0
- package/bin/getNekiAdmin.d.ts +46 -0
- package/bin/getNekiAdmin.d.ts.map +1 -0
- package/bin/getNekiAdmin.js +51 -0
- package/bin/getNekiAdmin.js.map +1 -0
- package/bin/getNekiBackupPolicies.d.ts +27 -0
- package/bin/getNekiBackupPolicies.d.ts.map +1 -0
- package/bin/getNekiBackupPolicies.js +47 -0
- package/bin/getNekiBackupPolicies.js.map +1 -0
- package/bin/getNekiBackupPolicy.d.ts +38 -0
- package/bin/getNekiBackupPolicy.d.ts.map +1 -0
- package/bin/getNekiBackupPolicy.js +49 -0
- package/bin/getNekiBackupPolicy.js.map +1 -0
- package/bin/getNekiBranch.d.ts +33 -0
- package/bin/getNekiBranch.d.ts.map +1 -0
- package/bin/getNekiBranch.js +49 -0
- package/bin/getNekiBranch.js.map +1 -0
- package/bin/getNekiConfigurationProfile.d.ts +60 -0
- package/bin/getNekiConfigurationProfile.d.ts.map +1 -0
- package/bin/getNekiConfigurationProfile.js +55 -0
- package/bin/getNekiConfigurationProfile.js.map +1 -0
- package/bin/getNekiConfigurationProfiles.d.ts +30 -0
- package/bin/getNekiConfigurationProfiles.d.ts.map +1 -0
- package/bin/getNekiConfigurationProfiles.js +49 -0
- package/bin/getNekiConfigurationProfiles.js.map +1 -0
- package/bin/getNekiRole.d.ts +40 -0
- package/bin/getNekiRole.d.ts.map +1 -0
- package/bin/getNekiRole.js +51 -0
- package/bin/getNekiRole.js.map +1 -0
- package/bin/getNekiRoles.d.ts +37 -0
- package/bin/getNekiRoles.d.ts.map +1 -0
- package/bin/getNekiRoles.js +53 -0
- package/bin/getNekiRoles.js.map +1 -0
- package/bin/getNekiRouter.d.ts +54 -0
- package/bin/getNekiRouter.d.ts.map +1 -0
- package/bin/getNekiRouter.js +53 -0
- package/bin/getNekiRouter.js.map +1 -0
- package/bin/getNekiRouters.d.ts +30 -0
- package/bin/getNekiRouters.d.ts.map +1 -0
- package/bin/getNekiRouters.js +49 -0
- package/bin/getNekiRouters.js.map +1 -0
- package/bin/getNekiShard.d.ts +35 -0
- package/bin/getNekiShard.d.ts.map +1 -0
- package/bin/getNekiShard.js +51 -0
- package/bin/getNekiShard.js.map +1 -0
- package/bin/getNekiShards.d.ts +31 -0
- package/bin/getNekiShards.d.ts.map +1 -0
- package/bin/getNekiShards.js +49 -0
- package/bin/getNekiShards.js.map +1 -0
- package/bin/getOrganization.d.ts +48 -0
- package/bin/getOrganization.d.ts.map +1 -0
- package/bin/getOrganization.js +45 -0
- package/bin/getOrganization.js.map +1 -0
- package/bin/getOrganizations.d.ts +12 -0
- package/bin/getOrganizations.d.ts.map +1 -0
- package/bin/getOrganizations.js +41 -0
- package/bin/getOrganizations.js.map +1 -0
- package/bin/getPostgresBackupPolicies.d.ts +27 -0
- package/bin/getPostgresBackupPolicies.d.ts.map +1 -0
- package/bin/getPostgresBackupPolicies.js +47 -0
- package/bin/getPostgresBackupPolicies.js.map +1 -0
- package/bin/getPostgresBackupPolicy.d.ts +38 -0
- package/bin/getPostgresBackupPolicy.d.ts.map +1 -0
- package/bin/getPostgresBackupPolicy.js +49 -0
- package/bin/getPostgresBackupPolicy.js.map +1 -0
- package/bin/getPostgresBouncer.d.ts +42 -0
- package/bin/getPostgresBouncer.d.ts.map +1 -0
- package/bin/getPostgresBouncer.js +51 -0
- package/bin/getPostgresBouncer.js.map +1 -0
- package/bin/getPostgresBouncers.d.ts +30 -0
- package/bin/getPostgresBouncers.d.ts.map +1 -0
- package/bin/getPostgresBouncers.js +49 -0
- package/bin/getPostgresBouncers.js.map +1 -0
- package/bin/getPostgresBranch.d.ts +47 -0
- package/bin/getPostgresBranch.d.ts.map +1 -0
- package/bin/getPostgresBranch.js +49 -0
- package/bin/getPostgresBranch.js.map +1 -0
- package/bin/getPostgresBranchBackup.d.ts +46 -0
- package/bin/getPostgresBranchBackup.d.ts.map +1 -0
- package/bin/getPostgresBranchBackup.js +51 -0
- package/bin/getPostgresBranchBackup.js.map +1 -0
- package/bin/getPostgresBranchBackups.d.ts +51 -0
- package/bin/getPostgresBranchBackups.d.ts.map +1 -0
- package/bin/getPostgresBranchBackups.js +63 -0
- package/bin/getPostgresBranchBackups.js.map +1 -0
- package/bin/getPostgresBranchMaintenanceWindow.d.ts +32 -0
- package/bin/getPostgresBranchMaintenanceWindow.d.ts.map +1 -0
- package/bin/getPostgresBranchMaintenanceWindow.js +49 -0
- package/bin/getPostgresBranchMaintenanceWindow.js.map +1 -0
- package/bin/getPostgresBranchRole.d.ts +54 -0
- package/bin/getPostgresBranchRole.d.ts.map +1 -0
- package/bin/getPostgresBranchRole.js +51 -0
- package/bin/getPostgresBranchRole.js.map +1 -0
- package/bin/getPostgresBranchRoles.d.ts +37 -0
- package/bin/getPostgresBranchRoles.d.ts.map +1 -0
- package/bin/getPostgresBranchRoles.js +53 -0
- package/bin/getPostgresBranchRoles.js.map +1 -0
- package/bin/getPostgresDedicatedReadReplica.d.ts +37 -0
- package/bin/getPostgresDedicatedReadReplica.d.ts.map +1 -0
- package/bin/getPostgresDedicatedReadReplica.js +51 -0
- package/bin/getPostgresDedicatedReadReplica.js.map +1 -0
- package/bin/getPostgresDedicatedReadReplicas.d.ts +30 -0
- package/bin/getPostgresDedicatedReadReplicas.d.ts.map +1 -0
- package/bin/getPostgresDedicatedReadReplicas.js +49 -0
- package/bin/getPostgresDedicatedReadReplicas.js.map +1 -0
- package/bin/getPostgresIpRestriction.d.ts +34 -0
- package/bin/getPostgresIpRestriction.d.ts.map +1 -0
- package/bin/getPostgresIpRestriction.js +49 -0
- package/bin/getPostgresIpRestriction.js.map +1 -0
- package/bin/getPostgresIpRestrictions.d.ts +27 -0
- package/bin/getPostgresIpRestrictions.d.ts.map +1 -0
- package/bin/getPostgresIpRestrictions.js +47 -0
- package/bin/getPostgresIpRestrictions.js.map +1 -0
- package/bin/getPostgresReadOnlyReplica.d.ts +37 -0
- package/bin/getPostgresReadOnlyReplica.d.ts.map +1 -0
- package/bin/getPostgresReadOnlyReplica.js +51 -0
- package/bin/getPostgresReadOnlyReplica.js.map +1 -0
- package/bin/getPostgresReadOnlyReplicas.d.ts +30 -0
- package/bin/getPostgresReadOnlyReplicas.d.ts.map +1 -0
- package/bin/getPostgresReadOnlyReplicas.js +49 -0
- package/bin/getPostgresReadOnlyReplicas.js.map +1 -0
- package/bin/getPostgresRedactedBranchRole.d.ts +54 -0
- package/bin/getPostgresRedactedBranchRole.d.ts.map +1 -0
- package/bin/getPostgresRedactedBranchRole.js +51 -0
- package/bin/getPostgresRedactedBranchRole.js.map +1 -0
- package/bin/getVitessBackupPolicies.d.ts +27 -0
- package/bin/getVitessBackupPolicies.d.ts.map +1 -0
- package/bin/getVitessBackupPolicies.js +47 -0
- package/bin/getVitessBackupPolicies.js.map +1 -0
- package/bin/getVitessBackupPolicy.d.ts +38 -0
- package/bin/getVitessBackupPolicy.d.ts.map +1 -0
- package/bin/getVitessBackupPolicy.js +49 -0
- package/bin/getVitessBackupPolicy.js.map +1 -0
- package/bin/getVitessBranch.d.ts +53 -0
- package/bin/getVitessBranch.d.ts.map +1 -0
- package/bin/getVitessBranch.js +49 -0
- package/bin/getVitessBranch.js.map +1 -0
- package/bin/getVitessBranchBackup.d.ts +46 -0
- package/bin/getVitessBranchBackup.d.ts.map +1 -0
- package/bin/getVitessBranchBackup.js +51 -0
- package/bin/getVitessBranchBackup.js.map +1 -0
- package/bin/getVitessBranchBackups.d.ts +51 -0
- package/bin/getVitessBranchBackups.d.ts.map +1 -0
- package/bin/getVitessBranchBackups.js +63 -0
- package/bin/getVitessBranchBackups.js.map +1 -0
- package/bin/getVitessBranchPassword.d.ts +52 -0
- package/bin/getVitessBranchPassword.d.ts.map +1 -0
- package/bin/getVitessBranchPassword.js +51 -0
- package/bin/getVitessBranchPassword.js.map +1 -0
- package/bin/getVitessBranchPasswords.d.ts +40 -0
- package/bin/getVitessBranchPasswords.d.ts.map +1 -0
- package/bin/getVitessBranchPasswords.js +55 -0
- package/bin/getVitessBranchPasswords.js.map +1 -0
- package/bin/getVitessKeyspace.d.ts +59 -0
- package/bin/getVitessKeyspace.d.ts.map +1 -0
- package/bin/getVitessKeyspace.js +51 -0
- package/bin/getVitessKeyspace.js.map +1 -0
- package/bin/getVitessKeyspaces.d.ts +31 -0
- package/bin/getVitessKeyspaces.d.ts.map +1 -0
- package/bin/getVitessKeyspaces.js +49 -0
- package/bin/getVitessKeyspaces.js.map +1 -0
- package/bin/index.d.ts +200 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +300 -0
- package/bin/index.js.map +1 -0
- package/bin/nekiAdmin.d.ts +125 -0
- package/bin/nekiAdmin.d.ts.map +1 -0
- package/bin/nekiAdmin.js +101 -0
- package/bin/nekiAdmin.js.map +1 -0
- package/bin/nekiBackupPolicy.d.ts +185 -0
- package/bin/nekiBackupPolicy.d.ts.map +1 -0
- package/bin/nekiBackupPolicy.js +128 -0
- package/bin/nekiBackupPolicy.js.map +1 -0
- package/bin/nekiBranch.d.ts +167 -0
- package/bin/nekiBranch.d.ts.map +1 -0
- package/bin/nekiBranch.js +108 -0
- package/bin/nekiBranch.js.map +1 -0
- package/bin/nekiConfigurationProfile.d.ts +218 -0
- package/bin/nekiConfigurationProfile.d.ts.map +1 -0
- package/bin/nekiConfigurationProfile.js +119 -0
- package/bin/nekiConfigurationProfile.js.map +1 -0
- package/bin/nekiRole.d.ts +189 -0
- package/bin/nekiRole.d.ts.map +1 -0
- package/bin/nekiRole.js +119 -0
- package/bin/nekiRole.js.map +1 -0
- package/bin/nekiRouter.d.ts +193 -0
- package/bin/nekiRouter.d.ts.map +1 -0
- package/bin/nekiRouter.js +113 -0
- package/bin/nekiRouter.js.map +1 -0
- package/bin/nekiShard.d.ts +121 -0
- package/bin/nekiShard.d.ts.map +1 -0
- package/bin/nekiShard.js +106 -0
- package/bin/nekiShard.js.map +1 -0
- package/bin/package.json +34 -0
- package/bin/postgresBackupPolicy.d.ts +185 -0
- package/bin/postgresBackupPolicy.d.ts.map +1 -0
- package/bin/postgresBackupPolicy.js +110 -0
- package/bin/postgresBackupPolicy.js.map +1 -0
- package/bin/postgresBouncer.d.ts +157 -0
- package/bin/postgresBouncer.d.ts.map +1 -0
- package/bin/postgresBouncer.js +107 -0
- package/bin/postgresBouncer.js.map +1 -0
- package/bin/postgresBranch.d.ts +269 -0
- package/bin/postgresBranch.d.ts.map +1 -0
- package/bin/postgresBranch.js +128 -0
- package/bin/postgresBranch.js.map +1 -0
- package/bin/postgresBranchBackup.d.ts +217 -0
- package/bin/postgresBranchBackup.d.ts.map +1 -0
- package/bin/postgresBranchBackup.js +129 -0
- package/bin/postgresBranchBackup.js.map +1 -0
- package/bin/postgresBranchMaintenanceWindow.d.ts +113 -0
- package/bin/postgresBranchMaintenanceWindow.d.ts.map +1 -0
- package/bin/postgresBranchMaintenanceWindow.js +107 -0
- package/bin/postgresBranchMaintenanceWindow.js.map +1 -0
- package/bin/postgresBranchRole.d.ts +277 -0
- package/bin/postgresBranchRole.d.ts.map +1 -0
- package/bin/postgresBranchRole.js +145 -0
- package/bin/postgresBranchRole.js.map +1 -0
- package/bin/postgresDedicatedReadReplica.d.ts +153 -0
- package/bin/postgresDedicatedReadReplica.d.ts.map +1 -0
- package/bin/postgresDedicatedReadReplica.js +112 -0
- package/bin/postgresDedicatedReadReplica.js.map +1 -0
- package/bin/postgresIpRestriction.d.ts +121 -0
- package/bin/postgresIpRestriction.d.ts.map +1 -0
- package/bin/postgresIpRestriction.js +103 -0
- package/bin/postgresIpRestriction.js.map +1 -0
- package/bin/postgresReadOnlyReplica.d.ts +153 -0
- package/bin/postgresReadOnlyReplica.d.ts.map +1 -0
- package/bin/postgresReadOnlyReplica.js +112 -0
- package/bin/postgresReadOnlyReplica.js.map +1 -0
- package/bin/postgresRedactedBranchRole.d.ts +269 -0
- package/bin/postgresRedactedBranchRole.d.ts.map +1 -0
- package/bin/postgresRedactedBranchRole.js +141 -0
- package/bin/postgresRedactedBranchRole.js.map +1 -0
- package/bin/provider.d.ts +68 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +81 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +4 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +34 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +326 -0
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +2009 -0
- package/bin/types/output.d.ts.map +1 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +6 -0
- package/bin/utilities.d.ts.map +1 -0
- package/bin/utilities.js +125 -0
- package/bin/utilities.js.map +1 -0
- package/bin/vitessBackupPolicy.d.ts +185 -0
- package/bin/vitessBackupPolicy.d.ts.map +1 -0
- package/bin/vitessBackupPolicy.js +110 -0
- package/bin/vitessBackupPolicy.js.map +1 -0
- package/bin/vitessBranch.d.ts +323 -0
- package/bin/vitessBranch.d.ts.map +1 -0
- package/bin/vitessBranch.js +138 -0
- package/bin/vitessBranch.js.map +1 -0
- package/bin/vitessBranchBackup.d.ts +205 -0
- package/bin/vitessBranchBackup.d.ts.map +1 -0
- package/bin/vitessBranchBackup.js +127 -0
- package/bin/vitessBranchBackup.js.map +1 -0
- package/bin/vitessBranchPassword.d.ts +265 -0
- package/bin/vitessBranchPassword.d.ts.map +1 -0
- package/bin/vitessBranchPassword.js +141 -0
- package/bin/vitessBranchPassword.js.map +1 -0
- package/bin/vitessKeyspace.d.ts +281 -0
- package/bin/vitessKeyspace.d.ts.map +1 -0
- package/bin/vitessKeyspace.js +144 -0
- package/bin/vitessKeyspace.js.map +1 -0
- package/package.json +31 -3
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.PostgresBouncer = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class PostgresBouncer extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing PostgresBouncer resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new PostgresBouncer(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check whether an existing PostgresBouncer resource with the given ID exists.
|
|
46
|
+
*
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static exists(id, state, opts) {
|
|
52
|
+
return pulumi.runtime.existsResource("planetscale:index/postgresBouncer:PostgresBouncer", id, state || {}, { ...opts }, utilities.getPackage());
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'planetscale:index/postgresBouncer:PostgresBouncer';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of PostgresBouncer. 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'] === PostgresBouncer.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["actor"] = state?.actor;
|
|
72
|
+
resourceInputs["bouncerSize"] = state?.bouncerSize;
|
|
73
|
+
resourceInputs["branch"] = state?.branch;
|
|
74
|
+
resourceInputs["database"] = state?.database;
|
|
75
|
+
resourceInputs["name"] = state?.name;
|
|
76
|
+
resourceInputs["organization"] = state?.organization;
|
|
77
|
+
resourceInputs["parameters"] = state?.parameters;
|
|
78
|
+
resourceInputs["replicasPerCell"] = state?.replicasPerCell;
|
|
79
|
+
resourceInputs["target"] = state?.target;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if (args?.branch === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'branch'");
|
|
85
|
+
}
|
|
86
|
+
if (args?.database === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'database'");
|
|
88
|
+
}
|
|
89
|
+
if (args?.organization === undefined && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'organization'");
|
|
91
|
+
}
|
|
92
|
+
resourceInputs["bouncerSize"] = args?.bouncerSize;
|
|
93
|
+
resourceInputs["branch"] = args?.branch;
|
|
94
|
+
resourceInputs["database"] = args?.database;
|
|
95
|
+
resourceInputs["name"] = args?.name;
|
|
96
|
+
resourceInputs["organization"] = args?.organization;
|
|
97
|
+
resourceInputs["parameters"] = args?.parameters;
|
|
98
|
+
resourceInputs["replicasPerCell"] = args?.replicasPerCell;
|
|
99
|
+
resourceInputs["target"] = args?.target;
|
|
100
|
+
resourceInputs["actor"] = undefined /*out*/;
|
|
101
|
+
}
|
|
102
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
103
|
+
super(PostgresBouncer.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.PostgresBouncer = PostgresBouncer;
|
|
107
|
+
//# sourceMappingURL=postgresBouncer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBouncer.js","sourceRoot":"","sources":["../postgresBouncer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAA4B,EAAE,IAAmC;QAC5G,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,mDAAmD,EAAE,EAAE,EAAO,KAAK,IAAI,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACzJ,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,mDAAmD,CAAC;IAE1F;;;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,C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AA0C,CAAC,CAAC;aAC/D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAClH,CAAC;;AAtHL,0CAuHC"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class PostgresBranch extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing PostgresBranch resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PostgresBranchState, opts?: pulumi.CustomResourceOptions): PostgresBranch;
|
|
15
|
+
/**
|
|
16
|
+
* Check whether an existing PostgresBranch resource with the given ID exists.
|
|
17
|
+
*
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static exists(id: pulumi.Input<string>, state?: PostgresBranchState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of PostgresBranch. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is PostgresBranch;
|
|
28
|
+
readonly actor: pulumi.Output<outputs.PostgresBranchActor>;
|
|
29
|
+
/**
|
|
30
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
31
|
+
* If provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this. Requires replacement if changed.
|
|
32
|
+
*/
|
|
33
|
+
readonly backupId: pulumi.Output<string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint. Changing a production branch to a PS-DEV size demotes it and also requires <span pulumi-lang-nodejs="`connectProductionBranch`" pulumi-lang-dotnet="`ConnectProductionBranch`" pulumi-lang-go="`connectProductionBranch`" pulumi-lang-python="`connect_production_branch`" pulumi-lang-yaml="`connectProductionBranch`" pulumi-lang-java="`connectProductionBranch`" pulumi-lang-hcl="`connect_production_branch`">`connectProductionBranch`</span> or <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> access, or the <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> OAuth scope.
|
|
36
|
+
*/
|
|
37
|
+
readonly clusterSize: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Database name slug from <span pulumi-lang-nodejs="`listDatabases`" pulumi-lang-dotnet="`ListDatabases`" pulumi-lang-go="`listDatabases`" pulumi-lang-python="`list_databases`" pulumi-lang-yaml="`listDatabases`" pulumi-lang-java="`listDatabases`" pulumi-lang-hcl="`list_databases`">`listDatabases`</span>. Example: `app-db`.
|
|
40
|
+
*/
|
|
41
|
+
readonly database: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
44
|
+
*/
|
|
45
|
+
readonly deleteDescendants: pulumi.Output<boolean | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether deletion protection is enabled for the branch
|
|
48
|
+
*/
|
|
49
|
+
readonly deletionProtected: pulumi.Output<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Planetscale app URL for the branch
|
|
52
|
+
*/
|
|
53
|
+
readonly htmlUrl: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The PostgreSQL major version to use for the branch. Defaults to the major version of the parent branch if it exists or the database's default branch major version. Ignored for branches restored from backups. Requires replacement if changed.
|
|
56
|
+
*/
|
|
57
|
+
readonly majorVersion: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the branch to create
|
|
60
|
+
*/
|
|
61
|
+
readonly name: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Organization name slug from <span pulumi-lang-nodejs="`listOrganizations`" pulumi-lang-dotnet="`ListOrganizations`" pulumi-lang-go="`listOrganizations`" pulumi-lang-python="`list_organizations`" pulumi-lang-yaml="`listOrganizations`" pulumi-lang-java="`listOrganizations`" pulumi-lang-hcl="`list_organizations`">`listOrganizations`</span>. Example: <span pulumi-lang-nodejs="`acme`" pulumi-lang-dotnet="`Acme`" pulumi-lang-go="`acme`" pulumi-lang-python="`acme`" pulumi-lang-yaml="`acme`" pulumi-lang-java="`acme`" pulumi-lang-hcl="`acme`">`acme`</span>.
|
|
64
|
+
*/
|
|
65
|
+
readonly organization: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Postgres parameter overrides, nested by namespace (pgconf, pgbouncer, patroni), e.g. { pgconf = {<span pulumi-lang-nodejs=" maxConnections " pulumi-lang-dotnet=" MaxConnections " pulumi-lang-go=" maxConnections " pulumi-lang-python=" max_connections " pulumi-lang-yaml=" maxConnections " pulumi-lang-java=" maxConnections " pulumi-lang-hcl=" max_connections "> maxConnections </span>= "200" } }. Omitted parameters are reset to their defaults.
|
|
68
|
+
*/
|
|
69
|
+
readonly parameters: pulumi.Output<{
|
|
70
|
+
[key: string]: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
76
|
+
*/
|
|
77
|
+
readonly parentBranch: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether or not the branch is ready to serve queries
|
|
80
|
+
*/
|
|
81
|
+
readonly ready: pulumi.Output<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* The region to create the branch in. If not provided, the branch will be created in the default region for its database. Requires replacement if changed.
|
|
84
|
+
*/
|
|
85
|
+
readonly region: pulumi.Output<string>;
|
|
86
|
+
readonly regionData: pulumi.Output<outputs.PostgresBranchRegionData>;
|
|
87
|
+
/**
|
|
88
|
+
* The number of replicas. 0 is a single-node branch with no replicas. 2-8 is HA. If omitted, the cluster size default is used.
|
|
89
|
+
*/
|
|
90
|
+
readonly replicas: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
93
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
94
|
+
*/
|
|
95
|
+
readonly restorePoint: pulumi.Output<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* The current state of the branch
|
|
98
|
+
*/
|
|
99
|
+
readonly state: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Storage configuration for non-Metal branches. PlanetScale clears these settings for Metal cluster sizes.
|
|
102
|
+
*/
|
|
103
|
+
readonly storage: pulumi.Output<outputs.PostgresBranchStorage>;
|
|
104
|
+
/**
|
|
105
|
+
* Planetscale API URL for the branch
|
|
106
|
+
*/
|
|
107
|
+
readonly url: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Create a PostgresBranch resource with the given unique name, arguments, and options.
|
|
110
|
+
*
|
|
111
|
+
* @param name The _unique_ name of the resource.
|
|
112
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
113
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
114
|
+
*/
|
|
115
|
+
constructor(name: string, args: PostgresBranchArgs, opts?: pulumi.CustomResourceOptions);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Input properties used for looking up and filtering PostgresBranch resources.
|
|
119
|
+
*/
|
|
120
|
+
export interface PostgresBranchState {
|
|
121
|
+
actor?: pulumi.Input<inputs.PostgresBranchActor | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
124
|
+
* If provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this. Requires replacement if changed.
|
|
125
|
+
*/
|
|
126
|
+
backupId?: pulumi.Input<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint. Changing a production branch to a PS-DEV size demotes it and also requires <span pulumi-lang-nodejs="`connectProductionBranch`" pulumi-lang-dotnet="`ConnectProductionBranch`" pulumi-lang-go="`connectProductionBranch`" pulumi-lang-python="`connect_production_branch`" pulumi-lang-yaml="`connectProductionBranch`" pulumi-lang-java="`connectProductionBranch`" pulumi-lang-hcl="`connect_production_branch`">`connectProductionBranch`</span> or <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> access, or the <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> OAuth scope.
|
|
129
|
+
*/
|
|
130
|
+
clusterSize?: pulumi.Input<string | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Database name slug from <span pulumi-lang-nodejs="`listDatabases`" pulumi-lang-dotnet="`ListDatabases`" pulumi-lang-go="`listDatabases`" pulumi-lang-python="`list_databases`" pulumi-lang-yaml="`listDatabases`" pulumi-lang-java="`listDatabases`" pulumi-lang-hcl="`list_databases`">`listDatabases`</span>. Example: `app-db`.
|
|
133
|
+
*/
|
|
134
|
+
database?: pulumi.Input<string | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
137
|
+
*/
|
|
138
|
+
deleteDescendants?: pulumi.Input<boolean | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* Whether deletion protection is enabled for the branch
|
|
141
|
+
*/
|
|
142
|
+
deletionProtected?: pulumi.Input<boolean | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Planetscale app URL for the branch
|
|
145
|
+
*/
|
|
146
|
+
htmlUrl?: pulumi.Input<string | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* The PostgreSQL major version to use for the branch. Defaults to the major version of the parent branch if it exists or the database's default branch major version. Ignored for branches restored from backups. Requires replacement if changed.
|
|
149
|
+
*/
|
|
150
|
+
majorVersion?: pulumi.Input<string | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* The name of the branch to create
|
|
153
|
+
*/
|
|
154
|
+
name?: pulumi.Input<string | undefined>;
|
|
155
|
+
/**
|
|
156
|
+
* Organization name slug from <span pulumi-lang-nodejs="`listOrganizations`" pulumi-lang-dotnet="`ListOrganizations`" pulumi-lang-go="`listOrganizations`" pulumi-lang-python="`list_organizations`" pulumi-lang-yaml="`listOrganizations`" pulumi-lang-java="`listOrganizations`" pulumi-lang-hcl="`list_organizations`">`listOrganizations`</span>. Example: <span pulumi-lang-nodejs="`acme`" pulumi-lang-dotnet="`Acme`" pulumi-lang-go="`acme`" pulumi-lang-python="`acme`" pulumi-lang-yaml="`acme`" pulumi-lang-java="`acme`" pulumi-lang-hcl="`acme`">`acme`</span>.
|
|
157
|
+
*/
|
|
158
|
+
organization?: pulumi.Input<string | undefined>;
|
|
159
|
+
/**
|
|
160
|
+
* Postgres parameter overrides, nested by namespace (pgconf, pgbouncer, patroni), e.g. { pgconf = {<span pulumi-lang-nodejs=" maxConnections " pulumi-lang-dotnet=" MaxConnections " pulumi-lang-go=" maxConnections " pulumi-lang-python=" max_connections " pulumi-lang-yaml=" maxConnections " pulumi-lang-java=" maxConnections " pulumi-lang-hcl=" max_connections "> maxConnections </span>= "200" } }. Omitted parameters are reset to their defaults.
|
|
161
|
+
*/
|
|
162
|
+
parameters?: pulumi.Input<{
|
|
163
|
+
[key: string]: pulumi.Input<{
|
|
164
|
+
[key: string]: pulumi.Input<string>;
|
|
165
|
+
}>;
|
|
166
|
+
} | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
169
|
+
*/
|
|
170
|
+
parentBranch?: pulumi.Input<string | undefined>;
|
|
171
|
+
/**
|
|
172
|
+
* Whether or not the branch is ready to serve queries
|
|
173
|
+
*/
|
|
174
|
+
ready?: pulumi.Input<boolean | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* The region to create the branch in. If not provided, the branch will be created in the default region for its database. Requires replacement if changed.
|
|
177
|
+
*/
|
|
178
|
+
region?: pulumi.Input<string | undefined>;
|
|
179
|
+
regionData?: pulumi.Input<inputs.PostgresBranchRegionData | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* The number of replicas. 0 is a single-node branch with no replicas. 2-8 is HA. If omitted, the cluster size default is used.
|
|
182
|
+
*/
|
|
183
|
+
replicas?: pulumi.Input<number | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
186
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
187
|
+
*/
|
|
188
|
+
restorePoint?: pulumi.Input<string | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* The current state of the branch
|
|
191
|
+
*/
|
|
192
|
+
state?: pulumi.Input<string | undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* Storage configuration for non-Metal branches. PlanetScale clears these settings for Metal cluster sizes.
|
|
195
|
+
*/
|
|
196
|
+
storage?: pulumi.Input<inputs.PostgresBranchStorage | undefined>;
|
|
197
|
+
/**
|
|
198
|
+
* Planetscale API URL for the branch
|
|
199
|
+
*/
|
|
200
|
+
url?: pulumi.Input<string | undefined>;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* The set of arguments for constructing a PostgresBranch resource.
|
|
204
|
+
*/
|
|
205
|
+
export interface PostgresBranchArgs {
|
|
206
|
+
/**
|
|
207
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
208
|
+
* If provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this. Requires replacement if changed.
|
|
209
|
+
*/
|
|
210
|
+
backupId?: pulumi.Input<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint. Changing a production branch to a PS-DEV size demotes it and also requires <span pulumi-lang-nodejs="`connectProductionBranch`" pulumi-lang-dotnet="`ConnectProductionBranch`" pulumi-lang-go="`connectProductionBranch`" pulumi-lang-python="`connect_production_branch`" pulumi-lang-yaml="`connectProductionBranch`" pulumi-lang-java="`connectProductionBranch`" pulumi-lang-hcl="`connect_production_branch`">`connectProductionBranch`</span> or <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> access, or the <span pulumi-lang-nodejs="`demoteBranches`" pulumi-lang-dotnet="`DemoteBranches`" pulumi-lang-go="`demoteBranches`" pulumi-lang-python="`demote_branches`" pulumi-lang-yaml="`demoteBranches`" pulumi-lang-java="`demoteBranches`" pulumi-lang-hcl="`demote_branches`">`demoteBranches`</span> OAuth scope.
|
|
213
|
+
*/
|
|
214
|
+
clusterSize?: pulumi.Input<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* Database name slug from <span pulumi-lang-nodejs="`listDatabases`" pulumi-lang-dotnet="`ListDatabases`" pulumi-lang-go="`listDatabases`" pulumi-lang-python="`list_databases`" pulumi-lang-yaml="`listDatabases`" pulumi-lang-java="`listDatabases`" pulumi-lang-hcl="`list_databases`">`listDatabases`</span>. Example: `app-db`.
|
|
217
|
+
*/
|
|
218
|
+
database: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
221
|
+
*/
|
|
222
|
+
deleteDescendants?: pulumi.Input<boolean | undefined>;
|
|
223
|
+
/**
|
|
224
|
+
* Whether deletion protection is enabled for the branch
|
|
225
|
+
*/
|
|
226
|
+
deletionProtected?: pulumi.Input<boolean | undefined>;
|
|
227
|
+
/**
|
|
228
|
+
* The PostgreSQL major version to use for the branch. Defaults to the major version of the parent branch if it exists or the database's default branch major version. Ignored for branches restored from backups. Requires replacement if changed.
|
|
229
|
+
*/
|
|
230
|
+
majorVersion?: pulumi.Input<string | undefined>;
|
|
231
|
+
/**
|
|
232
|
+
* The name of the branch to create
|
|
233
|
+
*/
|
|
234
|
+
name?: pulumi.Input<string | undefined>;
|
|
235
|
+
/**
|
|
236
|
+
* Organization name slug from <span pulumi-lang-nodejs="`listOrganizations`" pulumi-lang-dotnet="`ListOrganizations`" pulumi-lang-go="`listOrganizations`" pulumi-lang-python="`list_organizations`" pulumi-lang-yaml="`listOrganizations`" pulumi-lang-java="`listOrganizations`" pulumi-lang-hcl="`list_organizations`">`listOrganizations`</span>. Example: <span pulumi-lang-nodejs="`acme`" pulumi-lang-dotnet="`Acme`" pulumi-lang-go="`acme`" pulumi-lang-python="`acme`" pulumi-lang-yaml="`acme`" pulumi-lang-java="`acme`" pulumi-lang-hcl="`acme`">`acme`</span>.
|
|
237
|
+
*/
|
|
238
|
+
organization: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* Postgres parameter overrides, nested by namespace (pgconf, pgbouncer, patroni), e.g. { pgconf = {<span pulumi-lang-nodejs=" maxConnections " pulumi-lang-dotnet=" MaxConnections " pulumi-lang-go=" maxConnections " pulumi-lang-python=" max_connections " pulumi-lang-yaml=" maxConnections " pulumi-lang-java=" maxConnections " pulumi-lang-hcl=" max_connections "> maxConnections </span>= "200" } }. Omitted parameters are reset to their defaults.
|
|
241
|
+
*/
|
|
242
|
+
parameters?: pulumi.Input<{
|
|
243
|
+
[key: string]: pulumi.Input<{
|
|
244
|
+
[key: string]: pulumi.Input<string>;
|
|
245
|
+
}>;
|
|
246
|
+
} | undefined>;
|
|
247
|
+
/**
|
|
248
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
249
|
+
*/
|
|
250
|
+
parentBranch?: pulumi.Input<string | undefined>;
|
|
251
|
+
/**
|
|
252
|
+
* The region to create the branch in. If not provided, the branch will be created in the default region for its database. Requires replacement if changed.
|
|
253
|
+
*/
|
|
254
|
+
region?: pulumi.Input<string | undefined>;
|
|
255
|
+
/**
|
|
256
|
+
* The number of replicas. 0 is a single-node branch with no replicas. 2-8 is HA. If omitted, the cluster size default is used.
|
|
257
|
+
*/
|
|
258
|
+
replicas?: pulumi.Input<number | undefined>;
|
|
259
|
+
/**
|
|
260
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
261
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
262
|
+
*/
|
|
263
|
+
restorePoint?: pulumi.Input<string | undefined>;
|
|
264
|
+
/**
|
|
265
|
+
* Storage configuration for non-Metal branches. PlanetScale clears these settings for Metal cluster sizes.
|
|
266
|
+
*/
|
|
267
|
+
storage?: pulumi.Input<inputs.PostgresBranchStorage | undefined>;
|
|
268
|
+
}
|
|
269
|
+
//# sourceMappingURL=postgresBranch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBranch.d.ts","sourceRoot":"","sources":["../postgresBranch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;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,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;SAAC,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IAC5G;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.PostgresBranch = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class PostgresBranch extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing PostgresBranch resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new PostgresBranch(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check whether an existing PostgresBranch resource with the given ID exists.
|
|
46
|
+
*
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static exists(id, state, opts) {
|
|
52
|
+
return pulumi.runtime.existsResource("planetscale:index/postgresBranch:PostgresBranch", id, state || {}, { ...opts }, utilities.getPackage());
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'planetscale:index/postgresBranch:PostgresBranch';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of PostgresBranch. 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'] === PostgresBranch.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["actor"] = state?.actor;
|
|
72
|
+
resourceInputs["backupId"] = state?.backupId;
|
|
73
|
+
resourceInputs["clusterSize"] = state?.clusterSize;
|
|
74
|
+
resourceInputs["database"] = state?.database;
|
|
75
|
+
resourceInputs["deleteDescendants"] = state?.deleteDescendants;
|
|
76
|
+
resourceInputs["deletionProtected"] = state?.deletionProtected;
|
|
77
|
+
resourceInputs["htmlUrl"] = state?.htmlUrl;
|
|
78
|
+
resourceInputs["majorVersion"] = state?.majorVersion;
|
|
79
|
+
resourceInputs["name"] = state?.name;
|
|
80
|
+
resourceInputs["organization"] = state?.organization;
|
|
81
|
+
resourceInputs["parameters"] = state?.parameters;
|
|
82
|
+
resourceInputs["parentBranch"] = state?.parentBranch;
|
|
83
|
+
resourceInputs["ready"] = state?.ready;
|
|
84
|
+
resourceInputs["region"] = state?.region;
|
|
85
|
+
resourceInputs["regionData"] = state?.regionData;
|
|
86
|
+
resourceInputs["replicas"] = state?.replicas;
|
|
87
|
+
resourceInputs["restorePoint"] = state?.restorePoint;
|
|
88
|
+
resourceInputs["state"] = state?.state;
|
|
89
|
+
resourceInputs["storage"] = state?.storage;
|
|
90
|
+
resourceInputs["url"] = state?.url;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const args = argsOrState;
|
|
94
|
+
if (args?.database === undefined && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'database'");
|
|
96
|
+
}
|
|
97
|
+
if (args?.organization === undefined && !opts.urn) {
|
|
98
|
+
throw new Error("Missing required property 'organization'");
|
|
99
|
+
}
|
|
100
|
+
resourceInputs["backupId"] = args?.backupId ? pulumi.secret(args.backupId) : undefined;
|
|
101
|
+
resourceInputs["clusterSize"] = args?.clusterSize;
|
|
102
|
+
resourceInputs["database"] = args?.database;
|
|
103
|
+
resourceInputs["deleteDescendants"] = args?.deleteDescendants;
|
|
104
|
+
resourceInputs["deletionProtected"] = args?.deletionProtected;
|
|
105
|
+
resourceInputs["majorVersion"] = args?.majorVersion;
|
|
106
|
+
resourceInputs["name"] = args?.name;
|
|
107
|
+
resourceInputs["organization"] = args?.organization;
|
|
108
|
+
resourceInputs["parameters"] = args?.parameters;
|
|
109
|
+
resourceInputs["parentBranch"] = args?.parentBranch;
|
|
110
|
+
resourceInputs["region"] = args?.region;
|
|
111
|
+
resourceInputs["replicas"] = args?.replicas;
|
|
112
|
+
resourceInputs["restorePoint"] = args?.restorePoint ? pulumi.secret(args.restorePoint) : undefined;
|
|
113
|
+
resourceInputs["storage"] = args?.storage;
|
|
114
|
+
resourceInputs["actor"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["htmlUrl"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["ready"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["regionData"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
120
|
+
}
|
|
121
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
122
|
+
const secretOpts = { additionalSecretOutputs: ["backupId", "restorePoint"] };
|
|
123
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
124
|
+
super(PostgresBranch.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.PostgresBranch = PostgresBranch;
|
|
128
|
+
//# sourceMappingURL=postgresBranch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBranch.js","sourceRoot":"","sources":["../postgresBranch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAA2B,EAAE,IAAmC;QAC3G,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,iDAAiD,EAAE,EAAE,EAAO,KAAK,IAAI,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACvJ,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,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