@volcengine/pulumi 0.0.33 → 0.0.35
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/apigCustomDomain.d.ts +244 -0
- package/apig/apigCustomDomain.js +167 -0
- package/apig/apigCustomDomain.js.map +1 -0
- package/apig/apigGateway.d.ts +262 -0
- package/apig/apigGateway.js +150 -0
- package/apig/apigGateway.js.map +1 -0
- package/apig/apigGatewayService.d.ts +206 -0
- package/apig/apigGatewayService.js +159 -0
- package/apig/apigGatewayService.js.map +1 -0
- package/apig/apigRoute.d.ts +397 -0
- package/apig/apigRoute.js +299 -0
- package/apig/apigRoute.js.map +1 -0
- package/apig/apigUpstream.d.ts +375 -0
- package/apig/apigUpstream.js +278 -0
- package/apig/apigUpstream.js.map +1 -0
- package/apig/apigUpstreamSource.d.ts +214 -0
- package/apig/apigUpstreamSource.js +182 -0
- package/apig/apigUpstreamSource.js.map +1 -0
- package/apig/apigUpstreamVersion.d.ts +211 -0
- package/apig/apigUpstreamVersion.js +206 -0
- package/apig/apigUpstreamVersion.js.map +1 -0
- package/apig/customDomains.d.ts +112 -0
- package/apig/customDomains.js +55 -0
- package/apig/customDomains.js.map +1 -0
- package/apig/gatewayServices.d.ts +104 -0
- package/apig/gatewayServices.js +52 -0
- package/apig/gatewayServices.js.map +1 -0
- package/apig/gateways.d.ts +162 -0
- package/apig/gateways.js +63 -0
- package/apig/gateways.js.map +1 -0
- package/apig/getCustomDomains.d.ts +110 -0
- package/apig/getCustomDomains.js +52 -0
- package/apig/getCustomDomains.js.map +1 -0
- package/apig/getGatewayServices.d.ts +102 -0
- package/apig/getGatewayServices.js +49 -0
- package/apig/getGatewayServices.js.map +1 -0
- package/apig/getGateways.d.ts +160 -0
- package/apig/getGateways.js +60 -0
- package/apig/getGateways.js.map +1 -0
- package/apig/getRoutes.d.ts +153 -0
- package/apig/getRoutes.js +54 -0
- package/apig/getRoutes.js.map +1 -0
- package/apig/getUpstreamSources.d.ts +123 -0
- package/apig/getUpstreamSources.js +51 -0
- package/apig/getUpstreamSources.js.map +1 -0
- package/apig/getUpstreamVersions.d.ts +84 -0
- package/apig/getUpstreamVersions.js +47 -0
- package/apig/getUpstreamVersions.js.map +1 -0
- package/apig/getUpstreams.d.ts +140 -0
- package/apig/getUpstreams.js +60 -0
- package/apig/getUpstreams.js.map +1 -0
- package/apig/index.d.ts +63 -0
- package/apig/index.js +94 -0
- package/apig/index.js.map +1 -0
- package/apig/routes.d.ts +155 -0
- package/apig/routes.js +57 -0
- package/apig/routes.js.map +1 -0
- package/apig/upstreamSources.d.ts +125 -0
- package/apig/upstreamSources.js +54 -0
- package/apig/upstreamSources.js.map +1 -0
- package/apig/upstreamVersions.d.ts +86 -0
- package/apig/upstreamVersions.js +50 -0
- package/apig/upstreamVersions.js.map +1 -0
- package/apig/upstreams.d.ts +142 -0
- package/apig/upstreams.js +63 -0
- package/apig/upstreams.js.map +1 -0
- package/autoscaling/scalingGroup.d.ts +24 -0
- package/autoscaling/scalingGroup.js +4 -0
- package/autoscaling/scalingGroup.js.map +1 -1
- package/cen/interRegionBandwidth.d.ts +12 -0
- package/cen/interRegionBandwidth.js +2 -0
- package/cen/interRegionBandwidth.js.map +1 -1
- package/config/vars.d.ts +4 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/ecs/command.d.ts +65 -18
- package/ecs/command.js +10 -15
- package/ecs/command.js.map +1 -1
- package/ecs/commands.d.ts +26 -1
- package/ecs/commands.js +2 -0
- package/ecs/commands.js.map +1 -1
- package/ecs/getCommands.d.ts +26 -1
- package/ecs/getCommands.js +2 -0
- package/ecs/getCommands.js.map +1 -1
- package/ecs/getInvocations.d.ts +25 -0
- package/ecs/getInvocations.js +2 -0
- package/ecs/getInvocations.js.map +1 -1
- package/ecs/instance.d.ts +20 -0
- package/ecs/instance.js +4 -0
- package/ecs/instance.js.map +1 -1
- package/ecs/invocation.d.ts +53 -6
- package/ecs/invocation.js +15 -0
- package/ecs/invocation.js.map +1 -1
- package/ecs/invocations.d.ts +25 -0
- package/ecs/invocations.js +2 -0
- package/ecs/invocations.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/kafka/instance.d.ts +12 -0
- package/kafka/instance.js +2 -0
- package/kafka/instance.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +4 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/redis/getParameterGroups.d.ts +22 -0
- package/redis/getParameterGroups.js +22 -0
- package/redis/getParameterGroups.js.map +1 -1
- package/redis/parameterGroups.d.ts +22 -0
- package/redis/parameterGroups.js +22 -0
- package/redis/parameterGroups.js.map +1 -1
- package/tos/bucketCors.d.ts +120 -0
- package/tos/bucketCors.js +115 -0
- package/tos/bucketCors.js.map +1 -0
- package/tos/bucketEncryption.d.ts +105 -0
- package/tos/bucketEncryption.js +100 -0
- package/tos/bucketEncryption.js.map +1 -0
- package/tos/bucketNotification.d.ts +166 -0
- package/tos/bucketNotification.js +155 -0
- package/tos/bucketNotification.js.map +1 -0
- package/tos/index.d.ts +9 -0
- package/tos/index.js +16 -1
- package/tos/index.js.map +1 -1
- package/types/input.d.ts +6104 -3944
- package/types/output.d.ts +35681 -27825
- package/vke/node.d.ts +12 -0
- package/vke/node.js +2 -0
- package/vke/node.js.map +1 -1
- package/vpc/cidrBlockAssociate.d.ts +83 -0
- package/vpc/cidrBlockAssociate.js +80 -0
- package/vpc/cidrBlockAssociate.js.map +1 -0
- package/vpc/flowLog.d.ts +266 -0
- package/vpc/flowLog.js +148 -0
- package/vpc/flowLog.js.map +1 -0
- package/vpc/flowLogActive.d.ts +103 -0
- package/vpc/flowLogActive.js +101 -0
- package/vpc/flowLogActive.js.map +1 -0
- package/vpc/flowLogs.d.ts +231 -0
- package/vpc/flowLogs.js +63 -0
- package/vpc/flowLogs.js.map +1 -0
- package/vpc/getFlowLogs.d.ts +229 -0
- package/vpc/getFlowLogs.js +60 -0
- package/vpc/getFlowLogs.js.map +1 -0
- package/vpc/getSubnets.d.ts +9 -0
- package/vpc/getSubnets.js +1 -0
- package/vpc/getSubnets.js.map +1 -1
- package/vpc/getTrafficMirrorFilterRules.d.ts +103 -0
- package/vpc/getTrafficMirrorFilterRules.js +50 -0
- package/vpc/getTrafficMirrorFilterRules.js.map +1 -0
- package/vpc/getTrafficMirrorFilters.d.ts +118 -0
- package/vpc/getTrafficMirrorFilters.js +51 -0
- package/vpc/getTrafficMirrorFilters.js.map +1 -0
- package/vpc/getTrafficMirrorSessions.d.ts +187 -0
- package/vpc/getTrafficMirrorSessions.js +57 -0
- package/vpc/getTrafficMirrorSessions.js.map +1 -0
- package/vpc/getTrafficMirrorTargets.d.ts +121 -0
- package/vpc/getTrafficMirrorTargets.js +51 -0
- package/vpc/getTrafficMirrorTargets.js.map +1 -0
- package/vpc/getVpcs.d.ts +9 -0
- package/vpc/getVpcs.js +1 -0
- package/vpc/getVpcs.js.map +1 -1
- package/vpc/index.d.ts +51 -0
- package/vpc/index.js +67 -2
- package/vpc/index.js.map +1 -1
- package/vpc/networkInterface.d.ts +27 -7
- package/vpc/networkInterface.js +27 -7
- package/vpc/networkInterface.js.map +1 -1
- package/vpc/subnets.d.ts +9 -0
- package/vpc/subnets.js +1 -0
- package/vpc/subnets.js.map +1 -1
- package/vpc/trafficMirrorFilter.d.ts +137 -0
- package/vpc/trafficMirrorFilter.js +88 -0
- package/vpc/trafficMirrorFilter.js.map +1 -0
- package/vpc/trafficMirrorFilterRule.d.ts +245 -0
- package/vpc/trafficMirrorFilterRule.js +144 -0
- package/vpc/trafficMirrorFilterRule.js.map +1 -0
- package/vpc/trafficMirrorFilterRules.d.ts +105 -0
- package/vpc/trafficMirrorFilterRules.js +53 -0
- package/vpc/trafficMirrorFilterRules.js.map +1 -0
- package/vpc/trafficMirrorFilters.d.ts +120 -0
- package/vpc/trafficMirrorFilters.js +54 -0
- package/vpc/trafficMirrorFilters.js.map +1 -0
- package/vpc/trafficMirrorSession.d.ts +330 -0
- package/vpc/trafficMirrorSession.js +221 -0
- package/vpc/trafficMirrorSession.js.map +1 -0
- package/vpc/trafficMirrorSessions.d.ts +189 -0
- package/vpc/trafficMirrorSessions.js +60 -0
- package/vpc/trafficMirrorSessions.js.map +1 -0
- package/vpc/trafficMirrorTarget.d.ts +222 -0
- package/vpc/trafficMirrorTarget.js +159 -0
- package/vpc/trafficMirrorTarget.js.map +1 -0
- package/vpc/trafficMirrorTargets.d.ts +123 -0
- package/vpc/trafficMirrorTargets.js +54 -0
- package/vpc/trafficMirrorTargets.js.map +1 -0
- package/vpc/vpc.d.ts +8 -0
- package/vpc/vpc.js +2 -0
- package/vpc/vpc.js.map +1 -1
- package/vpc/vpcs.d.ts +9 -0
- package/vpc/vpcs.js +1 -0
- package/vpc/vpcs.js.map +1 -1
- package/waf/aclRule.d.ts +326 -0
- package/waf/aclRule.js +150 -0
- package/waf/aclRule.js.map +1 -0
- package/waf/aclRules.d.ts +170 -0
- package/waf/aclRules.js +69 -0
- package/waf/aclRules.js.map +1 -0
- package/waf/botAnalyseProtectRule.d.ts +320 -0
- package/waf/botAnalyseProtectRule.js +171 -0
- package/waf/botAnalyseProtectRule.js.map +1 -0
- package/waf/botAnalyseProtectRules.d.ts +145 -0
- package/waf/botAnalyseProtectRules.js +57 -0
- package/waf/botAnalyseProtectRules.js.map +1 -0
- package/waf/ccRule.d.ts +337 -0
- package/waf/ccRule.js +182 -0
- package/waf/ccRule.js.map +1 -0
- package/waf/ccRules.d.ts +149 -0
- package/waf/ccRules.js +61 -0
- package/waf/ccRules.js.map +1 -0
- package/waf/customBot.d.ts +191 -0
- package/waf/customBot.js +127 -0
- package/waf/customBot.js.map +1 -0
- package/waf/customBots.d.ts +86 -0
- package/waf/customBots.js +51 -0
- package/waf/customBots.js.map +1 -0
- package/waf/customPage.d.ts +310 -0
- package/waf/customPage.js +160 -0
- package/waf/customPage.js.map +1 -0
- package/waf/customPages.d.ts +110 -0
- package/waf/customPages.js +52 -0
- package/waf/customPages.js.map +1 -0
- package/waf/domains.d.ts +94 -0
- package/waf/domains.js +48 -0
- package/waf/domains.js.map +1 -0
- package/waf/getAclRules.d.ts +168 -0
- package/waf/getAclRules.js +66 -0
- package/waf/getAclRules.js.map +1 -0
- package/waf/getBotAnalyseProtectRules.d.ts +143 -0
- package/waf/getBotAnalyseProtectRules.js +54 -0
- package/waf/getBotAnalyseProtectRules.js.map +1 -0
- package/waf/getCcRules.d.ts +147 -0
- package/waf/getCcRules.js +58 -0
- package/waf/getCcRules.js.map +1 -0
- package/waf/getCustomBots.d.ts +84 -0
- package/waf/getCustomBots.js +48 -0
- package/waf/getCustomBots.js.map +1 -0
- package/waf/getCustomPages.d.ts +108 -0
- package/waf/getCustomPages.js +49 -0
- package/waf/getCustomPages.js.map +1 -0
- package/waf/getDomains.d.ts +92 -0
- package/waf/getDomains.js +45 -0
- package/waf/getDomains.js.map +1 -0
- package/waf/getHostGroups.d.ts +146 -0
- package/waf/getHostGroups.js +55 -0
- package/waf/getHostGroups.js.map +1 -0
- package/waf/getIpGroups.d.ts +105 -0
- package/waf/getIpGroups.js +49 -0
- package/waf/getIpGroups.js.map +1 -0
- package/waf/getProhibitions.d.ts +127 -0
- package/waf/getProhibitions.js +55 -0
- package/waf/getProhibitions.js.map +1 -0
- package/waf/getServiceCertificates.d.ts +71 -0
- package/waf/getServiceCertificates.js +43 -0
- package/waf/getServiceCertificates.js.map +1 -0
- package/waf/getSystemBots.d.ts +84 -0
- package/waf/getSystemBots.js +47 -0
- package/waf/getSystemBots.js.map +1 -0
- package/waf/hostGroup.d.ts +152 -0
- package/waf/hostGroup.js +90 -0
- package/waf/hostGroup.js.map +1 -0
- package/waf/hostGroups.d.ts +148 -0
- package/waf/hostGroups.js +58 -0
- package/waf/hostGroups.js.map +1 -0
- package/waf/index.d.ts +99 -0
- package/waf/index.js +139 -0
- package/waf/index.js.map +1 -0
- package/waf/instanceCtl.d.ts +95 -0
- package/waf/instanceCtl.js +76 -0
- package/waf/instanceCtl.js.map +1 -0
- package/waf/ipGroup.d.ts +132 -0
- package/waf/ipGroup.js +93 -0
- package/waf/ipGroup.js.map +1 -0
- package/waf/ipGroups.d.ts +107 -0
- package/waf/ipGroups.js +52 -0
- package/waf/ipGroups.js.map +1 -0
- package/waf/prohibitions.d.ts +129 -0
- package/waf/prohibitions.js +58 -0
- package/waf/prohibitions.js.map +1 -0
- package/waf/serviceCertificates.d.ts +73 -0
- package/waf/serviceCertificates.js +46 -0
- package/waf/serviceCertificates.js.map +1 -0
- package/waf/systemBot.d.ts +137 -0
- package/waf/systemBot.js +92 -0
- package/waf/systemBot.js.map +1 -0
- package/waf/systemBots.d.ts +86 -0
- package/waf/systemBots.js +50 -0
- package/waf/systemBots.js.map +1 -0
- package/waf/vulnerability.d.ts +116 -0
- package/waf/vulnerability.js +72 -0
- package/waf/vulnerability.js.map +1 -0
- package/waf/wafDomain.d.ts +877 -0
- package/waf/wafDomain.js +252 -0
- package/waf/wafDomain.js.map +1 -0
package/redis/parameterGroups.js
CHANGED
|
@@ -7,6 +7,17 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Use this data source to query detailed information of redis parameter groups
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
*
|
|
16
|
+
* const foo = volcengine.redis.getParameterGroups({
|
|
17
|
+
* engineVersion: "5.0",
|
|
18
|
+
* source: "User",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
/** @deprecated volcengine.redis.ParameterGroups has been deprecated in favor of volcengine.redis.getParameterGroups */
|
|
12
23
|
function parameterGroups(args, opts) {
|
|
@@ -23,6 +34,17 @@ function parameterGroups(args, opts) {
|
|
|
23
34
|
exports.parameterGroups = parameterGroups;
|
|
24
35
|
/**
|
|
25
36
|
* Use this data source to query detailed information of redis parameter groups
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
42
|
+
*
|
|
43
|
+
* const foo = volcengine.redis.getParameterGroups({
|
|
44
|
+
* engineVersion: "5.0",
|
|
45
|
+
* source: "User",
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
26
48
|
*/
|
|
27
49
|
/** @deprecated volcengine.redis.ParameterGroups has been deprecated in favor of volcengine.redis.getParameterGroups */
|
|
28
50
|
function parameterGroupsOutput(args, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameterGroups.js","sourceRoot":"","sources":["../../redis/parameterGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"parameterGroups.js","sourceRoot":"","sources":["../../redis/parameterGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,uHAAuH;AACvH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,qIAAqI,CAAC,CAAA;IACtJ,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,kDAAkD,EAAE;QAC7E,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,0CAWC;AAmDD;;;;;;;;;;;;;GAaG;AACH,uHAAuH;AACvH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,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,120 @@
|
|
|
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 cors
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooBucket = new volcengine.tos.Bucket("fooBucket", {
|
|
13
|
+
* bucketName: "tf-acc-test-bucket",
|
|
14
|
+
* publicAcl: "private",
|
|
15
|
+
* azRedundancy: "multi-az",
|
|
16
|
+
* projectName: "default",
|
|
17
|
+
* tags: [{
|
|
18
|
+
* key: "k1",
|
|
19
|
+
* value: "v1",
|
|
20
|
+
* }],
|
|
21
|
+
* });
|
|
22
|
+
* const fooBucketCors = new volcengine.tos.BucketCors("fooBucketCors", {
|
|
23
|
+
* bucketName: fooBucket.id,
|
|
24
|
+
* corsRules: [
|
|
25
|
+
* {
|
|
26
|
+
* allowedOrigins: ["*"],
|
|
27
|
+
* allowedMethods: [
|
|
28
|
+
* "GET",
|
|
29
|
+
* "POST",
|
|
30
|
+
* ],
|
|
31
|
+
* allowedHeaders: ["Authorization"],
|
|
32
|
+
* exposeHeaders: ["x-tos-request-id"],
|
|
33
|
+
* maxAgeSeconds: 1500,
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* allowedOrigins: [
|
|
37
|
+
* "*",
|
|
38
|
+
* "https://www.volcengine.com",
|
|
39
|
+
* ],
|
|
40
|
+
* allowedMethods: [
|
|
41
|
+
* "POST",
|
|
42
|
+
* "PUT",
|
|
43
|
+
* "DELETE",
|
|
44
|
+
* ],
|
|
45
|
+
* allowedHeaders: ["Authorization"],
|
|
46
|
+
* exposeHeaders: ["x-tos-request-id"],
|
|
47
|
+
* maxAgeSeconds: 2000,
|
|
48
|
+
* responseVary: true,
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Import
|
|
55
|
+
*
|
|
56
|
+
* TosBucketCors can be imported using the id, e.g.
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import volcengine:tos/bucketCors:BucketCors default resource_id
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare class BucketCors extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing BucketCors resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketCorsState, opts?: pulumi.CustomResourceOptions): BucketCors;
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of BucketCors. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj: any): obj is BucketCors;
|
|
78
|
+
/**
|
|
79
|
+
* The name of the bucket.
|
|
80
|
+
*/
|
|
81
|
+
readonly bucketName: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The CORS rules of the bucket.
|
|
84
|
+
*/
|
|
85
|
+
readonly corsRules: pulumi.Output<outputs.tos.BucketCorsCorsRule[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a BucketCors resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: BucketCorsArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering BucketCors resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface BucketCorsState {
|
|
99
|
+
/**
|
|
100
|
+
* The name of the bucket.
|
|
101
|
+
*/
|
|
102
|
+
bucketName?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The CORS rules of the bucket.
|
|
105
|
+
*/
|
|
106
|
+
corsRules?: pulumi.Input<pulumi.Input<inputs.tos.BucketCorsCorsRule>[]>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The set of arguments for constructing a BucketCors resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface BucketCorsArgs {
|
|
112
|
+
/**
|
|
113
|
+
* The name of the bucket.
|
|
114
|
+
*/
|
|
115
|
+
bucketName: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The CORS rules of the bucket.
|
|
118
|
+
*/
|
|
119
|
+
corsRules: pulumi.Input<pulumi.Input<inputs.tos.BucketCorsCorsRule>[]>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.BucketCors = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket cors
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const fooBucket = new volcengine.tos.Bucket("fooBucket", {
|
|
17
|
+
* bucketName: "tf-acc-test-bucket",
|
|
18
|
+
* publicAcl: "private",
|
|
19
|
+
* azRedundancy: "multi-az",
|
|
20
|
+
* projectName: "default",
|
|
21
|
+
* tags: [{
|
|
22
|
+
* key: "k1",
|
|
23
|
+
* value: "v1",
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const fooBucketCors = new volcengine.tos.BucketCors("fooBucketCors", {
|
|
27
|
+
* bucketName: fooBucket.id,
|
|
28
|
+
* corsRules: [
|
|
29
|
+
* {
|
|
30
|
+
* allowedOrigins: ["*"],
|
|
31
|
+
* allowedMethods: [
|
|
32
|
+
* "GET",
|
|
33
|
+
* "POST",
|
|
34
|
+
* ],
|
|
35
|
+
* allowedHeaders: ["Authorization"],
|
|
36
|
+
* exposeHeaders: ["x-tos-request-id"],
|
|
37
|
+
* maxAgeSeconds: 1500,
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* allowedOrigins: [
|
|
41
|
+
* "*",
|
|
42
|
+
* "https://www.volcengine.com",
|
|
43
|
+
* ],
|
|
44
|
+
* allowedMethods: [
|
|
45
|
+
* "POST",
|
|
46
|
+
* "PUT",
|
|
47
|
+
* "DELETE",
|
|
48
|
+
* ],
|
|
49
|
+
* allowedHeaders: ["Authorization"],
|
|
50
|
+
* exposeHeaders: ["x-tos-request-id"],
|
|
51
|
+
* maxAgeSeconds: 2000,
|
|
52
|
+
* responseVary: true,
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ## Import
|
|
59
|
+
*
|
|
60
|
+
* TosBucketCors can be imported using the id, e.g.
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import volcengine:tos/bucketCors:BucketCors default resource_id
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
class BucketCors extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing BucketCors resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name, id, state, opts) {
|
|
77
|
+
return new BucketCors(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the given object is an instance of BucketCors. This is designed to work even
|
|
81
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
82
|
+
*/
|
|
83
|
+
static isInstance(obj) {
|
|
84
|
+
if (obj === undefined || obj === null) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return obj['__pulumiType'] === BucketCors.__pulumiType;
|
|
88
|
+
}
|
|
89
|
+
constructor(name, argsOrState, opts) {
|
|
90
|
+
let resourceInputs = {};
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
if (opts.id) {
|
|
93
|
+
const state = argsOrState;
|
|
94
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
95
|
+
resourceInputs["corsRules"] = state ? state.corsRules : undefined;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
const args = argsOrState;
|
|
99
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'bucketName'");
|
|
101
|
+
}
|
|
102
|
+
if ((!args || args.corsRules === undefined) && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'corsRules'");
|
|
104
|
+
}
|
|
105
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
106
|
+
resourceInputs["corsRules"] = args ? args.corsRules : undefined;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(BucketCors.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.BucketCors = BucketCors;
|
|
113
|
+
/** @internal */
|
|
114
|
+
BucketCors.__pulumiType = 'volcengine:tos/bucketCors:BucketCors';
|
|
115
|
+
//# sourceMappingURL=bucketCors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketCors.js","sourceRoot":"","sources":["../../tos/bucketCors.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAjEL,gCAkEC;AApDG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 encryption
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooBucket = new volcengine.tos.Bucket("fooBucket", {
|
|
13
|
+
* bucketName: "tf-acc-test-bucket",
|
|
14
|
+
* publicAcl: "private",
|
|
15
|
+
* azRedundancy: "multi-az",
|
|
16
|
+
* projectName: "default",
|
|
17
|
+
* tags: [{
|
|
18
|
+
* key: "k1",
|
|
19
|
+
* value: "v1",
|
|
20
|
+
* }],
|
|
21
|
+
* });
|
|
22
|
+
* const fooKeyring = new volcengine.kms.Keyring("fooKeyring", {
|
|
23
|
+
* keyringName: "acc-test-keyring",
|
|
24
|
+
* description: "acc-test",
|
|
25
|
+
* projectName: "default",
|
|
26
|
+
* });
|
|
27
|
+
* const fooBucketEncryption = new volcengine.tos.BucketEncryption("fooBucketEncryption", {
|
|
28
|
+
* bucketName: fooBucket.id,
|
|
29
|
+
* rule: {
|
|
30
|
+
* applyServerSideEncryptionByDefault: {
|
|
31
|
+
* sseAlgorithm: "kms",
|
|
32
|
+
* kmsDataEncryption: "AES256",
|
|
33
|
+
* kmsMasterKeyId: fooKeyring.id,
|
|
34
|
+
* },
|
|
35
|
+
* },
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* TosBucketEncryption can be imported using the id, e.g.
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import volcengine:tos/bucketEncryption:BucketEncryption default resource_id
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class BucketEncryption extends pulumi.CustomResource {
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing BucketEncryption resource's state with the given name, ID, and optional extra
|
|
50
|
+
* properties used to qualify the lookup.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resulting resource.
|
|
53
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
54
|
+
* @param state Any extra arguments used during the lookup.
|
|
55
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
+
*/
|
|
57
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketEncryptionState, opts?: pulumi.CustomResourceOptions): BucketEncryption;
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of BucketEncryption. This is designed to work even
|
|
60
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
|
+
*/
|
|
62
|
+
static isInstance(obj: any): obj is BucketEncryption;
|
|
63
|
+
/**
|
|
64
|
+
* The name of the bucket.
|
|
65
|
+
*/
|
|
66
|
+
readonly bucketName: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The rule of the bucket encryption.
|
|
69
|
+
*/
|
|
70
|
+
readonly rule: pulumi.Output<outputs.tos.BucketEncryptionRule>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a BucketEncryption resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: BucketEncryptionArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering BucketEncryption resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface BucketEncryptionState {
|
|
84
|
+
/**
|
|
85
|
+
* The name of the bucket.
|
|
86
|
+
*/
|
|
87
|
+
bucketName?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The rule of the bucket encryption.
|
|
90
|
+
*/
|
|
91
|
+
rule?: pulumi.Input<inputs.tos.BucketEncryptionRule>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The set of arguments for constructing a BucketEncryption resource.
|
|
95
|
+
*/
|
|
96
|
+
export interface BucketEncryptionArgs {
|
|
97
|
+
/**
|
|
98
|
+
* The name of the bucket.
|
|
99
|
+
*/
|
|
100
|
+
bucketName: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The rule of the bucket encryption.
|
|
103
|
+
*/
|
|
104
|
+
rule: pulumi.Input<inputs.tos.BucketEncryptionRule>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.BucketEncryption = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage tos bucket encryption
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
15
|
+
*
|
|
16
|
+
* const fooBucket = new volcengine.tos.Bucket("fooBucket", {
|
|
17
|
+
* bucketName: "tf-acc-test-bucket",
|
|
18
|
+
* publicAcl: "private",
|
|
19
|
+
* azRedundancy: "multi-az",
|
|
20
|
+
* projectName: "default",
|
|
21
|
+
* tags: [{
|
|
22
|
+
* key: "k1",
|
|
23
|
+
* value: "v1",
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const fooKeyring = new volcengine.kms.Keyring("fooKeyring", {
|
|
27
|
+
* keyringName: "acc-test-keyring",
|
|
28
|
+
* description: "acc-test",
|
|
29
|
+
* projectName: "default",
|
|
30
|
+
* });
|
|
31
|
+
* const fooBucketEncryption = new volcengine.tos.BucketEncryption("fooBucketEncryption", {
|
|
32
|
+
* bucketName: fooBucket.id,
|
|
33
|
+
* rule: {
|
|
34
|
+
* applyServerSideEncryptionByDefault: {
|
|
35
|
+
* sseAlgorithm: "kms",
|
|
36
|
+
* kmsDataEncryption: "AES256",
|
|
37
|
+
* kmsMasterKeyId: fooKeyring.id,
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* TosBucketEncryption can be imported using the id, e.g.
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import volcengine:tos/bucketEncryption:BucketEncryption default resource_id
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class BucketEncryption extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing BucketEncryption resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name, id, state, opts) {
|
|
62
|
+
return new BucketEncryption(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of BucketEncryption. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === BucketEncryption.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
constructor(name, argsOrState, opts) {
|
|
75
|
+
let resourceInputs = {};
|
|
76
|
+
opts = opts || {};
|
|
77
|
+
if (opts.id) {
|
|
78
|
+
const state = argsOrState;
|
|
79
|
+
resourceInputs["bucketName"] = state ? state.bucketName : undefined;
|
|
80
|
+
resourceInputs["rule"] = state ? state.rule : undefined;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
if ((!args || args.bucketName === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'bucketName'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.rule === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'rule'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
|
|
91
|
+
resourceInputs["rule"] = args ? args.rule : undefined;
|
|
92
|
+
}
|
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
94
|
+
super(BucketEncryption.__pulumiType, name, resourceInputs, opts);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.BucketEncryption = BucketEncryption;
|
|
98
|
+
/** @internal */
|
|
99
|
+
BucketEncryption.__pulumiType = 'volcengine:tos/bucketEncryption:BucketEncryption';
|
|
100
|
+
//# sourceMappingURL=bucketEncryption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bucketEncryption.js","sourceRoot":"","sources":["../../tos/bucketEncryption.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;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,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAjEL,4CAkEC;AApDG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
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 notification
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooBucket = new volcengine.tos.Bucket("fooBucket", {
|
|
13
|
+
* bucketName: "tf-acc-test-bucket",
|
|
14
|
+
* publicAcl: "private",
|
|
15
|
+
* azRedundancy: "multi-az",
|
|
16
|
+
* projectName: "default",
|
|
17
|
+
* tags: [{
|
|
18
|
+
* key: "k1",
|
|
19
|
+
* value: "v1",
|
|
20
|
+
* }],
|
|
21
|
+
* });
|
|
22
|
+
* const fooBucketNotification = new volcengine.tos.BucketNotification("fooBucketNotification", {
|
|
23
|
+
* bucketName: fooBucket.id,
|
|
24
|
+
* rules: {
|
|
25
|
+
* ruleId: "acc-test-rule",
|
|
26
|
+
* events: [
|
|
27
|
+
* "tos:ObjectCreated:Put",
|
|
28
|
+
* "tos:ObjectCreated:Post",
|
|
29
|
+
* ],
|
|
30
|
+
* destination: {
|
|
31
|
+
* veFaas: [
|
|
32
|
+
* {
|
|
33
|
+
* functionId: "80w95pns",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* functionId: "crnrfajj",
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* },
|
|
40
|
+
* filter: {
|
|
41
|
+
* tosKey: {
|
|
42
|
+
* filterRules: [
|
|
43
|
+
* {
|
|
44
|
+
* name: "prefix",
|
|
45
|
+
* value: "a",
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* name: "suffix",
|
|
49
|
+
* value: "b",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* });
|
|
56
|
+
* const foo1 = new volcengine.tos.BucketNotification("foo1", {
|
|
57
|
+
* bucketName: fooBucket.id,
|
|
58
|
+
* rules: {
|
|
59
|
+
* ruleId: "acc-test-rule-1",
|
|
60
|
+
* events: [
|
|
61
|
+
* "tos:ObjectRemoved:Delete",
|
|
62
|
+
* "tos:ObjectRemoved:DeleteMarkerCreated",
|
|
63
|
+
* ],
|
|
64
|
+
* destination: {
|
|
65
|
+
* veFaas: [
|
|
66
|
+
* {
|
|
67
|
+
* functionId: "80w95pns",
|
|
68
|
+
* },
|
|
69
|
+
* {
|
|
70
|
+
* functionId: "crnrfajj",
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* },
|
|
74
|
+
* filter: {
|
|
75
|
+
* tosKey: {
|
|
76
|
+
* filterRules: [
|
|
77
|
+
* {
|
|
78
|
+
* name: "prefix",
|
|
79
|
+
* value: "aaa",
|
|
80
|
+
* },
|
|
81
|
+
* {
|
|
82
|
+
* name: "suffix",
|
|
83
|
+
* value: "bbb",
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* ## Import
|
|
93
|
+
*
|
|
94
|
+
* TosBucketNotification can be imported using the bucketName, e.g.
|
|
95
|
+
*
|
|
96
|
+
* ```sh
|
|
97
|
+
* $ pulumi import volcengine:tos/bucketNotification:BucketNotification default resource_id
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export declare class BucketNotification extends pulumi.CustomResource {
|
|
101
|
+
/**
|
|
102
|
+
* Get an existing BucketNotification resource's state with the given name, ID, and optional extra
|
|
103
|
+
* properties used to qualify the lookup.
|
|
104
|
+
*
|
|
105
|
+
* @param name The _unique_ name of the resulting resource.
|
|
106
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
107
|
+
* @param state Any extra arguments used during the lookup.
|
|
108
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
109
|
+
*/
|
|
110
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketNotificationState, opts?: pulumi.CustomResourceOptions): BucketNotification;
|
|
111
|
+
/**
|
|
112
|
+
* Returns true if the given object is an instance of BucketNotification. This is designed to work even
|
|
113
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
114
|
+
*/
|
|
115
|
+
static isInstance(obj: any): obj is BucketNotification;
|
|
116
|
+
/**
|
|
117
|
+
* The name of the bucket.
|
|
118
|
+
*/
|
|
119
|
+
readonly bucketName: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The notification rule of the bucket.
|
|
122
|
+
*/
|
|
123
|
+
readonly rules: pulumi.Output<outputs.tos.BucketNotificationRules>;
|
|
124
|
+
/**
|
|
125
|
+
* The version of the notification.
|
|
126
|
+
*/
|
|
127
|
+
readonly version: pulumi.Output<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Create a BucketNotification resource with the given unique name, arguments, and options.
|
|
130
|
+
*
|
|
131
|
+
* @param name The _unique_ name of the resource.
|
|
132
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
133
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
134
|
+
*/
|
|
135
|
+
constructor(name: string, args: BucketNotificationArgs, opts?: pulumi.CustomResourceOptions);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Input properties used for looking up and filtering BucketNotification resources.
|
|
139
|
+
*/
|
|
140
|
+
export interface BucketNotificationState {
|
|
141
|
+
/**
|
|
142
|
+
* The name of the bucket.
|
|
143
|
+
*/
|
|
144
|
+
bucketName?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The notification rule of the bucket.
|
|
147
|
+
*/
|
|
148
|
+
rules?: pulumi.Input<inputs.tos.BucketNotificationRules>;
|
|
149
|
+
/**
|
|
150
|
+
* The version of the notification.
|
|
151
|
+
*/
|
|
152
|
+
version?: pulumi.Input<string>;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The set of arguments for constructing a BucketNotification resource.
|
|
156
|
+
*/
|
|
157
|
+
export interface BucketNotificationArgs {
|
|
158
|
+
/**
|
|
159
|
+
* The name of the bucket.
|
|
160
|
+
*/
|
|
161
|
+
bucketName: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The notification rule of the bucket.
|
|
164
|
+
*/
|
|
165
|
+
rules: pulumi.Input<inputs.tos.BucketNotificationRules>;
|
|
166
|
+
}
|