pulumi-bunnynet 0.6.2

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 (66) hide show
  1. package/README.md +348 -0
  2. package/bin/_virtual/rolldown_runtime.mjs +37 -0
  3. package/bin/computeContainerApp.d.mts +128 -0
  4. package/bin/computeContainerApp.mjs +97 -0
  5. package/bin/computeContainerImageregistry.d.mts +86 -0
  6. package/bin/computeContainerImageregistry.mjs +82 -0
  7. package/bin/computeScript.d.mts +102 -0
  8. package/bin/computeScript.mjs +91 -0
  9. package/bin/computeScriptSecret.d.mts +86 -0
  10. package/bin/computeScriptSecret.mjs +81 -0
  11. package/bin/computeScriptVariable.d.mts +98 -0
  12. package/bin/computeScriptVariable.mjs +86 -0
  13. package/bin/config/index.d.mts +8 -0
  14. package/bin/config/index.mjs +9 -0
  15. package/bin/config/vars.d.mts +19 -0
  16. package/bin/config/vars.mjs +36 -0
  17. package/bin/dnsRecord.d.mts +289 -0
  18. package/bin/dnsRecord.mjs +183 -0
  19. package/bin/dnsZone.d.mts +146 -0
  20. package/bin/dnsZone.mjs +108 -0
  21. package/bin/getComputeContainerAppContainer.d.mts +29 -0
  22. package/bin/getComputeContainerAppContainer.mjs +31 -0
  23. package/bin/getComputeContainerAppContainerEndpoint.d.mts +39 -0
  24. package/bin/getComputeContainerAppContainerEndpoint.mjs +33 -0
  25. package/bin/getComputeContainerImageregistry.d.mts +29 -0
  26. package/bin/getComputeContainerImageregistry.mjs +31 -0
  27. package/bin/getDnsRecord.d.mts +51 -0
  28. package/bin/getDnsRecord.mjs +35 -0
  29. package/bin/getDnsZone.d.mts +33 -0
  30. package/bin/getDnsZone.mjs +25 -0
  31. package/bin/getRegion.d.mts +33 -0
  32. package/bin/getRegion.mjs +25 -0
  33. package/bin/getVideoLanguage.d.mts +33 -0
  34. package/bin/getVideoLanguage.mjs +25 -0
  35. package/bin/index.d.mts +80 -0
  36. package/bin/index.mjs +160 -0
  37. package/bin/package.json +61 -0
  38. package/bin/package.mjs +64 -0
  39. package/bin/provider.d.mts +66 -0
  40. package/bin/provider.mjs +60 -0
  41. package/bin/pullzone.d.mts +1079 -0
  42. package/bin/pullzone.mjs +580 -0
  43. package/bin/pullzoneEdgerule.d.mts +131 -0
  44. package/bin/pullzoneEdgerule.mjs +105 -0
  45. package/bin/pullzoneHostname.d.mts +142 -0
  46. package/bin/pullzoneHostname.mjs +106 -0
  47. package/bin/pullzoneOptimizerClass.d.mts +258 -0
  48. package/bin/pullzoneOptimizerClass.mjs +162 -0
  49. package/bin/storageFile.d.mts +137 -0
  50. package/bin/storageFile.mjs +110 -0
  51. package/bin/storageZone.d.mts +154 -0
  52. package/bin/storageZone.mjs +123 -0
  53. package/bin/streamCollection.d.mts +66 -0
  54. package/bin/streamCollection.mjs +66 -0
  55. package/bin/streamLibrary.d.mts +587 -0
  56. package/bin/streamLibrary.mjs +333 -0
  57. package/bin/streamVideo.d.mts +116 -0
  58. package/bin/streamVideo.mjs +91 -0
  59. package/bin/types/index.d.mts +9 -0
  60. package/bin/types/index.mjs +13 -0
  61. package/bin/types/input.d.mts +376 -0
  62. package/bin/types/input.mjs +5 -0
  63. package/bin/types/output.d.mts +381 -0
  64. package/bin/types/output.mjs +5 -0
  65. package/bin/utilities.mjs +61 -0
  66. package/package.json +61 -0
