@volcengine/pulumi-volcenginecc 0.0.47 → 0.0.49
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/apig/upstream.d.ts +12 -0
- package/apig/upstream.d.ts.map +1 -1
- package/apig/upstream.js +8 -1
- package/apig/upstream.js.map +1 -1
- package/ecs/getKeypair.d.ts +4 -0
- package/ecs/getKeypair.d.ts.map +1 -1
- package/ecs/getKeypair.js.map +1 -1
- package/ecs/keypair.d.ts +8 -0
- package/ecs/keypair.d.ts.map +1 -1
- package/ecs/keypair.js +2 -0
- package/ecs/keypair.js.map +1 -1
- package/escloud/getIpAllowList.d.ts +33 -0
- package/escloud/getIpAllowList.d.ts.map +1 -0
- package/escloud/getIpAllowList.js +51 -0
- package/escloud/getIpAllowList.js.map +1 -0
- package/escloud/getIpAllowLists.d.ts +23 -0
- package/escloud/getIpAllowLists.d.ts.map +1 -0
- package/escloud/getIpAllowLists.js +47 -0
- package/escloud/getIpAllowLists.js.map +1 -0
- package/escloud/index.d.ts +9 -0
- package/escloud/index.d.ts.map +1 -1
- package/escloud/index.js +12 -1
- package/escloud/index.js.map +1 -1
- package/escloud/ipAllowList.d.ts +146 -0
- package/escloud/ipAllowList.d.ts.map +1 -0
- package/escloud/ipAllowList.js +131 -0
- package/escloud/ipAllowList.js.map +1 -0
- package/id/getOauth2CredentialProvider.d.ts +74 -0
- package/id/getOauth2CredentialProvider.d.ts.map +1 -0
- package/id/getOauth2CredentialProvider.js +51 -0
- package/id/getOauth2CredentialProvider.js.map +1 -0
- package/id/getOauth2CredentialProviders.d.ts +23 -0
- package/id/getOauth2CredentialProviders.d.ts.map +1 -0
- package/id/getOauth2CredentialProviders.js +47 -0
- package/id/getOauth2CredentialProviders.js.map +1 -0
- package/id/index.d.ts +9 -0
- package/id/index.d.ts.map +1 -1
- package/id/index.js +12 -1
- package/id/index.js.map +1 -1
- package/id/oauth2CredentialProvider.d.ts +191 -0
- package/id/oauth2CredentialProvider.d.ts.map +1 -0
- package/id/oauth2CredentialProvider.js +157 -0
- package/id/oauth2CredentialProvider.js.map +1 -0
- package/kms/getSecret.d.ts +29 -0
- package/kms/getSecret.d.ts.map +1 -1
- package/kms/getSecret.js.map +1 -1
- package/kms/secret.d.ts +80 -0
- package/kms/secret.d.ts.map +1 -1
- package/kms/secret.js +14 -0
- package/kms/secret.js.map +1 -1
- package/package.json +1 -1
- package/tls/alarmContentTemplateType.d.ts +263 -0
- package/tls/alarmContentTemplateType.d.ts.map +1 -0
- package/tls/alarmContentTemplateType.js +183 -0
- package/tls/alarmContentTemplateType.js.map +1 -0
- package/tls/downloadTask.d.ts +295 -0
- package/tls/downloadTask.d.ts.map +1 -0
- package/tls/downloadTask.js +170 -0
- package/tls/downloadTask.js.map +1 -0
- package/tls/getAlarmContentTemplateType.d.ts +90 -0
- package/tls/getAlarmContentTemplateType.d.ts.map +1 -0
- package/tls/getAlarmContentTemplateType.js +51 -0
- package/tls/getAlarmContentTemplateType.js.map +1 -0
- package/tls/getAlarmContentTemplateTypes.d.ts +23 -0
- package/tls/getAlarmContentTemplateTypes.d.ts.map +1 -0
- package/tls/getAlarmContentTemplateTypes.js +47 -0
- package/tls/getAlarmContentTemplateTypes.js.map +1 -0
- package/tls/getDownloadTask.d.ts +118 -0
- package/tls/getDownloadTask.d.ts.map +1 -0
- package/tls/getDownloadTask.js +51 -0
- package/tls/getDownloadTask.js.map +1 -0
- package/tls/getDownloadTasks.d.ts +23 -0
- package/tls/getDownloadTasks.d.ts.map +1 -0
- package/tls/getDownloadTasks.js +47 -0
- package/tls/getDownloadTasks.js.map +1 -0
- package/tls/getRuleBoundHostGroup.d.ts +50 -0
- package/tls/getRuleBoundHostGroup.d.ts.map +1 -0
- package/tls/getRuleBoundHostGroup.js +51 -0
- package/tls/getRuleBoundHostGroup.js.map +1 -0
- package/tls/getRuleBoundHostGroups.d.ts +23 -0
- package/tls/getRuleBoundHostGroups.d.ts.map +1 -0
- package/tls/getRuleBoundHostGroups.js +47 -0
- package/tls/getRuleBoundHostGroups.js.map +1 -0
- package/tls/getTopic.d.ts +12 -0
- package/tls/getTopic.d.ts.map +1 -1
- package/tls/getTopic.js.map +1 -1
- package/tls/index.d.ts +27 -0
- package/tls/index.d.ts.map +1 -1
- package/tls/index.js +35 -2
- package/tls/index.js.map +1 -1
- package/tls/ruleBoundHostGroup.d.ts +92 -0
- package/tls/ruleBoundHostGroup.d.ts.map +1 -0
- package/tls/ruleBoundHostGroup.js +103 -0
- package/tls/ruleBoundHostGroup.js.map +1 -0
- package/tls/topic.d.ts +36 -0
- package/tls/topic.d.ts.map +1 -1
- package/tls/topic.js +8 -0
- package/tls/topic.js.map +1 -1
- package/tos/bucket.d.ts +1 -1
- package/tos/bucket.js +1 -1
- package/tos/bucketReplication.d.ts +117 -0
- package/tos/bucketReplication.d.ts.map +1 -0
- package/tos/bucketReplication.js +124 -0
- package/tos/bucketReplication.js.map +1 -0
- package/tos/getBucketReplication.d.ts +50 -0
- package/tos/getBucketReplication.d.ts.map +1 -0
- package/tos/getBucketReplication.js +51 -0
- package/tos/getBucketReplication.js.map +1 -0
- package/tos/getBucketReplications.d.ts +23 -0
- package/tos/getBucketReplications.d.ts.map +1 -0
- package/tos/getBucketReplications.js +47 -0
- package/tos/getBucketReplications.js.map +1 -0
- package/tos/getObject.d.ts +118 -0
- package/tos/getObject.d.ts.map +1 -0
- package/tos/getObject.js +51 -0
- package/tos/getObject.js.map +1 -0
- package/tos/getObjects.d.ts +23 -0
- package/tos/getObjects.d.ts.map +1 -0
- package/tos/getObjects.js +47 -0
- package/tos/getObjects.js.map +1 -0
- package/tos/index.d.ts +18 -0
- package/tos/index.d.ts.map +1 -1
- package/tos/index.js +24 -1
- package/tos/index.js.map +1 -1
- package/tos/tosObject.d.ts +294 -0
- package/tos/tosObject.d.ts.map +1 -0
- package/tos/tosObject.js +168 -0
- package/tos/tosObject.js.map +1 -0
- package/types/input.d.ts +880 -14
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1987 -254
- package/types/output.d.ts.map +1 -1
- package/veenedge/getVeen.d.ts +206 -0
- package/veenedge/getVeen.d.ts.map +1 -0
- package/veenedge/getVeen.js +51 -0
- package/veenedge/getVeen.js.map +1 -0
- package/veenedge/getVeens.d.ts +23 -0
- package/veenedge/getVeens.d.ts.map +1 -0
- package/veenedge/getVeens.js +47 -0
- package/veenedge/getVeens.js.map +1 -0
- package/veenedge/index.d.ts +9 -0
- package/veenedge/index.d.ts.map +1 -1
- package/veenedge/index.js +12 -1
- package/veenedge/index.js.map +1 -1
- package/veenedge/veen.d.ts +475 -0
- package/veenedge/veen.d.ts.map +1 -0
- package/veenedge/veen.js +211 -0
- package/veenedge/veen.js.map +1 -0
- package/vmp/getIntegrationTask.d.ts +90 -0
- package/vmp/getIntegrationTask.d.ts.map +1 -0
- package/vmp/getIntegrationTask.js +51 -0
- package/vmp/getIntegrationTask.js.map +1 -0
- package/vmp/getIntegrationTasks.d.ts +23 -0
- package/vmp/getIntegrationTasks.d.ts.map +1 -0
- package/vmp/getIntegrationTasks.js +47 -0
- package/vmp/getIntegrationTasks.js.map +1 -0
- package/vmp/index.d.ts +9 -0
- package/vmp/index.d.ts.map +1 -1
- package/vmp/index.js +12 -1
- package/vmp/index.js.map +1 -1
- package/vmp/integrationTask.d.ts +229 -0
- package/vmp/integrationTask.d.ts.map +1 -0
- package/vmp/integrationTask.js +148 -0
- package/vmp/integrationTask.js.map +1 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage cross-region replication configuration for the specified TOS bucket. This resource uses the bucket as the primary key. Create and Update will write the replication role and rule set as a whole. Delete will remove the replication configuration from the bucket
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
12
|
+
*
|
|
13
|
+
* const example = new volcenginecc.tos.BucketReplication("Example", {
|
|
14
|
+
* role: "ServiceRoleforReplicationAccessTOS",
|
|
15
|
+
* bucket: "ccapi-test-16",
|
|
16
|
+
* rules: [{
|
|
17
|
+
* id: "rule-002",
|
|
18
|
+
* prefix_set: [
|
|
19
|
+
* "prefix_1",
|
|
20
|
+
* "prefix_2",
|
|
21
|
+
* ],
|
|
22
|
+
* status: "Enabled",
|
|
23
|
+
* destination: {
|
|
24
|
+
* bucket: "ccapi-test-7",
|
|
25
|
+
* location: "cn-beijing",
|
|
26
|
+
* storageClass: "STANDARD",
|
|
27
|
+
* storageClassInheritDirective: "SOURCE_OBJECT",
|
|
28
|
+
* },
|
|
29
|
+
* historical_object_replication: "Enabled",
|
|
30
|
+
* access_control_translation: {
|
|
31
|
+
* owner: "BucketOwnerEntrusted",
|
|
32
|
+
* },
|
|
33
|
+
* }],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import volcenginecc:tos/bucketReplication:BucketReplication example "bucket"
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class BucketReplication extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing BucketReplication resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketReplicationState, opts?: pulumi.CustomResourceOptions): BucketReplication;
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of BucketReplication. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj: any): obj is BucketReplication;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the bucket to configure for cross-region replication
|
|
61
|
+
*/
|
|
62
|
+
readonly bucket: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Role name. The role must have read and write permissions for TOS and service access permissions. You can also use the default TOS role
|
|
65
|
+
*/
|
|
66
|
+
readonly role: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Replication rule information
|
|
69
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
70
|
+
*/
|
|
71
|
+
readonly rules: pulumi.Output<outputs.tos.BucketReplicationRule[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a BucketReplication resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: BucketReplicationArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering BucketReplication resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface BucketReplicationState {
|
|
85
|
+
/**
|
|
86
|
+
* Name of the bucket to configure for cross-region replication
|
|
87
|
+
*/
|
|
88
|
+
bucket?: pulumi.Input<string | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Role name. The role must have read and write permissions for TOS and service access permissions. You can also use the default TOS role
|
|
91
|
+
*/
|
|
92
|
+
role?: pulumi.Input<string | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* Replication rule information
|
|
95
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
96
|
+
*/
|
|
97
|
+
rules?: pulumi.Input<pulumi.Input<inputs.tos.BucketReplicationRule>[] | undefined>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The set of arguments for constructing a BucketReplication resource.
|
|
101
|
+
*/
|
|
102
|
+
export interface BucketReplicationArgs {
|
|
103
|
+
/**
|
|
104
|
+
* Name of the bucket to configure for cross-region replication
|
|
105
|
+
*/
|
|
106
|
+
bucket: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Role name. The role must have read and write permissions for TOS and service access permissions. You can also use the default TOS role
|
|
109
|
+
*/
|
|
110
|
+
role: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Replication rule information
|
|
113
|
+
* Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
|
|
114
|
+
*/
|
|
115
|
+
rules: pulumi.Input<pulumi.Input<inputs.tos.BucketReplicationRule>[]>;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=bucketReplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketReplication.d.ts","sourceRoot":"","sources":["../../tos/bucketReplication.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,iBAAiB;IAOpJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,iBAAiB;IAO5D;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;;OAGG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAElF;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA2B7F;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACtF;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;CACzE"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.BucketReplication = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage cross-region replication configuration for the specified TOS bucket. This resource uses the bucket as the primary key. Create and Update will write the replication role and rule set as a whole. Delete will remove the replication configuration from the bucket
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
39
|
+
*
|
|
40
|
+
* const example = new volcenginecc.tos.BucketReplication("Example", {
|
|
41
|
+
* role: "ServiceRoleforReplicationAccessTOS",
|
|
42
|
+
* bucket: "ccapi-test-16",
|
|
43
|
+
* rules: [{
|
|
44
|
+
* id: "rule-002",
|
|
45
|
+
* prefix_set: [
|
|
46
|
+
* "prefix_1",
|
|
47
|
+
* "prefix_2",
|
|
48
|
+
* ],
|
|
49
|
+
* status: "Enabled",
|
|
50
|
+
* destination: {
|
|
51
|
+
* bucket: "ccapi-test-7",
|
|
52
|
+
* location: "cn-beijing",
|
|
53
|
+
* storageClass: "STANDARD",
|
|
54
|
+
* storageClassInheritDirective: "SOURCE_OBJECT",
|
|
55
|
+
* },
|
|
56
|
+
* historical_object_replication: "Enabled",
|
|
57
|
+
* access_control_translation: {
|
|
58
|
+
* owner: "BucketOwnerEntrusted",
|
|
59
|
+
* },
|
|
60
|
+
* }],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* ## Import
|
|
65
|
+
*
|
|
66
|
+
* ```sh
|
|
67
|
+
* $ pulumi import volcenginecc:tos/bucketReplication:BucketReplication example "bucket"
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
class BucketReplication extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing BucketReplication resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name, id, state, opts) {
|
|
81
|
+
return new BucketReplication(name, state, { ...opts, id: id });
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
static __pulumiType = 'volcenginecc:tos/bucketReplication:BucketReplication';
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of BucketReplication. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj) {
|
|
90
|
+
if (obj === undefined || obj === null) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return obj['__pulumiType'] === BucketReplication.__pulumiType;
|
|
94
|
+
}
|
|
95
|
+
constructor(name, argsOrState, opts) {
|
|
96
|
+
let resourceInputs = {};
|
|
97
|
+
opts = opts || {};
|
|
98
|
+
if (opts.id) {
|
|
99
|
+
const state = argsOrState;
|
|
100
|
+
resourceInputs["bucket"] = state?.bucket;
|
|
101
|
+
resourceInputs["role"] = state?.role;
|
|
102
|
+
resourceInputs["rules"] = state?.rules;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const args = argsOrState;
|
|
106
|
+
if (args?.bucket === undefined && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'bucket'");
|
|
108
|
+
}
|
|
109
|
+
if (args?.role === undefined && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'role'");
|
|
111
|
+
}
|
|
112
|
+
if (args?.rules === undefined && !opts.urn) {
|
|
113
|
+
throw new Error("Missing required property 'rules'");
|
|
114
|
+
}
|
|
115
|
+
resourceInputs["bucket"] = args?.bucket;
|
|
116
|
+
resourceInputs["role"] = args?.role;
|
|
117
|
+
resourceInputs["rules"] = args?.rules;
|
|
118
|
+
}
|
|
119
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
120
|
+
super(BucketReplication.__pulumiType, name, resourceInputs, opts);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.BucketReplication = BucketReplication;
|
|
124
|
+
//# sourceMappingURL=bucketReplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketReplication.js","sourceRoot":"","sources":["../../tos/bucketReplication.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,sDAAsD,CAAC;IAE7F;;;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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAwBD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;SAC1C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;SACzC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA3EL,8CA4EC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::TOS::BucketReplication
|
|
5
|
+
*/
|
|
6
|
+
export declare function getBucketReplication(args: GetBucketReplicationArgs, opts?: pulumi.InvokeOptions): Promise<GetBucketReplicationResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getBucketReplication.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetBucketReplicationArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getBucketReplication.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetBucketReplicationResult {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the bucket to configure for cross-region replication
|
|
22
|
+
*/
|
|
23
|
+
readonly bucket: string;
|
|
24
|
+
/**
|
|
25
|
+
* Uniquely identifies the resource.
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Role name. The role must have read and write permissions for TOS and service access permissions. You can also use the default TOS role
|
|
30
|
+
*/
|
|
31
|
+
readonly role: string;
|
|
32
|
+
/**
|
|
33
|
+
* Replication rule information
|
|
34
|
+
*/
|
|
35
|
+
readonly rules: outputs.tos.GetBucketReplicationRule[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Data Source schema for Volcengine::TOS::BucketReplication
|
|
39
|
+
*/
|
|
40
|
+
export declare function getBucketReplicationOutput(args: GetBucketReplicationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBucketReplicationResult>;
|
|
41
|
+
/**
|
|
42
|
+
* A collection of arguments for invoking getBucketReplication.
|
|
43
|
+
*/
|
|
44
|
+
export interface GetBucketReplicationOutputArgs {
|
|
45
|
+
/**
|
|
46
|
+
* Uniquely identifies the resource.
|
|
47
|
+
*/
|
|
48
|
+
id: pulumi.Input<string>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=getBucketReplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBucketReplication.d.ts","sourceRoot":"","sources":["../../tos/getBucketReplication.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAKrI;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC;CAC1D;AACD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,8BAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAK7J;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getBucketReplicationOutput = exports.getBucketReplication = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Data Source schema for Volcengine::TOS::BucketReplication
|
|
33
|
+
*/
|
|
34
|
+
function getBucketReplication(args, opts) {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invoke("volcenginecc:tos/getBucketReplication:getBucketReplication", {
|
|
37
|
+
"id": args.id,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
exports.getBucketReplication = getBucketReplication;
|
|
41
|
+
/**
|
|
42
|
+
* Data Source schema for Volcengine::TOS::BucketReplication
|
|
43
|
+
*/
|
|
44
|
+
function getBucketReplicationOutput(args, opts) {
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
46
|
+
return pulumi.runtime.invokeOutput("volcenginecc:tos/getBucketReplication:getBucketReplication", {
|
|
47
|
+
"id": args.id,
|
|
48
|
+
}, opts);
|
|
49
|
+
}
|
|
50
|
+
exports.getBucketReplicationOutput = getBucketReplicationOutput;
|
|
51
|
+
//# sourceMappingURL=getBucketReplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBucketReplication.js","sourceRoot":"","sources":["../../tos/getBucketReplication.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC;AAiCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE;QAC7F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gEAKC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::TOS::BucketReplication
|
|
4
|
+
*/
|
|
5
|
+
export declare function getBucketReplications(opts?: pulumi.InvokeOptions): Promise<GetBucketReplicationsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getBucketReplications.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetBucketReplicationsResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Volcengine::TOS::BucketReplication
|
|
21
|
+
*/
|
|
22
|
+
export declare function getBucketReplicationsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBucketReplicationsResult>;
|
|
23
|
+
//# sourceMappingURL=getBucketReplications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBucketReplications.d.ts","sourceRoot":"","sources":["../../tos/getBucketReplications.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAIvG;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;CAC1B;AACD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAIzH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getBucketReplicationsOutput = exports.getBucketReplications = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Plural Data Source schema for Volcengine::TOS::BucketReplication
|
|
33
|
+
*/
|
|
34
|
+
function getBucketReplications(opts) {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invoke("volcenginecc:tos/getBucketReplications:getBucketReplications", {}, opts);
|
|
37
|
+
}
|
|
38
|
+
exports.getBucketReplications = getBucketReplications;
|
|
39
|
+
/**
|
|
40
|
+
* Plural Data Source schema for Volcengine::TOS::BucketReplication
|
|
41
|
+
*/
|
|
42
|
+
function getBucketReplicationsOutput(opts) {
|
|
43
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
44
|
+
return pulumi.runtime.invokeOutput("volcenginecc:tos/getBucketReplications:getBucketReplications", {}, opts);
|
|
45
|
+
}
|
|
46
|
+
exports.getBucketReplicationsOutput = getBucketReplicationsOutput;
|
|
47
|
+
//# sourceMappingURL=getBucketReplications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBucketReplications.js","sourceRoot":"","sources":["../../tos/getBucketReplications.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA2B;IAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE,EAC5F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sDAIC;AAeD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,IAAiC;IACzE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8DAA8D,EAAE,EAClG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kEAIC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::TOS::Object
|
|
5
|
+
*/
|
|
6
|
+
export declare function getObject(args: GetObjectArgs, opts?: pulumi.InvokeOptions): Promise<GetObjectResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getObject.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetObjectArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getObject.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetObjectResult {
|
|
20
|
+
/**
|
|
21
|
+
* Object account-level ACL authorization, aligned with Terraform account*acl.
|
|
22
|
+
*/
|
|
23
|
+
readonly accountAcls: outputs.tos.GetObjectAccountAcl[];
|
|
24
|
+
/**
|
|
25
|
+
* Name of the bucket to which the object belongs.
|
|
26
|
+
*/
|
|
27
|
+
readonly bucket: string;
|
|
28
|
+
/**
|
|
29
|
+
* Object content. Only JSON, text, or XML strings are supported. Images or other binary content are not supported. If the content exceeds 10 MB, it will not be returned.
|
|
30
|
+
*/
|
|
31
|
+
readonly content: string;
|
|
32
|
+
/**
|
|
33
|
+
* Object content length, in bytes.
|
|
34
|
+
*/
|
|
35
|
+
readonly contentLength: number;
|
|
36
|
+
/**
|
|
37
|
+
* Object Content-Type. Only JSON, text, or XML types are supported, such as application/json, text/plain, application/xml, text/xml, and may include a charset parameter.
|
|
38
|
+
*/
|
|
39
|
+
readonly contentType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Object ETag.
|
|
42
|
+
*/
|
|
43
|
+
readonly eTag: string;
|
|
44
|
+
/**
|
|
45
|
+
* Object CRC32C checksum value.
|
|
46
|
+
*/
|
|
47
|
+
readonly hashCrc32C: string;
|
|
48
|
+
/**
|
|
49
|
+
* Object CRC64 checksum.
|
|
50
|
+
*/
|
|
51
|
+
readonly hashCrc64Ecma: string;
|
|
52
|
+
/**
|
|
53
|
+
* Uniquely identifies the resource.
|
|
54
|
+
*/
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the object inherits the bucket ACL by default.
|
|
58
|
+
*/
|
|
59
|
+
readonly isDefault: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Full key name of the object in the bucket.
|
|
62
|
+
*/
|
|
63
|
+
readonly key: string;
|
|
64
|
+
/**
|
|
65
|
+
* Object last modified time.
|
|
66
|
+
*/
|
|
67
|
+
readonly lastModified: string;
|
|
68
|
+
/**
|
|
69
|
+
* User-defined object metadata. Both key and value are strings.
|
|
70
|
+
*/
|
|
71
|
+
readonly metadatas: outputs.tos.GetObjectMetadata[];
|
|
72
|
+
/**
|
|
73
|
+
* Object type.
|
|
74
|
+
*/
|
|
75
|
+
readonly objectType: string;
|
|
76
|
+
/**
|
|
77
|
+
* Object public access control permissions, aligned with Terraform public_acl. default means the object inherits the bucket ACL by default. private: Private. The object owner has all permissions; other users have no access to the object. public-read: Public read. The object owner has all permissions; other users have read-only access. public-read-write: Public read/write. All users have read access to the object. authenticated-read: The object owner has all permissions; authenticated users have read access. bucket-owner-read: The object owner has all permissions; the bucket owner has read access to the object.
|
|
78
|
+
*/
|
|
79
|
+
readonly publicAcl: string;
|
|
80
|
+
/**
|
|
81
|
+
* Set the encryption method for the target object. If not set, the object is not encrypted by default. The available options are as follows: AES256: Uses SSE-TOS encryption with the AES256 algorithm. SM4: Uses SSE-TOS encryption with the SM4 algorithm. kms: Uses SSE-KMS encryption. For details about SSE-TOS and SSE-KMS encryption methods, see Server-Side Encryption Overview. Note: Using SSE-KMS for server-side encryption incurs API call fees. Creating a KMS key incurs key management fees, which are charged by KMS. For more information, see KMS Billing.
|
|
82
|
+
*/
|
|
83
|
+
readonly serverSideEncryption: string;
|
|
84
|
+
/**
|
|
85
|
+
* Object storage class. Includes STANDARD, IA, ARCHIVE*FR, INTELLIGENT*TIERING, ARCHIVE, COLD*ARCHIVE, and DEEP*COLD*ARCHIVE. Note: Currently, COLD*ARCHIVE is only supported in North China 2 (Beijing), East China 2 (Shanghai), and South China 1 (Guangzhou). DEEP*COLD*ARCHIVE is also only supported in these regions and is in invite-only preview. To use this storage class, contact your account manager.
|
|
86
|
+
*/
|
|
87
|
+
readonly storageClass: string;
|
|
88
|
+
/**
|
|
89
|
+
* Object tag information.
|
|
90
|
+
*/
|
|
91
|
+
readonly tags: outputs.tos.GetObjectTag[];
|
|
92
|
+
/**
|
|
93
|
+
* Presigned URL for downloading the object.
|
|
94
|
+
*/
|
|
95
|
+
readonly url: string;
|
|
96
|
+
/**
|
|
97
|
+
* List of all object version IDs. In buckets with versioning enabled, deleting a resource will clean up these historical versions. Layered buckets are not supported.
|
|
98
|
+
*/
|
|
99
|
+
readonly versionIDs: string[];
|
|
100
|
+
/**
|
|
101
|
+
* Object version ID. This field is read-only and not used as a resource key. Layered buckets are not supported.
|
|
102
|
+
*/
|
|
103
|
+
readonly versionId: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Data Source schema for Volcengine::TOS::Object
|
|
107
|
+
*/
|
|
108
|
+
export declare function getObjectOutput(args: GetObjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetObjectResult>;
|
|
109
|
+
/**
|
|
110
|
+
* A collection of arguments for invoking getObject.
|
|
111
|
+
*/
|
|
112
|
+
export interface GetObjectOutputArgs {
|
|
113
|
+
/**
|
|
114
|
+
* Uniquely identifies the resource.
|
|
115
|
+
*/
|
|
116
|
+
id: pulumi.Input<string>;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=getObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getObject.d.ts","sourceRoot":"","sources":["../../tos/getObject.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAKpG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;IACpD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC9B;AACD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAK5H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
package/tos/getObject.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getObjectOutput = exports.getObject = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Data Source schema for Volcengine::TOS::Object
|
|
33
|
+
*/
|
|
34
|
+
function getObject(args, opts) {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invoke("volcenginecc:tos/getObject:getObject", {
|
|
37
|
+
"id": args.id,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
exports.getObject = getObject;
|
|
41
|
+
/**
|
|
42
|
+
* Data Source schema for Volcengine::TOS::Object
|
|
43
|
+
*/
|
|
44
|
+
function getObjectOutput(args, opts) {
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
46
|
+
return pulumi.runtime.invokeOutput("volcenginecc:tos/getObject:getObject", {
|
|
47
|
+
"id": args.id,
|
|
48
|
+
}, opts);
|
|
49
|
+
}
|
|
50
|
+
exports.getObjectOutput = getObjectOutput;
|
|
51
|
+
//# sourceMappingURL=getObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getObject.js","sourceRoot":"","sources":["../../tos/getObject.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;GAEG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8BAKC;AAqGD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAAiC;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::TOS::Object
|
|
4
|
+
*/
|
|
5
|
+
export declare function getObjects(opts?: pulumi.InvokeOptions): Promise<GetObjectsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getObjects.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetObjectsResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Volcengine::TOS::Object
|
|
21
|
+
*/
|
|
22
|
+
export declare function getObjectsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetObjectsResult>;
|
|
23
|
+
//# sourceMappingURL=getObjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getObjects.d.ts","sourceRoot":"","sources":["../../tos/getObjects.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAIjF;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;CAC1B;AACD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAInG"}
|