@volcengine/pulumi 0.0.34 → 0.0.36

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.
Files changed (81) hide show
  1. package/autoscaling/scalingGroup.d.ts +24 -0
  2. package/autoscaling/scalingGroup.js +4 -0
  3. package/autoscaling/scalingGroup.js.map +1 -1
  4. package/config/vars.d.ts +5 -0
  5. package/config/vars.js +12 -0
  6. package/config/vars.js.map +1 -1
  7. package/ecs/command.d.ts +65 -18
  8. package/ecs/command.js +10 -15
  9. package/ecs/command.js.map +1 -1
  10. package/ecs/commands.d.ts +26 -1
  11. package/ecs/commands.js +2 -0
  12. package/ecs/commands.js.map +1 -1
  13. package/ecs/getCommands.d.ts +26 -1
  14. package/ecs/getCommands.js +2 -0
  15. package/ecs/getCommands.js.map +1 -1
  16. package/ecs/getInvocations.d.ts +25 -0
  17. package/ecs/getInvocations.js +2 -0
  18. package/ecs/getInvocations.js.map +1 -1
  19. package/ecs/instance.d.ts +20 -0
  20. package/ecs/instance.js +4 -0
  21. package/ecs/instance.js.map +1 -1
  22. package/ecs/invocation.d.ts +53 -6
  23. package/ecs/invocation.js +15 -0
  24. package/ecs/invocation.js.map +1 -1
  25. package/ecs/invocations.d.ts +25 -0
  26. package/ecs/invocations.js +2 -0
  27. package/ecs/invocations.js.map +1 -1
  28. package/iam/getOidcProviders.d.ts +62 -0
  29. package/iam/getOidcProviders.js +42 -0
  30. package/iam/getOidcProviders.js.map +1 -0
  31. package/iam/index.d.ts +12 -0
  32. package/iam/index.js +17 -1
  33. package/iam/index.js.map +1 -1
  34. package/iam/oidcProvider.d.ts +164 -0
  35. package/iam/oidcProvider.js +109 -0
  36. package/iam/oidcProvider.js.map +1 -0
  37. package/iam/oidcProviders.d.ts +64 -0
  38. package/iam/oidcProviders.js +45 -0
  39. package/iam/oidcProviders.js.map +1 -0
  40. package/iam/serviceLinkedRole.d.ts +91 -0
  41. package/iam/serviceLinkedRole.js +77 -0
  42. package/iam/serviceLinkedRole.js.map +1 -0
  43. package/kafka/instance.d.ts +12 -0
  44. package/kafka/instance.js +2 -0
  45. package/kafka/instance.js.map +1 -1
  46. package/package.json +1 -1
  47. package/provider.d.ts +9 -0
  48. package/provider.js +2 -0
  49. package/provider.js.map +1 -1
  50. package/redis/getParameterGroups.d.ts +22 -0
  51. package/redis/getParameterGroups.js +22 -0
  52. package/redis/getParameterGroups.js.map +1 -1
  53. package/redis/getPitrTimeWindows.d.ts +50 -0
  54. package/redis/getPitrTimeWindows.js +32 -0
  55. package/redis/getPitrTimeWindows.js.map +1 -1
  56. package/redis/parameterGroups.d.ts +22 -0
  57. package/redis/parameterGroups.js +22 -0
  58. package/redis/parameterGroups.js.map +1 -1
  59. package/redis/pitrTimeWindows.d.ts +50 -0
  60. package/redis/pitrTimeWindows.js +32 -0
  61. package/redis/pitrTimeWindows.js.map +1 -1
  62. package/tos/bucketCors.d.ts +120 -0
  63. package/tos/bucketCors.js +115 -0
  64. package/tos/bucketCors.js.map +1 -0
  65. package/tos/bucketEncryption.d.ts +105 -0
  66. package/tos/bucketEncryption.js +100 -0
  67. package/tos/bucketEncryption.js.map +1 -0
  68. package/tos/bucketNotification.d.ts +166 -0
  69. package/tos/bucketNotification.js +155 -0
  70. package/tos/bucketNotification.js.map +1 -0
  71. package/tos/index.d.ts +9 -0
  72. package/tos/index.js +16 -1
  73. package/tos/index.js.map +1 -1
  74. package/types/input.d.ts +280 -0
  75. package/types/output.d.ts +548 -0
  76. package/vke/node.d.ts +12 -0
  77. package/vke/node.js +2 -0
  78. package/vke/node.js.map +1 -1
  79. package/vpc/networkInterface.d.ts +27 -7
  80. package/vpc/networkInterface.js +27 -7
  81. package/vpc/networkInterface.js.map +1 -1