@@ -0,0 +1,258 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+
3
+ //#region pullzoneOptimizerClass.d.ts
4
+ declare class PullzoneOptimizerClass extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing PullzoneOptimizerClass resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PullzoneOptimizerClassState, opts?: pulumi.CustomResourceOptions): PullzoneOptimizerClass;
15
+ /** @internal */
16
+ static readonly __pulumiType: string;
17
+ /**
18
+ * Returns true if the given object is an instance of PullzoneOptimizerClass. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is PullzoneOptimizerClass;
22
+ /**
23
+ * The aspect ratio for image optimization.
24
+ */
25
+ readonly aspectRatio!: pulumi.Output<string | undefined>;
26
+ /**
27
+ * Indicates whether automatic optimization for images is enabled.
28
+ */
29
+ readonly autoOptimize!: pulumi.Output<string | undefined>;
30
+ /**
31
+ * The level of blur to apply to images.
32
+ */
33
+ readonly blur!: pulumi.Output<number | undefined>;
34
+ /**
35
+ * The brightness adjustment for images.
36
+ */
37
+ readonly brightness!: pulumi.Output<number | undefined>;
38
+ /**
39
+ * The contrast adjustment for images.
40
+ */
41
+ readonly contrast!: pulumi.Output<number | undefined>;
42
+ /**
43
+ * The cropping settings for images.
44
+ */
45
+ readonly crop!: pulumi.Output<string | undefined>;
46
+ /**
47
+ * The gravity setting for cropping.
48
+ */
49
+ readonly cropGravity!: pulumi.Output<string | undefined>;
50
+ /**
51
+ * Indicates whether to flip images horizontally.
52
+ */
53
+ readonly flip!: pulumi.Output<boolean | undefined>;
54
+ /**
55
+ * Indicates whether to flip images vertically.
56
+ */
57
+ readonly flop!: pulumi.Output<boolean | undefined>;
58
+ /**
59
+ * The height to which images should be resized.
60
+ */
61
+ readonly height!: pulumi.Output<number | undefined>;
62
+ /**
63
+ * The hue adjustment for images.
64
+ */
65
+ readonly hue!: pulumi.Output<number | undefined>;
66
+ /**
67
+ * The name of the optimizer class.
68
+ */
69
+ readonly name!: pulumi.Output<string>;
70
+ /**
71
+ * The ID of the linked pull zone.
72
+ */
73
+ readonly pullzone!: pulumi.Output<number>;
74
+ /**
75
+ * The quality setting for image optimization.
76
+ */
77
+ readonly quality!: pulumi.Output<number | undefined>;
78
+ /**
79
+ * The saturation adjustment for images.
80
+ */
81
+ readonly saturation!: pulumi.Output<number | undefined>;
82
+ /**
83
+ * The level of sepia tone to apply to images.
84
+ */
85
+ readonly sepia!: pulumi.Output<number | undefined>;
86
+ /**
87
+ * Indicates whether to sharpen images.
88
+ */
89
+ readonly sharpen!: pulumi.Output<boolean | undefined>;
90
+ /**
91
+ * The width to which images should be resized.
92
+ */
93
+ readonly width!: pulumi.Output<number | undefined>;
94
+ /**
95
+ * Create a PullzoneOptimizerClass resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: PullzoneOptimizerClassArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering PullzoneOptimizerClass resources.
105
+ */
106
+ interface PullzoneOptimizerClassState {
107
+ /**
108
+ * The aspect ratio for image optimization.
109
+ */
110
+ aspectRatio?: pulumi.Input<string>;
111
+ /**
112
+ * Indicates whether automatic optimization for images is enabled.
113
+ */
114
+ autoOptimize?: pulumi.Input<string>;
115
+ /**
116
+ * The level of blur to apply to images.
117
+ */
118
+ blur?: pulumi.Input<number>;
119
+ /**
120
+ * The brightness adjustment for images.
121
+ */
122
+ brightness?: pulumi.Input<number>;
123
+ /**
124
+ * The contrast adjustment for images.
125
+ */
126
+ contrast?: pulumi.Input<number>;
127
+ /**
128
+ * The cropping settings for images.
129
+ */
130
+ crop?: pulumi.Input<string>;
131
+ /**
132
+ * The gravity setting for cropping.
133
+ */
134
+ cropGravity?: pulumi.Input<string>;
135
+ /**
136
+ * Indicates whether to flip images horizontally.
137
+ */
138
+ flip?: pulumi.Input<boolean>;
139
+ /**
140
+ * Indicates whether to flip images vertically.
141
+ */
142
+ flop?: pulumi.Input<boolean>;
143
+ /**
144
+ * The height to which images should be resized.
145
+ */
146
+ height?: pulumi.Input<number>;
147
+ /**
148
+ * The hue adjustment for images.
149
+ */
150
+ hue?: pulumi.Input<number>;
151
+ /**
152
+ * The name of the optimizer class.
153
+ */
154
+ name?: pulumi.Input<string>;
155
+ /**
156
+ * The ID of the linked pull zone.
157
+ */
158
+ pullzone?: pulumi.Input<number>;
159
+ /**
160
+ * The quality setting for image optimization.
161
+ */
162
+ quality?: pulumi.Input<number>;
163
+ /**
164
+ * The saturation adjustment for images.
165
+ */
166
+ saturation?: pulumi.Input<number>;
167
+ /**
168
+ * The level of sepia tone to apply to images.
169
+ */
170
+ sepia?: pulumi.Input<number>;
171
+ /**
172
+ * Indicates whether to sharpen images.
173
+ */
174
+ sharpen?: pulumi.Input<boolean>;
175
+ /**
176
+ * The width to which images should be resized.
177
+ */
178
+ width?: pulumi.Input<number>;
179
+ }
180
+ /**
181
+ * The set of arguments for constructing a PullzoneOptimizerClass resource.
182
+ */
183
+ interface PullzoneOptimizerClassArgs {
184
+ /**
185
+ * The aspect ratio for image optimization.
186
+ */
187
+ aspectRatio?: pulumi.Input<string>;
188
+ /**
189
+ * Indicates whether automatic optimization for images is enabled.
190
+ */
191
+ autoOptimize?: pulumi.Input<string>;
192
+ /**
193
+ * The level of blur to apply to images.
194
+ */
195
+ blur?: pulumi.Input<number>;
196
+ /**
197
+ * The brightness adjustment for images.
198
+ */
199
+ brightness?: pulumi.Input<number>;
200
+ /**
201
+ * The contrast adjustment for images.
202
+ */
203
+ contrast?: pulumi.Input<number>;
204
+ /**
205
+ * The cropping settings for images.
206
+ */
207
+ crop?: pulumi.Input<string>;
208
+ /**
209
+ * The gravity setting for cropping.
210
+ */
211
+ cropGravity?: pulumi.Input<string>;
212
+ /**
213
+ * Indicates whether to flip images horizontally.
214
+ */
215
+ flip?: pulumi.Input<boolean>;
216
+ /**
217
+ * Indicates whether to flip images vertically.
218
+ */
219
+ flop?: pulumi.Input<boolean>;
220
+ /**
221
+ * The height to which images should be resized.
222
+ */
223
+ height?: pulumi.Input<number>;
224
+ /**
225
+ * The hue adjustment for images.
226
+ */
227
+ hue?: pulumi.Input<number>;
228
+ /**
229
+ * The name of the optimizer class.
230
+ */
231
+ name?: pulumi.Input<string>;
232
+ /**
233
+ * The ID of the linked pull zone.
234
+ */
235
+ pullzone: pulumi.Input<number>;
236
+ /**
237
+ * The quality setting for image optimization.
238
+ */
239
+ quality?: pulumi.Input<number>;
240
+ /**
241
+ * The saturation adjustment for images.
242
+ */
243
+ saturation?: pulumi.Input<number>;
244
+ /**
245
+ * The level of sepia tone to apply to images.
246
+ */
247
+ sepia?: pulumi.Input<number>;
248
+ /**
249
+ * Indicates whether to sharpen images.
250
+ */
251
+ sharpen?: pulumi.Input<boolean>;
252
+ /**
253
+ * The width to which images should be resized.
254
+ */
255
+ width?: pulumi.Input<number>;
256
+ }
257
+ //#endregion
258
+ export { PullzoneOptimizerClass, PullzoneOptimizerClassArgs, PullzoneOptimizerClassState };
@@ -0,0 +1,162 @@
1
+ import { __esm, __export } from "./_virtual/rolldown_runtime.mjs";
2
+ import { getPackage, init_utilities, resourceOptsDefaults } from "./utilities.mjs";
3
+ import * as pulumi from "@pulumi/pulumi";
4
+
5
+ //#region pullzoneOptimizerClass.ts
6
+ var pullzoneOptimizerClass_exports = {};
7
+ __export(pullzoneOptimizerClass_exports, { PullzoneOptimizerClass: () => PullzoneOptimizerClass });
8
+ var PullzoneOptimizerClass;
9
+ var init_pullzoneOptimizerClass = __esm({ "pullzoneOptimizerClass.ts": (() => {
10
+ init_utilities();
11
+ PullzoneOptimizerClass = class PullzoneOptimizerClass extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing PullzoneOptimizerClass resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new PullzoneOptimizerClass(name, state, {
23
+ ...opts,
24
+ id
25
+ });
26
+ }
27
+ /** @internal */
28
+ static __pulumiType = "bunnynet:index/pullzoneOptimizerClass:PullzoneOptimizerClass";
29
+ /**
30
+ * Returns true if the given object is an instance of PullzoneOptimizerClass. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj) {
34
+ if (obj === void 0 || obj === null) return false;
35
+ return obj["__pulumiType"] === PullzoneOptimizerClass.__pulumiType;
36
+ }
37
+ /**
38
+ * The aspect ratio for image optimization.
39
+ */
40
+ aspectRatio;
41
+ /**
42
+ * Indicates whether automatic optimization for images is enabled.
43
+ */
44
+ autoOptimize;
45
+ /**
46
+ * The level of blur to apply to images.
47
+ */
48
+ blur;
49
+ /**
50
+ * The brightness adjustment for images.
51
+ */
52
+ brightness;
53
+ /**
54
+ * The contrast adjustment for images.
55
+ */
56
+ contrast;
57
+ /**
58
+ * The cropping settings for images.
59
+ */
60
+ crop;
61
+ /**
62
+ * The gravity setting for cropping.
63
+ */
64
+ cropGravity;
65
+ /**
66
+ * Indicates whether to flip images horizontally.
67
+ */
68
+ flip;
69
+ /**
70
+ * Indicates whether to flip images vertically.
71
+ */
72
+ flop;
73
+ /**
74
+ * The height to which images should be resized.
75
+ */
76
+ height;
77
+ /**
78
+ * The hue adjustment for images.
79
+ */
80
+ hue;
81
+ /**
82
+ * The name of the optimizer class.
83
+ */
84
+ name;
85
+ /**
86
+ * The ID of the linked pull zone.
87
+ */
88
+ pullzone;
89
+ /**
90
+ * The quality setting for image optimization.
91
+ */
92
+ quality;
93
+ /**
94
+ * The saturation adjustment for images.
95
+ */
96
+ saturation;
97
+ /**
98
+ * The level of sepia tone to apply to images.
99
+ */
100
+ sepia;
101
+ /**
102
+ * Indicates whether to sharpen images.
103
+ */
104
+ sharpen;
105
+ /**
106
+ * The width to which images should be resized.
107
+ */
108
+ width;
109
+ constructor(name, argsOrState, opts) {
110
+ let resourceInputs = {};
111
+ opts = opts || {};
112
+ if (opts.id) {
113
+ const state = argsOrState;
114
+ resourceInputs["aspectRatio"] = state ? state.aspectRatio : void 0;
115
+ resourceInputs["autoOptimize"] = state ? state.autoOptimize : void 0;
116
+ resourceInputs["blur"] = state ? state.blur : void 0;
117
+ resourceInputs["brightness"] = state ? state.brightness : void 0;
118
+ resourceInputs["contrast"] = state ? state.contrast : void 0;
119
+ resourceInputs["crop"] = state ? state.crop : void 0;
120
+ resourceInputs["cropGravity"] = state ? state.cropGravity : void 0;
121
+ resourceInputs["flip"] = state ? state.flip : void 0;
122
+ resourceInputs["flop"] = state ? state.flop : void 0;
123
+ resourceInputs["height"] = state ? state.height : void 0;
124
+ resourceInputs["hue"] = state ? state.hue : void 0;
125
+ resourceInputs["name"] = state ? state.name : void 0;
126
+ resourceInputs["pullzone"] = state ? state.pullzone : void 0;
127
+ resourceInputs["quality"] = state ? state.quality : void 0;
128
+ resourceInputs["saturation"] = state ? state.saturation : void 0;
129
+ resourceInputs["sepia"] = state ? state.sepia : void 0;
130
+ resourceInputs["sharpen"] = state ? state.sharpen : void 0;
131
+ resourceInputs["width"] = state ? state.width : void 0;
132
+ } else {
133
+ const args = argsOrState;
134
+ if ((!args || args.pullzone === void 0) && !opts.urn) throw new Error("Missing required property 'pullzone'");
135
+ resourceInputs["aspectRatio"] = args ? args.aspectRatio : void 0;
136
+ resourceInputs["autoOptimize"] = args ? args.autoOptimize : void 0;
137
+ resourceInputs["blur"] = args ? args.blur : void 0;
138
+ resourceInputs["brightness"] = args ? args.brightness : void 0;
139
+ resourceInputs["contrast"] = args ? args.contrast : void 0;
140
+ resourceInputs["crop"] = args ? args.crop : void 0;
141
+ resourceInputs["cropGravity"] = args ? args.cropGravity : void 0;
142
+ resourceInputs["flip"] = args ? args.flip : void 0;
143
+ resourceInputs["flop"] = args ? args.flop : void 0;
144
+ resourceInputs["height"] = args ? args.height : void 0;
145
+ resourceInputs["hue"] = args ? args.hue : void 0;
146
+ resourceInputs["name"] = args ? args.name : void 0;
147
+ resourceInputs["pullzone"] = args ? args.pullzone : void 0;
148
+ resourceInputs["quality"] = args ? args.quality : void 0;
149
+ resourceInputs["saturation"] = args ? args.saturation : void 0;
150
+ resourceInputs["sepia"] = args ? args.sepia : void 0;
151
+ resourceInputs["sharpen"] = args ? args.sharpen : void 0;
152
+ resourceInputs["width"] = args ? args.width : void 0;
153
+ }
154
+ opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
155
+ super(PullzoneOptimizerClass.__pulumiType, name, resourceInputs, opts, false, getPackage());
156
+ }
157
+ };
158
+ }) });
159
+
160
+ //#endregion
161
+ init_pullzoneOptimizerClass();
162
+ export { init_pullzoneOptimizerClass, pullzoneOptimizerClass_exports };
@@ -0,0 +1,137 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+
3
+ //#region storageFile.d.ts
4
+ declare class StorageFile extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing StorageFile resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StorageFileState, opts?: pulumi.CustomResourceOptions): StorageFile;
15
+ /** @internal */
16
+ static readonly __pulumiType: string;
17
+ /**
18
+ * Returns true if the given object is an instance of StorageFile. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is StorageFile;
22
+ /**
23
+ * The SHA-256 hash of the stored file.
24
+ */
25
+ readonly checksum!: pulumi.Output<string>;
26
+ /**
27
+ * The to be stored in the file. Use <code>source</code> to upload files from the local disk.
28
+ */
29
+ readonly content!: pulumi.Output<string | undefined>;
30
+ /**
31
+ * Specifies the content type of the file.
32
+ */
33
+ readonly contentType!: pulumi.Output<string>;
34
+ /**
35
+ * The date and time when the file was created.
36
+ */
37
+ readonly dateCreated!: pulumi.Output<string>;
38
+ /**
39
+ * The date and time when the file was last modified.
40
+ */
41
+ readonly dateModified!: pulumi.Output<string>;
42
+ /**
43
+ * The path of the file within the storage zone.
44
+ */
45
+ readonly path!: pulumi.Output<string>;
46
+ /**
47
+ * The size of the file in bytes.
48
+ */
49
+ readonly size!: pulumi.Output<number>;
50
+ /**
51
+ * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the
52
+ * content directly.
53
+ */
54
+ readonly source!: pulumi.Output<string | undefined>;
55
+ /**
56
+ * The ID of the storage zone where the file is stored.
57
+ */
58
+ readonly zone!: pulumi.Output<number>;
59
+ /**
60
+ * Create a StorageFile resource with the given unique name, arguments, and options.
61
+ *
62
+ * @param name The _unique_ name of the resource.
63
+ * @param args The arguments to use to populate this resource's properties.
64
+ * @param opts A bag of options that control this resource's behavior.
65
+ */
66
+ constructor(name: string, args: StorageFileArgs, opts?: pulumi.CustomResourceOptions);
67
+ }
68
+ /**
69
+ * Input properties used for looking up and filtering StorageFile resources.
70
+ */
71
+ interface StorageFileState {
72
+ /**
73
+ * The SHA-256 hash of the stored file.
74
+ */
75
+ checksum?: pulumi.Input<string>;
76
+ /**
77
+ * The to be stored in the file. Use <code>source</code> to upload files from the local disk.
78
+ */
79
+ content?: pulumi.Input<string>;
80
+ /**
81
+ * Specifies the content type of the file.
82
+ */
83
+ contentType?: pulumi.Input<string>;
84
+ /**
85
+ * The date and time when the file was created.
86
+ */
87
+ dateCreated?: pulumi.Input<string>;
88
+ /**
89
+ * The date and time when the file was last modified.
90
+ */
91
+ dateModified?: pulumi.Input<string>;
92
+ /**
93
+ * The path of the file within the storage zone.
94
+ */
95
+ path?: pulumi.Input<string>;
96
+ /**
97
+ * The size of the file in bytes.
98
+ */
99
+ size?: pulumi.Input<number>;
100
+ /**
101
+ * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the
102
+ * content directly.
103
+ */
104
+ source?: pulumi.Input<string>;
105
+ /**
106
+ * The ID of the storage zone where the file is stored.
107
+ */
108
+ zone?: pulumi.Input<number>;
109
+ }
110
+ /**
111
+ * The set of arguments for constructing a StorageFile resource.
112
+ */
113
+ interface StorageFileArgs {
114
+ /**
115
+ * The to be stored in the file. Use <code>source</code> to upload files from the local disk.
116
+ */
117
+ content?: pulumi.Input<string>;
118
+ /**
119
+ * Specifies the content type of the file.
120
+ */
121
+ contentType?: pulumi.Input<string>;
122
+ /**
123
+ * The path of the file within the storage zone.
124
+ */
125
+ path: pulumi.Input<string>;
126
+ /**
127
+ * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the
128
+ * content directly.
129
+ */
130
+ source?: pulumi.Input<string>;
131
+ /**
132
+ * The ID of the storage zone where the file is stored.
133
+ */
134
+ zone: pulumi.Input<number>;
135
+ }
136
+ //#endregion
137
+ export { StorageFile, StorageFileArgs, StorageFileState };
@@ -0,0 +1,110 @@
1
+ import { __esm, __export } from "./_virtual/rolldown_runtime.mjs";
2
+ import { getPackage, init_utilities, resourceOptsDefaults } from "./utilities.mjs";
3
+ import * as pulumi from "@pulumi/pulumi";
4
+
5
+ //#region storageFile.ts
6
+ var storageFile_exports = {};
7
+ __export(storageFile_exports, { StorageFile: () => StorageFile });
8
+ var StorageFile;
9
+ var init_storageFile = __esm({ "storageFile.ts": (() => {
10
+ init_utilities();
11
+ StorageFile = class StorageFile extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing StorageFile resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new StorageFile(name, state, {
23
+ ...opts,
24
+ id
25
+ });
26
+ }
27
+ /** @internal */
28
+ static __pulumiType = "bunnynet:index/storageFile:StorageFile";
29
+ /**
30
+ * Returns true if the given object is an instance of StorageFile. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj) {
34
+ if (obj === void 0 || obj === null) return false;
35
+ return obj["__pulumiType"] === StorageFile.__pulumiType;
36
+ }
37
+ /**
38
+ * The SHA-256 hash of the stored file.
39
+ */
40
+ checksum;
41
+ /**
42
+ * The to be stored in the file. Use <code>source</code> to upload files from the local disk.
43
+ */
44
+ content;
45
+ /**
46
+ * Specifies the content type of the file.
47
+ */
48
+ contentType;
49
+ /**
50
+ * The date and time when the file was created.
51
+ */
52
+ dateCreated;
53
+ /**
54
+ * The date and time when the file was last modified.
55
+ */
56
+ dateModified;
57
+ /**
58
+ * The path of the file within the storage zone.
59
+ */
60
+ path;
61
+ /**
62
+ * The size of the file in bytes.
63
+ */
64
+ size;
65
+ /**
66
+ * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the
67
+ * content directly.
68
+ */
69
+ source;
70
+ /**
71
+ * The ID of the storage zone where the file is stored.
72
+ */
73
+ zone;
74
+ constructor(name, argsOrState, opts) {
75
+ let resourceInputs = {};
76
+ opts = opts || {};
77
+ if (opts.id) {
78
+ const state = argsOrState;
79
+ resourceInputs["checksum"] = state ? state.checksum : void 0;
80
+ resourceInputs["content"] = state ? state.content : void 0;
81
+ resourceInputs["contentType"] = state ? state.contentType : void 0;
82
+ resourceInputs["dateCreated"] = state ? state.dateCreated : void 0;
83
+ resourceInputs["dateModified"] = state ? state.dateModified : void 0;
84
+ resourceInputs["path"] = state ? state.path : void 0;
85
+ resourceInputs["size"] = state ? state.size : void 0;
86
+ resourceInputs["source"] = state ? state.source : void 0;
87
+ resourceInputs["zone"] = state ? state.zone : void 0;
88
+ } else {
89
+ const args = argsOrState;
90
+ if ((!args || args.path === void 0) && !opts.urn) throw new Error("Missing required property 'path'");
91
+ if ((!args || args.zone === void 0) && !opts.urn) throw new Error("Missing required property 'zone'");
92
+ resourceInputs["content"] = args ? args.content : void 0;
93
+ resourceInputs["contentType"] = args ? args.contentType : void 0;
94
+ resourceInputs["path"] = args ? args.path : void 0;
95
+ resourceInputs["source"] = args ? args.source : void 0;
96
+ resourceInputs["zone"] = args ? args.zone : void 0;
97
+ resourceInputs["checksum"] = void 0;
98
+ resourceInputs["dateCreated"] = void 0;
99
+ resourceInputs["dateModified"] = void 0;
100
+ resourceInputs["size"] = void 0;
101
+ }
102
+ opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
103
+ super(StorageFile.__pulumiType, name, resourceInputs, opts, false, getPackage());
104
+ }
105
+ };
106
+ }) });
107
+
108
+ //#endregion
109
+ init_storageFile();
110
+ export { init_storageFile, storageFile_exports };