@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,153 @@
|
|
|
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.BucketLifecycle = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket lifecycle
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new volcengine.tos.BucketLifecycle("foo", {
|
|
17
|
+
* bucketName: "tflybtest5",
|
|
18
|
+
* rules: [
|
|
19
|
+
* {
|
|
20
|
+
* expiration: {
|
|
21
|
+
* days: 122,
|
|
22
|
+
* },
|
|
23
|
+
* filter: {
|
|
24
|
+
* greaterThanIncludeEqual: "Enabled",
|
|
25
|
+
* lessThanIncludeEqual: "Disabled",
|
|
26
|
+
* objectSizeGreaterThan: 1024,
|
|
27
|
+
* objectSizeLessThan: 10485760,
|
|
28
|
+
* },
|
|
29
|
+
* id: "rule1",
|
|
30
|
+
* nonCurrentVersionExpiration: {
|
|
31
|
+
* nonCurrentDays: 90,
|
|
32
|
+
* },
|
|
33
|
+
* nonCurrentVersionTransitions: [
|
|
34
|
+
* {
|
|
35
|
+
* nonCurrentDays: 30,
|
|
36
|
+
* storageClass: "IA",
|
|
37
|
+
* },
|
|
38
|
+
* {
|
|
39
|
+
* nonCurrentDays: 31,
|
|
40
|
+
* storageClass: "ARCHIVE",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* prefix: "documents/",
|
|
44
|
+
* status: "Enabled",
|
|
45
|
+
* tags: [
|
|
46
|
+
* {
|
|
47
|
+
* key: "example1",
|
|
48
|
+
* value: "example-value1",
|
|
49
|
+
* },
|
|
50
|
+
* {
|
|
51
|
+
* key: "example2",
|
|
52
|
+
* value: "example-value2",
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* transitions: [
|
|
56
|
+
* {
|
|
57
|
+
* days: 7,
|
|
58
|
+
* storageClass: "IA",
|
|
59
|
+
* },
|
|
60
|
+
* {
|
|
61
|
+
* days: 30,
|
|
62
|
+
* storageClass: "ARCHIVE",
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* expiration: {
|
|
68
|
+
* days: 90,
|
|
69
|
+
* },
|
|
70
|
+
* id: "rule2",
|
|
71
|
+
* nonCurrentVersionExpiration: {
|
|
72
|
+
* nonCurrentDays: 30,
|
|
73
|
+
* },
|
|
74
|
+
* nonCurrentVersionTransitions: [{
|
|
75
|
+
* nonCurrentDays: 7,
|
|
76
|
+
* storageClass: "IA",
|
|
77
|
+
* }],
|
|
78
|
+
* prefix: "logs/",
|
|
79
|
+
* status: "Enabled",
|
|
80
|
+
* },
|
|
81
|
+
* {
|
|
82
|
+
* abortIncompleteMultipartUpload: {
|
|
83
|
+
* daysAfterInitiation: 1,
|
|
84
|
+
* },
|
|
85
|
+
* expiration: {
|
|
86
|
+
* date: "2025-12-31T00:00:00.000Z",
|
|
87
|
+
* },
|
|
88
|
+
* id: "rule3",
|
|
89
|
+
* prefix: "temp/",
|
|
90
|
+
* status: "Disabled",
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* ## Import
|
|
97
|
+
*
|
|
98
|
+
* TosBucketLifecycle can be imported using the bucketName, e.g.
|
|
99
|
+
*
|
|
100
|
+
* ```sh
|
|
101
|
+
* $ pulumi import volcengine:tos/bucketLifecycle:BucketLifecycle default bucket_name
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
class BucketLifecycle extends pulumi.CustomResource {
|
|
105
|
+
/**
|
|
106
|
+
* Get an existing BucketLifecycle resource's state with the given name, ID, and optional extra
|
|
107
|
+
* properties used to qualify the lookup.
|
|
108
|
+
*
|
|
109
|
+
* @param name The _unique_ name of the resulting resource.
|
|
110
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
111
|
+
* @param state Any extra arguments used during the lookup.
|
|
112
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
113
|
+
*/
|
|
114
|
+
static get(name, id, state, opts) {
|
|
115
|
+
return new BucketLifecycle(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Returns true if the given object is an instance of BucketLifecycle. This is designed to work even
|
|
119
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
120
|
+
*/
|
|
121
|
+
static isInstance(obj) {
|
|
122
|
+
if (obj === undefined || obj === null) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
return obj['__pulumiType'] === BucketLifecycle.__pulumiType;
|
|
126
|
+
}
|
|
127
|
+
constructor(name, argsOrState, opts) {
|
|
128
|
+
let resourceInputs = {};
|
|
129
|
+
opts = opts || {};
|
|
130
|
+
if (opts.id) {
|
|
131
|
+
const state = argsOrState;
|
|
132
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
133
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
const args = argsOrState;
|
|
137
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
138
|
+
throw new Error("Missing required property 'bucketName'");
|
|
139
|
+
}
|
|
140
|
+
if ((!args || args.rules === undefined) && !opts.urn) {
|
|
141
|
+
throw new Error("Missing required property 'rules'");
|
|
142
|
+
}
|
|
143
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
144
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
145
|
+
}
|
|
146
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
147
|
+
super(BucketLifecycle.__pulumiType, name, resourceInputs, opts);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.BucketLifecycle = BucketLifecycle;
|
|
151
|
+
/** @internal */
|
|
152
|
+
BucketLifecycle.__pulumiType = 'volcengine:tos/bucketLifecycle:BucketLifecycle';
|
|
153
|
+
//# sourceMappingURL=bucketLifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketLifecycle.js","sourceRoot":"","sources":["../../tos/bucketLifecycle.ts"],"names":[],"mappings":";AAAA,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,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAjEL,0CAkEC;AApDG,gBAAgB;AACO,4BAAY,GAAG,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 tos bucket logging
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const foo = new volcengine.tos.BucketLogging("foo", {
|
|
13
|
+
* bucketName: "tflyb7",
|
|
14
|
+
* loggingEnableds: [{
|
|
15
|
+
* role: "ServiceRoleforTOSLogging",
|
|
16
|
+
* targetBucket: "tflyb78",
|
|
17
|
+
* targetPrefix: "logs1/",
|
|
18
|
+
* }],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* TosBucketLogging can be imported using the bucketName, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import volcengine:tos/bucketLogging:BucketLogging default bucket_name
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class BucketLogging extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing BucketLogging 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?: BucketLoggingState, opts?: pulumi.CustomResourceOptions): BucketLogging;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of BucketLogging. 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 BucketLogging;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the TOS bucket.
|
|
48
|
+
*/
|
|
49
|
+
readonly bucketName: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the TOS bucket.
|
|
52
|
+
*/
|
|
53
|
+
readonly loggingEnableds: pulumi.Output<outputs.tos.BucketLoggingLoggingEnabled[] | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a BucketLogging resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: BucketLoggingArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering BucketLogging resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface BucketLoggingState {
|
|
67
|
+
/**
|
|
68
|
+
* The name of the TOS bucket.
|
|
69
|
+
*/
|
|
70
|
+
bucketName?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the TOS bucket.
|
|
73
|
+
*/
|
|
74
|
+
loggingEnableds?: pulumi.Input<pulumi.Input<inputs.tos.BucketLoggingLoggingEnabled>[]>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The set of arguments for constructing a BucketLogging resource.
|
|
78
|
+
*/
|
|
79
|
+
export interface BucketLoggingArgs {
|
|
80
|
+
/**
|
|
81
|
+
* The name of the TOS bucket.
|
|
82
|
+
*/
|
|
83
|
+
bucketName: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the TOS bucket.
|
|
86
|
+
*/
|
|
87
|
+
loggingEnableds?: pulumi.Input<pulumi.Input<inputs.tos.BucketLoggingLoggingEnabled>[]>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.BucketLogging = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket logging
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new volcengine.tos.BucketLogging("foo", {
|
|
17
|
+
* bucketName: "tflyb7",
|
|
18
|
+
* loggingEnableds: [{
|
|
19
|
+
* role: "ServiceRoleforTOSLogging",
|
|
20
|
+
* targetBucket: "tflyb78",
|
|
21
|
+
* targetPrefix: "logs1/",
|
|
22
|
+
* }],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* TosBucketLogging can be imported using the bucketName, e.g.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import volcengine:tos/bucketLogging:BucketLogging default bucket_name
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class BucketLogging extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing BucketLogging resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name, id, state, opts) {
|
|
45
|
+
return new BucketLogging(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of BucketLogging. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj) {
|
|
52
|
+
if (obj === undefined || obj === null) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return obj['__pulumiType'] === BucketLogging.__pulumiType;
|
|
56
|
+
}
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
63
|
+
resourceInputs["loggingEnableds"] = state ? state.loggingEnableds : undefined;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'bucketName'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
71
|
+
resourceInputs["loggingEnableds"] = args ? args.loggingEnableds : undefined;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(BucketLogging.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.BucketLogging = BucketLogging;
|
|
78
|
+
/** @internal */
|
|
79
|
+
BucketLogging.__pulumiType = 'volcengine:tos/bucketLogging:BucketLogging';
|
|
80
|
+
//# sourceMappingURL=bucketLogging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketLogging.js","sourceRoot":"","sources":["../../tos/bucketLogging.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,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AAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 tos bucket mirror back
|
|
6
|
+
* ## Import
|
|
7
|
+
*
|
|
8
|
+
* TosBucketMirrorBack can be imported using the bucketName, e.g.
|
|
9
|
+
*
|
|
10
|
+
* ```sh
|
|
11
|
+
* $ pulumi import volcengine:tos/bucketMirrorBack:BucketMirrorBack default bucket_name
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class BucketMirrorBack extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing BucketMirrorBack resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketMirrorBackState, opts?: pulumi.CustomResourceOptions): BucketMirrorBack;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of BucketMirrorBack. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is BucketMirrorBack;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the TOS bucket.
|
|
32
|
+
*/
|
|
33
|
+
readonly bucketName: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The mirrorBack rules of the bucket.
|
|
36
|
+
*/
|
|
37
|
+
readonly rules: pulumi.Output<outputs.tos.BucketMirrorBackRule[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a BucketMirrorBack resource with the given unique name, arguments, and options.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resource.
|
|
42
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
43
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
44
|
+
*/
|
|
45
|
+
constructor(name: string, args: BucketMirrorBackArgs, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering BucketMirrorBack resources.
|
|
49
|
+
*/
|
|
50
|
+
export interface BucketMirrorBackState {
|
|
51
|
+
/**
|
|
52
|
+
* The name of the TOS bucket.
|
|
53
|
+
*/
|
|
54
|
+
bucketName?: pulumi.Input<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The mirrorBack rules of the bucket.
|
|
57
|
+
*/
|
|
58
|
+
rules?: pulumi.Input<pulumi.Input<inputs.tos.BucketMirrorBackRule>[]>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The set of arguments for constructing a BucketMirrorBack resource.
|
|
62
|
+
*/
|
|
63
|
+
export interface BucketMirrorBackArgs {
|
|
64
|
+
/**
|
|
65
|
+
* The name of the TOS bucket.
|
|
66
|
+
*/
|
|
67
|
+
bucketName: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The mirrorBack rules of the bucket.
|
|
70
|
+
*/
|
|
71
|
+
rules: pulumi.Input<pulumi.Input<inputs.tos.BucketMirrorBackRule>[]>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.BucketMirrorBack = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket mirror back
|
|
10
|
+
* ## Import
|
|
11
|
+
*
|
|
12
|
+
* TosBucketMirrorBack can be imported using the bucketName, e.g.
|
|
13
|
+
*
|
|
14
|
+
* ```sh
|
|
15
|
+
* $ pulumi import volcengine:tos/bucketMirrorBack:BucketMirrorBack default bucket_name
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
class BucketMirrorBack extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing BucketMirrorBack resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name, id, state, opts) {
|
|
29
|
+
return new BucketMirrorBack(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of BucketMirrorBack. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj) {
|
|
36
|
+
if (obj === undefined || obj === null) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return obj['__pulumiType'] === BucketMirrorBack.__pulumiType;
|
|
40
|
+
}
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let resourceInputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
47
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const args = argsOrState;
|
|
51
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'bucketName'");
|
|
53
|
+
}
|
|
54
|
+
if ((!args || args.rules === undefined) && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'rules'");
|
|
56
|
+
}
|
|
57
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
58
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
59
|
+
}
|
|
60
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
|
+
super(BucketMirrorBack.__pulumiType, name, resourceInputs, opts);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.BucketMirrorBack = BucketMirrorBack;
|
|
65
|
+
/** @internal */
|
|
66
|
+
BucketMirrorBack.__pulumiType = 'volcengine:tos/bucketMirrorBack:BucketMirrorBack';
|
|
67
|
+
//# sourceMappingURL=bucketMirrorBack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketMirrorBack.js","sourceRoot":"","sources":["../../tos/bucketMirrorBack.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;GASG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,CAAC,cAAc,CAAC,KAA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,CAAC;IACrE,CAAC;;AAjEL,4CAkEC;AApDG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 tos bucket object lock configuration
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const foo = new volcengine.tos.BucketObjectLockConfiguration("foo", {
|
|
13
|
+
* bucketName: "tflyb7",
|
|
14
|
+
* rule: {
|
|
15
|
+
* defaultRetention: {
|
|
16
|
+
* days: 31,
|
|
17
|
+
* mode: "COMPLIANCE",
|
|
18
|
+
* },
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* TosBucketObjectLockConfiguration can be imported using the bucketName, e.g.
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import volcengine:tos/bucketObjectLockConfiguration:BucketObjectLockConfiguration default bucket_name
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class BucketObjectLockConfiguration extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing BucketObjectLockConfiguration 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: string, id: pulumi.Input<pulumi.ID>, state?: BucketObjectLockConfigurationState, opts?: pulumi.CustomResourceOptions): BucketObjectLockConfiguration;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of BucketObjectLockConfiguration. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is BucketObjectLockConfiguration;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the TOS bucket.
|
|
49
|
+
*/
|
|
50
|
+
readonly bucketName: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The object lock rule configuration.
|
|
53
|
+
*/
|
|
54
|
+
readonly rule: pulumi.Output<outputs.tos.BucketObjectLockConfigurationRule | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a BucketObjectLockConfiguration resource with the given unique name, arguments, and options.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resource.
|
|
59
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
60
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
61
|
+
*/
|
|
62
|
+
constructor(name: string, args: BucketObjectLockConfigurationArgs, opts?: pulumi.CustomResourceOptions);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Input properties used for looking up and filtering BucketObjectLockConfiguration resources.
|
|
66
|
+
*/
|
|
67
|
+
export interface BucketObjectLockConfigurationState {
|
|
68
|
+
/**
|
|
69
|
+
* The name of the TOS bucket.
|
|
70
|
+
*/
|
|
71
|
+
bucketName?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The object lock rule configuration.
|
|
74
|
+
*/
|
|
75
|
+
rule?: pulumi.Input<inputs.tos.BucketObjectLockConfigurationRule>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The set of arguments for constructing a BucketObjectLockConfiguration resource.
|
|
79
|
+
*/
|
|
80
|
+
export interface BucketObjectLockConfigurationArgs {
|
|
81
|
+
/**
|
|
82
|
+
* The name of the TOS bucket.
|
|
83
|
+
*/
|
|
84
|
+
bucketName: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The object lock rule configuration.
|
|
87
|
+
*/
|
|
88
|
+
rule?: pulumi.Input<inputs.tos.BucketObjectLockConfigurationRule>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.BucketObjectLockConfiguration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket object lock configuration
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new volcengine.tos.BucketObjectLockConfiguration("foo", {
|
|
17
|
+
* bucketName: "tflyb7",
|
|
18
|
+
* rule: {
|
|
19
|
+
* defaultRetention: {
|
|
20
|
+
* days: 31,
|
|
21
|
+
* mode: "COMPLIANCE",
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* TosBucketObjectLockConfiguration can be imported using the bucketName, e.g.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import volcengine:tos/bucketObjectLockConfiguration:BucketObjectLockConfiguration default bucket_name
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class BucketObjectLockConfiguration extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing BucketObjectLockConfiguration resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new BucketObjectLockConfiguration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of BucketObjectLockConfiguration. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === BucketObjectLockConfiguration.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
64
|
+
resourceInputs["rule"] = state ? state.rule : undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'bucketName'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
72
|
+
resourceInputs["rule"] = args ? args.rule : undefined;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
super(BucketObjectLockConfiguration.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.BucketObjectLockConfiguration = BucketObjectLockConfiguration;
|
|
79
|
+
/** @internal */
|
|
80
|
+
BucketObjectLockConfiguration.__pulumiType = 'volcengine:tos/bucketObjectLockConfiguration:BucketObjectLockConfiguration';
|
|
81
|
+
//# sourceMappingURL=bucketObjectLockConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketObjectLockConfiguration.js","sourceRoot":"","sources":["../../tos/bucketObjectLockConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,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,CAAC,cAAc,CAAC,KAAK,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6D,CAAC;YAC5E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,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