@pulumiverse/scaleway 1.41.0 → 1.41.1

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 (63) hide show
  1. package/edgeServicesBackendStage.d.ts +9 -6
  2. package/edgeServicesBackendStage.js +11 -6
  3. package/edgeServicesBackendStage.js.map +1 -1
  4. package/edgeServicesCacheStage.d.ts +5 -2
  5. package/edgeServicesCacheStage.js +7 -2
  6. package/edgeServicesCacheStage.js.map +1 -1
  7. package/edgeServicesDnsStage.d.ts +4 -1
  8. package/edgeServicesDnsStage.js +6 -1
  9. package/edgeServicesDnsStage.js.map +1 -1
  10. package/edgeServicesHeadStage.d.ts +7 -4
  11. package/edgeServicesHeadStage.js +9 -4
  12. package/edgeServicesHeadStage.js.map +1 -1
  13. package/edgeServicesPipeline.d.ts +19 -16
  14. package/edgeServicesPipeline.js +21 -16
  15. package/edgeServicesPipeline.js.map +1 -1
  16. package/edgeServicesPlan.d.ts +4 -1
  17. package/edgeServicesPlan.js +6 -1
  18. package/edgeServicesPlan.js.map +1 -1
  19. package/edgeServicesRouteStage.d.ts +4 -1
  20. package/edgeServicesRouteStage.js +6 -1
  21. package/edgeServicesRouteStage.js.map +1 -1
  22. package/edgeServicesTlsStage.d.ts +5 -2
  23. package/edgeServicesTlsStage.js +7 -2
  24. package/edgeServicesTlsStage.js.map +1 -1
  25. package/edgeServicesWafStage.d.ts +4 -1
  26. package/edgeServicesWafStage.js +6 -1
  27. package/edgeServicesWafStage.js.map +1 -1
  28. package/edgeservices/backendStage.d.ts +171 -0
  29. package/edgeservices/backendStage.js +133 -0
  30. package/edgeservices/backendStage.js.map +1 -0
  31. package/edgeservices/cacheStage.d.ts +205 -0
  32. package/edgeservices/cacheStage.js +117 -0
  33. package/edgeservices/cacheStage.js.map +1 -0
  34. package/edgeservices/dnsStage.d.ts +167 -0
  35. package/edgeservices/dnsStage.js +99 -0
  36. package/edgeservices/dnsStage.js.map +1 -0
  37. package/edgeservices/headStage.d.ts +96 -0
  38. package/edgeservices/headStage.js +92 -0
  39. package/edgeservices/headStage.js.map +1 -0
  40. package/edgeservices/index.d.ts +27 -0
  41. package/edgeservices/index.js +62 -0
  42. package/edgeservices/index.js.map +1 -0
  43. package/edgeservices/pipeline.d.ts +183 -0
  44. package/edgeservices/pipeline.js +148 -0
  45. package/edgeservices/pipeline.js.map +1 -0
  46. package/edgeservices/plan.d.ts +84 -0
  47. package/edgeservices/plan.js +77 -0
  48. package/edgeservices/plan.js.map +1 -0
  49. package/edgeservices/routeStage.d.ts +142 -0
  50. package/edgeservices/routeStage.js +104 -0
  51. package/edgeservices/routeStage.js.map +1 -0
  52. package/edgeservices/tlsStage.d.ts +200 -0
  53. package/edgeservices/tlsStage.js +116 -0
  54. package/edgeservices/tlsStage.js.map +1 -0
  55. package/edgeservices/wafStage.d.ts +140 -0
  56. package/edgeservices/wafStage.js +97 -0
  57. package/edgeservices/wafStage.js.map +1 -0
  58. package/index.d.ts +2 -1
  59. package/index.js +3 -1
  60. package/index.js.map +1 -1
  61. package/package.json +2 -2
  62. package/types/input.d.ts +98 -0
  63. package/types/output.d.ts +98 -0
