@pulumiverse/scaleway 1.25.0 → 1.26.0-alpha.1743166124
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/appleSiliconServer.d.ts +28 -0
- package/appleSiliconServer.js +8 -0
- package/appleSiliconServer.js.map +1 -1
- package/applesilicon/server.d.ts +28 -0
- package/applesilicon/server.js +8 -0
- package/applesilicon/server.js.map +1 -1
- package/domain/index.d.ts +3 -0
- package/domain/index.js +6 -1
- package/domain/index.js.map +1 -1
- package/domain/registration.d.ts +275 -0
- package/domain/registration.js +193 -0
- package/domain/registration.js.map +1 -0
- package/edgeServicesBackendStage.d.ts +171 -0
- package/edgeServicesBackendStage.js +131 -0
- package/edgeServicesBackendStage.js.map +1 -0
- package/edgeServicesCacheStage.d.ts +153 -0
- package/edgeServicesCacheStage.js +93 -0
- package/edgeServicesCacheStage.js.map +1 -0
- package/edgeServicesDnsStage.d.ts +159 -0
- package/edgeServicesDnsStage.js +95 -0
- package/edgeServicesDnsStage.js.map +1 -0
- package/edgeServicesHeadStage.d.ts +96 -0
- package/edgeServicesHeadStage.js +90 -0
- package/edgeServicesHeadStage.js.map +1 -0
- package/edgeServicesPipeline.d.ts +160 -0
- package/edgeServicesPipeline.js +123 -0
- package/edgeServicesPipeline.js.map +1 -0
- package/edgeServicesPlan.d.ts +84 -0
- package/edgeServicesPlan.js +75 -0
- package/edgeServicesPlan.js.map +1 -0
- package/edgeServicesRouteStage.d.ts +142 -0
- package/edgeServicesRouteStage.js +102 -0
- package/edgeServicesRouteStage.js.map +1 -0
- package/edgeServicesTlsStage.d.ts +176 -0
- package/edgeServicesTlsStage.js +110 -0
- package/edgeServicesTlsStage.js.map +1 -0
- package/edgeServicesWafStage.d.ts +140 -0
- package/edgeServicesWafStage.js +95 -0
- package/edgeServicesWafStage.js.map +1 -0
- package/elasticmetal/ip.d.ts +6 -3
- package/elasticmetal/ip.js +3 -0
- package/elasticmetal/ip.js.map +1 -1
- package/flexibleIp.d.ts +6 -3
- package/flexibleIp.js +3 -0
- package/flexibleIp.js.map +1 -1
- package/getLbFrontend.d.ts +1 -0
- package/getLbFrontend.js.map +1 -1
- package/getLbRoute.d.ts +1 -0
- package/getLbRoute.js.map +1 -1
- package/getSecret.d.ts +1 -0
- package/getSecret.js.map +1 -1
- package/getVpcPublicGateway.d.ts +3 -0
- package/getVpcPublicGateway.js.map +1 -1
- package/getVpcPublicGatewayDhcp.d.ts +8 -0
- package/getVpcPublicGatewayDhcp.js +8 -0
- package/getVpcPublicGatewayDhcp.js.map +1 -1
- package/getVpcPublicGatewayDhcpReservation.d.ts +8 -0
- package/getVpcPublicGatewayDhcpReservation.js +8 -0
- package/getVpcPublicGatewayDhcpReservation.js.map +1 -1
- package/index.d.ts +27 -0
- package/index.js +52 -7
- package/index.js.map +1 -1
- package/loadbalancerBackend.d.ts +1 -1
- package/loadbalancerBackend.js +1 -1
- package/loadbalancerFrontend.d.ts +12 -0
- package/loadbalancerFrontend.js +2 -0
- package/loadbalancerFrontend.js.map +1 -1
- package/loadbalancerRoute.d.ts +12 -0
- package/loadbalancerRoute.js +2 -0
- package/loadbalancerRoute.js.map +1 -1
- package/loadbalancers/backend.d.ts +1 -1
- package/loadbalancers/backend.js +1 -1
- package/loadbalancers/frontend.d.ts +12 -0
- package/loadbalancers/frontend.js +2 -0
- package/loadbalancers/frontend.js.map +1 -1
- package/loadbalancers/getFrontend.d.ts +1 -0
- package/loadbalancers/getFrontend.js.map +1 -1
- package/loadbalancers/getRoute.d.ts +1 -0
- package/loadbalancers/getRoute.js.map +1 -1
- package/loadbalancers/route.d.ts +12 -0
- package/loadbalancers/route.js +2 -0
- package/loadbalancers/route.js.map +1 -1
- package/network/acl.d.ts +138 -0
- package/network/acl.js +106 -0
- package/network/acl.js.map +1 -0
- package/network/gatewayNetwork.d.ts +54 -64
- package/network/gatewayNetwork.js +2 -48
- package/network/gatewayNetwork.js.map +1 -1
- package/network/getPublicGateway.d.ts +3 -0
- package/network/getPublicGateway.js.map +1 -1
- package/network/getPublicGatewayDhcp.d.ts +8 -0
- package/network/getPublicGatewayDhcp.js +8 -0
- package/network/getPublicGatewayDhcp.js.map +1 -1
- package/network/getPublicGatewayDhcpReservation.d.ts +8 -0
- package/network/getPublicGatewayDhcpReservation.js +8 -0
- package/network/getPublicGatewayDhcpReservation.js.map +1 -1
- package/network/index.d.ts +3 -0
- package/network/index.js +6 -1
- package/network/index.js.map +1 -1
- package/network/publicGateway.d.ts +33 -5
- package/network/publicGateway.js +7 -1
- package/network/publicGateway.js.map +1 -1
- package/network/publicGatewayDhcp.d.ts +4 -0
- package/network/publicGatewayDhcp.js +4 -0
- package/network/publicGatewayDhcp.js.map +1 -1
- package/network/publicGatewayDhcpReservation.d.ts +4 -0
- package/network/publicGatewayDhcpReservation.js +4 -0
- package/network/publicGatewayDhcpReservation.js.map +1 -1
- package/package.json +2 -2
- package/secret.d.ts +2 -0
- package/secret.js +2 -0
- package/secret.js.map +1 -1
- package/secrets/getSecret.d.ts +1 -0
- package/secrets/getSecret.js.map +1 -1
- package/secrets/secret.d.ts +2 -0
- package/secrets/secret.js +2 -0
- package/secrets/secret.js.map +1 -1
- package/tem/blockedList.d.ts +139 -0
- package/tem/blockedList.js +99 -0
- package/tem/blockedList.js.map +1 -0
- package/tem/domain.d.ts +3 -0
- package/tem/domain.js.map +1 -1
- package/tem/getOfferSubscription.d.ts +102 -0
- package/tem/getOfferSubscription.js +52 -0
- package/tem/getOfferSubscription.js.map +1 -0
- package/tem/index.d.ts +6 -0
- package/tem/index.js +9 -1
- package/tem/index.js.map +1 -1
- package/temDomain.d.ts +3 -0
- package/temDomain.js.map +1 -1
- package/types/input.d.ts +718 -0
- package/types/output.d.ts +790 -2
- package/vpcGatewayNetwork.d.ts +54 -64
- package/vpcGatewayNetwork.js +2 -48
- package/vpcGatewayNetwork.js.map +1 -1
- package/vpcPublicGateway.d.ts +33 -5
- package/vpcPublicGateway.js +7 -1
- package/vpcPublicGateway.js.map +1 -1
- package/vpcPublicGatewayDhcp.d.ts +4 -0
- package/vpcPublicGatewayDhcp.js +4 -0
- package/vpcPublicGatewayDhcp.js.map +1 -1
- package/vpcPublicGatewayDhcpReservation.d.ts +4 -0
- package/vpcPublicGatewayDhcpReservation.js +4 -0
- package/vpcPublicGatewayDhcpReservation.js.map +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.EdgeServicesRouteStage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creates and manages Scaleway Edge Services Route 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.EdgeServicesRouteStage("main", {
|
|
20
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
21
|
+
* wafStageId: waf.id,
|
|
22
|
+
* rules: [{
|
|
23
|
+
* backendStageId: backend.id,
|
|
24
|
+
* ruleHttpMatch: {
|
|
25
|
+
* methodFilters: [
|
|
26
|
+
* "get",
|
|
27
|
+
* "post",
|
|
28
|
+
* ],
|
|
29
|
+
* pathFilter: {
|
|
30
|
+
* pathFilterType: "regex",
|
|
31
|
+
* value: ".*",
|
|
32
|
+
* },
|
|
33
|
+
* },
|
|
34
|
+
* }],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* Route stages can be imported using the `{id}`, e.g.
|
|
41
|
+
*
|
|
42
|
+
* bash
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import scaleway:index/edgeServicesRouteStage:EdgeServicesRouteStage basic 11111111-1111-1111-1111-111111111111
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
class EdgeServicesRouteStage extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing EdgeServicesRouteStage resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name, id, state, opts) {
|
|
59
|
+
return new EdgeServicesRouteStage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of EdgeServicesRouteStage. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj) {
|
|
66
|
+
if (obj === undefined || obj === null) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return obj['__pulumiType'] === EdgeServicesRouteStage.__pulumiType;
|
|
70
|
+
}
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
77
|
+
resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
|
|
78
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
79
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
80
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
81
|
+
resourceInputs["wafStageId"] = state ? state.wafStageId : undefined;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
const args = argsOrState;
|
|
85
|
+
if ((!args || args.pipelineId === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
87
|
+
}
|
|
88
|
+
resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
|
|
89
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
90
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
91
|
+
resourceInputs["wafStageId"] = args ? args.wafStageId : undefined;
|
|
92
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(EdgeServicesRouteStage.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.EdgeServicesRouteStage = EdgeServicesRouteStage;
|
|
100
|
+
/** @internal */
|
|
101
|
+
EdgeServicesRouteStage.__pulumiType = 'scaleway:index/edgeServicesRouteStage:EdgeServicesRouteStage';
|
|
102
|
+
//# sourceMappingURL=edgeServicesRouteStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edgeServicesRouteStage.js","sourceRoot":"","sources":["../edgeServicesRouteStage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EA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AI,GAAG,WAAqD,CAAC;YACnE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAtFL,wDAuFC;AAzEG,gBAAgB;AACO,mCAAY,GAAG,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
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 TLS Stages.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Managed
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
14
|
+
*
|
|
15
|
+
* const main = new scaleway.EdgeServicesTlsStage("main", {
|
|
16
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
17
|
+
* managedCertificate: true,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ### With a certificate stored in Scaleway Secret Manager
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
26
|
+
*
|
|
27
|
+
* const main = new scaleway.EdgeServicesTlsStage("main", {
|
|
28
|
+
* pipelineId: mainScalewayEdgeServicesPipeline.id,
|
|
29
|
+
* secrets: [{
|
|
30
|
+
* secretId: "11111111-1111-1111-1111-111111111111",
|
|
31
|
+
* region: "fr-par",
|
|
32
|
+
* }],
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* TLS stages can be imported using the `{id}`, e.g.
|
|
39
|
+
*
|
|
40
|
+
* bash
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import scaleway:index/edgeServicesTlsStage:EdgeServicesTlsStage basic 11111111-1111-1111-1111-111111111111
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class EdgeServicesTlsStage extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing EdgeServicesTlsStage resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EdgeServicesTlsStageState, opts?: pulumi.CustomResourceOptions): EdgeServicesTlsStage;
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of EdgeServicesTlsStage. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj: any): obj is EdgeServicesTlsStage;
|
|
62
|
+
/**
|
|
63
|
+
* The backend stage ID the TLS stage will be linked to.
|
|
64
|
+
*/
|
|
65
|
+
readonly backendStageId: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The cache stage ID the TLS stage will be linked to.
|
|
68
|
+
*/
|
|
69
|
+
readonly cacheStageId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The expiration date of the certificate.
|
|
72
|
+
*/
|
|
73
|
+
readonly certificateExpiresAt: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The date and time of the creation of the TLS stage.
|
|
76
|
+
*/
|
|
77
|
+
readonly createdAt: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Set to true when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
80
|
+
*/
|
|
81
|
+
readonly managedCertificate: pulumi.Output<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the pipeline.
|
|
84
|
+
*/
|
|
85
|
+
readonly pipelineId: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* `projectId`) The ID of the project the TLS stage is associated with.
|
|
88
|
+
*/
|
|
89
|
+
readonly projectId: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The TLS secrets.
|
|
92
|
+
*/
|
|
93
|
+
readonly secrets: pulumi.Output<outputs.EdgeServicesTlsStageSecret[]>;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time of the last update of the TLS stage.
|
|
96
|
+
*/
|
|
97
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Create a EdgeServicesTlsStage resource with the given unique name, arguments, and options.
|
|
100
|
+
*
|
|
101
|
+
* @param name The _unique_ name of the resource.
|
|
102
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
103
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
104
|
+
*/
|
|
105
|
+
constructor(name: string, args: EdgeServicesTlsStageArgs, opts?: pulumi.CustomResourceOptions);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Input properties used for looking up and filtering EdgeServicesTlsStage resources.
|
|
109
|
+
*/
|
|
110
|
+
export interface EdgeServicesTlsStageState {
|
|
111
|
+
/**
|
|
112
|
+
* The backend stage ID the TLS stage will be linked to.
|
|
113
|
+
*/
|
|
114
|
+
backendStageId?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The cache stage ID the TLS stage will be linked to.
|
|
117
|
+
*/
|
|
118
|
+
cacheStageId?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The expiration date of the certificate.
|
|
121
|
+
*/
|
|
122
|
+
certificateExpiresAt?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The date and time of the creation of the TLS stage.
|
|
125
|
+
*/
|
|
126
|
+
createdAt?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Set to true when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
129
|
+
*/
|
|
130
|
+
managedCertificate?: pulumi.Input<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* The ID of the pipeline.
|
|
133
|
+
*/
|
|
134
|
+
pipelineId?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* `projectId`) The ID of the project the TLS stage is associated with.
|
|
137
|
+
*/
|
|
138
|
+
projectId?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The TLS secrets.
|
|
141
|
+
*/
|
|
142
|
+
secrets?: pulumi.Input<pulumi.Input<inputs.EdgeServicesTlsStageSecret>[]>;
|
|
143
|
+
/**
|
|
144
|
+
* The date and time of the last update of the TLS stage.
|
|
145
|
+
*/
|
|
146
|
+
updatedAt?: pulumi.Input<string>;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The set of arguments for constructing a EdgeServicesTlsStage resource.
|
|
150
|
+
*/
|
|
151
|
+
export interface EdgeServicesTlsStageArgs {
|
|
152
|
+
/**
|
|
153
|
+
* The backend stage ID the TLS stage will be linked to.
|
|
154
|
+
*/
|
|
155
|
+
backendStageId?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The cache stage ID the TLS stage will be linked to.
|
|
158
|
+
*/
|
|
159
|
+
cacheStageId?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Set to true when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint.
|
|
162
|
+
*/
|
|
163
|
+
managedCertificate?: pulumi.Input<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* The ID of the pipeline.
|
|
166
|
+
*/
|
|
167
|
+
pipelineId: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* `projectId`) The ID of the project the TLS stage is associated with.
|
|
170
|
+
*/
|
|
171
|
+
projectId?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The TLS secrets.
|
|
174
|
+
*/
|
|
175
|
+
secrets?: pulumi.Input<pulumi.Input<inputs.EdgeServicesTlsStageSecret>[]>;
|
|
176
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.EdgeServicesTlsStage = 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.EdgeServicesTlsStage("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.EdgeServicesTlsStage("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:index/edgeServicesTlsStage:EdgeServicesTlsStage basic 11111111-1111-1111-1111-111111111111
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
class EdgeServicesTlsStage extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing EdgeServicesTlsStage 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 EdgeServicesTlsStage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of EdgeServicesTlsStage. 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'] === EdgeServicesTlsStage.__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 ? state.backendStageId : undefined;
|
|
79
|
+
resourceInputs["cacheStageId"] = state ? state.cacheStageId : undefined;
|
|
80
|
+
resourceInputs["certificateExpiresAt"] = state ? state.certificateExpiresAt : undefined;
|
|
81
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
82
|
+
resourceInputs["managedCertificate"] = state ? state.managedCertificate : undefined;
|
|
83
|
+
resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
|
|
84
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
85
|
+
resourceInputs["secrets"] = state ? state.secrets : undefined;
|
|
86
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const args = argsOrState;
|
|
90
|
+
if ((!args || args.pipelineId === undefined) && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
92
|
+
}
|
|
93
|
+
resourceInputs["backendStageId"] = args ? args.backendStageId : undefined;
|
|
94
|
+
resourceInputs["cacheStageId"] = args ? args.cacheStageId : undefined;
|
|
95
|
+
resourceInputs["managedCertificate"] = args ? args.managedCertificate : undefined;
|
|
96
|
+
resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
|
|
97
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
98
|
+
resourceInputs["secrets"] = args ? args.secrets : undefined;
|
|
99
|
+
resourceInputs["certificateExpiresAt"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
102
|
+
}
|
|
103
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
104
|
+
super(EdgeServicesTlsStage.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.EdgeServicesTlsStage = EdgeServicesTlsStage;
|
|
108
|
+
/** @internal */
|
|
109
|
+
EdgeServicesTlsStage.__pulumiType = 'scaleway:index/edgeServicesTlsStage:EdgeServicesTlsStage';
|
|
110
|
+
//# sourceMappingURL=edgeServicesTlsStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edgeServicesTlsStage.js","sourceRoot":"","sources":["../edgeServicesTlsStage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;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,SAAS,CAAC;YAC5D,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,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAxGL,oDAyGC;AA3FG,gBAAgB;AACO,iCAAY,GAAG,0DAA0D,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.EdgeServicesWafStage("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:index/edgeServicesWafStage:EdgeServicesWafStage basic 11111111-1111-1111-1111-111111111111
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class EdgeServicesWafStage extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing EdgeServicesWafStage 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?: EdgeServicesWafStageState, opts?: pulumi.CustomResourceOptions): EdgeServicesWafStage;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of EdgeServicesWafStage. 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 EdgeServicesWafStage;
|
|
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 EdgeServicesWafStage 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: EdgeServicesWafStageArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering EdgeServicesWafStage resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface EdgeServicesWafStageState {
|
|
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 EdgeServicesWafStage resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface EdgeServicesWafStageArgs {
|
|
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,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.EdgeServicesWafStage = 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.EdgeServicesWafStage("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:index/edgeServicesWafStage:EdgeServicesWafStage basic 11111111-1111-1111-1111-111111111111
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class EdgeServicesWafStage extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing EdgeServicesWafStage 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 EdgeServicesWafStage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of EdgeServicesWafStage. 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'] === EdgeServicesWafStage.__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 ? state.backendStageId : undefined;
|
|
65
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
66
|
+
resourceInputs["mode"] = state ? state.mode : undefined;
|
|
67
|
+
resourceInputs["paranoiaLevel"] = state ? state.paranoiaLevel : undefined;
|
|
68
|
+
resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
|
|
69
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
70
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const args = argsOrState;
|
|
74
|
+
if ((!args || args.paranoiaLevel === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'paranoiaLevel'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.pipelineId === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'pipelineId'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["backendStageId"] = args ? args.backendStageId : undefined;
|
|
81
|
+
resourceInputs["mode"] = args ? args.mode : undefined;
|
|
82
|
+
resourceInputs["paranoiaLevel"] = args ? args.paranoiaLevel : undefined;
|
|
83
|
+
resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
|
|
84
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
85
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(EdgeServicesWafStage.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.EdgeServicesWafStage = EdgeServicesWafStage;
|
|
93
|
+
/** @internal */
|
|
94
|
+
EdgeServicesWafStage.__pulumiType = 'scaleway:index/edgeServicesWafStage:EdgeServicesWafStage';
|
|
95
|
+
//# sourceMappingURL=edgeServicesWafStage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edgeServicesWafStage.js","sourceRoot":"","sources":["../edgeServicesWafStage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC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AC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,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,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA/FL,oDAgGC;AAlFG,gBAAgB;AACO,iCAAY,GAAG,0DAA0D,CAAC"}
|
package/elasticmetal/ip.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Creates and manages Scaleway flexible IPs.
|
|
4
4
|
* For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip).
|
|
5
5
|
*
|
|
6
|
+
* > **Note:**
|
|
7
|
+
* Flexible IPs are exclusively available for Elastic Metal (bare metal) servers. They are not compatible with other Scaleway products.
|
|
8
|
+
*
|
|
6
9
|
* ## Example Usage
|
|
7
10
|
*
|
|
8
11
|
* ### Basic
|
|
@@ -135,7 +138,7 @@ export declare class Ip extends pulumi.CustomResource {
|
|
|
135
138
|
*/
|
|
136
139
|
readonly updatedAt: pulumi.Output<string>;
|
|
137
140
|
/**
|
|
138
|
-
* The zone of the Flexible IP.
|
|
141
|
+
* `zone`) The zone of the Flexible IP.
|
|
139
142
|
*/
|
|
140
143
|
readonly zone: pulumi.Output<string>;
|
|
141
144
|
/**
|
|
@@ -196,7 +199,7 @@ export interface IpState {
|
|
|
196
199
|
*/
|
|
197
200
|
updatedAt?: pulumi.Input<string>;
|
|
198
201
|
/**
|
|
199
|
-
* The zone of the Flexible IP.
|
|
202
|
+
* `zone`) The zone of the Flexible IP.
|
|
200
203
|
*/
|
|
201
204
|
zone?: pulumi.Input<string>;
|
|
202
205
|
}
|
|
@@ -229,7 +232,7 @@ export interface IpArgs {
|
|
|
229
232
|
*/
|
|
230
233
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
231
234
|
/**
|
|
232
|
-
* The zone of the Flexible IP.
|
|
235
|
+
* `zone`) The zone of the Flexible IP.
|
|
233
236
|
*/
|
|
234
237
|
zone?: pulumi.Input<string>;
|
|
235
238
|
}
|