@@ -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,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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":"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,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
+ }
@@ -0,0 +1,155 @@
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.BucketNotification = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage tos bucket notification
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 fooBucketNotification = new volcengine.tos.BucketNotification("fooBucketNotification", {
27
+ * bucketName: fooBucket.id,
28
+ * rules: {
29
+ * ruleId: "acc-test-rule",
30
+ * events: [
31
+ * "tos:ObjectCreated:Put",
32
+ * "tos:ObjectCreated:Post",
33
+ * ],
34
+ * destination: {
35
+ * veFaas: [
36
+ * {
37
+ * functionId: "80w95pns",
38
+ * },
39
+ * {
40
+ * functionId: "crnrfajj",
41
+ * },
42
+ * ],
43
+ * },
44
+ * filter: {
45
+ * tosKey: {
46
+ * filterRules: [
47
+ * {
48
+ * name: "prefix",
49
+ * value: "a",
50
+ * },
51
+ * {
52
+ * name: "suffix",
53
+ * value: "b",
54
+ * },
55
+ * ],
56
+ * },
57
+ * },
58
+ * },
59
+ * });
60
+ * const foo1 = new volcengine.tos.BucketNotification("foo1", {
61
+ * bucketName: fooBucket.id,
62
+ * rules: {
63
+ * ruleId: "acc-test-rule-1",
64
+ * events: [
65
+ * "tos:ObjectRemoved:Delete",
66
+ * "tos:ObjectRemoved:DeleteMarkerCreated",
67
+ * ],
68
+ * destination: {
69
+ * veFaas: [
70
+ * {
71
+ * functionId: "80w95pns",
72
+ * },
73
+ * {
74
+ * functionId: "crnrfajj",
75
+ * },
76
+ * ],
77
+ * },
78
+ * filter: {
79
+ * tosKey: {
80
+ * filterRules: [
81
+ * {
82
+ * name: "prefix",
83
+ * value: "aaa",
84
+ * },
85
+ * {
86
+ * name: "suffix",
87
+ * value: "bbb",
88
+ * },
89
+ * ],
90
+ * },
91
+ * },
92
+ * },
93
+ * });
94
+ * ```
95
+ *
96
+ * ## Import
97
+ *
98
+ * TosBucketNotification can be imported using the bucketName, e.g.
99
+ *
100
+ * ```sh
101
+ * $ pulumi import volcengine:tos/bucketNotification:BucketNotification default resource_id
102
+ * ```
103
+ */
104
+ class BucketNotification extends pulumi.CustomResource {
105
+ /**
106
+ * Get an existing BucketNotification 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 BucketNotification(name, state, Object.assign(Object.assign({}, opts), { id: id }));
116
+ }
117
+ /**
118
+ * Returns true if the given object is an instance of BucketNotification. 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'] === BucketNotification.__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
+ resourceInputs["version"] = state ? state.version : undefined;
135
+ }
136
+ else {
137
+ const args = argsOrState;
138
+ if ((!args || args.bucketName === undefined) && !opts.urn) {
139
+ throw new Error("Missing required property 'bucketName'");
140
+ }
141
+ if ((!args || args.rules === undefined) && !opts.urn) {
142
+ throw new Error("Missing required property 'rules'");
143
+ }
144
+ resourceInputs["bucketName"] = args ? args.bucketName : undefined;
145
+ resourceInputs["rules"] = args ? args.rules : undefined;
146
+ resourceInputs["version"] = undefined /*out*/;
147
+ }
148
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
149
+ super(BucketNotification.__pulumiType, name, resourceInputs, opts);
150
+ }
151
+ }
152
+ exports.BucketNotification = BucketNotification;
153
+ /** @internal */
154
+ BucketNotification.__pulumiType = 'volcengine:tos/bucketNotification:BucketNotification';
155
+ //# sourceMappingURL=bucketNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucketNotification.js","sourceRoot":"","sources":["../../tos/bucketNotification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAA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;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
package/tos/index.d.ts CHANGED
@@ -1,12 +1,21 @@
1
1
  export { BucketArgs, BucketState } from "./bucket";
2
2
  export type Bucket = import("./bucket").Bucket;
3
3
  export declare const Bucket: typeof import("./bucket").Bucket;
4
+ export { BucketCorsArgs, BucketCorsState } from "./bucketCors";
5
+ export type BucketCors = import("./bucketCors").BucketCors;
6
+ export declare const BucketCors: typeof import("./bucketCors").BucketCors;
7
+ export { BucketEncryptionArgs, BucketEncryptionState } from "./bucketEncryption";
8
+ export type BucketEncryption = import("./bucketEncryption").BucketEncryption;
9
+ export declare const BucketEncryption: typeof import("./bucketEncryption").BucketEncryption;
4
10
  export { BucketInventoriesArgs, BucketInventoriesResult, BucketInventoriesOutputArgs } from "./bucketInventories";
5
11
  export declare const bucketInventories: typeof import("./bucketInventories").bucketInventories;
6
12
  export declare const bucketInventoriesOutput: typeof import("./bucketInventories").bucketInventoriesOutput;
7
13
  export { BucketInventoryArgs, BucketInventoryState } from "./bucketInventory";
8
14
  export type BucketInventory = import("./bucketInventory").BucketInventory;
9
15
  export declare const BucketInventory: typeof import("./bucketInventory").BucketInventory;
16
+ export { BucketNotificationArgs, BucketNotificationState } from "./bucketNotification";
17
+ export type BucketNotification = import("./bucketNotification").BucketNotification;
18
+ export declare const BucketNotification: typeof import("./bucketNotification").BucketNotification;
10
19
  export { BucketObjectArgs, BucketObjectState } from "./bucketObject";
11
20
  export type BucketObject = import("./bucketObject").BucketObject;
12
21
  export declare const BucketObject: typeof import("./bucketObject").BucketObject;