@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,245 @@
|
|
|
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
|
+
* Returns true if the given object is an instance of PostgresBranch. 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 PostgresBranch;
|
|
20
|
+
readonly actor: pulumi.Output<outputs.PostgresBranchActor>;
|
|
21
|
+
/**
|
|
22
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
readonly backupId: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint.
|
|
28
|
+
*/
|
|
29
|
+
readonly clusterSize: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* 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`.
|
|
32
|
+
*/
|
|
33
|
+
readonly database: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
36
|
+
*/
|
|
37
|
+
readonly deleteDescendants: pulumi.Output<boolean | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether deletion protection is enabled for the branch
|
|
40
|
+
*/
|
|
41
|
+
readonly deletionProtected: pulumi.Output<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Planetscale app URL for the branch
|
|
44
|
+
*/
|
|
45
|
+
readonly htmlUrl: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
*/
|
|
49
|
+
readonly majorVersion: pulumi.Output<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the branch to create
|
|
52
|
+
*/
|
|
53
|
+
readonly name: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* 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>.
|
|
56
|
+
*/
|
|
57
|
+
readonly organization: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* 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.
|
|
60
|
+
*/
|
|
61
|
+
readonly parameters: pulumi.Output<{
|
|
62
|
+
[key: string]: {
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
68
|
+
*/
|
|
69
|
+
readonly parentBranch: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Whether or not the branch is ready to serve queries
|
|
72
|
+
*/
|
|
73
|
+
readonly ready: pulumi.Output<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
*/
|
|
77
|
+
readonly region: pulumi.Output<string>;
|
|
78
|
+
readonly regionData: pulumi.Output<outputs.PostgresBranchRegionData>;
|
|
79
|
+
/**
|
|
80
|
+
* The number of replicas for the branch
|
|
81
|
+
*/
|
|
82
|
+
readonly replicas: pulumi.Output<number>;
|
|
83
|
+
/**
|
|
84
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
85
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
86
|
+
*/
|
|
87
|
+
readonly restorePoint: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* The current state of the branch
|
|
90
|
+
*/
|
|
91
|
+
readonly state: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Planetscale API URL for the branch
|
|
94
|
+
*/
|
|
95
|
+
readonly url: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a PostgresBranch resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: PostgresBranchArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering PostgresBranch resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface PostgresBranchState {
|
|
109
|
+
actor?: pulumi.Input<inputs.PostgresBranchActor>;
|
|
110
|
+
/**
|
|
111
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
112
|
+
* 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.
|
|
113
|
+
*/
|
|
114
|
+
backupId?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint.
|
|
117
|
+
*/
|
|
118
|
+
clusterSize?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* 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`.
|
|
121
|
+
*/
|
|
122
|
+
database?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
125
|
+
*/
|
|
126
|
+
deleteDescendants?: pulumi.Input<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether deletion protection is enabled for the branch
|
|
129
|
+
*/
|
|
130
|
+
deletionProtected?: pulumi.Input<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Planetscale app URL for the branch
|
|
133
|
+
*/
|
|
134
|
+
htmlUrl?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* 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.
|
|
137
|
+
*/
|
|
138
|
+
majorVersion?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The name of the branch to create
|
|
141
|
+
*/
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* 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>.
|
|
145
|
+
*/
|
|
146
|
+
organization?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* 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.
|
|
149
|
+
*/
|
|
150
|
+
parameters?: pulumi.Input<{
|
|
151
|
+
[key: string]: pulumi.Input<{
|
|
152
|
+
[key: string]: pulumi.Input<string>;
|
|
153
|
+
}>;
|
|
154
|
+
}>;
|
|
155
|
+
/**
|
|
156
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
157
|
+
*/
|
|
158
|
+
parentBranch?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Whether or not the branch is ready to serve queries
|
|
161
|
+
*/
|
|
162
|
+
ready?: pulumi.Input<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* 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.
|
|
165
|
+
*/
|
|
166
|
+
region?: pulumi.Input<string>;
|
|
167
|
+
regionData?: pulumi.Input<inputs.PostgresBranchRegionData>;
|
|
168
|
+
/**
|
|
169
|
+
* The number of replicas for the branch
|
|
170
|
+
*/
|
|
171
|
+
replicas?: pulumi.Input<number>;
|
|
172
|
+
/**
|
|
173
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
174
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
175
|
+
*/
|
|
176
|
+
restorePoint?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The current state of the branch
|
|
179
|
+
*/
|
|
180
|
+
state?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Planetscale API URL for the branch
|
|
183
|
+
*/
|
|
184
|
+
url?: pulumi.Input<string>;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* The set of arguments for constructing a PostgresBranch resource.
|
|
188
|
+
*/
|
|
189
|
+
export interface PostgresBranchArgs {
|
|
190
|
+
/**
|
|
191
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
192
|
+
* 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.
|
|
193
|
+
*/
|
|
194
|
+
backupId?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* The size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint.
|
|
197
|
+
*/
|
|
198
|
+
clusterSize?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* 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`.
|
|
201
|
+
*/
|
|
202
|
+
database: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* If true, recursively delete all descendant branches along with this branch
|
|
205
|
+
*/
|
|
206
|
+
deleteDescendants?: pulumi.Input<boolean>;
|
|
207
|
+
/**
|
|
208
|
+
* Whether deletion protection is enabled for the branch
|
|
209
|
+
*/
|
|
210
|
+
deletionProtected?: pulumi.Input<boolean>;
|
|
211
|
+
/**
|
|
212
|
+
* 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.
|
|
213
|
+
*/
|
|
214
|
+
majorVersion?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* The name of the branch to create
|
|
217
|
+
*/
|
|
218
|
+
name?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* 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>.
|
|
221
|
+
*/
|
|
222
|
+
organization: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* 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.
|
|
225
|
+
*/
|
|
226
|
+
parameters?: pulumi.Input<{
|
|
227
|
+
[key: string]: pulumi.Input<{
|
|
228
|
+
[key: string]: pulumi.Input<string>;
|
|
229
|
+
}>;
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* The name of the parent branch. Defaults to the database's default branch if not provided. Requires replacement if changed.
|
|
233
|
+
*/
|
|
234
|
+
parentBranch?: pulumi.Input<string>;
|
|
235
|
+
/**
|
|
236
|
+
* 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.
|
|
237
|
+
*/
|
|
238
|
+
region?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
241
|
+
* Restore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases. Requires replacement if changed.
|
|
242
|
+
*/
|
|
243
|
+
restorePoint?: pulumi.Input<string>;
|
|
244
|
+
}
|
|
245
|
+
//# 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;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KA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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
|
+
/** @internal */
|
|
45
|
+
static __pulumiType = 'planetscale:index/postgresBranch:PostgresBranch';
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of PostgresBranch. 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'] === PostgresBranch.__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["backupId"] = state?.backupId;
|
|
63
|
+
resourceInputs["clusterSize"] = state?.clusterSize;
|
|
64
|
+
resourceInputs["database"] = state?.database;
|
|
65
|
+
resourceInputs["deleteDescendants"] = state?.deleteDescendants;
|
|
66
|
+
resourceInputs["deletionProtected"] = state?.deletionProtected;
|
|
67
|
+
resourceInputs["htmlUrl"] = state?.htmlUrl;
|
|
68
|
+
resourceInputs["majorVersion"] = state?.majorVersion;
|
|
69
|
+
resourceInputs["name"] = state?.name;
|
|
70
|
+
resourceInputs["organization"] = state?.organization;
|
|
71
|
+
resourceInputs["parameters"] = state?.parameters;
|
|
72
|
+
resourceInputs["parentBranch"] = state?.parentBranch;
|
|
73
|
+
resourceInputs["ready"] = state?.ready;
|
|
74
|
+
resourceInputs["region"] = state?.region;
|
|
75
|
+
resourceInputs["regionData"] = state?.regionData;
|
|
76
|
+
resourceInputs["replicas"] = state?.replicas;
|
|
77
|
+
resourceInputs["restorePoint"] = state?.restorePoint;
|
|
78
|
+
resourceInputs["state"] = state?.state;
|
|
79
|
+
resourceInputs["url"] = state?.url;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if (args?.database === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'database'");
|
|
85
|
+
}
|
|
86
|
+
if (args?.organization === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'organization'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["backupId"] = args?.backupId ? pulumi.secret(args.backupId) : undefined;
|
|
90
|
+
resourceInputs["clusterSize"] = args?.clusterSize;
|
|
91
|
+
resourceInputs["database"] = args?.database;
|
|
92
|
+
resourceInputs["deleteDescendants"] = args?.deleteDescendants;
|
|
93
|
+
resourceInputs["deletionProtected"] = args?.deletionProtected;
|
|
94
|
+
resourceInputs["majorVersion"] = args?.majorVersion;
|
|
95
|
+
resourceInputs["name"] = args?.name;
|
|
96
|
+
resourceInputs["organization"] = args?.organization;
|
|
97
|
+
resourceInputs["parameters"] = args?.parameters;
|
|
98
|
+
resourceInputs["parentBranch"] = args?.parentBranch;
|
|
99
|
+
resourceInputs["region"] = args?.region;
|
|
100
|
+
resourceInputs["restorePoint"] = args?.restorePoint ? pulumi.secret(args.restorePoint) : undefined;
|
|
101
|
+
resourceInputs["actor"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["htmlUrl"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["ready"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["regionData"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["replicas"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
const secretOpts = { additionalSecretOutputs: ["backupId", "restorePoint"] };
|
|
111
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
112
|
+
super(PostgresBranch.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.PostgresBranch = PostgresBranch;
|
|
116
|
+
//# 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,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,iDAAiD,CAAC;IAExF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAmFD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,c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YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,EAAE,CAAC;QAC7E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACjH,CAAC;;AArKL,wCAsKC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
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 PostgresBranchBackup extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing PostgresBranchBackup 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?: PostgresBranchBackupState, opts?: pulumi.CustomResourceOptions): PostgresBranchBackup;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of PostgresBranchBackup. 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 PostgresBranchBackup;
|
|
20
|
+
readonly actor: pulumi.Output<outputs.PostgresBranchBackupActor>;
|
|
21
|
+
readonly backupPolicy: pulumi.Output<outputs.PostgresBranchBackupBackupPolicy>;
|
|
22
|
+
/**
|
|
23
|
+
* The name of the branch. Requires replacement if changed.
|
|
24
|
+
*/
|
|
25
|
+
readonly branch: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* When the backup completed
|
|
28
|
+
*/
|
|
29
|
+
readonly completedAt: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the database the branch belongs to. Requires replacement if changed.
|
|
32
|
+
*/
|
|
33
|
+
readonly database: pulumi.Output<string>;
|
|
34
|
+
readonly databaseBranch: pulumi.Output<outputs.PostgresBranchBackupDatabaseBranch>;
|
|
35
|
+
/**
|
|
36
|
+
* When the backup was deleted
|
|
37
|
+
*/
|
|
38
|
+
readonly deletedAt: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the backup is an immediate backup that may affect database performance. Emergency backups are only supported for PostgreSQL databases. Requires replacement if changed.
|
|
41
|
+
*/
|
|
42
|
+
readonly emergency: pulumi.Output<boolean | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The estimated storage cost of the backup
|
|
45
|
+
*/
|
|
46
|
+
readonly estimatedStorageCost: pulumi.Output<number>;
|
|
47
|
+
/**
|
|
48
|
+
* When the backup expires
|
|
49
|
+
*/
|
|
50
|
+
readonly expiresAt: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Name for the backup. Requires replacement if changed.
|
|
53
|
+
*/
|
|
54
|
+
readonly name: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the organization the branch belongs to. Requires replacement if changed.
|
|
57
|
+
*/
|
|
58
|
+
readonly organization: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Whether or not the backup is protected from deletion
|
|
61
|
+
*/
|
|
62
|
+
readonly protected: pulumi.Output<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Size of the PVC used for the backup
|
|
65
|
+
*/
|
|
66
|
+
readonly pvcSize: pulumi.Output<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Unit for the retention period of the backup. must be one of ["hour", "day", "week", "month", "year"]; Requires replacement if changed.
|
|
69
|
+
*/
|
|
70
|
+
readonly retentionUnit: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Value between <span pulumi-lang-nodejs="`1`" pulumi-lang-dotnet="`1`" pulumi-lang-go="`1`" pulumi-lang-python="`1`" pulumi-lang-yaml="`1`" pulumi-lang-java="`1`" pulumi-lang-hcl="`1`">`1`</span> and <span pulumi-lang-nodejs="`1000`" pulumi-lang-dotnet="`1000`" pulumi-lang-go="`1000`" pulumi-lang-python="`1000`" pulumi-lang-yaml="`1000`" pulumi-lang-java="`1000`" pulumi-lang-hcl="`1000`">`1000`</span> for the retention period of the backup (i.e<span pulumi-lang-nodejs=" retentionValue " pulumi-lang-dotnet=" RetentionValue " pulumi-lang-go=" retentionValue " pulumi-lang-python=" retention_value " pulumi-lang-yaml=" retentionValue " pulumi-lang-java=" retentionValue " pulumi-lang-hcl=" retention_value "> retentionValue </span><span pulumi-lang-nodejs="`6`" pulumi-lang-dotnet="`6`" pulumi-lang-go="`6`" pulumi-lang-python="`6`" pulumi-lang-yaml="`6`" pulumi-lang-java="`6`" pulumi-lang-hcl="`6`">`6`</span> and<span pulumi-lang-nodejs=" retentionUnit " pulumi-lang-dotnet=" RetentionUnit " pulumi-lang-go=" retentionUnit " pulumi-lang-python=" retention_unit " pulumi-lang-yaml=" retentionUnit " pulumi-lang-java=" retentionUnit " pulumi-lang-hcl=" retention_unit "> retentionUnit </span><span pulumi-lang-nodejs="`hour`" pulumi-lang-dotnet="`Hour`" pulumi-lang-go="`hour`" pulumi-lang-python="`hour`" pulumi-lang-yaml="`hour`" pulumi-lang-java="`hour`" pulumi-lang-hcl="`hour`">`hour`</span> means 6 hours). Requires replacement if changed.
|
|
73
|
+
*/
|
|
74
|
+
readonly retentionValue: pulumi.Output<number | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The size of the backup in bytes
|
|
77
|
+
*/
|
|
78
|
+
readonly size: pulumi.Output<number>;
|
|
79
|
+
/**
|
|
80
|
+
* When the backup started
|
|
81
|
+
*/
|
|
82
|
+
readonly startedAt: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The current state of the backup
|
|
85
|
+
*/
|
|
86
|
+
readonly state: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The uncompressed (logical) size of the backup in bytes
|
|
89
|
+
*/
|
|
90
|
+
readonly uncompressedSize: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a PostgresBranchBackup resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: PostgresBranchBackupArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering PostgresBranchBackup resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface PostgresBranchBackupState {
|
|
104
|
+
actor?: pulumi.Input<inputs.PostgresBranchBackupActor>;
|
|
105
|
+
backupPolicy?: pulumi.Input<inputs.PostgresBranchBackupBackupPolicy>;
|
|
106
|
+
/**
|
|
107
|
+
* The name of the branch. Requires replacement if changed.
|
|
108
|
+
*/
|
|
109
|
+
branch?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* When the backup completed
|
|
112
|
+
*/
|
|
113
|
+
completedAt?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The name of the database the branch belongs to. Requires replacement if changed.
|
|
116
|
+
*/
|
|
117
|
+
database?: pulumi.Input<string>;
|
|
118
|
+
databaseBranch?: pulumi.Input<inputs.PostgresBranchBackupDatabaseBranch>;
|
|
119
|
+
/**
|
|
120
|
+
* When the backup was deleted
|
|
121
|
+
*/
|
|
122
|
+
deletedAt?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the backup is an immediate backup that may affect database performance. Emergency backups are only supported for PostgreSQL databases. Requires replacement if changed.
|
|
125
|
+
*/
|
|
126
|
+
emergency?: pulumi.Input<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* The estimated storage cost of the backup
|
|
129
|
+
*/
|
|
130
|
+
estimatedStorageCost?: pulumi.Input<number>;
|
|
131
|
+
/**
|
|
132
|
+
* When the backup expires
|
|
133
|
+
*/
|
|
134
|
+
expiresAt?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Name for the backup. Requires replacement if changed.
|
|
137
|
+
*/
|
|
138
|
+
name?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The name of the organization the branch belongs to. Requires replacement if changed.
|
|
141
|
+
*/
|
|
142
|
+
organization?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Whether or not the backup is protected from deletion
|
|
145
|
+
*/
|
|
146
|
+
protected?: pulumi.Input<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Size of the PVC used for the backup
|
|
149
|
+
*/
|
|
150
|
+
pvcSize?: pulumi.Input<number>;
|
|
151
|
+
/**
|
|
152
|
+
* Unit for the retention period of the backup. must be one of ["hour", "day", "week", "month", "year"]; Requires replacement if changed.
|
|
153
|
+
*/
|
|
154
|
+
retentionUnit?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Value between <span pulumi-lang-nodejs="`1`" pulumi-lang-dotnet="`1`" pulumi-lang-go="`1`" pulumi-lang-python="`1`" pulumi-lang-yaml="`1`" pulumi-lang-java="`1`" pulumi-lang-hcl="`1`">`1`</span> and <span pulumi-lang-nodejs="`1000`" pulumi-lang-dotnet="`1000`" pulumi-lang-go="`1000`" pulumi-lang-python="`1000`" pulumi-lang-yaml="`1000`" pulumi-lang-java="`1000`" pulumi-lang-hcl="`1000`">`1000`</span> for the retention period of the backup (i.e<span pulumi-lang-nodejs=" retentionValue " pulumi-lang-dotnet=" RetentionValue " pulumi-lang-go=" retentionValue " pulumi-lang-python=" retention_value " pulumi-lang-yaml=" retentionValue " pulumi-lang-java=" retentionValue " pulumi-lang-hcl=" retention_value "> retentionValue </span><span pulumi-lang-nodejs="`6`" pulumi-lang-dotnet="`6`" pulumi-lang-go="`6`" pulumi-lang-python="`6`" pulumi-lang-yaml="`6`" pulumi-lang-java="`6`" pulumi-lang-hcl="`6`">`6`</span> and<span pulumi-lang-nodejs=" retentionUnit " pulumi-lang-dotnet=" RetentionUnit " pulumi-lang-go=" retentionUnit " pulumi-lang-python=" retention_unit " pulumi-lang-yaml=" retentionUnit " pulumi-lang-java=" retentionUnit " pulumi-lang-hcl=" retention_unit "> retentionUnit </span><span pulumi-lang-nodejs="`hour`" pulumi-lang-dotnet="`Hour`" pulumi-lang-go="`hour`" pulumi-lang-python="`hour`" pulumi-lang-yaml="`hour`" pulumi-lang-java="`hour`" pulumi-lang-hcl="`hour`">`hour`</span> means 6 hours). Requires replacement if changed.
|
|
157
|
+
*/
|
|
158
|
+
retentionValue?: pulumi.Input<number>;
|
|
159
|
+
/**
|
|
160
|
+
* The size of the backup in bytes
|
|
161
|
+
*/
|
|
162
|
+
size?: pulumi.Input<number>;
|
|
163
|
+
/**
|
|
164
|
+
* When the backup started
|
|
165
|
+
*/
|
|
166
|
+
startedAt?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The current state of the backup
|
|
169
|
+
*/
|
|
170
|
+
state?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The uncompressed (logical) size of the backup in bytes
|
|
173
|
+
*/
|
|
174
|
+
uncompressedSize?: pulumi.Input<number>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The set of arguments for constructing a PostgresBranchBackup resource.
|
|
178
|
+
*/
|
|
179
|
+
export interface PostgresBranchBackupArgs {
|
|
180
|
+
/**
|
|
181
|
+
* The name of the branch. Requires replacement if changed.
|
|
182
|
+
*/
|
|
183
|
+
branch: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The name of the database the branch belongs to. Requires replacement if changed.
|
|
186
|
+
*/
|
|
187
|
+
database: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Whether the backup is an immediate backup that may affect database performance. Emergency backups are only supported for PostgreSQL databases. Requires replacement if changed.
|
|
190
|
+
*/
|
|
191
|
+
emergency?: pulumi.Input<boolean>;
|
|
192
|
+
/**
|
|
193
|
+
* Name for the backup. Requires replacement if changed.
|
|
194
|
+
*/
|
|
195
|
+
name?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The name of the organization the branch belongs to. Requires replacement if changed.
|
|
198
|
+
*/
|
|
199
|
+
organization: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Unit for the retention period of the backup. must be one of ["hour", "day", "week", "month", "year"]; Requires replacement if changed.
|
|
202
|
+
*/
|
|
203
|
+
retentionUnit?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Value between <span pulumi-lang-nodejs="`1`" pulumi-lang-dotnet="`1`" pulumi-lang-go="`1`" pulumi-lang-python="`1`" pulumi-lang-yaml="`1`" pulumi-lang-java="`1`" pulumi-lang-hcl="`1`">`1`</span> and <span pulumi-lang-nodejs="`1000`" pulumi-lang-dotnet="`1000`" pulumi-lang-go="`1000`" pulumi-lang-python="`1000`" pulumi-lang-yaml="`1000`" pulumi-lang-java="`1000`" pulumi-lang-hcl="`1000`">`1000`</span> for the retention period of the backup (i.e<span pulumi-lang-nodejs=" retentionValue " pulumi-lang-dotnet=" RetentionValue " pulumi-lang-go=" retentionValue " pulumi-lang-python=" retention_value " pulumi-lang-yaml=" retentionValue " pulumi-lang-java=" retentionValue " pulumi-lang-hcl=" retention_value "> retentionValue </span><span pulumi-lang-nodejs="`6`" pulumi-lang-dotnet="`6`" pulumi-lang-go="`6`" pulumi-lang-python="`6`" pulumi-lang-yaml="`6`" pulumi-lang-java="`6`" pulumi-lang-hcl="`6`">`6`</span> and<span pulumi-lang-nodejs=" retentionUnit " pulumi-lang-dotnet=" RetentionUnit " pulumi-lang-go=" retentionUnit " pulumi-lang-python=" retention_unit " pulumi-lang-yaml=" retentionUnit " pulumi-lang-java=" retentionUnit " pulumi-lang-hcl=" retention_unit "> retentionUnit </span><span pulumi-lang-nodejs="`hour`" pulumi-lang-dotnet="`Hour`" pulumi-lang-go="`hour`" pulumi-lang-python="`hour`" pulumi-lang-yaml="`hour`" pulumi-lang-java="`hour`" pulumi-lang-hcl="`hour`">`hour`</span> means 6 hours). Requires replacement if changed.
|
|
206
|
+
*/
|
|
207
|
+
retentionValue?: pulumi.Input<number>;
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=postgresBranchBackup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresBranchBackup.d.ts","sourceRoot":"","sources":["../postgresBranchBackup.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,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,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