@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowlists.js","sourceRoot":"","sources":["../../rds_postgresql/allowlists.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"allowlists.js","sourceRoot":"","sources":["../../rds_postgresql/allowlists.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,+HAA+H;AAC/H,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,wIAAwI,CAAC,CAAA;IACzJ,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,gCAeC;AAgFD;;;;;;;;;;;;;;;;;GAiBG;AACH,+HAA+H;AAC/H,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage rds postgresql backup download
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const example = new volcengine.rds_postgresql.BackupDownload("example", {
|
|
11
|
+
* backupId: "20251214-200431-0698LD",
|
|
12
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* RdsPostgresqlBackupDownload can be imported using the id, e.g.
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import volcengine:rds_postgresql/backupDownload:BackupDownload default resource_id
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class BackupDownload extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing BackupDownload resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BackupDownloadState, opts?: pulumi.CustomResourceOptions): BackupDownload;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of BackupDownload. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is BackupDownload;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the logical backup to be downloaded.
|
|
42
|
+
*/
|
|
43
|
+
readonly backupId: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The id of the PostgreSQL instance.
|
|
46
|
+
*/
|
|
47
|
+
readonly instanceId: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Create a BackupDownload resource with the given unique name, arguments, and options.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resource.
|
|
52
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
53
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
54
|
+
*/
|
|
55
|
+
constructor(name: string, args: BackupDownloadArgs, opts?: pulumi.CustomResourceOptions);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Input properties used for looking up and filtering BackupDownload resources.
|
|
59
|
+
*/
|
|
60
|
+
export interface BackupDownloadState {
|
|
61
|
+
/**
|
|
62
|
+
* The ID of the logical backup to be downloaded.
|
|
63
|
+
*/
|
|
64
|
+
backupId?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The id of the PostgreSQL instance.
|
|
67
|
+
*/
|
|
68
|
+
instanceId?: pulumi.Input<string>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The set of arguments for constructing a BackupDownload resource.
|
|
72
|
+
*/
|
|
73
|
+
export interface BackupDownloadArgs {
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the logical backup to be downloaded.
|
|
76
|
+
*/
|
|
77
|
+
backupId: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The id of the PostgreSQL instance.
|
|
80
|
+
*/
|
|
81
|
+
instanceId: pulumi.Input<string>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.BackupDownload = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage rds postgresql backup download
|
|
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.BackupDownload("example", {
|
|
17
|
+
* backupId: "20251214-200431-0698LD",
|
|
18
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* RdsPostgresqlBackupDownload can be imported using the id, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import volcengine:rds_postgresql/backupDownload:BackupDownload default resource_id
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class BackupDownload extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing BackupDownload resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new BackupDownload(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of BackupDownload. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === BackupDownload.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["backupId"] = state ? state.backupId : undefined;
|
|
59
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const args = argsOrState;
|
|
63
|
+
if ((!args || args.backupId === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'backupId'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'instanceId'");
|
|
68
|
+
}
|
|
69
|
+
resourceInputs["backupId"] = args ? args.backupId : undefined;
|
|
70
|
+
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
super(BackupDownload.__pulumiType, name, resourceInputs, opts);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.BackupDownload = BackupDownload;
|
|
77
|
+
/** @internal */
|
|
78
|
+
BackupDownload.__pulumiType = 'volcengine:rds_postgresql/backupDownload:BackupDownload';
|
|
79
|
+
//# sourceMappingURL=backupDownload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backupDownload.js","sourceRoot":"","sources":["../../rds_postgresql/backupDownload.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG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cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAjEL,wCAkEC;AApDG,gBAAgB;AACO,2BAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 backup downloads
|
|
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.getBackupDownloads({
|
|
12
|
+
* backupId: "20251214-200431-0698LD",
|
|
13
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
/** @deprecated volcengine.rds_postgresql.BackupDownloads has been deprecated in favor of volcengine.rds_postgresql.getBackupDownloads */
|
|
18
|
+
export declare function backupDownloads(args: BackupDownloadsArgs, opts?: pulumi.InvokeOptions): Promise<BackupDownloadsResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking BackupDownloads.
|
|
21
|
+
*/
|
|
22
|
+
export interface BackupDownloadsArgs {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the logical backup to be downloaded.
|
|
25
|
+
*/
|
|
26
|
+
backupId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The id of the PostgreSQL instance.
|
|
29
|
+
*/
|
|
30
|
+
instanceId: string;
|
|
31
|
+
/**
|
|
32
|
+
* File name where to save data source results.
|
|
33
|
+
*/
|
|
34
|
+
outputFile?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A collection of values returned by BackupDownloads.
|
|
38
|
+
*/
|
|
39
|
+
export interface BackupDownloadsResult {
|
|
40
|
+
/**
|
|
41
|
+
* The id of the backup.
|
|
42
|
+
*/
|
|
43
|
+
readonly backupId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Download link information (if needed, please trigger the download task first).
|
|
46
|
+
*/
|
|
47
|
+
readonly downloads: outputs.rds_postgresql.BackupDownloadsDownload[];
|
|
48
|
+
/**
|
|
49
|
+
* The provider-assigned unique ID for this managed resource.
|
|
50
|
+
*/
|
|
51
|
+
readonly id: string;
|
|
52
|
+
/**
|
|
53
|
+
* The id of the PostgreSQL instance.
|
|
54
|
+
*/
|
|
55
|
+
readonly instanceId: string;
|
|
56
|
+
readonly outputFile?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The total count of query.
|
|
59
|
+
*/
|
|
60
|
+
readonly totalCount: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Use this data source to query detailed information of rds postgresql backup downloads
|
|
64
|
+
* ## Example Usage
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
69
|
+
*
|
|
70
|
+
* const example = volcengine.rds_postgresql.getBackupDownloads({
|
|
71
|
+
* backupId: "20251214-200431-0698LD",
|
|
72
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
/** @deprecated volcengine.rds_postgresql.BackupDownloads has been deprecated in favor of volcengine.rds_postgresql.getBackupDownloads */
|
|
77
|
+
export declare function backupDownloadsOutput(args: BackupDownloadsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<BackupDownloadsResult>;
|
|
78
|
+
/**
|
|
79
|
+
* A collection of arguments for invoking BackupDownloads.
|
|
80
|
+
*/
|
|
81
|
+
export interface BackupDownloadsOutputArgs {
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the logical backup to be downloaded.
|
|
84
|
+
*/
|
|
85
|
+
backupId: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The id of the PostgreSQL instance.
|
|
88
|
+
*/
|
|
89
|
+
instanceId: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* File name where to save data source results.
|
|
92
|
+
*/
|
|
93
|
+
outputFile?: pulumi.Input<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.backupDownloadsOutput = exports.backupDownloads = 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 backup downloads
|
|
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.getBackupDownloads({
|
|
17
|
+
* backupId: "20251214-200431-0698LD",
|
|
18
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
/** @deprecated volcengine.rds_postgresql.BackupDownloads has been deprecated in favor of volcengine.rds_postgresql.getBackupDownloads */
|
|
23
|
+
function backupDownloads(args, opts) {
|
|
24
|
+
pulumi.log.warn("backupDownloads is deprecated: volcengine.rds_postgresql.BackupDownloads has been deprecated in favor of volcengine.rds_postgresql.getBackupDownloads");
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("volcengine:rds_postgresql/backupDownloads:BackupDownloads", {
|
|
27
|
+
"backupId": args.backupId,
|
|
28
|
+
"instanceId": args.instanceId,
|
|
29
|
+
"outputFile": args.outputFile,
|
|
30
|
+
}, opts);
|
|
31
|
+
}
|
|
32
|
+
exports.backupDownloads = backupDownloads;
|
|
33
|
+
/**
|
|
34
|
+
* Use this data source to query detailed information of rds postgresql backup downloads
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
40
|
+
*
|
|
41
|
+
* const example = volcengine.rds_postgresql.getBackupDownloads({
|
|
42
|
+
* backupId: "20251214-200431-0698LD",
|
|
43
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
/** @deprecated volcengine.rds_postgresql.BackupDownloads has been deprecated in favor of volcengine.rds_postgresql.getBackupDownloads */
|
|
48
|
+
function backupDownloadsOutput(args, opts) {
|
|
49
|
+
return pulumi.output(args).apply((a) => backupDownloads(a, opts));
|
|
50
|
+
}
|
|
51
|
+
exports.backupDownloadsOutput = backupDownloadsOutput;
|
|
52
|
+
//# sourceMappingURL=backupDownloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backupDownloads.js","sourceRoot":"","sources":["../../rds_postgresql/backupDownloads.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,yIAAyI;AACzI,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,uJAAuJ,CAAC,CAAA;IAExK,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AA8CD;;;;;;;;;;;;;GAaG;AACH,yIAAyI;AACzI,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/** @deprecated volcengine.rds_postgresql.BackupPolicies has been deprecated in favor of volcengine.rds_postgresql.getBackupPolicies */
|
|
4
|
+
export declare function backupPolicies(args: BackupPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<BackupPoliciesResult>;
|
|
5
|
+
/**
|
|
6
|
+
* A collection of arguments for invoking BackupPolicies.
|
|
7
|
+
*/
|
|
8
|
+
export interface BackupPoliciesArgs {
|
|
9
|
+
instanceId: string;
|
|
10
|
+
outputFile?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A collection of values returned by BackupPolicies.
|
|
14
|
+
*/
|
|
15
|
+
export interface BackupPoliciesResult {
|
|
16
|
+
readonly backupPolicies: outputs.rds_postgresql.BackupPoliciesBackupPolicy[];
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly instanceId: string;
|
|
22
|
+
readonly outputFile?: string;
|
|
23
|
+
readonly totalCount: number;
|
|
24
|
+
}
|
|
25
|
+
/** @deprecated volcengine.rds_postgresql.BackupPolicies has been deprecated in favor of volcengine.rds_postgresql.getBackupPolicies */
|
|
26
|
+
export declare function backupPoliciesOutput(args: BackupPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<BackupPoliciesResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking BackupPolicies.
|
|
29
|
+
*/
|
|
30
|
+
export interface BackupPoliciesOutputArgs {
|
|
31
|
+
instanceId: pulumi.Input<string>;
|
|
32
|
+
outputFile?: pulumi.Input<string>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.backupPoliciesOutput = exports.backupPolicies = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/** @deprecated volcengine.rds_postgresql.BackupPolicies has been deprecated in favor of volcengine.rds_postgresql.getBackupPolicies */
|
|
9
|
+
function backupPolicies(args, opts) {
|
|
10
|
+
pulumi.log.warn("backupPolicies is deprecated: volcengine.rds_postgresql.BackupPolicies has been deprecated in favor of volcengine.rds_postgresql.getBackupPolicies");
|
|
11
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
12
|
+
return pulumi.runtime.invoke("volcengine:rds_postgresql/backupPolicies:BackupPolicies", {
|
|
13
|
+
"instanceId": args.instanceId,
|
|
14
|
+
"outputFile": args.outputFile,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.backupPolicies = backupPolicies;
|
|
18
|
+
/** @deprecated volcengine.rds_postgresql.BackupPolicies has been deprecated in favor of volcengine.rds_postgresql.getBackupPolicies */
|
|
19
|
+
function backupPoliciesOutput(args, opts) {
|
|
20
|
+
return pulumi.output(args).apply((a) => backupPolicies(a, opts));
|
|
21
|
+
}
|
|
22
|
+
exports.backupPoliciesOutput = backupPoliciesOutput;
|
|
23
|
+
//# sourceMappingURL=backupPolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backupPolicies.js","sourceRoot":"","sources":["../../rds_postgresql/backupPolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C,uIAAuI;AACvI,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,oJAAoJ,CAAC,CAAA;IAErK,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yDAAyD,EAAE;QACpF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC;AAuBD,uIAAuI;AACvI,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage rds postgresql backup policy
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
9
|
+
*
|
|
10
|
+
* const example = new volcengine.rds_postgresql.BackupPolicy("example", {
|
|
11
|
+
* backupRetentionPeriod: 7,
|
|
12
|
+
* dataIncrBackupPeriods: "Tuesday,Sunday",
|
|
13
|
+
* fullBackupPeriod: "Monday,Wednesday,Friday",
|
|
14
|
+
* fullBackupTime: "18:00Z-19:00Z",
|
|
15
|
+
* hourlyIncrBackupEnable: true,
|
|
16
|
+
* incrementBackupFrequency: 12,
|
|
17
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
18
|
+
* walLogSpaceLimitEnable: false,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* RdsPostgresqlBackupPolicy can be imported using the id, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import volcengine:rds_postgresql/backupPolicy:BackupPolicy default resource_id
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class BackupPolicy extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing BackupPolicy resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BackupPolicyState, opts?: pulumi.CustomResourceOptions): BackupPolicy;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of BackupPolicy. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is BackupPolicy;
|
|
46
|
+
/**
|
|
47
|
+
* The number of days to retain backups, with a value range of 7 to 365.
|
|
48
|
+
*/
|
|
49
|
+
readonly backupRetentionPeriod: pulumi.Output<number | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
|
|
52
|
+
*/
|
|
53
|
+
readonly dataIncrBackupPeriods: pulumi.Output<string | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
|
|
56
|
+
*/
|
|
57
|
+
readonly fullBackupPeriod: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
|
|
60
|
+
*/
|
|
61
|
+
readonly fullBackupTime: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter dataIncrBackupPeriods and pass false for the parameter hourly_incr_backup_enable.
|
|
64
|
+
*/
|
|
65
|
+
readonly hourlyIncrBackupEnable: pulumi.Output<boolean | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
|
|
68
|
+
*/
|
|
69
|
+
readonly incrementBackupFrequency: pulumi.Output<number | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* The id of the PostgreSQL instance.
|
|
72
|
+
*/
|
|
73
|
+
readonly instanceId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
|
|
76
|
+
*/
|
|
77
|
+
readonly walLogSpaceLimitEnable: pulumi.Output<boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a BackupPolicy resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args: BackupPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering BackupPolicy resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface BackupPolicyState {
|
|
91
|
+
/**
|
|
92
|
+
* The number of days to retain backups, with a value range of 7 to 365.
|
|
93
|
+
*/
|
|
94
|
+
backupRetentionPeriod?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
|
|
97
|
+
*/
|
|
98
|
+
dataIncrBackupPeriods?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
|
|
101
|
+
*/
|
|
102
|
+
fullBackupPeriod?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
|
|
105
|
+
*/
|
|
106
|
+
fullBackupTime?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter dataIncrBackupPeriods and pass false for the parameter hourly_incr_backup_enable.
|
|
109
|
+
*/
|
|
110
|
+
hourlyIncrBackupEnable?: pulumi.Input<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
|
|
113
|
+
*/
|
|
114
|
+
incrementBackupFrequency?: pulumi.Input<number>;
|
|
115
|
+
/**
|
|
116
|
+
* The id of the PostgreSQL instance.
|
|
117
|
+
*/
|
|
118
|
+
instanceId?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
|
|
121
|
+
*/
|
|
122
|
+
walLogSpaceLimitEnable?: pulumi.Input<boolean>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The set of arguments for constructing a BackupPolicy resource.
|
|
126
|
+
*/
|
|
127
|
+
export interface BackupPolicyArgs {
|
|
128
|
+
/**
|
|
129
|
+
* The number of days to retain backups, with a value range of 7 to 365.
|
|
130
|
+
*/
|
|
131
|
+
backupRetentionPeriod?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
|
|
134
|
+
*/
|
|
135
|
+
dataIncrBackupPeriods?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
|
|
138
|
+
*/
|
|
139
|
+
fullBackupPeriod?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
|
|
142
|
+
*/
|
|
143
|
+
fullBackupTime?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter dataIncrBackupPeriods and pass false for the parameter hourly_incr_backup_enable.
|
|
146
|
+
*/
|
|
147
|
+
hourlyIncrBackupEnable?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
|
|
150
|
+
*/
|
|
151
|
+
incrementBackupFrequency?: pulumi.Input<number>;
|
|
152
|
+
/**
|
|
153
|
+
* The id of the PostgreSQL instance.
|
|
154
|
+
*/
|
|
155
|
+
instanceId: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
|
|
158
|
+
*/
|
|
159
|
+
walLogSpaceLimitEnable?: pulumi.Input<boolean>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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.BackupPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage rds postgresql backup policy
|
|
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.BackupPolicy("example", {
|
|
17
|
+
* backupRetentionPeriod: 7,
|
|
18
|
+
* dataIncrBackupPeriods: "Tuesday,Sunday",
|
|
19
|
+
* fullBackupPeriod: "Monday,Wednesday,Friday",
|
|
20
|
+
* fullBackupTime: "18:00Z-19:00Z",
|
|
21
|
+
* hourlyIncrBackupEnable: true,
|
|
22
|
+
* incrementBackupFrequency: 12,
|
|
23
|
+
* instanceId: "postgres-72715e0d9f58",
|
|
24
|
+
* walLogSpaceLimitEnable: false,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* RdsPostgresqlBackupPolicy can be imported using the id, e.g.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import volcengine:rds_postgresql/backupPolicy:BackupPolicy default resource_id
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class BackupPolicy extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing BackupPolicy resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new BackupPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of BackupPolicy. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === BackupPolicy.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["backupRetentionPeriod"] = state ? state.backupRetentionPeriod : undefined;
|
|
65
|
+
resourceInputs["dataIncrBackupPeriods"] = state ? state.dataIncrBackupPeriods : undefined;
|
|
66
|
+
resourceInputs["fullBackupPeriod"] = state ? state.fullBackupPeriod : undefined;
|
|
67
|
+
resourceInputs["fullBackupTime"] = state ? state.fullBackupTime : undefined;
|
|
68
|
+
resourceInputs["hourlyIncrBackupEnable"] = state ? state.hourlyIncrBackupEnable : undefined;
|
|
69
|
+
resourceInputs["incrementBackupFrequency"] = state ? state.incrementBackupFrequency : undefined;
|
|
70
|
+
resourceInputs["instanceId"] = state ? state.instanceId : undefined;
|
|
71
|
+
resourceInputs["walLogSpaceLimitEnable"] = state ? state.walLogSpaceLimitEnable : undefined;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
if ((!args || args.instanceId === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'instanceId'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["backupRetentionPeriod"] = args ? args.backupRetentionPeriod : undefined;
|
|
79
|
+
resourceInputs["dataIncrBackupPeriods"] = args ? args.dataIncrBackupPeriods : undefined;
|
|
80
|
+
resourceInputs["fullBackupPeriod"] = args ? args.fullBackupPeriod : undefined;
|
|
81
|
+
resourceInputs["fullBackupTime"] = args ? args.fullBackupTime : undefined;
|
|
82
|
+
resourceInputs["hourlyIncrBackupEnable"] = args ? args.hourlyIncrBackupEnable : undefined;
|
|
83
|
+
resourceInputs["incrementBackupFrequency"] = args ? args.incrementBackupFrequency : undefined;
|
|
84
|
+
resourceInputs["instanceId"] = args ? args.instanceId : undefined;
|
|
85
|
+
resourceInputs["walLogSpaceLimitEnable"] = args ? args.walLogSpaceLimitEnable : undefined;
|
|
86
|
+
}
|
|
87
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
88
|
+
super(BackupPolicy.__pulumiType, name, resourceInputs, opts);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.BackupPolicy = BackupPolicy;
|
|
92
|
+
/** @internal */
|
|
93
|
+
BackupPolicy.__pulumiType = 'volcengine:rds_postgresql/backupPolicy:BackupPolicy';
|
|
94
|
+
//# sourceMappingURL=backupPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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