@volcengine/pulumi 0.0.39 → 0.0.40
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/package.json +1 -1
- package/rds_postgresql/account.d.ts +20 -7
- package/rds_postgresql/account.js +6 -3
- package/rds_postgresql/account.js.map +1 -1
- package/rds_postgresql/allowlist.d.ts +76 -8
- package/rds_postgresql/allowlist.js +22 -7
- package/rds_postgresql/allowlist.js.map +1 -1
- package/rds_postgresql/allowlistVersionUpgrade.d.ts +59 -0
- package/rds_postgresql/allowlistVersionUpgrade.js +63 -0
- package/rds_postgresql/allowlistVersionUpgrade.js.map +1 -0
- package/rds_postgresql/allowlists.d.ts +73 -2
- package/rds_postgresql/allowlists.js +21 -2
- package/rds_postgresql/allowlists.js.map +1 -1
- package/rds_postgresql/backupDownload.d.ts +82 -0
- package/rds_postgresql/backupDownload.js +79 -0
- package/rds_postgresql/backupDownload.js.map +1 -0
- package/rds_postgresql/backupDownloads.d.ts +94 -0
- package/rds_postgresql/backupDownloads.js +52 -0
- package/rds_postgresql/backupDownloads.js.map +1 -0
- package/rds_postgresql/backupPolicies.d.ts +33 -0
- package/rds_postgresql/backupPolicies.js +23 -0
- package/rds_postgresql/backupPolicies.js.map +1 -0
- package/rds_postgresql/backupPolicy.d.ts +160 -0
- package/rds_postgresql/backupPolicy.js +94 -0
- package/rds_postgresql/backupPolicy.js.map +1 -0
- package/rds_postgresql/dataBackup.d.ts +163 -0
- package/rds_postgresql/dataBackup.js +109 -0
- package/rds_postgresql/dataBackup.js.map +1 -0
- package/rds_postgresql/dataBackups.d.ts +212 -0
- package/rds_postgresql/dataBackups.js +66 -0
- package/rds_postgresql/dataBackups.js.map +1 -0
- package/rds_postgresql/database.d.ts +43 -0
- package/rds_postgresql/database.js +13 -0
- package/rds_postgresql/database.js.map +1 -1
- package/rds_postgresql/databaseEndpoint.d.ts +280 -0
- package/rds_postgresql/databaseEndpoint.js +129 -0
- package/rds_postgresql/databaseEndpoint.js.map +1 -0
- package/rds_postgresql/databaseEndpoints.d.ts +88 -0
- package/rds_postgresql/databaseEndpoints.js +53 -0
- package/rds_postgresql/databaseEndpoints.js.map +1 -0
- package/rds_postgresql/endpointPublicAddress.d.ts +95 -0
- package/rds_postgresql/endpointPublicAddress.js +85 -0
- package/rds_postgresql/endpointPublicAddress.js.map +1 -0
- package/rds_postgresql/engineVersionParameters.d.ts +91 -0
- package/rds_postgresql/engineVersionParameters.js +52 -0
- package/rds_postgresql/engineVersionParameters.js.map +1 -0
- package/rds_postgresql/getAllowlists.d.ts +73 -2
- package/rds_postgresql/getAllowlists.js +21 -2
- package/rds_postgresql/getAllowlists.js.map +1 -1
- package/rds_postgresql/getBackupDownloads.d.ts +92 -0
- package/rds_postgresql/getBackupDownloads.js +49 -0
- package/rds_postgresql/getBackupDownloads.js.map +1 -0
- package/rds_postgresql/getBackupPolicies.d.ts +31 -0
- package/rds_postgresql/getBackupPolicies.js +20 -0
- package/rds_postgresql/getBackupPolicies.js.map +1 -0
- package/rds_postgresql/getDataBackups.d.ts +210 -0
- package/rds_postgresql/getDataBackups.js +63 -0
- package/rds_postgresql/getDataBackups.js.map +1 -0
- package/rds_postgresql/getDatabaseEndpoints.d.ts +86 -0
- package/rds_postgresql/getDatabaseEndpoints.js +50 -0
- package/rds_postgresql/getDatabaseEndpoints.js.map +1 -0
- package/rds_postgresql/getEngineVersionParameters.d.ts +89 -0
- package/rds_postgresql/getEngineVersionParameters.js +49 -0
- package/rds_postgresql/getEngineVersionParameters.js.map +1 -0
- package/rds_postgresql/getInstanceBackupDetacheds.d.ts +167 -0
- package/rds_postgresql/getInstanceBackupDetacheds.js +62 -0
- package/rds_postgresql/getInstanceBackupDetacheds.js.map +1 -0
- package/rds_postgresql/getInstanceBackupWalLogs.d.ts +111 -0
- package/rds_postgresql/getInstanceBackupWalLogs.js +55 -0
- package/rds_postgresql/getInstanceBackupWalLogs.js.map +1 -0
- package/rds_postgresql/getInstanceFailoverLogs.d.ts +108 -0
- package/rds_postgresql/getInstanceFailoverLogs.js +55 -0
- package/rds_postgresql/getInstanceFailoverLogs.js.map +1 -0
- package/rds_postgresql/getInstanceParameterLogs.d.ts +97 -0
- package/rds_postgresql/getInstanceParameterLogs.js +52 -0
- package/rds_postgresql/getInstanceParameterLogs.js.map +1 -0
- package/rds_postgresql/getInstanceParameters.d.ts +89 -0
- package/rds_postgresql/getInstanceParameters.js +49 -0
- package/rds_postgresql/getInstanceParameters.js.map +1 -0
- package/rds_postgresql/getInstancePriceDetails.d.ts +157 -0
- package/rds_postgresql/getInstancePriceDetails.js +103 -0
- package/rds_postgresql/getInstancePriceDetails.js.map +1 -0
- package/rds_postgresql/getInstancePriceDifferences.d.ts +172 -0
- package/rds_postgresql/getInstancePriceDifferences.js +94 -0
- package/rds_postgresql/getInstancePriceDifferences.js.map +1 -0
- package/rds_postgresql/getInstanceRecoverableTimes.d.ts +75 -0
- package/rds_postgresql/getInstanceRecoverableTimes.js +46 -0
- package/rds_postgresql/getInstanceRecoverableTimes.js.map +1 -0
- package/rds_postgresql/getInstanceSpecs.d.ts +120 -0
- package/rds_postgresql/getInstanceSpecs.js +56 -0
- package/rds_postgresql/getInstanceSpecs.js.map +1 -0
- package/rds_postgresql/getInstanceSsls.d.ts +101 -0
- package/rds_postgresql/getInstanceSsls.js +56 -0
- package/rds_postgresql/getInstanceSsls.js.map +1 -0
- package/rds_postgresql/getInstanceTasks.d.ts +160 -0
- package/rds_postgresql/getInstanceTasks.js +69 -0
- package/rds_postgresql/getInstanceTasks.js.map +1 -0
- package/rds_postgresql/getInstances.d.ts +24 -0
- package/rds_postgresql/getInstances.js +2 -0
- package/rds_postgresql/getInstances.js.map +1 -1
- package/rds_postgresql/getParameterTemplateApplyDiffs.d.ts +86 -0
- package/rds_postgresql/getParameterTemplateApplyDiffs.js +49 -0
- package/rds_postgresql/getParameterTemplateApplyDiffs.js.map +1 -0
- package/rds_postgresql/getParameterTemplates.d.ts +118 -0
- package/rds_postgresql/getParameterTemplates.js +54 -0
- package/rds_postgresql/getParameterTemplates.js.map +1 -0
- package/rds_postgresql/getPlannedEvents.d.ts +178 -0
- package/rds_postgresql/getPlannedEvents.js +71 -0
- package/rds_postgresql/getPlannedEvents.js.map +1 -0
- package/rds_postgresql/getRegions.d.ts +62 -0
- package/rds_postgresql/getRegions.js +42 -0
- package/rds_postgresql/getRegions.js.map +1 -0
- package/rds_postgresql/getReplicationSlots.d.ts +153 -0
- package/rds_postgresql/getReplicationSlots.js +59 -0
- package/rds_postgresql/getReplicationSlots.js.map +1 -0
- package/rds_postgresql/getZones.d.ts +71 -0
- package/rds_postgresql/getZones.js +43 -0
- package/rds_postgresql/getZones.js.map +1 -0
- package/rds_postgresql/index.d.ts +165 -0
- package/rds_postgresql/index.js +190 -1
- package/rds_postgresql/index.js.map +1 -1
- package/rds_postgresql/instance.d.ts +178 -11
- package/rds_postgresql/instance.js +50 -5
- package/rds_postgresql/instance.js.map +1 -1
- package/rds_postgresql/instanceBackupDetacheds.d.ts +169 -0
- package/rds_postgresql/instanceBackupDetacheds.js +65 -0
- package/rds_postgresql/instanceBackupDetacheds.js.map +1 -0
- package/rds_postgresql/instanceBackupWalLogs.d.ts +113 -0
- package/rds_postgresql/instanceBackupWalLogs.js +58 -0
- package/rds_postgresql/instanceBackupWalLogs.js.map +1 -0
- package/rds_postgresql/instanceFailoverLogs.d.ts +110 -0
- package/rds_postgresql/instanceFailoverLogs.js +58 -0
- package/rds_postgresql/instanceFailoverLogs.js.map +1 -0
- package/rds_postgresql/instanceParameterLogs.d.ts +99 -0
- package/rds_postgresql/instanceParameterLogs.js +55 -0
- package/rds_postgresql/instanceParameterLogs.js.map +1 -0
- package/rds_postgresql/instanceParameters.d.ts +91 -0
- package/rds_postgresql/instanceParameters.js +52 -0
- package/rds_postgresql/instanceParameters.js.map +1 -0
- package/rds_postgresql/instancePriceDetails.d.ts +159 -0
- package/rds_postgresql/instancePriceDetails.js +106 -0
- package/rds_postgresql/instancePriceDetails.js.map +1 -0
- package/rds_postgresql/instancePriceDifferences.d.ts +174 -0
- package/rds_postgresql/instancePriceDifferences.js +97 -0
- package/rds_postgresql/instancePriceDifferences.js.map +1 -0
- package/rds_postgresql/instanceRecoverableTimes.d.ts +77 -0
- package/rds_postgresql/instanceRecoverableTimes.js +49 -0
- package/rds_postgresql/instanceRecoverableTimes.js.map +1 -0
- package/rds_postgresql/instanceSpecs.d.ts +122 -0
- package/rds_postgresql/instanceSpecs.js +59 -0
- package/rds_postgresql/instanceSpecs.js.map +1 -0
- package/rds_postgresql/instanceSsl.d.ts +107 -0
- package/rds_postgresql/instanceSsl.js +81 -0
- package/rds_postgresql/instanceSsl.js.map +1 -0
- package/rds_postgresql/instanceSsls.d.ts +103 -0
- package/rds_postgresql/instanceSsls.js +59 -0
- package/rds_postgresql/instanceSsls.js.map +1 -0
- package/rds_postgresql/instanceTasks.d.ts +162 -0
- package/rds_postgresql/instanceTasks.js +72 -0
- package/rds_postgresql/instanceTasks.js.map +1 -0
- package/rds_postgresql/instances.d.ts +24 -0
- package/rds_postgresql/instances.js +2 -0
- package/rds_postgresql/instances.js.map +1 -1
- package/rds_postgresql/parameterTemplate.d.ts +178 -0
- package/rds_postgresql/parameterTemplate.js +117 -0
- package/rds_postgresql/parameterTemplate.js.map +1 -0
- package/rds_postgresql/parameterTemplateApplyDiffs.d.ts +88 -0
- package/rds_postgresql/parameterTemplateApplyDiffs.js +52 -0
- package/rds_postgresql/parameterTemplateApplyDiffs.js.map +1 -0
- package/rds_postgresql/parameterTemplates.d.ts +120 -0
- package/rds_postgresql/parameterTemplates.js +57 -0
- package/rds_postgresql/parameterTemplates.js.map +1 -0
- package/rds_postgresql/plannedEvents.d.ts +180 -0
- package/rds_postgresql/plannedEvents.js +74 -0
- package/rds_postgresql/plannedEvents.js.map +1 -0
- package/rds_postgresql/regions.d.ts +64 -0
- package/rds_postgresql/regions.js +45 -0
- package/rds_postgresql/regions.js.map +1 -0
- package/rds_postgresql/replicationSlot.d.ts +82 -0
- package/rds_postgresql/replicationSlot.js +79 -0
- package/rds_postgresql/replicationSlot.js.map +1 -0
- package/rds_postgresql/replicationSlots.d.ts +155 -0
- package/rds_postgresql/replicationSlots.js +62 -0
- package/rds_postgresql/replicationSlots.js.map +1 -0
- package/rds_postgresql/restoreBackup.d.ts +126 -0
- package/rds_postgresql/restoreBackup.js +100 -0
- package/rds_postgresql/restoreBackup.js.map +1 -0
- package/rds_postgresql/schema.d.ts +3 -3
- package/rds_postgresql/state.d.ts +106 -0
- package/rds_postgresql/state.js +83 -0
- package/rds_postgresql/state.js.map +1 -0
- package/rds_postgresql/zones.d.ts +73 -0
- package/rds_postgresql/zones.js +46 -0
- package/rds_postgresql/zones.js.map +1 -0
- package/tos/bucket.d.ts +16 -4
- package/tos/bucket.js +3 -1
- package/tos/bucket.js.map +1 -1
- package/tos/bucketAccessMonitor.d.ts +67 -0
- package/tos/bucketAccessMonitor.js +71 -0
- package/tos/bucketAccessMonitor.js.map +1 -0
- package/tos/bucketCustomdomain.d.ts +95 -0
- package/tos/bucketCustomdomain.js +90 -0
- package/tos/bucketCustomdomain.js.map +1 -0
- package/tos/bucketEncryption.d.ts +1 -1
- package/tos/bucketEncryption.js +1 -1
- package/tos/bucketLifecycle.d.ts +158 -0
- package/tos/bucketLifecycle.js +153 -0
- package/tos/bucketLifecycle.js.map +1 -0
- package/tos/bucketLogging.d.ts +88 -0
- package/tos/bucketLogging.js +80 -0
- package/tos/bucketLogging.js.map +1 -0
- package/tos/bucketMirrorBack.d.ts +72 -0
- package/tos/bucketMirrorBack.js +67 -0
- package/tos/bucketMirrorBack.js.map +1 -0
- package/tos/bucketObjectLockConfiguration.d.ts +89 -0
- package/tos/bucketObjectLockConfiguration.js +81 -0
- package/tos/bucketObjectLockConfiguration.js.map +1 -0
- package/tos/bucketRename.d.ts +67 -0
- package/tos/bucketRename.js +71 -0
- package/tos/bucketRename.js.map +1 -0
- package/tos/bucketReplication.d.ts +130 -0
- package/tos/bucketReplication.js +118 -0
- package/tos/bucketReplication.js.map +1 -0
- package/tos/bucketRequestPayment.d.ts +67 -0
- package/tos/bucketRequestPayment.js +71 -0
- package/tos/bucketRequestPayment.js.map +1 -0
- package/tos/bucketTransferAcceleration.d.ts +67 -0
- package/tos/bucketTransferAcceleration.js +71 -0
- package/tos/bucketTransferAcceleration.js.map +1 -0
- package/tos/bucketWebsite.d.ts +138 -0
- package/tos/bucketWebsite.js +103 -0
- package/tos/bucketWebsite.js.map +1 -0
- package/tos/buckets.d.ts +24 -0
- package/tos/buckets.js +2 -0
- package/tos/buckets.js.map +1 -1
- package/tos/getBuckets.d.ts +24 -0
- package/tos/getBuckets.js +2 -0
- package/tos/getBuckets.js.map +1 -1
- package/tos/index.d.ts +33 -0
- package/tos/index.js +56 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +1062 -84
- package/types/output.d.ts +6590 -3778
- package/vpc/index.d.ts +3 -0
- package/vpc/index.js +6 -1
- package/vpc/index.js.map +1 -1
- package/vpc/userCidrBlockAssociate.d.ts +91 -0
- package/vpc/userCidrBlockAssociate.js +88 -0
- package/vpc/userCidrBlockAssociate.js.map +1 -0
- package/vpc/vpc.d.ts +8 -0
- package/vpc/vpc.js +2 -0
- package/vpc/vpc.js.map +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a resource to manage rds postgresql data backup
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const example = new volcengine.rds_postgresql.DataBackup("example", {
|
|
13
|
+
* backupDescription: "tf demo full backup2",
|
|
14
|
+
* backupMethod: "Physical",
|
|
15
|
+
* backupScope: "Instance",
|
|
16
|
+
* backupType: "Full",
|
|
17
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
18
|
+
* });
|
|
19
|
+
* const example1 = new volcengine.rds_postgresql.DataBackup("example1", {
|
|
20
|
+
* backupDescription: "tf demo logical backup",
|
|
21
|
+
* backupMethod: "Logical",
|
|
22
|
+
* backupScope: "Instance",
|
|
23
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
24
|
+
* });
|
|
25
|
+
* const example2 = new volcengine.rds_postgresql.DataBackup("example2", {
|
|
26
|
+
* backupDescription: "tf demo database full backup",
|
|
27
|
+
* backupMetas: [
|
|
28
|
+
* {
|
|
29
|
+
* dbName: "test",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* dbName: "test-1",
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* backupMethod: "Logical",
|
|
36
|
+
* backupScope: "Database",
|
|
37
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* RdsPostgresqlDataBackup can be imported using the id, e.g.
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import volcengine:rds_postgresql/dataBackup:DataBackup default resource_id
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class DataBackup extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing DataBackup resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DataBackupState, opts?: pulumi.CustomResourceOptions): DataBackup;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of DataBackup. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj: any): obj is DataBackup;
|
|
65
|
+
/**
|
|
66
|
+
* The description of the backup set.
|
|
67
|
+
*/
|
|
68
|
+
readonly backupDescription: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The id of the backup.
|
|
71
|
+
*/
|
|
72
|
+
readonly backupId: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Specify the database that needs to be backed up. This parameter can only be set when the value of backupScope is Database.
|
|
75
|
+
*/
|
|
76
|
+
readonly backupMetas: pulumi.Output<outputs.rds_postgresql.DataBackupBackupMeta[] | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* The method of the backup: Physical, Logical.When the value of backupScope is Database, the value of backupMethod can only be Logical.
|
|
79
|
+
*/
|
|
80
|
+
readonly backupMethod: pulumi.Output<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* The scope of the backup: Instance, Database.
|
|
83
|
+
*/
|
|
84
|
+
readonly backupScope: pulumi.Output<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* The backup type of the backup: Full(default), Increment. Do not set this parameter when backupMethod is Logical; otherwise, the creation will fail.
|
|
87
|
+
*/
|
|
88
|
+
readonly backupType: pulumi.Output<string | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* The id of the PostgreSQL instance.
|
|
91
|
+
*/
|
|
92
|
+
readonly instanceId: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a DataBackup resource with the given unique name, arguments, and options.
|
|
95
|
+
*
|
|
96
|
+
* @param name The _unique_ name of the resource.
|
|
97
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
98
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
99
|
+
*/
|
|
100
|
+
constructor(name: string, args: DataBackupArgs, opts?: pulumi.CustomResourceOptions);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Input properties used for looking up and filtering DataBackup resources.
|
|
104
|
+
*/
|
|
105
|
+
export interface DataBackupState {
|
|
106
|
+
/**
|
|
107
|
+
* The description of the backup set.
|
|
108
|
+
*/
|
|
109
|
+
backupDescription?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The id of the backup.
|
|
112
|
+
*/
|
|
113
|
+
backupId?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Specify the database that needs to be backed up. This parameter can only be set when the value of backupScope is Database.
|
|
116
|
+
*/
|
|
117
|
+
backupMetas?: pulumi.Input<pulumi.Input<inputs.rds_postgresql.DataBackupBackupMeta>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* The method of the backup: Physical, Logical.When the value of backupScope is Database, the value of backupMethod can only be Logical.
|
|
120
|
+
*/
|
|
121
|
+
backupMethod?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The scope of the backup: Instance, Database.
|
|
124
|
+
*/
|
|
125
|
+
backupScope?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The backup type of the backup: Full(default), Increment. Do not set this parameter when backupMethod is Logical; otherwise, the creation will fail.
|
|
128
|
+
*/
|
|
129
|
+
backupType?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The id of the PostgreSQL instance.
|
|
132
|
+
*/
|
|
133
|
+
instanceId?: pulumi.Input<string>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The set of arguments for constructing a DataBackup resource.
|
|
137
|
+
*/
|
|
138
|
+
export interface DataBackupArgs {
|
|
139
|
+
/**
|
|
140
|
+
* The description of the backup set.
|
|
141
|
+
*/
|
|
142
|
+
backupDescription?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Specify the database that needs to be backed up. This parameter can only be set when the value of backupScope is Database.
|
|
145
|
+
*/
|
|
146
|
+
backupMetas?: pulumi.Input<pulumi.Input<inputs.rds_postgresql.DataBackupBackupMeta>[]>;
|
|
147
|
+
/**
|
|
148
|
+
* The method of the backup: Physical, Logical.When the value of backupScope is Database, the value of backupMethod can only be Logical.
|
|
149
|
+
*/
|
|
150
|
+
backupMethod?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The scope of the backup: Instance, Database.
|
|
153
|
+
*/
|
|
154
|
+
backupScope?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The backup type of the backup: Full(default), Increment. Do not set this parameter when backupMethod is Logical; otherwise, the creation will fail.
|
|
157
|
+
*/
|
|
158
|
+
backupType?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The id of the PostgreSQL instance.
|
|
161
|
+
*/
|
|
162
|
+
instanceId: pulumi.Input<string>;
|
|
163
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DataBackup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage rds postgresql data backup
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const example = new volcengine.rds_postgresql.DataBackup("example", {
|
|
17
|
+
* backupDescription: "tf demo full backup2",
|
|
18
|
+
* backupMethod: "Physical",
|
|
19
|
+
* backupScope: "Instance",
|
|
20
|
+
* backupType: "Full",
|
|
21
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
22
|
+
* });
|
|
23
|
+
* const example1 = new volcengine.rds_postgresql.DataBackup("example1", {
|
|
24
|
+
* backupDescription: "tf demo logical backup",
|
|
25
|
+
* backupMethod: "Logical",
|
|
26
|
+
* backupScope: "Instance",
|
|
27
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
28
|
+
* });
|
|
29
|
+
* const example2 = new volcengine.rds_postgresql.DataBackup("example2", {
|
|
30
|
+
* backupDescription: "tf demo database full backup",
|
|
31
|
+
* backupMetas: [
|
|
32
|
+
* {
|
|
33
|
+
* dbName: "test",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* dbName: "test-1",
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* backupMethod: "Logical",
|
|
40
|
+
* backupScope: "Database",
|
|
41
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* RdsPostgresqlDataBackup can be imported using the id, e.g.
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import volcengine:rds_postgresql/dataBackup:DataBackup default resource_id
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
class DataBackup extends pulumi.CustomResource {
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing DataBackup resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name, id, state, opts) {
|
|
64
|
+
return new DataBackup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of DataBackup. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj) {
|
|
71
|
+
if (obj === undefined || obj === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return obj['__pulumiType'] === DataBackup.__pulumiType;
|
|
75
|
+
}
|
|
76
|
+
constructor(name, argsOrState, opts) {
|
|
77
|
+
let resourceInputs = {};
|
|
78
|
+
opts = opts || {};
|
|
79
|
+
if (opts.id) {
|
|
80
|
+
const state = argsOrState;
|
|
81
|
+
resourceInputs["backupDescription"] = state ? state.backupDescription : undefined;
|
|
82
|
+
resourceInputs["backupId"] = state ? state.backupId : undefined;
|
|
83
|
+
resourceInputs["backupMetas"] = state ? state.backupMetas : undefined;
|
|
84
|
+
resourceInputs["backupMethod"] = state ? state.backupMethod : undefined;
|
|
85
|
+
resourceInputs["backupScope"] = state ? state.backupScope : undefined;
|
|
86
|
+
resourceInputs["backupType"] = state ? state.backupType : undefined;
|
|
87
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'instanceId'");
|
|
93
|
+
}
|
|
94
|
+
resourceInputs["backupDescription"] = args ? args.backupDescription : undefined;
|
|
95
|
+
resourceInputs["backupMetas"] = args ? args.backupMetas : undefined;
|
|
96
|
+
resourceInputs["backupMethod"] = args ? args.backupMethod : undefined;
|
|
97
|
+
resourceInputs["backupScope"] = args ? args.backupScope : undefined;
|
|
98
|
+
resourceInputs["backupType"] = args ? args.backupType : undefined;
|
|
99
|
+
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
100
|
+
resourceInputs["backupId"] = undefined /*out*/;
|
|
101
|
+
}
|
|
102
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
103
|
+
super(DataBackup.__pulumiType, name, resourceInputs, opts);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.DataBackup = DataBackup;
|
|
107
|
+
/** @internal */
|
|
108
|
+
DataBackup.__pulumiType = 'volcengine:rds_postgresql/dataBackup:DataBackup';
|
|
109
|
+
//# sourceMappingURL=dataBackup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataBackup.js","sourceRoot":"","sources":["../../rds_postgresql/dataBackup.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to query detailed information of rds postgresql data backups
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
*
|
|
11
|
+
* const example = volcengine.rds_postgresql.getDataBackups({
|
|
12
|
+
* backupEndTime: "2025-12-15T23:59:59.999Z",
|
|
13
|
+
* backupId: "20251214-172343F",
|
|
14
|
+
* backupStartTime: "2025-12-01T00:00:00.000Z",
|
|
15
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
/** @deprecated volcengine.rds_postgresql.DataBackups has been deprecated in favor of volcengine.rds_postgresql.getDataBackups */
|
|
20
|
+
export declare function dataBackups(args: DataBackupsArgs, opts?: pulumi.InvokeOptions): Promise<DataBackupsResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking DataBackups.
|
|
23
|
+
*/
|
|
24
|
+
export interface DataBackupsArgs {
|
|
25
|
+
/**
|
|
26
|
+
* The name of the database included in the backup set. Only effective when the value of backupMethod is Logical.
|
|
27
|
+
*/
|
|
28
|
+
backupDatabaseName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the backup set.
|
|
31
|
+
*/
|
|
32
|
+
backupDescription?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The latest time when the backup is created, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
35
|
+
*/
|
|
36
|
+
backupEndTime?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the backup.
|
|
39
|
+
*/
|
|
40
|
+
backupId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The method of the backup: Physical, Logical.
|
|
43
|
+
*/
|
|
44
|
+
backupMethod?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The scope of the backup: Instance, Database.
|
|
47
|
+
*/
|
|
48
|
+
backupScope?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The earliest time when the backup is created, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
51
|
+
*/
|
|
52
|
+
backupStartTime?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The status of the backup: Success, Failed, Running.
|
|
55
|
+
*/
|
|
56
|
+
backupStatus?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The type of the backup: Full, Increment.
|
|
59
|
+
*/
|
|
60
|
+
backupType?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The creation type of the backup: System, User.
|
|
63
|
+
*/
|
|
64
|
+
createType?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The downloadable status of the backup set. NotAllowed: download is not supported. NeedToPrepare: the backup set is in place and needs background preparation for backup. LinkReady: the backup set is ready for download.
|
|
67
|
+
*/
|
|
68
|
+
downloadStatus?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The ID of the PostgreSQL instance.
|
|
71
|
+
*/
|
|
72
|
+
instanceId: string;
|
|
73
|
+
/**
|
|
74
|
+
* File name where to save data source results.
|
|
75
|
+
*/
|
|
76
|
+
outputFile?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A collection of values returned by DataBackups.
|
|
80
|
+
*/
|
|
81
|
+
export interface DataBackupsResult {
|
|
82
|
+
readonly backupDatabaseName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The description of the backup set.
|
|
85
|
+
*/
|
|
86
|
+
readonly backupDescription?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The end time of the backup. The time format is yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
89
|
+
*/
|
|
90
|
+
readonly backupEndTime?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The ID of the backup.
|
|
93
|
+
*/
|
|
94
|
+
readonly backupId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The method of the backup: Physical, Logical.
|
|
97
|
+
*/
|
|
98
|
+
readonly backupMethod?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The scope of the backup: Instance, Database.
|
|
101
|
+
*/
|
|
102
|
+
readonly backupScope?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The start time of the backup. The time format is yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
105
|
+
*/
|
|
106
|
+
readonly backupStartTime?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The status of the backup: Success, Failed, Running.
|
|
109
|
+
*/
|
|
110
|
+
readonly backupStatus?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The type of the backup: Full, Increment.
|
|
113
|
+
*/
|
|
114
|
+
readonly backupType?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The collection of the query.
|
|
117
|
+
*/
|
|
118
|
+
readonly backups: outputs.rds_postgresql.DataBackupsBackup[];
|
|
119
|
+
/**
|
|
120
|
+
* The creation type of the backup: System, User.
|
|
121
|
+
*/
|
|
122
|
+
readonly createType?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The downloadable status of the backup set.
|
|
125
|
+
*/
|
|
126
|
+
readonly downloadStatus?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The provider-assigned unique ID for this managed resource.
|
|
129
|
+
*/
|
|
130
|
+
readonly id: string;
|
|
131
|
+
readonly instanceId: string;
|
|
132
|
+
readonly outputFile?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The total count of query.
|
|
135
|
+
*/
|
|
136
|
+
readonly totalCount: number;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Use this data source to query detailed information of rds postgresql data backups
|
|
140
|
+
* ## Example Usage
|
|
141
|
+
*
|
|
142
|
+
* ```typescript
|
|
143
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
144
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
145
|
+
*
|
|
146
|
+
* const example = volcengine.rds_postgresql.getDataBackups({
|
|
147
|
+
* backupEndTime: "2025-12-15T23:59:59.999Z",
|
|
148
|
+
* backupId: "20251214-172343F",
|
|
149
|
+
* backupStartTime: "2025-12-01T00:00:00.000Z",
|
|
150
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
151
|
+
* });
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
/** @deprecated volcengine.rds_postgresql.DataBackups has been deprecated in favor of volcengine.rds_postgresql.getDataBackups */
|
|
155
|
+
export declare function dataBackupsOutput(args: DataBackupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<DataBackupsResult>;
|
|
156
|
+
/**
|
|
157
|
+
* A collection of arguments for invoking DataBackups.
|
|
158
|
+
*/
|
|
159
|
+
export interface DataBackupsOutputArgs {
|
|
160
|
+
/**
|
|
161
|
+
* The name of the database included in the backup set. Only effective when the value of backupMethod is Logical.
|
|
162
|
+
*/
|
|
163
|
+
backupDatabaseName?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The description of the backup set.
|
|
166
|
+
*/
|
|
167
|
+
backupDescription?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The latest time when the backup is created, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
170
|
+
*/
|
|
171
|
+
backupEndTime?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The ID of the backup.
|
|
174
|
+
*/
|
|
175
|
+
backupId?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The method of the backup: Physical, Logical.
|
|
178
|
+
*/
|
|
179
|
+
backupMethod?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The scope of the backup: Instance, Database.
|
|
182
|
+
*/
|
|
183
|
+
backupScope?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The earliest time when the backup is created, in the format of yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
|
|
186
|
+
*/
|
|
187
|
+
backupStartTime?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* The status of the backup: Success, Failed, Running.
|
|
190
|
+
*/
|
|
191
|
+
backupStatus?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The type of the backup: Full, Increment.
|
|
194
|
+
*/
|
|
195
|
+
backupType?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The creation type of the backup: System, User.
|
|
198
|
+
*/
|
|
199
|
+
createType?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* The downloadable status of the backup set. NotAllowed: download is not supported. NeedToPrepare: the backup set is in place and needs background preparation for backup. LinkReady: the backup set is ready for download.
|
|
202
|
+
*/
|
|
203
|
+
downloadStatus?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* The ID of the PostgreSQL instance.
|
|
206
|
+
*/
|
|
207
|
+
instanceId: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* File name where to save data source results.
|
|
210
|
+
*/
|
|
211
|
+
outputFile?: pulumi.Input<string>;
|
|
212
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.dataBackupsOutput = exports.dataBackups = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to query detailed information of rds postgresql data backups
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
*
|
|
16
|
+
* const example = volcengine.rds_postgresql.getDataBackups({
|
|
17
|
+
* backupEndTime: "2025-12-15T23:59:59.999Z",
|
|
18
|
+
* backupId: "20251214-172343F",
|
|
19
|
+
* backupStartTime: "2025-12-01T00:00:00.000Z",
|
|
20
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
/** @deprecated volcengine.rds_postgresql.DataBackups has been deprecated in favor of volcengine.rds_postgresql.getDataBackups */
|
|
25
|
+
function dataBackups(args, opts) {
|
|
26
|
+
pulumi.log.warn("dataBackups is deprecated: volcengine.rds_postgresql.DataBackups has been deprecated in favor of volcengine.rds_postgresql.getDataBackups");
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("volcengine:rds_postgresql/dataBackups:DataBackups", {
|
|
29
|
+
"backupDatabaseName": args.backupDatabaseName,
|
|
30
|
+
"backupDescription": args.backupDescription,
|
|
31
|
+
"backupEndTime": args.backupEndTime,
|
|
32
|
+
"backupId": args.backupId,
|
|
33
|
+
"backupMethod": args.backupMethod,
|
|
34
|
+
"backupScope": args.backupScope,
|
|
35
|
+
"backupStartTime": args.backupStartTime,
|
|
36
|
+
"backupStatus": args.backupStatus,
|
|
37
|
+
"backupType": args.backupType,
|
|
38
|
+
"createType": args.createType,
|
|
39
|
+
"downloadStatus": args.downloadStatus,
|
|
40
|
+
"instanceId": args.instanceId,
|
|
41
|
+
"outputFile": args.outputFile,
|
|
42
|
+
}, opts);
|
|
43
|
+
}
|
|
44
|
+
exports.dataBackups = dataBackups;
|
|
45
|
+
/**
|
|
46
|
+
* Use this data source to query detailed information of rds postgresql data backups
|
|
47
|
+
* ## Example Usage
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
52
|
+
*
|
|
53
|
+
* const example = volcengine.rds_postgresql.getDataBackups({
|
|
54
|
+
* backupEndTime: "2025-12-15T23:59:59.999Z",
|
|
55
|
+
* backupId: "20251214-172343F",
|
|
56
|
+
* backupStartTime: "2025-12-01T00:00:00.000Z",
|
|
57
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
/** @deprecated volcengine.rds_postgresql.DataBackups has been deprecated in favor of volcengine.rds_postgresql.getDataBackups */
|
|
62
|
+
function dataBackupsOutput(args, opts) {
|
|
63
|
+
return pulumi.output(args).apply((a) => dataBackups(a, opts));
|
|
64
|
+
}
|
|
65
|
+
exports.dataBackupsOutput = dataBackupsOutput;
|
|
66
|
+
//# sourceMappingURL=dataBackups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataBackups.js","sourceRoot":"","sources":["../../rds_postgresql/dataBackups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,iIAAiI;AACjI,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,2IAA2I,CAAC,CAAA;IAE5J,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAnBD,kCAmBC;AAwHD;;;;;;;;;;;;;;;GAeG;AACH,iIAAiI;AACjI,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
|
@@ -12,6 +12,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* collate: "zh_CN.utf8",
|
|
13
13
|
* dbName: "acc-test",
|
|
14
14
|
* instanceId: "postgres-95*******233",
|
|
15
|
+
* owner: "super",
|
|
16
|
+
* });
|
|
17
|
+
* const cloneExample = new volcengine.rds_postgresql.Database("cloneExample", {
|
|
18
|
+
* dataOption: "Metadata",
|
|
19
|
+
* dbName: "clone-test",
|
|
20
|
+
* instanceId: "postgres-95*******233",
|
|
21
|
+
* sourceDbName: "acc-test",
|
|
15
22
|
* });
|
|
16
23
|
* ```
|
|
17
24
|
*
|
|
@@ -51,6 +58,10 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
51
58
|
* The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX.
|
|
52
59
|
*/
|
|
53
60
|
readonly collate: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The data option of the new database. Currently only Metadata is supported. This parameter is optional when clone an existing database.
|
|
63
|
+
*/
|
|
64
|
+
readonly dataOption: pulumi.Output<string | undefined>;
|
|
54
65
|
/**
|
|
55
66
|
* The name of database.
|
|
56
67
|
*/
|
|
@@ -67,6 +78,14 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
67
78
|
* The owner of database.
|
|
68
79
|
*/
|
|
69
80
|
readonly owner: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The plPgsql option of the new database. Value range: View, Procedure, Function, Trigger. This parameter is optional when clone an existing database.
|
|
83
|
+
*/
|
|
84
|
+
readonly plpgsqlOptions: pulumi.Output<string[] | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the source database. This parameter is required when clone an existing database.
|
|
87
|
+
*/
|
|
88
|
+
readonly sourceDbName: pulumi.Output<string | undefined>;
|
|
70
89
|
/**
|
|
71
90
|
* Create a Database resource with the given unique name, arguments, and options.
|
|
72
91
|
*
|
|
@@ -92,6 +111,10 @@ export interface DatabaseState {
|
|
|
92
111
|
* The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX.
|
|
93
112
|
*/
|
|
94
113
|
collate?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The data option of the new database. Currently only Metadata is supported. This parameter is optional when clone an existing database.
|
|
116
|
+
*/
|
|
117
|
+
dataOption?: pulumi.Input<string>;
|
|
95
118
|
/**
|
|
96
119
|
* The name of database.
|
|
97
120
|
*/
|
|
@@ -108,6 +131,14 @@ export interface DatabaseState {
|
|
|
108
131
|
* The owner of database.
|
|
109
132
|
*/
|
|
110
133
|
owner?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The plPgsql option of the new database. Value range: View, Procedure, Function, Trigger. This parameter is optional when clone an existing database.
|
|
136
|
+
*/
|
|
137
|
+
plpgsqlOptions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
138
|
+
/**
|
|
139
|
+
* The name of the source database. This parameter is required when clone an existing database.
|
|
140
|
+
*/
|
|
141
|
+
sourceDbName?: pulumi.Input<string>;
|
|
111
142
|
}
|
|
112
143
|
/**
|
|
113
144
|
* The set of arguments for constructing a Database resource.
|
|
@@ -125,6 +156,10 @@ export interface DatabaseArgs {
|
|
|
125
156
|
* The collate of database. Sorting rules. Value range: C (default), C.UTF-8, en_US.utf8, zh_CN.utf8 and POSIX.
|
|
126
157
|
*/
|
|
127
158
|
collate?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The data option of the new database. Currently only Metadata is supported. This parameter is optional when clone an existing database.
|
|
161
|
+
*/
|
|
162
|
+
dataOption?: pulumi.Input<string>;
|
|
128
163
|
/**
|
|
129
164
|
* The name of database.
|
|
130
165
|
*/
|
|
@@ -137,4 +172,12 @@ export interface DatabaseArgs {
|
|
|
137
172
|
* The owner of database.
|
|
138
173
|
*/
|
|
139
174
|
owner?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The plPgsql option of the new database. Value range: View, Procedure, Function, Trigger. This parameter is optional when clone an existing database.
|
|
177
|
+
*/
|
|
178
|
+
plpgsqlOptions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
179
|
+
/**
|
|
180
|
+
* The name of the source database. This parameter is required when clone an existing database.
|
|
181
|
+
*/
|
|
182
|
+
sourceDbName?: pulumi.Input<string>;
|
|
140
183
|
}
|