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,131 @@
1
+ import { PullzoneEdgeruleAction, PullzoneEdgeruleTrigger } from "./types/input.mjs";
2
+ import { PullzoneEdgeruleAction as PullzoneEdgeruleAction$1, PullzoneEdgeruleTrigger as PullzoneEdgeruleTrigger$1 } from "./types/output.mjs";
3
+ import * as pulumi from "@pulumi/pulumi";
4
+
5
+ //#region pullzoneEdgerule.d.ts
6
+ declare class PullzoneEdgerule extends pulumi.CustomResource {
7
+ /**
8
+ * Get an existing PullzoneEdgerule resource's state with the given name, ID, and optional extra
9
+ * properties used to qualify the lookup.
10
+ *
11
+ * @param name The _unique_ name of the resulting resource.
12
+ * @param id The _unique_ provider ID of the resource to lookup.
13
+ * @param state Any extra arguments used during the lookup.
14
+ * @param opts Optional settings to control the behavior of the CustomResource.
15
+ */
16
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PullzoneEdgeruleState, opts?: pulumi.CustomResourceOptions): PullzoneEdgerule;
17
+ /** @internal */
18
+ static readonly __pulumiType: string;
19
+ /**
20
+ * Returns true if the given object is an instance of PullzoneEdgerule. This is designed to work even
21
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
+ */
23
+ static isInstance(obj: any): obj is PullzoneEdgerule;
24
+ /**
25
+ * Options: `BlockRequest`, `BypassPermaCache`, `DisableOptimizer`, `DisableTokenAuthentication`,
26
+ * `EnableTokenAuthentication`, `ForceCompression`, `ForceDownload`, `ForceSSL`, `IgnoreQueryString`, `OriginStorage`,
27
+ * `OriginUrl`, `OverrideBrowserCacheTime`, `OverrideCacheTime`, `OverrideCacheTimePublic`, `Redirect`,
28
+ * `SetConnectionLimit`, `SetNetworkRateLimit`, `SetRequestHeader`, `SetRequestsPerSecondLimit`, `SetResponseHeader`,
29
+ * `SetStatusCode`
30
+ */
31
+ readonly action!: pulumi.Output<string | undefined>;
32
+ readonly actionParameter1!: pulumi.Output<string | undefined>;
33
+ readonly actionParameter2!: pulumi.Output<string | undefined>;
34
+ readonly actionParameter3!: pulumi.Output<string | undefined>;
35
+ /**
36
+ * List of actions for the edge rule.
37
+ */
38
+ readonly actions!: pulumi.Output<PullzoneEdgeruleAction$1[]>;
39
+ /**
40
+ * The description of the edge rule.
41
+ */
42
+ readonly description!: pulumi.Output<string>;
43
+ /**
44
+ * Indicates whether the edge rule is enabled.
45
+ */
46
+ readonly enabled!: pulumi.Output<boolean>;
47
+ /**
48
+ * Options: `MatchAll`, `MatchAny`, `MatchNone`
49
+ */
50
+ readonly matchType!: pulumi.Output<string>;
51
+ readonly pullzone!: pulumi.Output<number>;
52
+ readonly triggers!: pulumi.Output<PullzoneEdgeruleTrigger$1[]>;
53
+ /**
54
+ * Create a PullzoneEdgerule resource with the given unique name, arguments, and options.
55
+ *
56
+ * @param name The _unique_ name of the resource.
57
+ * @param args The arguments to use to populate this resource's properties.
58
+ * @param opts A bag of options that control this resource's behavior.
59
+ */
60
+ constructor(name: string, args: PullzoneEdgeruleArgs, opts?: pulumi.CustomResourceOptions);
61
+ }
62
+ /**
63
+ * Input properties used for looking up and filtering PullzoneEdgerule resources.
64
+ */
65
+ interface PullzoneEdgeruleState {
66
+ /**
67
+ * Options: `BlockRequest`, `BypassPermaCache`, `DisableOptimizer`, `DisableTokenAuthentication`,
68
+ * `EnableTokenAuthentication`, `ForceCompression`, `ForceDownload`, `ForceSSL`, `IgnoreQueryString`, `OriginStorage`,
69
+ * `OriginUrl`, `OverrideBrowserCacheTime`, `OverrideCacheTime`, `OverrideCacheTimePublic`, `Redirect`,
70
+ * `SetConnectionLimit`, `SetNetworkRateLimit`, `SetRequestHeader`, `SetRequestsPerSecondLimit`, `SetResponseHeader`,
71
+ * `SetStatusCode`
72
+ */
73
+ action?: pulumi.Input<string>;
74
+ actionParameter1?: pulumi.Input<string>;
75
+ actionParameter2?: pulumi.Input<string>;
76
+ actionParameter3?: pulumi.Input<string>;
77
+ /**
78
+ * List of actions for the edge rule.
79
+ */
80
+ actions?: pulumi.Input<pulumi.Input<PullzoneEdgeruleAction>[]>;
81
+ /**
82
+ * The description of the edge rule.
83
+ */
84
+ description?: pulumi.Input<string>;
85
+ /**
86
+ * Indicates whether the edge rule is enabled.
87
+ */
88
+ enabled?: pulumi.Input<boolean>;
89
+ /**
90
+ * Options: `MatchAll`, `MatchAny`, `MatchNone`
91
+ */
92
+ matchType?: pulumi.Input<string>;
93
+ pullzone?: pulumi.Input<number>;
94
+ triggers?: pulumi.Input<pulumi.Input<PullzoneEdgeruleTrigger>[]>;
95
+ }
96
+ /**
97
+ * The set of arguments for constructing a PullzoneEdgerule resource.
98
+ */
99
+ interface PullzoneEdgeruleArgs {
100
+ /**
101
+ * Options: `BlockRequest`, `BypassPermaCache`, `DisableOptimizer`, `DisableTokenAuthentication`,
102
+ * `EnableTokenAuthentication`, `ForceCompression`, `ForceDownload`, `ForceSSL`, `IgnoreQueryString`, `OriginStorage`,
103
+ * `OriginUrl`, `OverrideBrowserCacheTime`, `OverrideCacheTime`, `OverrideCacheTimePublic`, `Redirect`,
104
+ * `SetConnectionLimit`, `SetNetworkRateLimit`, `SetRequestHeader`, `SetRequestsPerSecondLimit`, `SetResponseHeader`,
105
+ * `SetStatusCode`
106
+ */
107
+ action?: pulumi.Input<string>;
108
+ actionParameter1?: pulumi.Input<string>;
109
+ actionParameter2?: pulumi.Input<string>;
110
+ actionParameter3?: pulumi.Input<string>;
111
+ /**
112
+ * List of actions for the edge rule.
113
+ */
114
+ actions?: pulumi.Input<pulumi.Input<PullzoneEdgeruleAction>[]>;
115
+ /**
116
+ * The description of the edge rule.
117
+ */
118
+ description?: pulumi.Input<string>;
119
+ /**
120
+ * Indicates whether the edge rule is enabled.
121
+ */
122
+ enabled: pulumi.Input<boolean>;
123
+ /**
124
+ * Options: `MatchAll`, `MatchAny`, `MatchNone`
125
+ */
126
+ matchType?: pulumi.Input<string>;
127
+ pullzone: pulumi.Input<number>;
128
+ triggers: pulumi.Input<pulumi.Input<PullzoneEdgeruleTrigger>[]>;
129
+ }
130
+ //#endregion
131
+ export { PullzoneEdgerule, PullzoneEdgeruleArgs, PullzoneEdgeruleState };
@@ -0,0 +1,105 @@
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 pullzoneEdgerule.ts
6
+ var pullzoneEdgerule_exports = {};
7
+ __export(pullzoneEdgerule_exports, { PullzoneEdgerule: () => PullzoneEdgerule });
8
+ var PullzoneEdgerule;
9
+ var init_pullzoneEdgerule = __esm({ "pullzoneEdgerule.ts": (() => {
10
+ init_utilities();
11
+ PullzoneEdgerule = class PullzoneEdgerule extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing PullzoneEdgerule 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 PullzoneEdgerule(name, state, {
23
+ ...opts,
24
+ id
25
+ });
26
+ }
27
+ /** @internal */
28
+ static __pulumiType = "bunnynet:index/pullzoneEdgerule:PullzoneEdgerule";
29
+ /**
30
+ * Returns true if the given object is an instance of PullzoneEdgerule. 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"] === PullzoneEdgerule.__pulumiType;
36
+ }
37
+ /**
38
+ * Options: `BlockRequest`, `BypassPermaCache`, `DisableOptimizer`, `DisableTokenAuthentication`,
39
+ * `EnableTokenAuthentication`, `ForceCompression`, `ForceDownload`, `ForceSSL`, `IgnoreQueryString`, `OriginStorage`,
40
+ * `OriginUrl`, `OverrideBrowserCacheTime`, `OverrideCacheTime`, `OverrideCacheTimePublic`, `Redirect`,
41
+ * `SetConnectionLimit`, `SetNetworkRateLimit`, `SetRequestHeader`, `SetRequestsPerSecondLimit`, `SetResponseHeader`,
42
+ * `SetStatusCode`
43
+ */
44
+ action;
45
+ actionParameter1;
46
+ actionParameter2;
47
+ actionParameter3;
48
+ /**
49
+ * List of actions for the edge rule.
50
+ */
51
+ actions;
52
+ /**
53
+ * The description of the edge rule.
54
+ */
55
+ description;
56
+ /**
57
+ * Indicates whether the edge rule is enabled.
58
+ */
59
+ enabled;
60
+ /**
61
+ * Options: `MatchAll`, `MatchAny`, `MatchNone`
62
+ */
63
+ matchType;
64
+ pullzone;
65
+ triggers;
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["action"] = state ? state.action : void 0;
72
+ resourceInputs["actionParameter1"] = state ? state.actionParameter1 : void 0;
73
+ resourceInputs["actionParameter2"] = state ? state.actionParameter2 : void 0;
74
+ resourceInputs["actionParameter3"] = state ? state.actionParameter3 : void 0;
75
+ resourceInputs["actions"] = state ? state.actions : void 0;
76
+ resourceInputs["description"] = state ? state.description : void 0;
77
+ resourceInputs["enabled"] = state ? state.enabled : void 0;
78
+ resourceInputs["matchType"] = state ? state.matchType : void 0;
79
+ resourceInputs["pullzone"] = state ? state.pullzone : void 0;
80
+ resourceInputs["triggers"] = state ? state.triggers : void 0;
81
+ } else {
82
+ const args = argsOrState;
83
+ if ((!args || args.enabled === void 0) && !opts.urn) throw new Error("Missing required property 'enabled'");
84
+ if ((!args || args.pullzone === void 0) && !opts.urn) throw new Error("Missing required property 'pullzone'");
85
+ if ((!args || args.triggers === void 0) && !opts.urn) throw new Error("Missing required property 'triggers'");
86
+ resourceInputs["action"] = args ? args.action : void 0;
87
+ resourceInputs["actionParameter1"] = args ? args.actionParameter1 : void 0;
88
+ resourceInputs["actionParameter2"] = args ? args.actionParameter2 : void 0;
89
+ resourceInputs["actionParameter3"] = args ? args.actionParameter3 : void 0;
90
+ resourceInputs["actions"] = args ? args.actions : void 0;
91
+ resourceInputs["description"] = args ? args.description : void 0;
92
+ resourceInputs["enabled"] = args ? args.enabled : void 0;
93
+ resourceInputs["matchType"] = args ? args.matchType : void 0;
94
+ resourceInputs["pullzone"] = args ? args.pullzone : void 0;
95
+ resourceInputs["triggers"] = args ? args.triggers : void 0;
96
+ }
97
+ opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
98
+ super(PullzoneEdgerule.__pulumiType, name, resourceInputs, opts, false, getPackage());
99
+ }
100
+ };
101
+ }) });
102
+
103
+ //#endregion
104
+ init_pullzoneEdgerule();
105
+ export { init_pullzoneEdgerule, pullzoneEdgerule_exports };
@@ -0,0 +1,142 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+
3
+ //#region pullzoneHostname.d.ts
4
+ declare class PullzoneHostname extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing PullzoneHostname 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?: PullzoneHostnameState, opts?: pulumi.CustomResourceOptions): PullzoneHostname;
15
+ /** @internal */
16
+ static readonly __pulumiType: string;
17
+ /**
18
+ * Returns true if the given object is an instance of PullzoneHostname. 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 PullzoneHostname;
22
+ /**
23
+ * The certificate for the hostname, in PEM format. ***Important***: the Bunny API will not return the certificate data, so
24
+ * you'll have to make sure you're importing the correct certificate.
25
+ */
26
+ readonly certificate!: pulumi.Output<string>;
27
+ /**
28
+ * The certificate private key for the hostname, in PEM format. ***Important***: the Bunny API will not return the
29
+ * certificate key, so you'll have to make sure you're importing the correct certificate key.
30
+ */
31
+ readonly certificateKey!: pulumi.Output<string>;
32
+ /**
33
+ * Indicates whether SSL should be enforced for the hostname.
34
+ */
35
+ readonly forceSsl!: pulumi.Output<boolean>;
36
+ /**
37
+ * Indicates whether the hostname is internal (in the CDN domain) or provided by the user.
38
+ */
39
+ readonly isInternal!: pulumi.Output<boolean>;
40
+ /**
41
+ * The hostname value for the domain name.
42
+ */
43
+ readonly name!: pulumi.Output<string>;
44
+ /**
45
+ * The ID of the linked pull zone.
46
+ */
47
+ readonly pullzone!: pulumi.Output<number>;
48
+ /**
49
+ * The unique ID of the hostname.
50
+ */
51
+ readonly pullzoneHostnameId!: pulumi.Output<number>;
52
+ /**
53
+ * Indicates whether the hostname should support HTTPS. If a custom certificate is not provided via the
54
+ * <code>certificate</code> attribute, a Domain-validated TLS certificate will be automatically obtained and managed by
55
+ * Bunny. ***Important***: it is not possible to tell managed and custom certificates apart for imported resources.
56
+ */
57
+ readonly tlsEnabled!: pulumi.Output<boolean>;
58
+ /**
59
+ * Create a PullzoneHostname resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: PullzoneHostnameArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering PullzoneHostname resources.
69
+ */
70
+ interface PullzoneHostnameState {
71
+ /**
72
+ * The certificate for the hostname, in PEM format. ***Important***: the Bunny API will not return the certificate data, so
73
+ * you'll have to make sure you're importing the correct certificate.
74
+ */
75
+ certificate?: pulumi.Input<string>;
76
+ /**
77
+ * The certificate private key for the hostname, in PEM format. ***Important***: the Bunny API will not return the
78
+ * certificate key, so you'll have to make sure you're importing the correct certificate key.
79
+ */
80
+ certificateKey?: pulumi.Input<string>;
81
+ /**
82
+ * Indicates whether SSL should be enforced for the hostname.
83
+ */
84
+ forceSsl?: pulumi.Input<boolean>;
85
+ /**
86
+ * Indicates whether the hostname is internal (in the CDN domain) or provided by the user.
87
+ */
88
+ isInternal?: pulumi.Input<boolean>;
89
+ /**
90
+ * The hostname value for the domain name.
91
+ */
92
+ name?: pulumi.Input<string>;
93
+ /**
94
+ * The ID of the linked pull zone.
95
+ */
96
+ pullzone?: pulumi.Input<number>;
97
+ /**
98
+ * The unique ID of the hostname.
99
+ */
100
+ pullzoneHostnameId?: pulumi.Input<number>;
101
+ /**
102
+ * Indicates whether the hostname should support HTTPS. If a custom certificate is not provided via the
103
+ * <code>certificate</code> attribute, a Domain-validated TLS certificate will be automatically obtained and managed by
104
+ * Bunny. ***Important***: it is not possible to tell managed and custom certificates apart for imported resources.
105
+ */
106
+ tlsEnabled?: pulumi.Input<boolean>;
107
+ }
108
+ /**
109
+ * The set of arguments for constructing a PullzoneHostname resource.
110
+ */
111
+ interface PullzoneHostnameArgs {
112
+ /**
113
+ * The certificate for the hostname, in PEM format. ***Important***: the Bunny API will not return the certificate data, so
114
+ * you'll have to make sure you're importing the correct certificate.
115
+ */
116
+ certificate?: pulumi.Input<string>;
117
+ /**
118
+ * The certificate private key for the hostname, in PEM format. ***Important***: the Bunny API will not return the
119
+ * certificate key, so you'll have to make sure you're importing the correct certificate key.
120
+ */
121
+ certificateKey?: pulumi.Input<string>;
122
+ /**
123
+ * Indicates whether SSL should be enforced for the hostname.
124
+ */
125
+ forceSsl?: pulumi.Input<boolean>;
126
+ /**
127
+ * The hostname value for the domain name.
128
+ */
129
+ name?: pulumi.Input<string>;
130
+ /**
131
+ * The ID of the linked pull zone.
132
+ */
133
+ pullzone: pulumi.Input<number>;
134
+ /**
135
+ * Indicates whether the hostname should support HTTPS. If a custom certificate is not provided via the
136
+ * <code>certificate</code> attribute, a Domain-validated TLS certificate will be automatically obtained and managed by
137
+ * Bunny. ***Important***: it is not possible to tell managed and custom certificates apart for imported resources.
138
+ */
139
+ tlsEnabled?: pulumi.Input<boolean>;
140
+ }
141
+ //#endregion
142
+ export { PullzoneHostname, PullzoneHostnameArgs, PullzoneHostnameState };
@@ -0,0 +1,106 @@
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 pullzoneHostname.ts
6
+ var pullzoneHostname_exports = {};
7
+ __export(pullzoneHostname_exports, { PullzoneHostname: () => PullzoneHostname });
8
+ var PullzoneHostname;
9
+ var init_pullzoneHostname = __esm({ "pullzoneHostname.ts": (() => {
10
+ init_utilities();
11
+ PullzoneHostname = class PullzoneHostname extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing PullzoneHostname 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 PullzoneHostname(name, state, {
23
+ ...opts,
24
+ id
25
+ });
26
+ }
27
+ /** @internal */
28
+ static __pulumiType = "bunnynet:index/pullzoneHostname:PullzoneHostname";
29
+ /**
30
+ * Returns true if the given object is an instance of PullzoneHostname. 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"] === PullzoneHostname.__pulumiType;
36
+ }
37
+ /**
38
+ * The certificate for the hostname, in PEM format. ***Important***: the Bunny API will not return the certificate data, so
39
+ * you'll have to make sure you're importing the correct certificate.
40
+ */
41
+ certificate;
42
+ /**
43
+ * The certificate private key for the hostname, in PEM format. ***Important***: the Bunny API will not return the
44
+ * certificate key, so you'll have to make sure you're importing the correct certificate key.
45
+ */
46
+ certificateKey;
47
+ /**
48
+ * Indicates whether SSL should be enforced for the hostname.
49
+ */
50
+ forceSsl;
51
+ /**
52
+ * Indicates whether the hostname is internal (in the CDN domain) or provided by the user.
53
+ */
54
+ isInternal;
55
+ /**
56
+ * The hostname value for the domain name.
57
+ */
58
+ name;
59
+ /**
60
+ * The ID of the linked pull zone.
61
+ */
62
+ pullzone;
63
+ /**
64
+ * The unique ID of the hostname.
65
+ */
66
+ pullzoneHostnameId;
67
+ /**
68
+ * Indicates whether the hostname should support HTTPS. If a custom certificate is not provided via the
69
+ * <code>certificate</code> attribute, a Domain-validated TLS certificate will be automatically obtained and managed by
70
+ * Bunny. ***Important***: it is not possible to tell managed and custom certificates apart for imported resources.
71
+ */
72
+ tlsEnabled;
73
+ constructor(name, argsOrState, opts) {
74
+ let resourceInputs = {};
75
+ opts = opts || {};
76
+ if (opts.id) {
77
+ const state = argsOrState;
78
+ resourceInputs["certificate"] = state ? state.certificate : void 0;
79
+ resourceInputs["certificateKey"] = state ? state.certificateKey : void 0;
80
+ resourceInputs["forceSsl"] = state ? state.forceSsl : void 0;
81
+ resourceInputs["isInternal"] = state ? state.isInternal : void 0;
82
+ resourceInputs["name"] = state ? state.name : void 0;
83
+ resourceInputs["pullzone"] = state ? state.pullzone : void 0;
84
+ resourceInputs["pullzoneHostnameId"] = state ? state.pullzoneHostnameId : void 0;
85
+ resourceInputs["tlsEnabled"] = state ? state.tlsEnabled : void 0;
86
+ } else {
87
+ const args = argsOrState;
88
+ if ((!args || args.pullzone === void 0) && !opts.urn) throw new Error("Missing required property 'pullzone'");
89
+ resourceInputs["certificate"] = args ? args.certificate : void 0;
90
+ resourceInputs["certificateKey"] = args ? args.certificateKey : void 0;
91
+ resourceInputs["forceSsl"] = args ? args.forceSsl : void 0;
92
+ resourceInputs["name"] = args ? args.name : void 0;
93
+ resourceInputs["pullzone"] = args ? args.pullzone : void 0;
94
+ resourceInputs["tlsEnabled"] = args ? args.tlsEnabled : void 0;
95
+ resourceInputs["isInternal"] = void 0;
96
+ resourceInputs["pullzoneHostnameId"] = void 0;
97
+ }
98
+ opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
99
+ super(PullzoneHostname.__pulumiType, name, resourceInputs, opts, false, getPackage());
100
+ }
101
+ };
102
+ }) });
103
+
104
+ //#endregion
105
+ init_pullzoneHostname();
106
+ export { init_pullzoneHostname, pullzoneHostname_exports };