@lshay-provider/planetscale 0.0.0-stage → 1.14.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 +59 -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/getNekiSidecar.d.ts +48 -0
- package/bin/getNekiSidecar.d.ts.map +1 -0
- package/bin/getNekiSidecar.js +53 -0
- package/bin/getNekiSidecar.js.map +1 -0
- package/bin/getOrganization.d.ts +46 -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 +46 -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/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/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 +48 -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 +54 -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 +191 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +289 -0
- package/bin/index.js.map +1 -0
- package/bin/nekiAdmin.d.ts +117 -0
- package/bin/nekiAdmin.d.ts.map +1 -0
- package/bin/nekiAdmin.js +91 -0
- package/bin/nekiAdmin.js.map +1 -0
- package/bin/nekiBackupPolicy.d.ts +177 -0
- package/bin/nekiBackupPolicy.d.ts.map +1 -0
- package/bin/nekiBackupPolicy.js +118 -0
- package/bin/nekiBackupPolicy.js.map +1 -0
- package/bin/nekiBranch.d.ts +159 -0
- package/bin/nekiBranch.d.ts.map +1 -0
- package/bin/nekiBranch.js +98 -0
- package/bin/nekiBranch.js.map +1 -0
- package/bin/nekiConfigurationProfile.d.ts +198 -0
- package/bin/nekiConfigurationProfile.d.ts.map +1 -0
- package/bin/nekiConfigurationProfile.js +107 -0
- package/bin/nekiConfigurationProfile.js.map +1 -0
- package/bin/nekiRole.d.ts +181 -0
- package/bin/nekiRole.d.ts.map +1 -0
- package/bin/nekiRole.js +109 -0
- package/bin/nekiRole.js.map +1 -0
- package/bin/nekiRouter.d.ts +185 -0
- package/bin/nekiRouter.d.ts.map +1 -0
- package/bin/nekiRouter.js +103 -0
- package/bin/nekiRouter.js.map +1 -0
- package/bin/nekiShard.d.ts +113 -0
- package/bin/nekiShard.d.ts.map +1 -0
- package/bin/nekiShard.js +96 -0
- package/bin/nekiShard.js.map +1 -0
- package/bin/nekiSidecar.d.ts +117 -0
- package/bin/nekiSidecar.d.ts.map +1 -0
- package/bin/nekiSidecar.js +94 -0
- package/bin/nekiSidecar.js.map +1 -0
- package/bin/package.json +35 -0
- package/bin/postgresBackupPolicy.d.ts +177 -0
- package/bin/postgresBackupPolicy.d.ts.map +1 -0
- package/bin/postgresBackupPolicy.js +100 -0
- package/bin/postgresBackupPolicy.js.map +1 -0
- package/bin/postgresBouncer.d.ts +149 -0
- package/bin/postgresBouncer.d.ts.map +1 -0
- package/bin/postgresBouncer.js +97 -0
- package/bin/postgresBouncer.js.map +1 -0
- package/bin/postgresBranch.d.ts +245 -0
- package/bin/postgresBranch.d.ts.map +1 -0
- package/bin/postgresBranch.js +116 -0
- package/bin/postgresBranch.js.map +1 -0
- package/bin/postgresBranchBackup.d.ts +209 -0
- package/bin/postgresBranchBackup.d.ts.map +1 -0
- package/bin/postgresBranchBackup.js +119 -0
- package/bin/postgresBranchBackup.js.map +1 -0
- package/bin/postgresBranchRole.d.ts +269 -0
- package/bin/postgresBranchRole.d.ts.map +1 -0
- package/bin/postgresBranchRole.js +135 -0
- package/bin/postgresBranchRole.js.map +1 -0
- package/bin/postgresDedicatedReadReplica.d.ts +145 -0
- package/bin/postgresDedicatedReadReplica.d.ts.map +1 -0
- package/bin/postgresDedicatedReadReplica.js +102 -0
- package/bin/postgresDedicatedReadReplica.js.map +1 -0
- package/bin/postgresReadOnlyReplica.d.ts +145 -0
- package/bin/postgresReadOnlyReplica.d.ts.map +1 -0
- package/bin/postgresReadOnlyReplica.js +102 -0
- package/bin/postgresReadOnlyReplica.js.map +1 -0
- package/bin/postgresRedactedBranchRole.d.ts +261 -0
- package/bin/postgresRedactedBranchRole.d.ts.map +1 -0
- package/bin/postgresRedactedBranchRole.js +131 -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 +298 -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 +1912 -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 +152 -0
- package/bin/utilities.js.map +1 -0
- package/bin/vitessBackupPolicy.d.ts +177 -0
- package/bin/vitessBackupPolicy.d.ts.map +1 -0
- package/bin/vitessBackupPolicy.js +100 -0
- package/bin/vitessBackupPolicy.js.map +1 -0
- package/bin/vitessBranch.d.ts +291 -0
- package/bin/vitessBranch.d.ts.map +1 -0
- package/bin/vitessBranch.js +126 -0
- package/bin/vitessBranch.js.map +1 -0
- package/bin/vitessBranchBackup.d.ts +197 -0
- package/bin/vitessBranchBackup.d.ts.map +1 -0
- package/bin/vitessBranchBackup.js +117 -0
- package/bin/vitessBranchBackup.js.map +1 -0
- package/bin/vitessBranchPassword.d.ts +257 -0
- package/bin/vitessBranchPassword.d.ts.map +1 -0
- package/bin/vitessBranchPassword.js +131 -0
- package/bin/vitessBranchPassword.js.map +1 -0
- package/bin/vitessKeyspace.d.ts +249 -0
- package/bin/vitessKeyspace.d.ts.map +1 -0
- package/bin/vitessKeyspace.js +132 -0
- package/bin/vitessKeyspace.js.map +1 -0
- package/package.json +32 -3
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class PostgresBackupPolicy extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing PostgresBackupPolicy resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PostgresBackupPolicyState, opts?: pulumi.CustomResourceOptions): PostgresBackupPolicy;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of PostgresBackupPolicy. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is PostgresBackupPolicy;
|
|
18
|
+
/**
|
|
19
|
+
* 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`.
|
|
20
|
+
*/
|
|
21
|
+
readonly database: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The display name of the backup policy
|
|
24
|
+
*/
|
|
25
|
+
readonly displayName: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The unit for the frequency of the backup policy. must be one of ["hour", "day", "week", "month"]
|
|
28
|
+
*/
|
|
29
|
+
readonly frequencyUnit: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* A number value for the frequency of the backup policy
|
|
32
|
+
*/
|
|
33
|
+
readonly frequencyValue: pulumi.Output<number>;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the backup policy
|
|
36
|
+
*/
|
|
37
|
+
readonly name: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* 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>.
|
|
40
|
+
*/
|
|
41
|
+
readonly organization: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The unit for the retention period of the backup policy. must be one of ["hour", "day", "week", "month", "year"]
|
|
44
|
+
*/
|
|
45
|
+
readonly retentionUnit: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* A number value for the retention period of the backup policy
|
|
48
|
+
*/
|
|
49
|
+
readonly retentionValue: pulumi.Output<number>;
|
|
50
|
+
/**
|
|
51
|
+
* Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
|
|
52
|
+
*/
|
|
53
|
+
readonly scheduleDay: pulumi.Output<number>;
|
|
54
|
+
/**
|
|
55
|
+
* The time of day that the backup is scheduled, in HH:MM format
|
|
56
|
+
*/
|
|
57
|
+
readonly scheduleTime: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
|
|
60
|
+
*/
|
|
61
|
+
readonly scheduleWeek: pulumi.Output<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the policy is for production or development branches. must be one of ["production", "development"]
|
|
64
|
+
*/
|
|
65
|
+
readonly target: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a PostgresBackupPolicy resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, args: PostgresBackupPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Input properties used for looking up and filtering PostgresBackupPolicy resources.
|
|
77
|
+
*/
|
|
78
|
+
export interface PostgresBackupPolicyState {
|
|
79
|
+
/**
|
|
80
|
+
* 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`.
|
|
81
|
+
*/
|
|
82
|
+
database?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The display name of the backup policy
|
|
85
|
+
*/
|
|
86
|
+
displayName?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The unit for the frequency of the backup policy. must be one of ["hour", "day", "week", "month"]
|
|
89
|
+
*/
|
|
90
|
+
frequencyUnit?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* A number value for the frequency of the backup policy
|
|
93
|
+
*/
|
|
94
|
+
frequencyValue?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the backup policy
|
|
97
|
+
*/
|
|
98
|
+
name?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* 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>.
|
|
101
|
+
*/
|
|
102
|
+
organization?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The unit for the retention period of the backup policy. must be one of ["hour", "day", "week", "month", "year"]
|
|
105
|
+
*/
|
|
106
|
+
retentionUnit?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* A number value for the retention period of the backup policy
|
|
109
|
+
*/
|
|
110
|
+
retentionValue?: pulumi.Input<number>;
|
|
111
|
+
/**
|
|
112
|
+
* Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
|
|
113
|
+
*/
|
|
114
|
+
scheduleDay?: pulumi.Input<number>;
|
|
115
|
+
/**
|
|
116
|
+
* The time of day that the backup is scheduled, in HH:MM format
|
|
117
|
+
*/
|
|
118
|
+
scheduleTime?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
|
|
121
|
+
*/
|
|
122
|
+
scheduleWeek?: pulumi.Input<number>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the policy is for production or development branches. must be one of ["production", "development"]
|
|
125
|
+
*/
|
|
126
|
+
target?: pulumi.Input<string>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The set of arguments for constructing a PostgresBackupPolicy resource.
|
|
130
|
+
*/
|
|
131
|
+
export interface PostgresBackupPolicyArgs {
|
|
132
|
+
/**
|
|
133
|
+
* 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`.
|
|
134
|
+
*/
|
|
135
|
+
database: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* The unit for the frequency of the backup policy. must be one of ["hour", "day", "week", "month"]
|
|
138
|
+
*/
|
|
139
|
+
frequencyUnit?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* A number value for the frequency of the backup policy
|
|
142
|
+
*/
|
|
143
|
+
frequencyValue?: pulumi.Input<number>;
|
|
144
|
+
/**
|
|
145
|
+
* The name of the backup policy
|
|
146
|
+
*/
|
|
147
|
+
name?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* 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>.
|
|
150
|
+
*/
|
|
151
|
+
organization: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The unit for the retention period of the backup policy. must be one of ["hour", "day", "week", "month", "year"]
|
|
154
|
+
*/
|
|
155
|
+
retentionUnit?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* A number value for the retention period of the backup policy
|
|
158
|
+
*/
|
|
159
|
+
retentionValue?: pulumi.Input<number>;
|
|
160
|
+
/**
|
|
161
|
+
* Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
|
|
162
|
+
*/
|
|
163
|
+
scheduleDay?: pulumi.Input<number>;
|
|
164
|
+
/**
|
|
165
|
+
* The time of day that the backup is scheduled, in HH:MM format
|
|
166
|
+
*/
|
|
167
|
+
scheduleTime?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
|
|
170
|
+
*/
|
|
171
|
+
scheduleWeek?: pulumi.Input<number>;
|
|
172
|
+
/**
|
|
173
|
+
* Whether the policy is for production or development branches. must be one of ["production", "development"]
|
|
174
|
+
*/
|
|
175
|
+
target?: pulumi.Input<string>;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=postgresBackupPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBackupPolicy.d.ts","sourceRoot":"","sources":["../postgresBackupPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAO1J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB;IAO/D;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;I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AM,CAAC,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.PostgresBackupPolicy = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class PostgresBackupPolicy extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing PostgresBackupPolicy 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 PostgresBackupPolicy(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
static __pulumiType = 'planetscale:index/postgresBackupPolicy:PostgresBackupPolicy';
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of PostgresBackupPolicy. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === PostgresBackupPolicy.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["database"] = state?.database;
|
|
62
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
63
|
+
resourceInputs["frequencyUnit"] = state?.frequencyUnit;
|
|
64
|
+
resourceInputs["frequencyValue"] = state?.frequencyValue;
|
|
65
|
+
resourceInputs["name"] = state?.name;
|
|
66
|
+
resourceInputs["organization"] = state?.organization;
|
|
67
|
+
resourceInputs["retentionUnit"] = state?.retentionUnit;
|
|
68
|
+
resourceInputs["retentionValue"] = state?.retentionValue;
|
|
69
|
+
resourceInputs["scheduleDay"] = state?.scheduleDay;
|
|
70
|
+
resourceInputs["scheduleTime"] = state?.scheduleTime;
|
|
71
|
+
resourceInputs["scheduleWeek"] = state?.scheduleWeek;
|
|
72
|
+
resourceInputs["target"] = state?.target;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const args = argsOrState;
|
|
76
|
+
if (args?.database === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'database'");
|
|
78
|
+
}
|
|
79
|
+
if (args?.organization === undefined && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'organization'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["database"] = args?.database;
|
|
83
|
+
resourceInputs["frequencyUnit"] = args?.frequencyUnit;
|
|
84
|
+
resourceInputs["frequencyValue"] = args?.frequencyValue;
|
|
85
|
+
resourceInputs["name"] = args?.name;
|
|
86
|
+
resourceInputs["organization"] = args?.organization;
|
|
87
|
+
resourceInputs["retentionUnit"] = args?.retentionUnit;
|
|
88
|
+
resourceInputs["retentionValue"] = args?.retentionValue;
|
|
89
|
+
resourceInputs["scheduleDay"] = args?.scheduleDay;
|
|
90
|
+
resourceInputs["scheduleTime"] = args?.scheduleTime;
|
|
91
|
+
resourceInputs["scheduleWeek"] = args?.scheduleWeek;
|
|
92
|
+
resourceInputs["target"] = args?.target;
|
|
93
|
+
resourceInputs["displayName"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(PostgresBackupPolicy.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.PostgresBackupPolicy = PostgresBackupPolicy;
|
|
100
|
+
//# sourceMappingURL=postgresBackupPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBackupPolicy.js","sourceRoot":"","sources":["../postgresBackupPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFA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AAE,YAAY,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACvH,CAAC;;AA7HL,oDA8HC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 PostgresBouncer extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing PostgresBouncer 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?: PostgresBouncerState, opts?: pulumi.CustomResourceOptions): PostgresBouncer;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of PostgresBouncer. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is PostgresBouncer;
|
|
20
|
+
readonly actor: pulumi.Output<outputs.PostgresBouncerActor>;
|
|
21
|
+
/**
|
|
22
|
+
* The bouncer size, e.g. `PGB_5`, `PGB_10`, `PGB_20`, `PGB_40`, `PGB_80`, or `PGB_160`. Defaults to `PGB_5`.
|
|
23
|
+
*/
|
|
24
|
+
readonly bouncerSize: pulumi.Output<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Branch name from <span pulumi-lang-nodejs="`listBranches`" pulumi-lang-dotnet="`ListBranches`" pulumi-lang-go="`listBranches`" pulumi-lang-python="`list_branches`" pulumi-lang-yaml="`listBranches`" pulumi-lang-java="`listBranches`" pulumi-lang-hcl="`list_branches`">`listBranches`</span>. Example: <span pulumi-lang-nodejs="`main`" pulumi-lang-dotnet="`Main`" pulumi-lang-go="`main`" pulumi-lang-python="`main`" pulumi-lang-yaml="`main`" pulumi-lang-java="`main`" pulumi-lang-hcl="`main`">`main`</span>.
|
|
27
|
+
*/
|
|
28
|
+
readonly branch: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* 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`.
|
|
31
|
+
*/
|
|
32
|
+
readonly database: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The name of the bouncer, at most 12 characters. Clients connect through the bouncer by appending it to the username, e.g. `postgres.abc123|my-bouncer`. Requires replacement if changed.
|
|
35
|
+
*/
|
|
36
|
+
readonly name: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* 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>.
|
|
39
|
+
*/
|
|
40
|
+
readonly organization: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* PgBouncer parameter overrides, nested by namespace, e.g. { pgbouncer = {<span pulumi-lang-nodejs=" defaultPoolSize " pulumi-lang-dotnet=" DefaultPoolSize " pulumi-lang-go=" defaultPoolSize " pulumi-lang-python=" default_pool_size " pulumi-lang-yaml=" defaultPoolSize " pulumi-lang-java=" defaultPoolSize " pulumi-lang-hcl=" default_pool_size "> defaultPoolSize </span>= "100" } }. Omitted parameters are reset to their defaults.
|
|
43
|
+
*/
|
|
44
|
+
readonly parameters: pulumi.Output<{
|
|
45
|
+
[key: string]: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* The number of PgBouncer instances per availability zone. Defaults to 1.
|
|
51
|
+
*/
|
|
52
|
+
readonly replicasPerCell: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* The servers the bouncer routes connections to: <span pulumi-lang-nodejs="`primary`" pulumi-lang-dotnet="`Primary`" pulumi-lang-go="`primary`" pulumi-lang-python="`primary`" pulumi-lang-yaml="`primary`" pulumi-lang-java="`primary`" pulumi-lang-hcl="`primary`">`primary`</span>, <span pulumi-lang-nodejs="`replica`" pulumi-lang-dotnet="`Replica`" pulumi-lang-go="`replica`" pulumi-lang-python="`replica`" pulumi-lang-yaml="`replica`" pulumi-lang-java="`replica`" pulumi-lang-hcl="`replica`">`replica`</span>, or <span pulumi-lang-nodejs="`replicaAzAffinity`" pulumi-lang-dotnet="`ReplicaAzAffinity`" pulumi-lang-go="`replicaAzAffinity`" pulumi-lang-python="`replica_az_affinity`" pulumi-lang-yaml="`replicaAzAffinity`" pulumi-lang-java="`replicaAzAffinity`" pulumi-lang-hcl="`replica_az_affinity`">`replicaAzAffinity`</span> (replicas in the same availability zone as the bouncer). must be one of ["primary", "replica", <span pulumi-lang-nodejs=""replicaAzAffinity"" pulumi-lang-dotnet=""ReplicaAzAffinity"" pulumi-lang-go=""replicaAzAffinity"" pulumi-lang-python=""replica_az_affinity"" pulumi-lang-yaml=""replicaAzAffinity"" pulumi-lang-java=""replicaAzAffinity"" pulumi-lang-hcl=""replica_az_affinity"">"replicaAzAffinity"</span>]; Requires replacement if changed.
|
|
55
|
+
*/
|
|
56
|
+
readonly target: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a PostgresBouncer resource with the given unique name, arguments, and options.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resource.
|
|
61
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, args: PostgresBouncerArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Input properties used for looking up and filtering PostgresBouncer resources.
|
|
68
|
+
*/
|
|
69
|
+
export interface PostgresBouncerState {
|
|
70
|
+
actor?: pulumi.Input<inputs.PostgresBouncerActor>;
|
|
71
|
+
/**
|
|
72
|
+
* The bouncer size, e.g. `PGB_5`, `PGB_10`, `PGB_20`, `PGB_40`, `PGB_80`, or `PGB_160`. Defaults to `PGB_5`.
|
|
73
|
+
*/
|
|
74
|
+
bouncerSize?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Branch name from <span pulumi-lang-nodejs="`listBranches`" pulumi-lang-dotnet="`ListBranches`" pulumi-lang-go="`listBranches`" pulumi-lang-python="`list_branches`" pulumi-lang-yaml="`listBranches`" pulumi-lang-java="`listBranches`" pulumi-lang-hcl="`list_branches`">`listBranches`</span>. Example: <span pulumi-lang-nodejs="`main`" pulumi-lang-dotnet="`Main`" pulumi-lang-go="`main`" pulumi-lang-python="`main`" pulumi-lang-yaml="`main`" pulumi-lang-java="`main`" pulumi-lang-hcl="`main`">`main`</span>.
|
|
77
|
+
*/
|
|
78
|
+
branch?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* 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`.
|
|
81
|
+
*/
|
|
82
|
+
database?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the bouncer, at most 12 characters. Clients connect through the bouncer by appending it to the username, e.g. `postgres.abc123|my-bouncer`. Requires replacement if changed.
|
|
85
|
+
*/
|
|
86
|
+
name?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* 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>.
|
|
89
|
+
*/
|
|
90
|
+
organization?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* PgBouncer parameter overrides, nested by namespace, e.g. { pgbouncer = {<span pulumi-lang-nodejs=" defaultPoolSize " pulumi-lang-dotnet=" DefaultPoolSize " pulumi-lang-go=" defaultPoolSize " pulumi-lang-python=" default_pool_size " pulumi-lang-yaml=" defaultPoolSize " pulumi-lang-java=" defaultPoolSize " pulumi-lang-hcl=" default_pool_size "> defaultPoolSize </span>= "100" } }. Omitted parameters are reset to their defaults.
|
|
93
|
+
*/
|
|
94
|
+
parameters?: pulumi.Input<{
|
|
95
|
+
[key: string]: pulumi.Input<{
|
|
96
|
+
[key: string]: pulumi.Input<string>;
|
|
97
|
+
}>;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* The number of PgBouncer instances per availability zone. Defaults to 1.
|
|
101
|
+
*/
|
|
102
|
+
replicasPerCell?: pulumi.Input<number>;
|
|
103
|
+
/**
|
|
104
|
+
* The servers the bouncer routes connections to: <span pulumi-lang-nodejs="`primary`" pulumi-lang-dotnet="`Primary`" pulumi-lang-go="`primary`" pulumi-lang-python="`primary`" pulumi-lang-yaml="`primary`" pulumi-lang-java="`primary`" pulumi-lang-hcl="`primary`">`primary`</span>, <span pulumi-lang-nodejs="`replica`" pulumi-lang-dotnet="`Replica`" pulumi-lang-go="`replica`" pulumi-lang-python="`replica`" pulumi-lang-yaml="`replica`" pulumi-lang-java="`replica`" pulumi-lang-hcl="`replica`">`replica`</span>, or <span pulumi-lang-nodejs="`replicaAzAffinity`" pulumi-lang-dotnet="`ReplicaAzAffinity`" pulumi-lang-go="`replicaAzAffinity`" pulumi-lang-python="`replica_az_affinity`" pulumi-lang-yaml="`replicaAzAffinity`" pulumi-lang-java="`replicaAzAffinity`" pulumi-lang-hcl="`replica_az_affinity`">`replicaAzAffinity`</span> (replicas in the same availability zone as the bouncer). must be one of ["primary", "replica", <span pulumi-lang-nodejs=""replicaAzAffinity"" pulumi-lang-dotnet=""ReplicaAzAffinity"" pulumi-lang-go=""replicaAzAffinity"" pulumi-lang-python=""replica_az_affinity"" pulumi-lang-yaml=""replicaAzAffinity"" pulumi-lang-java=""replicaAzAffinity"" pulumi-lang-hcl=""replica_az_affinity"">"replicaAzAffinity"</span>]; Requires replacement if changed.
|
|
105
|
+
*/
|
|
106
|
+
target?: pulumi.Input<string>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The set of arguments for constructing a PostgresBouncer resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface PostgresBouncerArgs {
|
|
112
|
+
/**
|
|
113
|
+
* The bouncer size, e.g. `PGB_5`, `PGB_10`, `PGB_20`, `PGB_40`, `PGB_80`, or `PGB_160`. Defaults to `PGB_5`.
|
|
114
|
+
*/
|
|
115
|
+
bouncerSize?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Branch name from <span pulumi-lang-nodejs="`listBranches`" pulumi-lang-dotnet="`ListBranches`" pulumi-lang-go="`listBranches`" pulumi-lang-python="`list_branches`" pulumi-lang-yaml="`listBranches`" pulumi-lang-java="`listBranches`" pulumi-lang-hcl="`list_branches`">`listBranches`</span>. Example: <span pulumi-lang-nodejs="`main`" pulumi-lang-dotnet="`Main`" pulumi-lang-go="`main`" pulumi-lang-python="`main`" pulumi-lang-yaml="`main`" pulumi-lang-java="`main`" pulumi-lang-hcl="`main`">`main`</span>.
|
|
118
|
+
*/
|
|
119
|
+
branch: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* 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`.
|
|
122
|
+
*/
|
|
123
|
+
database: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the bouncer, at most 12 characters. Clients connect through the bouncer by appending it to the username, e.g. `postgres.abc123|my-bouncer`. Requires replacement if changed.
|
|
126
|
+
*/
|
|
127
|
+
name?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* 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>.
|
|
130
|
+
*/
|
|
131
|
+
organization: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* PgBouncer parameter overrides, nested by namespace, e.g. { pgbouncer = {<span pulumi-lang-nodejs=" defaultPoolSize " pulumi-lang-dotnet=" DefaultPoolSize " pulumi-lang-go=" defaultPoolSize " pulumi-lang-python=" default_pool_size " pulumi-lang-yaml=" defaultPoolSize " pulumi-lang-java=" defaultPoolSize " pulumi-lang-hcl=" default_pool_size "> defaultPoolSize </span>= "100" } }. Omitted parameters are reset to their defaults.
|
|
134
|
+
*/
|
|
135
|
+
parameters?: pulumi.Input<{
|
|
136
|
+
[key: string]: pulumi.Input<{
|
|
137
|
+
[key: string]: pulumi.Input<string>;
|
|
138
|
+
}>;
|
|
139
|
+
}>;
|
|
140
|
+
/**
|
|
141
|
+
* The number of PgBouncer instances per availability zone. Defaults to 1.
|
|
142
|
+
*/
|
|
143
|
+
replicasPerCell?: pulumi.Input<number>;
|
|
144
|
+
/**
|
|
145
|
+
* The servers the bouncer routes connections to: <span pulumi-lang-nodejs="`primary`" pulumi-lang-dotnet="`Primary`" pulumi-lang-go="`primary`" pulumi-lang-python="`primary`" pulumi-lang-yaml="`primary`" pulumi-lang-java="`primary`" pulumi-lang-hcl="`primary`">`primary`</span>, <span pulumi-lang-nodejs="`replica`" pulumi-lang-dotnet="`Replica`" pulumi-lang-go="`replica`" pulumi-lang-python="`replica`" pulumi-lang-yaml="`replica`" pulumi-lang-java="`replica`" pulumi-lang-hcl="`replica`">`replica`</span>, or <span pulumi-lang-nodejs="`replicaAzAffinity`" pulumi-lang-dotnet="`ReplicaAzAffinity`" pulumi-lang-go="`replicaAzAffinity`" pulumi-lang-python="`replica_az_affinity`" pulumi-lang-yaml="`replicaAzAffinity`" pulumi-lang-java="`replicaAzAffinity`" pulumi-lang-hcl="`replica_az_affinity`">`replicaAzAffinity`</span> (replicas in the same availability zone as the bouncer). must be one of ["primary", "replica", <span pulumi-lang-nodejs=""replicaAzAffinity"" pulumi-lang-dotnet=""ReplicaAzAffinity"" pulumi-lang-go=""replicaAzAffinity"" pulumi-lang-python=""replica_az_affinity"" pulumi-lang-yaml=""replicaAzAffinity"" pulumi-lang-java=""replicaAzAffinity"" pulumi-lang-hcl=""replica_az_affinity"">"replicaAzAffinity"</span>]; Requires replacement if changed.
|
|
146
|
+
*/
|
|
147
|
+
target?: pulumi.Input<string>;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=postgresBouncer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBouncer.d.ts","sourceRoot":"","sources":["../postgresBouncer.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,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,eAAe;IAOhJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe;IAO1D,SAAgC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnF;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,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CAAC;CACjC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
/** @internal */
|
|
45
|
+
static __pulumiType = 'planetscale:index/postgresBouncer:PostgresBouncer';
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of PostgresBouncer. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === PostgresBouncer.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["actor"] = state?.actor;
|
|
62
|
+
resourceInputs["bouncerSize"] = state?.bouncerSize;
|
|
63
|
+
resourceInputs["branch"] = state?.branch;
|
|
64
|
+
resourceInputs["database"] = state?.database;
|
|
65
|
+
resourceInputs["name"] = state?.name;
|
|
66
|
+
resourceInputs["organization"] = state?.organization;
|
|
67
|
+
resourceInputs["parameters"] = state?.parameters;
|
|
68
|
+
resourceInputs["replicasPerCell"] = state?.replicasPerCell;
|
|
69
|
+
resourceInputs["target"] = state?.target;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const args = argsOrState;
|
|
73
|
+
if (args?.branch === undefined && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'branch'");
|
|
75
|
+
}
|
|
76
|
+
if (args?.database === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'database'");
|
|
78
|
+
}
|
|
79
|
+
if (args?.organization === undefined && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'organization'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["bouncerSize"] = args?.bouncerSize;
|
|
83
|
+
resourceInputs["branch"] = args?.branch;
|
|
84
|
+
resourceInputs["database"] = args?.database;
|
|
85
|
+
resourceInputs["name"] = args?.name;
|
|
86
|
+
resourceInputs["organization"] = args?.organization;
|
|
87
|
+
resourceInputs["parameters"] = args?.parameters;
|
|
88
|
+
resourceInputs["replicasPerCell"] = args?.replicasPerCell;
|
|
89
|
+
resourceInputs["target"] = args?.target;
|
|
90
|
+
resourceInputs["actor"] = undefined /*out*/;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(PostgresBouncer.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.PostgresBouncer = PostgresBouncer;
|
|
97
|
+
//# 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,gBAAgB;IACT,MAAM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