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.
- package/README.md +348 -0
- package/bin/_virtual/rolldown_runtime.mjs +37 -0
- package/bin/computeContainerApp.d.mts +128 -0
- package/bin/computeContainerApp.mjs +97 -0
- package/bin/computeContainerImageregistry.d.mts +86 -0
- package/bin/computeContainerImageregistry.mjs +82 -0
- package/bin/computeScript.d.mts +102 -0
- package/bin/computeScript.mjs +91 -0
- package/bin/computeScriptSecret.d.mts +86 -0
- package/bin/computeScriptSecret.mjs +81 -0
- package/bin/computeScriptVariable.d.mts +98 -0
- package/bin/computeScriptVariable.mjs +86 -0
- package/bin/config/index.d.mts +8 -0
- package/bin/config/index.mjs +9 -0
- package/bin/config/vars.d.mts +19 -0
- package/bin/config/vars.mjs +36 -0
- package/bin/dnsRecord.d.mts +289 -0
- package/bin/dnsRecord.mjs +183 -0
- package/bin/dnsZone.d.mts +146 -0
- package/bin/dnsZone.mjs +108 -0
- package/bin/getComputeContainerAppContainer.d.mts +29 -0
- package/bin/getComputeContainerAppContainer.mjs +31 -0
- package/bin/getComputeContainerAppContainerEndpoint.d.mts +39 -0
- package/bin/getComputeContainerAppContainerEndpoint.mjs +33 -0
- package/bin/getComputeContainerImageregistry.d.mts +29 -0
- package/bin/getComputeContainerImageregistry.mjs +31 -0
- package/bin/getDnsRecord.d.mts +51 -0
- package/bin/getDnsRecord.mjs +35 -0
- package/bin/getDnsZone.d.mts +33 -0
- package/bin/getDnsZone.mjs +25 -0
- package/bin/getRegion.d.mts +33 -0
- package/bin/getRegion.mjs +25 -0
- package/bin/getVideoLanguage.d.mts +33 -0
- package/bin/getVideoLanguage.mjs +25 -0
- package/bin/index.d.mts +80 -0
- package/bin/index.mjs +160 -0
- package/bin/package.json +61 -0
- package/bin/package.mjs +64 -0
- package/bin/provider.d.mts +66 -0
- package/bin/provider.mjs +60 -0
- package/bin/pullzone.d.mts +1079 -0
- package/bin/pullzone.mjs +580 -0
- package/bin/pullzoneEdgerule.d.mts +131 -0
- package/bin/pullzoneEdgerule.mjs +105 -0
- package/bin/pullzoneHostname.d.mts +142 -0
- package/bin/pullzoneHostname.mjs +106 -0
- package/bin/pullzoneOptimizerClass.d.mts +258 -0
- package/bin/pullzoneOptimizerClass.mjs +162 -0
- package/bin/storageFile.d.mts +137 -0
- package/bin/storageFile.mjs +110 -0
- package/bin/storageZone.d.mts +154 -0
- package/bin/storageZone.mjs +123 -0
- package/bin/streamCollection.d.mts +66 -0
- package/bin/streamCollection.mjs +66 -0
- package/bin/streamLibrary.d.mts +587 -0
- package/bin/streamLibrary.mjs +333 -0
- package/bin/streamVideo.d.mts +116 -0
- package/bin/streamVideo.mjs +91 -0
- package/bin/types/index.d.mts +9 -0
- package/bin/types/index.mjs +13 -0
- package/bin/types/input.d.mts +376 -0
- package/bin/types/input.mjs +5 -0
- package/bin/types/output.d.mts +381 -0
- package/bin/types/output.mjs +5 -0
- package/bin/utilities.mjs +61 -0
- package/package.json +61 -0
|
@@ -0,0 +1,82 @@
|
|
|
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 computeContainerImageregistry.ts
|
|
6
|
+
var computeContainerImageregistry_exports = {};
|
|
7
|
+
__export(computeContainerImageregistry_exports, { ComputeContainerImageregistry: () => ComputeContainerImageregistry });
|
|
8
|
+
var ComputeContainerImageregistry;
|
|
9
|
+
var init_computeContainerImageregistry = __esm({ "computeContainerImageregistry.ts": (() => {
|
|
10
|
+
init_utilities();
|
|
11
|
+
ComputeContainerImageregistry = class ComputeContainerImageregistry extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ComputeContainerImageregistry 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 ComputeContainerImageregistry(name, state, {
|
|
23
|
+
...opts,
|
|
24
|
+
id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
static __pulumiType = "bunnynet:index/computeContainerImageregistry:ComputeContainerImageregistry";
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of ComputeContainerImageregistry. 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"] === ComputeContainerImageregistry.__pulumiType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier for the image registry.
|
|
39
|
+
*/
|
|
40
|
+
computeContainerImageregistryId;
|
|
41
|
+
/**
|
|
42
|
+
* Options: `DockerHub`, `GitHub`
|
|
43
|
+
*/
|
|
44
|
+
registry;
|
|
45
|
+
/**
|
|
46
|
+
* The token used to authenticate to the registry. If you are importing a resource, declare the token as an empty string.
|
|
47
|
+
*/
|
|
48
|
+
token;
|
|
49
|
+
/**
|
|
50
|
+
* The username used to authenticate to the registry.
|
|
51
|
+
*/
|
|
52
|
+
username;
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["computeContainerImageregistryId"] = state ? state.computeContainerImageregistryId : void 0;
|
|
59
|
+
resourceInputs["registry"] = state ? state.registry : void 0;
|
|
60
|
+
resourceInputs["token"] = state ? state.token : void 0;
|
|
61
|
+
resourceInputs["username"] = state ? state.username : void 0;
|
|
62
|
+
} else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.registry === void 0) && !opts.urn) throw new Error("Missing required property 'registry'");
|
|
65
|
+
if ((!args || args.token === void 0) && !opts.urn) throw new Error("Missing required property 'token'");
|
|
66
|
+
if ((!args || args.username === void 0) && !opts.urn) throw new Error("Missing required property 'username'");
|
|
67
|
+
resourceInputs["registry"] = args ? args.registry : void 0;
|
|
68
|
+
resourceInputs["token"] = args?.token ? pulumi.secret(args.token) : void 0;
|
|
69
|
+
resourceInputs["username"] = args ? args.username : void 0;
|
|
70
|
+
resourceInputs["computeContainerImageregistryId"] = void 0;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
|
|
73
|
+
const secretOpts = { additionalSecretOutputs: ["token"] };
|
|
74
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
75
|
+
super(ComputeContainerImageregistry.__pulumiType, name, resourceInputs, opts, false, getPackage());
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}) });
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
init_computeContainerImageregistry();
|
|
82
|
+
export { computeContainerImageregistry_exports, init_computeContainerImageregistry };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
//#region computeScript.d.ts
|
|
4
|
+
declare class ComputeScript extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ComputeScript 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?: ComputeScriptState, opts?: pulumi.CustomResourceOptions): ComputeScript;
|
|
15
|
+
/** @internal */
|
|
16
|
+
static readonly __pulumiType: string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of ComputeScript. 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 ComputeScript;
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the script.
|
|
24
|
+
*/
|
|
25
|
+
readonly computeScriptId!: pulumi.Output<number>;
|
|
26
|
+
/**
|
|
27
|
+
* The code of the script.
|
|
28
|
+
*/
|
|
29
|
+
readonly content!: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The deployment key for the script.
|
|
32
|
+
*/
|
|
33
|
+
readonly deploymentKey!: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the script.
|
|
36
|
+
*/
|
|
37
|
+
readonly name!: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The current release identifier for the script.
|
|
40
|
+
*/
|
|
41
|
+
readonly release!: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Options: `middleware`, `standalone`
|
|
44
|
+
*/
|
|
45
|
+
readonly type!: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a ComputeScript resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: ComputeScriptArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering ComputeScript resources.
|
|
57
|
+
*/
|
|
58
|
+
interface ComputeScriptState {
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the script.
|
|
61
|
+
*/
|
|
62
|
+
computeScriptId?: pulumi.Input<number>;
|
|
63
|
+
/**
|
|
64
|
+
* The code of the script.
|
|
65
|
+
*/
|
|
66
|
+
content?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The deployment key for the script.
|
|
69
|
+
*/
|
|
70
|
+
deploymentKey?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the script.
|
|
73
|
+
*/
|
|
74
|
+
name?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The current release identifier for the script.
|
|
77
|
+
*/
|
|
78
|
+
release?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Options: `middleware`, `standalone`
|
|
81
|
+
*/
|
|
82
|
+
type?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The set of arguments for constructing a ComputeScript resource.
|
|
86
|
+
*/
|
|
87
|
+
interface ComputeScriptArgs {
|
|
88
|
+
/**
|
|
89
|
+
* The code of the script.
|
|
90
|
+
*/
|
|
91
|
+
content: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The name of the script.
|
|
94
|
+
*/
|
|
95
|
+
name?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Options: `middleware`, `standalone`
|
|
98
|
+
*/
|
|
99
|
+
type: pulumi.Input<string>;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { ComputeScript, ComputeScriptArgs, ComputeScriptState };
|
|
@@ -0,0 +1,91 @@
|
|
|
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 computeScript.ts
|
|
6
|
+
var computeScript_exports = {};
|
|
7
|
+
__export(computeScript_exports, { ComputeScript: () => ComputeScript });
|
|
8
|
+
var ComputeScript;
|
|
9
|
+
var init_computeScript = __esm({ "computeScript.ts": (() => {
|
|
10
|
+
init_utilities();
|
|
11
|
+
ComputeScript = class ComputeScript extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ComputeScript 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 ComputeScript(name, state, {
|
|
23
|
+
...opts,
|
|
24
|
+
id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
static __pulumiType = "bunnynet:index/computeScript:ComputeScript";
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of ComputeScript. 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"] === ComputeScript.__pulumiType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the script.
|
|
39
|
+
*/
|
|
40
|
+
computeScriptId;
|
|
41
|
+
/**
|
|
42
|
+
* The code of the script.
|
|
43
|
+
*/
|
|
44
|
+
content;
|
|
45
|
+
/**
|
|
46
|
+
* The deployment key for the script.
|
|
47
|
+
*/
|
|
48
|
+
deploymentKey;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the script.
|
|
51
|
+
*/
|
|
52
|
+
name;
|
|
53
|
+
/**
|
|
54
|
+
* The current release identifier for the script.
|
|
55
|
+
*/
|
|
56
|
+
release;
|
|
57
|
+
/**
|
|
58
|
+
* Options: `middleware`, `standalone`
|
|
59
|
+
*/
|
|
60
|
+
type;
|
|
61
|
+
constructor(name, argsOrState, opts) {
|
|
62
|
+
let resourceInputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (opts.id) {
|
|
65
|
+
const state = argsOrState;
|
|
66
|
+
resourceInputs["computeScriptId"] = state ? state.computeScriptId : void 0;
|
|
67
|
+
resourceInputs["content"] = state ? state.content : void 0;
|
|
68
|
+
resourceInputs["deploymentKey"] = state ? state.deploymentKey : void 0;
|
|
69
|
+
resourceInputs["name"] = state ? state.name : void 0;
|
|
70
|
+
resourceInputs["release"] = state ? state.release : void 0;
|
|
71
|
+
resourceInputs["type"] = state ? state.type : void 0;
|
|
72
|
+
} else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if ((!args || args.content === void 0) && !opts.urn) throw new Error("Missing required property 'content'");
|
|
75
|
+
if ((!args || args.type === void 0) && !opts.urn) throw new Error("Missing required property 'type'");
|
|
76
|
+
resourceInputs["content"] = args ? args.content : void 0;
|
|
77
|
+
resourceInputs["name"] = args ? args.name : void 0;
|
|
78
|
+
resourceInputs["type"] = args ? args.type : void 0;
|
|
79
|
+
resourceInputs["computeScriptId"] = void 0;
|
|
80
|
+
resourceInputs["deploymentKey"] = void 0;
|
|
81
|
+
resourceInputs["release"] = void 0;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
|
|
84
|
+
super(ComputeScript.__pulumiType, name, resourceInputs, opts, false, getPackage());
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}) });
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
init_computeScript();
|
|
91
|
+
export { computeScript_exports, init_computeScript };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
//#region computeScriptSecret.d.ts
|
|
4
|
+
declare class ComputeScriptSecret extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ComputeScriptSecret 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?: ComputeScriptSecretState, opts?: pulumi.CustomResourceOptions): ComputeScriptSecret;
|
|
15
|
+
/** @internal */
|
|
16
|
+
static readonly __pulumiType: string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of ComputeScriptSecret. 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 ComputeScriptSecret;
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the secret.
|
|
24
|
+
*/
|
|
25
|
+
readonly computeScriptSecretId!: pulumi.Output<number>;
|
|
26
|
+
/**
|
|
27
|
+
* The name of the secret.
|
|
28
|
+
*/
|
|
29
|
+
readonly name!: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the associated compute script.
|
|
32
|
+
*/
|
|
33
|
+
readonly script!: pulumi.Output<number>;
|
|
34
|
+
/**
|
|
35
|
+
* The value of the secret.
|
|
36
|
+
*/
|
|
37
|
+
readonly value!: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a ComputeScriptSecret resource with the given unique name, arguments, and options.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resource.
|
|
42
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
43
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
44
|
+
*/
|
|
45
|
+
constructor(name: string, args: ComputeScriptSecretArgs, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering ComputeScriptSecret resources.
|
|
49
|
+
*/
|
|
50
|
+
interface ComputeScriptSecretState {
|
|
51
|
+
/**
|
|
52
|
+
* The ID of the secret.
|
|
53
|
+
*/
|
|
54
|
+
computeScriptSecretId?: pulumi.Input<number>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the secret.
|
|
57
|
+
*/
|
|
58
|
+
name?: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the associated compute script.
|
|
61
|
+
*/
|
|
62
|
+
script?: pulumi.Input<number>;
|
|
63
|
+
/**
|
|
64
|
+
* The value of the secret.
|
|
65
|
+
*/
|
|
66
|
+
value?: pulumi.Input<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The set of arguments for constructing a ComputeScriptSecret resource.
|
|
70
|
+
*/
|
|
71
|
+
interface ComputeScriptSecretArgs {
|
|
72
|
+
/**
|
|
73
|
+
* The name of the secret.
|
|
74
|
+
*/
|
|
75
|
+
name?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The ID of the associated compute script.
|
|
78
|
+
*/
|
|
79
|
+
script: pulumi.Input<number>;
|
|
80
|
+
/**
|
|
81
|
+
* The value of the secret.
|
|
82
|
+
*/
|
|
83
|
+
value: pulumi.Input<string>;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { ComputeScriptSecret, ComputeScriptSecretArgs, ComputeScriptSecretState };
|
|
@@ -0,0 +1,81 @@
|
|
|
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 computeScriptSecret.ts
|
|
6
|
+
var computeScriptSecret_exports = {};
|
|
7
|
+
__export(computeScriptSecret_exports, { ComputeScriptSecret: () => ComputeScriptSecret });
|
|
8
|
+
var ComputeScriptSecret;
|
|
9
|
+
var init_computeScriptSecret = __esm({ "computeScriptSecret.ts": (() => {
|
|
10
|
+
init_utilities();
|
|
11
|
+
ComputeScriptSecret = class ComputeScriptSecret extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ComputeScriptSecret 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 ComputeScriptSecret(name, state, {
|
|
23
|
+
...opts,
|
|
24
|
+
id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
static __pulumiType = "bunnynet:index/computeScriptSecret:ComputeScriptSecret";
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of ComputeScriptSecret. 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"] === ComputeScriptSecret.__pulumiType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the secret.
|
|
39
|
+
*/
|
|
40
|
+
computeScriptSecretId;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the secret.
|
|
43
|
+
*/
|
|
44
|
+
name;
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the associated compute script.
|
|
47
|
+
*/
|
|
48
|
+
script;
|
|
49
|
+
/**
|
|
50
|
+
* The value of the secret.
|
|
51
|
+
*/
|
|
52
|
+
value;
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["computeScriptSecretId"] = state ? state.computeScriptSecretId : void 0;
|
|
59
|
+
resourceInputs["name"] = state ? state.name : void 0;
|
|
60
|
+
resourceInputs["script"] = state ? state.script : void 0;
|
|
61
|
+
resourceInputs["value"] = state ? state.value : void 0;
|
|
62
|
+
} else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.script === void 0) && !opts.urn) throw new Error("Missing required property 'script'");
|
|
65
|
+
if ((!args || args.value === void 0) && !opts.urn) throw new Error("Missing required property 'value'");
|
|
66
|
+
resourceInputs["name"] = args ? args.name : void 0;
|
|
67
|
+
resourceInputs["script"] = args ? args.script : void 0;
|
|
68
|
+
resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : void 0;
|
|
69
|
+
resourceInputs["computeScriptSecretId"] = void 0;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
|
|
72
|
+
const secretOpts = { additionalSecretOutputs: ["value"] };
|
|
73
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
74
|
+
super(ComputeScriptSecret.__pulumiType, name, resourceInputs, opts, false, getPackage());
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}) });
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
init_computeScriptSecret();
|
|
81
|
+
export { computeScriptSecret_exports, init_computeScriptSecret };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
|
|
3
|
+
//#region computeScriptVariable.d.ts
|
|
4
|
+
declare class ComputeScriptVariable extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ComputeScriptVariable 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?: ComputeScriptVariableState, opts?: pulumi.CustomResourceOptions): ComputeScriptVariable;
|
|
15
|
+
/** @internal */
|
|
16
|
+
static readonly __pulumiType: string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of ComputeScriptVariable. 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 ComputeScriptVariable;
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the environment variable.
|
|
24
|
+
*/
|
|
25
|
+
readonly computeScriptVariableId!: pulumi.Output<number>;
|
|
26
|
+
/**
|
|
27
|
+
* The default value of the environment variable.
|
|
28
|
+
*/
|
|
29
|
+
readonly defaultValue!: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the environment variable.
|
|
32
|
+
*/
|
|
33
|
+
readonly name!: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether the environment variable is required.
|
|
36
|
+
*/
|
|
37
|
+
readonly required!: pulumi.Output<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the associated compute script.
|
|
40
|
+
*/
|
|
41
|
+
readonly script!: pulumi.Output<number>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a ComputeScriptVariable resource with the given unique name, arguments, and options.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resource.
|
|
46
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
47
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
48
|
+
*/
|
|
49
|
+
constructor(name: string, args: ComputeScriptVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Input properties used for looking up and filtering ComputeScriptVariable resources.
|
|
53
|
+
*/
|
|
54
|
+
interface ComputeScriptVariableState {
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the environment variable.
|
|
57
|
+
*/
|
|
58
|
+
computeScriptVariableId?: pulumi.Input<number>;
|
|
59
|
+
/**
|
|
60
|
+
* The default value of the environment variable.
|
|
61
|
+
*/
|
|
62
|
+
defaultValue?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The name of the environment variable.
|
|
65
|
+
*/
|
|
66
|
+
name?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Indicates whether the environment variable is required.
|
|
69
|
+
*/
|
|
70
|
+
required?: pulumi.Input<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the associated compute script.
|
|
73
|
+
*/
|
|
74
|
+
script?: pulumi.Input<number>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The set of arguments for constructing a ComputeScriptVariable resource.
|
|
78
|
+
*/
|
|
79
|
+
interface ComputeScriptVariableArgs {
|
|
80
|
+
/**
|
|
81
|
+
* The default value of the environment variable.
|
|
82
|
+
*/
|
|
83
|
+
defaultValue: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the environment variable.
|
|
86
|
+
*/
|
|
87
|
+
name?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the environment variable is required.
|
|
90
|
+
*/
|
|
91
|
+
required: pulumi.Input<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the associated compute script.
|
|
94
|
+
*/
|
|
95
|
+
script: pulumi.Input<number>;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
export { ComputeScriptVariable, ComputeScriptVariableArgs, ComputeScriptVariableState };
|
|
@@ -0,0 +1,86 @@
|
|
|
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 computeScriptVariable.ts
|
|
6
|
+
var computeScriptVariable_exports = {};
|
|
7
|
+
__export(computeScriptVariable_exports, { ComputeScriptVariable: () => ComputeScriptVariable });
|
|
8
|
+
var ComputeScriptVariable;
|
|
9
|
+
var init_computeScriptVariable = __esm({ "computeScriptVariable.ts": (() => {
|
|
10
|
+
init_utilities();
|
|
11
|
+
ComputeScriptVariable = class ComputeScriptVariable extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ComputeScriptVariable 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 ComputeScriptVariable(name, state, {
|
|
23
|
+
...opts,
|
|
24
|
+
id
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
static __pulumiType = "bunnynet:index/computeScriptVariable:ComputeScriptVariable";
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of ComputeScriptVariable. 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"] === ComputeScriptVariable.__pulumiType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the environment variable.
|
|
39
|
+
*/
|
|
40
|
+
computeScriptVariableId;
|
|
41
|
+
/**
|
|
42
|
+
* The default value of the environment variable.
|
|
43
|
+
*/
|
|
44
|
+
defaultValue;
|
|
45
|
+
/**
|
|
46
|
+
* The name of the environment variable.
|
|
47
|
+
*/
|
|
48
|
+
name;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the environment variable is required.
|
|
51
|
+
*/
|
|
52
|
+
required;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the associated compute script.
|
|
55
|
+
*/
|
|
56
|
+
script;
|
|
57
|
+
constructor(name, argsOrState, opts) {
|
|
58
|
+
let resourceInputs = {};
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
if (opts.id) {
|
|
61
|
+
const state = argsOrState;
|
|
62
|
+
resourceInputs["computeScriptVariableId"] = state ? state.computeScriptVariableId : void 0;
|
|
63
|
+
resourceInputs["defaultValue"] = state ? state.defaultValue : void 0;
|
|
64
|
+
resourceInputs["name"] = state ? state.name : void 0;
|
|
65
|
+
resourceInputs["required"] = state ? state.required : void 0;
|
|
66
|
+
resourceInputs["script"] = state ? state.script : void 0;
|
|
67
|
+
} else {
|
|
68
|
+
const args = argsOrState;
|
|
69
|
+
if ((!args || args.defaultValue === void 0) && !opts.urn) throw new Error("Missing required property 'defaultValue'");
|
|
70
|
+
if ((!args || args.required === void 0) && !opts.urn) throw new Error("Missing required property 'required'");
|
|
71
|
+
if ((!args || args.script === void 0) && !opts.urn) throw new Error("Missing required property 'script'");
|
|
72
|
+
resourceInputs["defaultValue"] = args ? args.defaultValue : void 0;
|
|
73
|
+
resourceInputs["name"] = args ? args.name : void 0;
|
|
74
|
+
resourceInputs["required"] = args ? args.required : void 0;
|
|
75
|
+
resourceInputs["script"] = args ? args.script : void 0;
|
|
76
|
+
resourceInputs["computeScriptVariableId"] = void 0;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
|
|
79
|
+
super(ComputeScriptVariable.__pulumiType, name, resourceInputs, opts, false, getPackage());
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}) });
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
init_computeScriptVariable();
|
|
86
|
+
export { computeScriptVariable_exports, init_computeScriptVariable };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __reExport, __toESM } from "../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_vars } from "./vars.mjs";
|
|
3
|
+
|
|
4
|
+
//#region config/index.ts
|
|
5
|
+
var config_exports = {};
|
|
6
|
+
__reExport(config_exports, /* @__PURE__ */ __toESM(require_vars()));
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { config_exports };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region config/vars.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* API key. Can also be set using the `BUNNYNET_API_KEY` environment variable.
|
|
4
|
+
*/
|
|
5
|
+
declare const apiKey: string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Optional. The API URL. Defaults to `https://api.bunny.net`.
|
|
8
|
+
*/
|
|
9
|
+
declare const apiUrl: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Optional. The Container API URL. Defaults to `https://api-mc.opsbunny.net`.
|
|
12
|
+
*/
|
|
13
|
+
declare const containerApiUrl: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Optional. The Stream API URL. Defaults to `https://video.bunnycdn.com`.
|
|
16
|
+
*/
|
|
17
|
+
declare const streamApiUrl: string | undefined;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { apiKey, apiUrl, containerApiUrl, streamApiUrl };
|