@@ -0,0 +1,205 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Creates and manages Scaleway Edge Services Cache Stages.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ### Basic
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as scaleway from "@pulumiverse/scaleway";
14
+ *
15
+ * const main = new scaleway.edgeservices.CacheStage("main", {
16
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
17
+ * backendStageId: mainScalewayEdgeServicesBackendStage.id,
18
+ * });
19
+ * ```
20
+ *
21
+ * ### Purge request
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as scaleway from "@pulumiverse/scaleway";
26
+ *
27
+ * const main = new scaleway.edgeservices.CacheStage("main", {
28
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
29
+ * backendStageId: mainScalewayEdgeServicesBackendStage.id,
30
+ * purge: [{
31
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
32
+ * all: true,
33
+ * }],
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * Cache stages can be imported using the `{id}`, e.g.
40
+ *
41
+ * bash
42
+ *
43
+ * ```sh
44
+ * $ pulumi import scaleway:edgeservices/cacheStage:CacheStage basic 11111111-1111-1111-1111-111111111111
45
+ * ```
46
+ */
47
+ export declare class CacheStage extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing CacheStage 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?: CacheStageState, opts?: pulumi.CustomResourceOptions): CacheStage;
58
+ /**
59
+ * Returns true if the given object is an instance of CacheStage. 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 CacheStage;
63
+ /**
64
+ * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
65
+ */
66
+ readonly backendStageId: pulumi.Output<string>;
67
+ /**
68
+ * The date and time of the creation of the cache stage.
69
+ */
70
+ readonly createdAt: pulumi.Output<string>;
71
+ /**
72
+ * The Time To Live (TTL) in seconds. Defines how long content is cached.
73
+ */
74
+ readonly fallbackTtl: pulumi.Output<number | undefined>;
75
+ /**
76
+ * Defines whether responses to requests with cookies must be stored in the cache.
77
+ */
78
+ readonly includeCookies: pulumi.Output<boolean | undefined>;
79
+ /**
80
+ * The ID of the pipeline.
81
+ */
82
+ readonly pipelineId: pulumi.Output<string>;
83
+ /**
84
+ * `projectId`) The ID of the project the cache stage is associated with.
85
+ */
86
+ readonly projectId: pulumi.Output<string>;
87
+ /**
88
+ * The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
89
+ */
90
+ readonly purgeRequests: pulumi.Output<outputs.edgeservices.CacheStagePurgeRequest[] | undefined>;
91
+ /**
92
+ * Trigger a refresh of the cache by changing this field's value.
93
+ */
94
+ readonly refreshCache: pulumi.Output<string | undefined>;
95
+ /**
96
+ * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
97
+ */
98
+ readonly routeStageId: pulumi.Output<string>;
99
+ /**
100
+ * The date and time of the last update of the cache stage.
101
+ */
102
+ readonly updatedAt: pulumi.Output<string>;
103
+ /**
104
+ * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
105
+ */
106
+ readonly wafStageId: pulumi.Output<string>;
107
+ /**
108
+ * Create a CacheStage resource with the given unique name, arguments, and options.
109
+ *
110
+ * @param name The _unique_ name of the resource.
111
+ * @param args The arguments to use to populate this resource's properties.
112
+ * @param opts A bag of options that control this resource's behavior.
113
+ */
114
+ constructor(name: string, args: CacheStageArgs, opts?: pulumi.CustomResourceOptions);
115
+ }
116
+ /**
117
+ * Input properties used for looking up and filtering CacheStage resources.
118
+ */
119
+ export interface CacheStageState {
120
+ /**
121
+ * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
122
+ */
123
+ backendStageId?: pulumi.Input<string>;
124
+ /**
125
+ * The date and time of the creation of the cache stage.
126
+ */
127
+ createdAt?: pulumi.Input<string>;
128
+ /**
129
+ * The Time To Live (TTL) in seconds. Defines how long content is cached.
130
+ */
131
+ fallbackTtl?: pulumi.Input<number>;
132
+ /**
133
+ * Defines whether responses to requests with cookies must be stored in the cache.
134
+ */
135
+ includeCookies?: pulumi.Input<boolean>;
136
+ /**
137
+ * The ID of the pipeline.
138
+ */
139
+ pipelineId?: pulumi.Input<string>;
140
+ /**
141
+ * `projectId`) The ID of the project the cache stage is associated with.
142
+ */
143
+ projectId?: pulumi.Input<string>;
144
+ /**
145
+ * The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
146
+ */
147
+ purgeRequests?: pulumi.Input<pulumi.Input<inputs.edgeservices.CacheStagePurgeRequest>[]>;
148
+ /**
149
+ * Trigger a refresh of the cache by changing this field's value.
150
+ */
151
+ refreshCache?: pulumi.Input<string>;
152
+ /**
153
+ * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
154
+ */
155
+ routeStageId?: pulumi.Input<string>;
156
+ /**
157
+ * The date and time of the last update of the cache stage.
158
+ */
159
+ updatedAt?: pulumi.Input<string>;
160
+ /**
161
+ * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
162
+ */
163
+ wafStageId?: pulumi.Input<string>;
164
+ }
165
+ /**
166
+ * The set of arguments for constructing a CacheStage resource.
167
+ */
168
+ export interface CacheStageArgs {
169
+ /**
170
+ * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
171
+ */
172
+ backendStageId?: pulumi.Input<string>;
173
+ /**
174
+ * The Time To Live (TTL) in seconds. Defines how long content is cached.
175
+ */
176
+ fallbackTtl?: pulumi.Input<number>;
177
+ /**
178
+ * Defines whether responses to requests with cookies must be stored in the cache.
179
+ */
180
+ includeCookies?: pulumi.Input<boolean>;
181
+ /**
182
+ * The ID of the pipeline.
183
+ */
184
+ pipelineId: pulumi.Input<string>;
185
+ /**
186
+ * `projectId`) The ID of the project the cache stage is associated with.
187
+ */
188
+ projectId?: pulumi.Input<string>;
189
+ /**
190
+ * The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
191
+ */
192
+ purgeRequests?: pulumi.Input<pulumi.Input<inputs.edgeservices.CacheStagePurgeRequest>[]>;
193
+ /**
194
+ * Trigger a refresh of the cache by changing this field's value.
195
+ */
196
+ refreshCache?: pulumi.Input<string>;
197
+ /**
198
+ * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
199
+ */
200
+ routeStageId?: pulumi.Input<string>;
201
+ /**
202
+ * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified.
203
+ */
204
+ wafStageId?: pulumi.Input<string>;
205
+ }
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.CacheStage = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Creates and manages Scaleway Edge Services Cache Stages.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Basic
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as scaleway from "@pulumiverse/scaleway";
18
+ *
19
+ * const main = new scaleway.edgeservices.CacheStage("main", {
20
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
21
+ * backendStageId: mainScalewayEdgeServicesBackendStage.id,
22
+ * });
23
+ * ```
24
+ *
25
+ * ### Purge request
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as scaleway from "@pulumiverse/scaleway";
30
+ *
31
+ * const main = new scaleway.edgeservices.CacheStage("main", {
32
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
33
+ * backendStageId: mainScalewayEdgeServicesBackendStage.id,
34
+ * purge: [{
35
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
36
+ * all: true,
37
+ * }],
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * Cache stages can be imported using the `{id}`, e.g.
44
+ *
45
+ * bash
46
+ *
47
+ * ```sh
48
+ * $ pulumi import scaleway:edgeservices/cacheStage:CacheStage basic 11111111-1111-1111-1111-111111111111
49
+ * ```
50
+ */
51
+ class CacheStage extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing CacheStage 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 CacheStage(name, state, { ...opts, id: id });
63
+ }
64
+ /**
65
+ * Returns true if the given object is an instance of CacheStage. 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'] === CacheStage.__pulumiType;
73
+ }
74
+ constructor(name, argsOrState, opts) {
75
+ let resourceInputs = {};
76
+ opts = opts || {};
77
+ if (opts.id) {
78
+ const state = argsOrState;
79
+ resourceInputs["backendStageId"] = state?.backendStageId;
80
+ resourceInputs["createdAt"] = state?.createdAt;
81
+ resourceInputs["fallbackTtl"] = state?.fallbackTtl;
82
+ resourceInputs["includeCookies"] = state?.includeCookies;
83
+ resourceInputs["pipelineId"] = state?.pipelineId;
84
+ resourceInputs["projectId"] = state?.projectId;
85
+ resourceInputs["purgeRequests"] = state?.purgeRequests;
86
+ resourceInputs["refreshCache"] = state?.refreshCache;
87
+ resourceInputs["routeStageId"] = state?.routeStageId;
88
+ resourceInputs["updatedAt"] = state?.updatedAt;
89
+ resourceInputs["wafStageId"] = state?.wafStageId;
90
+ }
91
+ else {
92
+ const args = argsOrState;
93
+ if (args?.pipelineId === undefined && !opts.urn) {
94
+ throw new Error("Missing required property 'pipelineId'");
95
+ }
96
+ resourceInputs["backendStageId"] = args?.backendStageId;
97
+ resourceInputs["fallbackTtl"] = args?.fallbackTtl;
98
+ resourceInputs["includeCookies"] = args?.includeCookies;
99
+ resourceInputs["pipelineId"] = args?.pipelineId;
100
+ resourceInputs["projectId"] = args?.projectId;
101
+ resourceInputs["purgeRequests"] = args?.purgeRequests;
102
+ resourceInputs["refreshCache"] = args?.refreshCache;
103
+ resourceInputs["routeStageId"] = args?.routeStageId;
104
+ resourceInputs["wafStageId"] = args?.wafStageId;
105
+ resourceInputs["createdAt"] = undefined /*out*/;
106
+ resourceInputs["updatedAt"] = undefined /*out*/;
107
+ }
108
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
109
+ const aliasOpts = { aliases: [{ type: "scaleway:index/edgeServicesCacheStage:EdgeServicesCacheStage" }] };
110
+ opts = pulumi.mergeOptions(opts, aliasOpts);
111
+ super(CacheStage.__pulumiType, name, resourceInputs, opts);
112
+ }
113
+ }
114
+ exports.CacheStage = CacheStage;
115
+ /** @internal */
116
+ CacheStage.__pulumiType = 'scaleway:edgeservices/cacheStage:CacheStage';
117
+ //# sourceMappingURL=cacheStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cacheStage.js","sourceRoot":"","sources":["../../edgeservices/cacheStage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,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xD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,8DAA8D,EAAE,CAAC,EAAE,CAAC;QAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtHL,gCAuHC;AAzGG,gBAAgB;AACO,uBAAY,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,167 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Creates and manages Scaleway Edge Services DNS Stages.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ### Basic
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as scaleway from "@pulumiverse/scaleway";
12
+ *
13
+ * const main = new scaleway.edgeservices.DnsStage("main", {
14
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
15
+ * fqdns: ["subdomain.example.com"],
16
+ * });
17
+ * ```
18
+ *
19
+ * ## Import
20
+ *
21
+ * DNS stages can be imported using the `{id}`, e.g.
22
+ *
23
+ * bash
24
+ *
25
+ * ```sh
26
+ * $ pulumi import scaleway:edgeservices/dnsStage:DnsStage basic 11111111-1111-1111-1111-111111111111
27
+ * ```
28
+ */
29
+ export declare class DnsStage extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing DnsStage resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsStageState, opts?: pulumi.CustomResourceOptions): DnsStage;
40
+ /**
41
+ * Returns true if the given object is an instance of DnsStage. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj: any): obj is DnsStage;
45
+ /**
46
+ * The backend stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
47
+ */
48
+ readonly backendStageId: pulumi.Output<string>;
49
+ /**
50
+ * The cache stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
51
+ */
52
+ readonly cacheStageId: pulumi.Output<string>;
53
+ /**
54
+ * The date and time of the creation of the DNS stage.
55
+ */
56
+ readonly createdAt: pulumi.Output<string>;
57
+ /**
58
+ * The Default Fully Qualified Domain Name attached to the stage.
59
+ */
60
+ readonly defaultFqdn: pulumi.Output<string>;
61
+ /**
62
+ * Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
63
+ */
64
+ readonly fqdns: pulumi.Output<string[]>;
65
+ /**
66
+ * The ID of the pipeline.
67
+ */
68
+ readonly pipelineId: pulumi.Output<string>;
69
+ /**
70
+ * `projectId`) The ID of the project the DNS stage is associated with.
71
+ */
72
+ readonly projectId: pulumi.Output<string>;
73
+ /**
74
+ * The TLS stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
75
+ */
76
+ readonly tlsStageId: pulumi.Output<string>;
77
+ /**
78
+ * The type of the stage.
79
+ */
80
+ readonly type: pulumi.Output<string>;
81
+ /**
82
+ * The date and time of the last update of the DNS stage.
83
+ */
84
+ readonly updatedAt: pulumi.Output<string>;
85
+ /**
86
+ * Create a DnsStage resource with the given unique name, arguments, and options.
87
+ *
88
+ * @param name The _unique_ name of the resource.
89
+ * @param args The arguments to use to populate this resource's properties.
90
+ * @param opts A bag of options that control this resource's behavior.
91
+ */
92
+ constructor(name: string, args: DnsStageArgs, opts?: pulumi.CustomResourceOptions);
93
+ }
94
+ /**
95
+ * Input properties used for looking up and filtering DnsStage resources.
96
+ */
97
+ export interface DnsStageState {
98
+ /**
99
+ * The backend stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
100
+ */
101
+ backendStageId?: pulumi.Input<string>;
102
+ /**
103
+ * The cache stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
104
+ */
105
+ cacheStageId?: pulumi.Input<string>;
106
+ /**
107
+ * The date and time of the creation of the DNS stage.
108
+ */
109
+ createdAt?: pulumi.Input<string>;
110
+ /**
111
+ * The Default Fully Qualified Domain Name attached to the stage.
112
+ */
113
+ defaultFqdn?: pulumi.Input<string>;
114
+ /**
115
+ * Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
116
+ */
117
+ fqdns?: pulumi.Input<pulumi.Input<string>[]>;
118
+ /**
119
+ * The ID of the pipeline.
120
+ */
121
+ pipelineId?: pulumi.Input<string>;
122
+ /**
123
+ * `projectId`) The ID of the project the DNS stage is associated with.
124
+ */
125
+ projectId?: pulumi.Input<string>;
126
+ /**
127
+ * The TLS stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
128
+ */
129
+ tlsStageId?: pulumi.Input<string>;
130
+ /**
131
+ * The type of the stage.
132
+ */
133
+ type?: pulumi.Input<string>;
134
+ /**
135
+ * The date and time of the last update of the DNS stage.
136
+ */
137
+ updatedAt?: pulumi.Input<string>;
138
+ }
139
+ /**
140
+ * The set of arguments for constructing a DnsStage resource.
141
+ */
142
+ export interface DnsStageArgs {
143
+ /**
144
+ * The backend stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
145
+ */
146
+ backendStageId?: pulumi.Input<string>;
147
+ /**
148
+ * The cache stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
149
+ */
150
+ cacheStageId?: pulumi.Input<string>;
151
+ /**
152
+ * Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
153
+ */
154
+ fqdns?: pulumi.Input<pulumi.Input<string>[]>;
155
+ /**
156
+ * The ID of the pipeline.
157
+ */
158
+ pipelineId: pulumi.Input<string>;
159
+ /**
160
+ * `projectId`) The ID of the project the DNS stage is associated with.
161
+ */
162
+ projectId?: pulumi.Input<string>;
163
+ /**
164
+ * The TLS stage ID the DNS stage will be linked to. Only one of `backendStageId`, `cacheStageId` and `tlsStageId` should be specified.
165
+ */
166
+ tlsStageId?: pulumi.Input<string>;
167
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.DnsStage = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Creates and manages Scaleway Edge Services DNS Stages.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Basic
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as scaleway from "@pulumiverse/scaleway";
18
+ *
19
+ * const main = new scaleway.edgeservices.DnsStage("main", {
20
+ * pipelineId: mainScalewayEdgeServicesPipeline.id,
21
+ * fqdns: ["subdomain.example.com"],
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * DNS stages can be imported using the `{id}`, e.g.
28
+ *
29
+ * bash
30
+ *
31
+ * ```sh
32
+ * $ pulumi import scaleway:edgeservices/dnsStage:DnsStage basic 11111111-1111-1111-1111-111111111111
33
+ * ```
34
+ */
35
+ class DnsStage extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing DnsStage resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new DnsStage(name, state, { ...opts, id: id });
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of DnsStage. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === DnsStage.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["backendStageId"] = state?.backendStageId;
64
+ resourceInputs["cacheStageId"] = state?.cacheStageId;
65
+ resourceInputs["createdAt"] = state?.createdAt;
66
+ resourceInputs["defaultFqdn"] = state?.defaultFqdn;
67
+ resourceInputs["fqdns"] = state?.fqdns;
68
+ resourceInputs["pipelineId"] = state?.pipelineId;
69
+ resourceInputs["projectId"] = state?.projectId;
70
+ resourceInputs["tlsStageId"] = state?.tlsStageId;
71
+ resourceInputs["type"] = state?.type;
72
+ resourceInputs["updatedAt"] = state?.updatedAt;
73
+ }
74
+ else {
75
+ const args = argsOrState;
76
+ if (args?.pipelineId === undefined && !opts.urn) {
77
+ throw new Error("Missing required property 'pipelineId'");
78
+ }
79
+ resourceInputs["backendStageId"] = args?.backendStageId;
80
+ resourceInputs["cacheStageId"] = args?.cacheStageId;
81
+ resourceInputs["fqdns"] = args?.fqdns;
82
+ resourceInputs["pipelineId"] = args?.pipelineId;
83
+ resourceInputs["projectId"] = args?.projectId;
84
+ resourceInputs["tlsStageId"] = args?.tlsStageId;
85
+ resourceInputs["createdAt"] = undefined /*out*/;
86
+ resourceInputs["defaultFqdn"] = undefined /*out*/;
87
+ resourceInputs["type"] = undefined /*out*/;
88
+ resourceInputs["updatedAt"] = undefined /*out*/;
89
+ }
90
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
+ const aliasOpts = { aliases: [{ type: "scaleway:index/edgeServicesDnsStage:EdgeServicesDnsStage" }] };
92
+ opts = pulumi.mergeOptions(opts, aliasOpts);
93
+ super(DnsStage.__pulumiType, name, resourceInputs, opts);
94
+ }
95
+ }
96
+ exports.DnsStage = DnsStage;
97
+ /** @internal */
98
+ DnsStage.__pulumiType = 'scaleway:edgeservices/dnsStage:DnsStage';
99
+ //# sourceMappingURL=dnsStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnsStage.js","sourceRoot":"","sources":["../../edgeservices/dnsStage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,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