@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.
- package/edgeServicesBackendStage.d.ts +9 -6
- package/edgeServicesBackendStage.js +11 -6
- package/edgeServicesBackendStage.js.map +1 -1
- package/edgeServicesCacheStage.d.ts +5 -2
- package/edgeServicesCacheStage.js +7 -2
- package/edgeServicesCacheStage.js.map +1 -1
- package/edgeServicesDnsStage.d.ts +4 -1
- package/edgeServicesDnsStage.js +6 -1
- package/edgeServicesDnsStage.js.map +1 -1
- package/edgeServicesHeadStage.d.ts +7 -4
- package/edgeServicesHeadStage.js +9 -4
- package/edgeServicesHeadStage.js.map +1 -1
- package/edgeServicesPipeline.d.ts +19 -16
- package/edgeServicesPipeline.js +21 -16
- package/edgeServicesPipeline.js.map +1 -1
- package/edgeServicesPlan.d.ts +4 -1
- package/edgeServicesPlan.js +6 -1
- package/edgeServicesPlan.js.map +1 -1
- package/edgeServicesRouteStage.d.ts +4 -1
- package/edgeServicesRouteStage.js +6 -1
- package/edgeServicesRouteStage.js.map +1 -1
- package/edgeServicesTlsStage.d.ts +5 -2
- package/edgeServicesTlsStage.js +7 -2
- package/edgeServicesTlsStage.js.map +1 -1
- package/edgeServicesWafStage.d.ts +4 -1
- package/edgeServicesWafStage.js +6 -1
- package/edgeServicesWafStage.js.map +1 -1
- package/edgeservices/backendStage.d.ts +171 -0
- package/edgeservices/backendStage.js +133 -0
- package/edgeservices/backendStage.js.map +1 -0
- package/edgeservices/cacheStage.d.ts +205 -0
- package/edgeservices/cacheStage.js +117 -0
- package/edgeservices/cacheStage.js.map +1 -0
- package/edgeservices/dnsStage.d.ts +167 -0
- package/edgeservices/dnsStage.js +99 -0
- package/edgeservices/dnsStage.js.map +1 -0
- package/edgeservices/headStage.d.ts +96 -0
- package/edgeservices/headStage.js +92 -0
- package/edgeservices/headStage.js.map +1 -0
- package/edgeservices/index.d.ts +27 -0
- package/edgeservices/index.js +62 -0
- package/edgeservices/index.js.map +1 -0
- package/edgeservices/pipeline.d.ts +183 -0
- package/edgeservices/pipeline.js +148 -0
- package/edgeservices/pipeline.js.map +1 -0
- package/edgeservices/plan.d.ts +84 -0
- package/edgeservices/plan.js +77 -0
- package/edgeservices/plan.js.map +1 -0
- package/edgeservices/routeStage.d.ts +142 -0
- package/edgeservices/routeStage.js +104 -0
- package/edgeservices/routeStage.js.map +1 -0
- package/edgeservices/tlsStage.d.ts +200 -0
- package/edgeservices/tlsStage.js +116 -0
- package/edgeservices/tlsStage.js.map +1 -0
- package/edgeservices/wafStage.d.ts +140 -0
- package/edgeservices/wafStage.js +97 -0
- package/edgeservices/wafStage.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +98 -0
- package/types/output.d.ts +98 -0
|
@@ -0,0 +1,116 @@
|
|
|
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.TlsStage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creates and manages Scaleway Edge Services TLS Stages.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Managed
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
18
|
+
*
|
|
19
|
+
* const main = new scaleway.edgeservices.TlsStage("main", {
|
|
20
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
21
|
+
* managedCertificate: true,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ### With a certificate stored in Scaleway Secret Manager
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
30
|
+
*
|
|
31
|
+
* const main = new scaleway.edgeservices.TlsStage("main", {
|
|
32
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
33
|
+
* secrets: [{
|
|
34
|
+
* secretId: "11111111-1111-1111-1111-111111111111",
|
|
35
|
+
* region: "fr-par",
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ## Import
|
|
41
|
+
*
|
|
42
|
+
* TLS stages can be imported using the `{id}`, e.g.
|
|
43
|
+
*
|
|
44
|
+
* bash
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import scaleway:edgeservices/tlsStage:TlsStage basic 11111111-1111-1111-1111-111111111111
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
class TlsStage extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing TlsStage resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name, id, state, opts) {
|
|
61
|
+
return new TlsStage(name, state, { ...opts, id: id });
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of TlsStage. This is designed to work even
|
|
65
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
+
*/
|
|
67
|
+
static isInstance(obj) {
|
|
68
|
+
if (obj === undefined || obj === null) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
return obj['__pulumiType'] === TlsStage.__pulumiType;
|
|
72
|
+
}
|
|
73
|
+
constructor(name, argsOrState, opts) {
|
|
74
|
+
let resourceInputs = {};
|
|
75
|
+
opts = opts || {};
|
|
76
|
+
if (opts.id) {
|
|
77
|
+
const state = argsOrState;
|
|
78
|
+
resourceInputs["backendStageId"] = state?.backendStageId;
|
|
79
|
+
resourceInputs["cacheStageId"] = state?.cacheStageId;
|
|
80
|
+
resourceInputs["certificateExpiresAt"] = state?.certificateExpiresAt;
|
|
81
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
82
|
+
resourceInputs["managedCertificate"] = state?.managedCertificate;
|
|
83
|
+
resourceInputs["pipelineId"] = state?.pipelineId;
|
|
84
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
85
|
+
resourceInputs["routeStageId"] = state?.routeStageId;
|
|
86
|
+
resourceInputs["secrets"] = state?.secrets;
|
|
87
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
88
|
+
resourceInputs["wafStageId"] = state?.wafStageId;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const args = argsOrState;
|
|
92
|
+
if (args?.pipelineId === undefined && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
94
|
+
}
|
|
95
|
+
resourceInputs["backendStageId"] = args?.backendStageId;
|
|
96
|
+
resourceInputs["cacheStageId"] = args?.cacheStageId;
|
|
97
|
+
resourceInputs["managedCertificate"] = args?.managedCertificate;
|
|
98
|
+
resourceInputs["pipelineId"] = args?.pipelineId;
|
|
99
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
100
|
+
resourceInputs["routeStageId"] = args?.routeStageId;
|
|
101
|
+
resourceInputs["secrets"] = args?.secrets;
|
|
102
|
+
resourceInputs["wafStageId"] = args?.wafStageId;
|
|
103
|
+
resourceInputs["certificateExpiresAt"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
106
|
+
}
|
|
107
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
108
|
+
const aliasOpts = { aliases: [{ type: "scaleway:index/edgeServicesTlsStage:EdgeServicesTlsStage" }] };
|
|
109
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
110
|
+
super(TlsStage.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.TlsStage = TlsStage;
|
|
114
|
+
/** @internal */
|
|
115
|
+
TlsStage.__pulumiType = 'scaleway:edgeservices/tlsStage:TlsStage';
|
|
116
|
+
//# sourceMappingURL=tlsStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tlsStage.js","sourceRoot":"","sources":["../../edgeservices/tlsStage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuDD,YAAY,IAAY,EAAE,WAA0C,EAA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AAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,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,0DAA0D,EAAE,CAAC,EAAE,CAAC;QACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtHL,4BAuHC;AAzGG,gBAAgB;AACO,qBAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates and manages Scaleway Edge Services WAF 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.WafStage("main", {
|
|
14
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
15
|
+
* mode: "enable",
|
|
16
|
+
* paranoiaLevel: 3,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* WAF stages can be imported using the `{id}`, e.g.
|
|
23
|
+
*
|
|
24
|
+
* bash
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import scaleway:edgeservices/wafStage:WafStage basic 11111111-1111-1111-1111-111111111111
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class WafStage extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing WafStage resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WafStageState, opts?: pulumi.CustomResourceOptions): WafStage;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of WafStage. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is WafStage;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the backend stage to forward requests to after the WAF stage.
|
|
48
|
+
*/
|
|
49
|
+
readonly backendStageId: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The date and time of the creation of the WAF stage.
|
|
52
|
+
*/
|
|
53
|
+
readonly createdAt: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The mode defining WAF behavior (`disable`/`logOnly`/`enable`).
|
|
56
|
+
*/
|
|
57
|
+
readonly mode: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
60
|
+
*/
|
|
61
|
+
readonly paranoiaLevel: pulumi.Output<number>;
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the pipeline.
|
|
64
|
+
*/
|
|
65
|
+
readonly pipelineId: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* `projectId`) The ID of the project the WAF stage is associated with.
|
|
68
|
+
*/
|
|
69
|
+
readonly projectId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The date and time of the last update of the WAF stage.
|
|
72
|
+
*/
|
|
73
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a WafStage resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args: WafStageArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering WafStage resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface WafStageState {
|
|
87
|
+
/**
|
|
88
|
+
* The ID of the backend stage to forward requests to after the WAF stage.
|
|
89
|
+
*/
|
|
90
|
+
backendStageId?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The date and time of the creation of the WAF stage.
|
|
93
|
+
*/
|
|
94
|
+
createdAt?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The mode defining WAF behavior (`disable`/`logOnly`/`enable`).
|
|
97
|
+
*/
|
|
98
|
+
mode?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
101
|
+
*/
|
|
102
|
+
paranoiaLevel?: pulumi.Input<number>;
|
|
103
|
+
/**
|
|
104
|
+
* The ID of the pipeline.
|
|
105
|
+
*/
|
|
106
|
+
pipelineId?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* `projectId`) The ID of the project the WAF stage is associated with.
|
|
109
|
+
*/
|
|
110
|
+
projectId?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The date and time of the last update of the WAF stage.
|
|
113
|
+
*/
|
|
114
|
+
updatedAt?: pulumi.Input<string>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The set of arguments for constructing a WafStage resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface WafStageArgs {
|
|
120
|
+
/**
|
|
121
|
+
* The ID of the backend stage to forward requests to after the WAF stage.
|
|
122
|
+
*/
|
|
123
|
+
backendStageId?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The mode defining WAF behavior (`disable`/`logOnly`/`enable`).
|
|
126
|
+
*/
|
|
127
|
+
mode?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
|
|
130
|
+
*/
|
|
131
|
+
paranoiaLevel: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* The ID of the pipeline.
|
|
134
|
+
*/
|
|
135
|
+
pipelineId: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* `projectId`) The ID of the project the WAF stage is associated with.
|
|
138
|
+
*/
|
|
139
|
+
projectId?: pulumi.Input<string>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.WafStage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creates and manages Scaleway Edge Services WAF 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.WafStage("main", {
|
|
20
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
21
|
+
* mode: "enable",
|
|
22
|
+
* paranoiaLevel: 3,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* WAF stages can be imported using the `{id}`, e.g.
|
|
29
|
+
*
|
|
30
|
+
* bash
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import scaleway:edgeservices/wafStage:WafStage basic 11111111-1111-1111-1111-111111111111
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class WafStage extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing WafStage resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new WafStage(name, state, { ...opts, id: id });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of WafStage. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === WafStage.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["backendStageId"] = state?.backendStageId;
|
|
65
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
66
|
+
resourceInputs["mode"] = state?.mode;
|
|
67
|
+
resourceInputs["paranoiaLevel"] = state?.paranoiaLevel;
|
|
68
|
+
resourceInputs["pipelineId"] = state?.pipelineId;
|
|
69
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
70
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if (args?.paranoiaLevel === undefined && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'paranoiaLevel'");
|
|
76
|
+
}
|
|
77
|
+
if (args?.pipelineId === undefined && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["backendStageId"] = args?.backendStageId;
|
|
81
|
+
resourceInputs["mode"] = args?.mode;
|
|
82
|
+
resourceInputs["paranoiaLevel"] = args?.paranoiaLevel;
|
|
83
|
+
resourceInputs["pipelineId"] = args?.pipelineId;
|
|
84
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
85
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
const aliasOpts = { aliases: [{ type: "scaleway:index/edgeServicesWafStage:EdgeServicesWafStage" }] };
|
|
90
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
91
|
+
super(WafStage.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.WafStage = WafStage;
|
|
95
|
+
/** @internal */
|
|
96
|
+
WafStage.__pulumiType = 'scaleway:edgeservices/wafStage:WafStage';
|
|
97
|
+
//# sourceMappingURL=wafStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wafStage.js","sourceRoot":"","sources":["../../edgeservices/wafStage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA0C,EAA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AW,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,0DAA0D,EAAE,CAAC,EAAE,CAAC;QACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjGL,4BAkGC;AApFG,gBAAgB;AACO,qBAAY,GAAG,yCAAyC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -619,6 +619,7 @@ import * as containers from "./containers";
|
|
|
619
619
|
import * as databases from "./databases";
|
|
620
620
|
import * as datawarehouse from "./datawarehouse";
|
|
621
621
|
import * as domain from "./domain";
|
|
622
|
+
import * as edgeservices from "./edgeservices";
|
|
622
623
|
import * as elasticmetal from "./elasticmetal";
|
|
623
624
|
import * as functions from "./functions";
|
|
624
625
|
import * as hosting from "./hosting";
|
|
@@ -641,4 +642,4 @@ import * as s2svpn from "./s2svpn";
|
|
|
641
642
|
import * as secrets from "./secrets";
|
|
642
643
|
import * as tem from "./tem";
|
|
643
644
|
import * as types from "./types";
|
|
644
|
-
export { account, applesilicon, audittrail, autoscaling, billing, block, config, containers, databases, datawarehouse, domain, elasticmetal, functions, hosting, iam, inference, instance, iot, ipam, job, kubernetes, loadbalancers, mnq, mongodb, network, object, observability, redis, registry, s2svpn, secrets, tem, types, };
|
|
645
|
+
export { account, applesilicon, audittrail, autoscaling, billing, block, config, containers, databases, datawarehouse, domain, edgeservices, elasticmetal, functions, hosting, iam, inference, instance, iot, ipam, job, kubernetes, loadbalancers, mnq, mongodb, network, object, observability, redis, registry, s2svpn, secrets, tem, types, };
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.getLbFrontendOutput = exports.getLbFrontend = exports.getLbBackendsOutpu
|
|
|
22
22
|
exports.getVpcPublicGatewayOutput = exports.getVpcPublicGateway = exports.getVpcPrivateNetworkOutput = exports.getVpcPrivateNetwork = exports.getVpcGatewayNetworkOutput = exports.getVpcGatewayNetwork = exports.getVpcOutput = exports.getVpc = exports.getTemDomainOutput = exports.getTemDomain = exports.getSecretVersionOutput = exports.getSecretVersion = exports.getSecretOutput = exports.getSecret = exports.getRegistryNamespaceOutput = exports.getRegistryNamespace = exports.getRegistryImageTagOutput = exports.getRegistryImageTag = exports.getRegistryImageOutput = exports.getRegistryImage = exports.getRedisClusterOutput = exports.getRedisCluster = exports.getObjectBucketPolicyOutput = exports.getObjectBucketPolicy = exports.getObjectBucketOutput = exports.getObjectBucket = exports.getMongoDbInstanceOutput = exports.getMongoDbInstance = exports.getMnqSqsOutput = exports.getMnqSqs = exports.getMnqSnsOutput = exports.getMnqSns = exports.getMarketplaceImageOutput = exports.getMarketplaceImage = exports.getLoadbalancerIpOutput = exports.getLoadbalancerIp = exports.getLoadbalancerCertificateOutput = exports.getLoadbalancerCertificate = exports.getLoadbalancerOutput = exports.getLoadbalancer = exports.getLbsOutput = exports.getLbs = exports.getLbRoutesOutput = exports.getLbRoutes = exports.getLbRouteOutput = exports.getLbRoute = exports.getLbIpsOutput = exports.getLbIps = exports.getLbFrontendsOutput = exports.getLbFrontends = void 0;
|
|
23
23
|
exports.LoadbalancerFrontend = exports.LoadbalancerCertificate = exports.LoadbalancerBackend = exports.LoadbalancerAcl = exports.Loadbalancer = exports.KubernetesNodePool = exports.KubernetesCluster = exports.KeyManagerKey = exports.JobDefinition = exports.IpamIpReverseDns = exports.IpamIp = exports.IotRoute = exports.IotNetwork = exports.IotHub = exports.IotDevice = exports.InstanceVolume = exports.InstanceUserData = exports.InstanceSnapshot = exports.InstanceServer = exports.InstanceSecurityGroupRules = exports.InstanceSecurityGroup = exports.InstancePrivateNic = exports.InstancePlacementGroup = exports.InstanceIpReverseDns = exports.InstanceIp = exports.InstanceImage = exports.InferenceDeployment = exports.IamUser = exports.IamSshKey = exports.IamPolicy = exports.IamGroupMembership = exports.IamGroup = exports.IamApplication = exports.IamApiKey = exports.getWebhostingOutput = exports.getWebhosting = exports.getWebHostOfferOutput = exports.getWebHostOffer = exports.getVpcsOutput = exports.getVpcs = exports.getVpcRoutesOutput = exports.getVpcRoutes = exports.getVpcPublicPatRuleOutput = exports.getVpcPublicPatRule = exports.getVpcPublicGatewayIpOutput = exports.getVpcPublicGatewayIp = exports.getVpcPublicGatewayDhcpReservationOutput = exports.getVpcPublicGatewayDhcpReservation = exports.getVpcPublicGatewayDhcpOutput = exports.getVpcPublicGatewayDhcp = void 0;
|
|
24
24
|
exports.domain = exports.datawarehouse = exports.databases = exports.containers = exports.config = exports.block = exports.billing = exports.autoscaling = exports.audittrail = exports.applesilicon = exports.account = exports.Webhosting = exports.VpcRoute = exports.VpcPublicGatewayPatRule = exports.VpcPublicGatewayIpReverseDns = exports.VpcPublicGatewayIp = exports.VpcPublicGatewayDhcpReservation = exports.VpcPublicGatewayDhcp = exports.VpcPublicGateway = exports.VpcPrivateNetwork = exports.VpcGatewayNetwork = exports.Vpc = exports.TemWebhook = exports.TemDomainValidation = exports.TemDomain = exports.SecretVersion = exports.Secret = exports.SdbDatabase = exports.RegistryNamespace = exports.RedisCluster = exports.RdbSnapshot = exports.ObjectItem = exports.ObjectBucketWebsiteConfiguration = exports.ObjectBucketPolicy = exports.ObjectBucketLockConfiguration = exports.ObjectBucketAcl = exports.ObjectBucket = exports.MongoDbSnapshot = exports.MongoDbInstance = exports.MnqSqsQueue = exports.MnqSqsCredentials = exports.MnqSqs = exports.MnqSnsTopicSubscription = exports.MnqSnsTopic = exports.MnqSnsCredentials = exports.MnqSns = exports.MnqNatsCredentials = exports.MnqNatsAccount = exports.LoadbalancerRoute = exports.LoadbalancerIp = void 0;
|
|
25
|
-
exports.types = exports.tem = exports.secrets = exports.s2svpn = exports.registry = exports.redis = exports.observability = exports.object = exports.network = exports.mongodb = exports.mnq = exports.loadbalancers = exports.kubernetes = exports.job = exports.ipam = exports.iot = exports.instance = exports.inference = exports.iam = exports.hosting = exports.functions = exports.elasticmetal = void 0;
|
|
25
|
+
exports.types = exports.tem = exports.secrets = exports.s2svpn = exports.registry = exports.redis = exports.observability = exports.object = exports.network = exports.mongodb = exports.mnq = exports.loadbalancers = exports.kubernetes = exports.job = exports.ipam = exports.iot = exports.instance = exports.inference = exports.iam = exports.hosting = exports.functions = exports.elasticmetal = exports.edgeservices = void 0;
|
|
26
26
|
const pulumi = require("@pulumi/pulumi");
|
|
27
27
|
const utilities = require("./utilities");
|
|
28
28
|
exports.AccountProject = null;
|
|
@@ -542,6 +542,8 @@ const datawarehouse = require("./datawarehouse");
|
|
|
542
542
|
exports.datawarehouse = datawarehouse;
|
|
543
543
|
const domain = require("./domain");
|
|
544
544
|
exports.domain = domain;
|
|
545
|
+
const edgeservices = require("./edgeservices");
|
|
546
|
+
exports.edgeservices = edgeservices;
|
|
545
547
|
const elasticmetal = require("./elasticmetal");
|
|
546
548
|
exports.elasticmetal = elasticmetal;
|
|
547
549
|
const functions = require("./functions");
|