@pulumiverse/scaleway 1.51.1 → 1.52.0-alpha.1783449138
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/billing/budgetAlert.d.ts +107 -0
- package/billing/budgetAlert.d.ts.map +1 -0
- package/billing/budgetAlert.js +114 -0
- package/billing/budgetAlert.js.map +1 -0
- package/billing/budgetAlertNotification.d.ts +154 -0
- package/billing/budgetAlertNotification.d.ts.map +1 -0
- package/billing/budgetAlertNotification.js +132 -0
- package/billing/budgetAlertNotification.js.map +1 -0
- package/billing/getBudgetAlert.d.ts +94 -0
- package/billing/getBudgetAlert.d.ts.map +1 -0
- package/billing/getBudgetAlert.js +81 -0
- package/billing/getBudgetAlert.js.map +1 -0
- package/billing/getBudgetAlertNotification.d.ts +98 -0
- package/billing/getBudgetAlertNotification.d.ts.map +1 -0
- package/billing/getBudgetAlertNotification.js +81 -0
- package/billing/getBudgetAlertNotification.js.map +1 -0
- package/billing/index.d.ts +12 -0
- package/billing/index.d.ts.map +1 -1
- package/billing/index.js +17 -1
- package/billing/index.js.map +1 -1
- package/databaseInstance.d.ts +8 -0
- package/databaseInstance.d.ts.map +1 -1
- package/databaseInstance.js +2 -0
- package/databaseInstance.js.map +1 -1
- package/databases/getInstance.d.ts +1 -0
- package/databases/getInstance.d.ts.map +1 -1
- package/databases/getInstance.js.map +1 -1
- package/databases/instance.d.ts +8 -0
- package/databases/instance.d.ts.map +1 -1
- package/databases/instance.js +2 -0
- package/databases/instance.js.map +1 -1
- package/edgeServicesDnsStage.d.ts +12 -0
- package/edgeServicesDnsStage.d.ts.map +1 -1
- package/edgeServicesDnsStage.js +2 -0
- package/edgeServicesDnsStage.js.map +1 -1
- package/edgeservices/dnsStage.d.ts +12 -0
- package/edgeservices/dnsStage.d.ts.map +1 -1
- package/edgeservices/dnsStage.js +2 -0
- package/edgeservices/dnsStage.js.map +1 -1
- package/edgeservices/getDnsStage.d.ts +1 -0
- package/edgeservices/getDnsStage.d.ts.map +1 -1
- package/edgeservices/getDnsStage.js.map +1 -1
- package/getDatabaseInstance.d.ts +1 -0
- package/getDatabaseInstance.d.ts.map +1 -1
- package/getDatabaseInstance.js.map +1 -1
- package/job/definition.d.ts +12 -0
- package/job/definition.d.ts.map +1 -1
- package/job/definition.js +2 -0
- package/job/definition.js.map +1 -1
- package/jobDefinition.d.ts +12 -0
- package/jobDefinition.d.ts.map +1 -1
- package/jobDefinition.js +2 -0
- package/jobDefinition.js.map +1 -1
- package/kafka/cluster.d.ts +5 -5
- package/kafka/cluster.js +2 -2
- package/kubernetes/pool.d.ts +9 -3
- package/kubernetes/pool.d.ts.map +1 -1
- package/kubernetes/pool.js.map +1 -1
- package/kubernetesNodePool.d.ts +9 -3
- package/kubernetesNodePool.d.ts.map +1 -1
- package/kubernetesNodePool.js.map +1 -1
- package/object/bucketServerSideEncryptionConfiguration.d.ts +1 -1
- package/object/bucketServerSideEncryptionConfiguration.js +1 -1
- package/observability/getConfig.d.ts +5 -5
- package/package.json +2 -2
- package/types/input.d.ts +78 -2
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +142 -6
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates and manages Scaleway Budget Alerts.
|
|
4
|
+
*
|
|
5
|
+
* A Budget Alert triggers notifications when the spending threshold is reached.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
12
|
+
*
|
|
13
|
+
* const main = new scaleway.billing.Budget("main", {
|
|
14
|
+
* organizationId: "11111111-1111-1111-1111-111111111111",
|
|
15
|
+
* consumptionLimit: 10000,
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* });
|
|
18
|
+
* const mainBudgetAlert = new scaleway.billing.BudgetAlert("main", {
|
|
19
|
+
* budgetId: main.id,
|
|
20
|
+
* threshold: 80,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* Budget Alert can be imported using the alert ID.
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import scaleway:billing/budgetAlert:BudgetAlert main 11111111-1111-1111-1111-111111111111
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class BudgetAlert extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing BudgetAlert resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BudgetAlertState, opts?: pulumi.CustomResourceOptions): BudgetAlert;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of BudgetAlert. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj: any): obj is BudgetAlert;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the budget to create alert for.
|
|
50
|
+
*/
|
|
51
|
+
readonly budgetId: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The date and time of budget alert creation
|
|
54
|
+
*/
|
|
55
|
+
readonly createdAt: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Threshold percentage above which the alert is sent (0-100).
|
|
58
|
+
*/
|
|
59
|
+
readonly threshold: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* The date and time when the budget alert was last updated
|
|
62
|
+
*/
|
|
63
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a BudgetAlert resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: BudgetAlertArgs, opts?: pulumi.CustomResourceOptions);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Input properties used for looking up and filtering BudgetAlert resources.
|
|
75
|
+
*/
|
|
76
|
+
export interface BudgetAlertState {
|
|
77
|
+
/**
|
|
78
|
+
* The ID of the budget to create alert for.
|
|
79
|
+
*/
|
|
80
|
+
budgetId?: pulumi.Input<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* The date and time of budget alert creation
|
|
83
|
+
*/
|
|
84
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Threshold percentage above which the alert is sent (0-100).
|
|
87
|
+
*/
|
|
88
|
+
threshold?: pulumi.Input<number | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* The date and time when the budget alert was last updated
|
|
91
|
+
*/
|
|
92
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The set of arguments for constructing a BudgetAlert resource.
|
|
96
|
+
*/
|
|
97
|
+
export interface BudgetAlertArgs {
|
|
98
|
+
/**
|
|
99
|
+
* The ID of the budget to create alert for.
|
|
100
|
+
*/
|
|
101
|
+
budgetId: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Threshold percentage above which the alert is sent (0-100).
|
|
104
|
+
*/
|
|
105
|
+
threshold: pulumi.Input<number>;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=budgetAlert.d.ts.map
|
|
@@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C,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.BudgetAlert = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Creates and manages Scaleway Budget Alerts.
|
|
33
|
+
*
|
|
34
|
+
* A Budget Alert triggers notifications when the spending threshold is reached.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
41
|
+
*
|
|
42
|
+
* const main = new scaleway.billing.Budget("main", {
|
|
43
|
+
* organizationId: "11111111-1111-1111-1111-111111111111",
|
|
44
|
+
* consumptionLimit: 10000,
|
|
45
|
+
* enabled: true,
|
|
46
|
+
* });
|
|
47
|
+
* const mainBudgetAlert = new scaleway.billing.BudgetAlert("main", {
|
|
48
|
+
* budgetId: main.id,
|
|
49
|
+
* threshold: 80,
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* Budget Alert can be imported using the alert ID.
|
|
56
|
+
*
|
|
57
|
+
* ```sh
|
|
58
|
+
* $ pulumi import scaleway:billing/budgetAlert:BudgetAlert main 11111111-1111-1111-1111-111111111111
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
class BudgetAlert extends pulumi.CustomResource {
|
|
62
|
+
/**
|
|
63
|
+
* Get an existing BudgetAlert resource's state with the given name, ID, and optional extra
|
|
64
|
+
* properties used to qualify the lookup.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resulting resource.
|
|
67
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
68
|
+
* @param state Any extra arguments used during the lookup.
|
|
69
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
|
+
*/
|
|
71
|
+
static get(name, id, state, opts) {
|
|
72
|
+
return new BudgetAlert(name, state, { ...opts, id: id });
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
static __pulumiType = 'scaleway:billing/budgetAlert:BudgetAlert';
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of BudgetAlert. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj) {
|
|
81
|
+
if (obj === undefined || obj === null) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return obj['__pulumiType'] === BudgetAlert.__pulumiType;
|
|
85
|
+
}
|
|
86
|
+
constructor(name, argsOrState, opts) {
|
|
87
|
+
let resourceInputs = {};
|
|
88
|
+
opts = opts || {};
|
|
89
|
+
if (opts.id) {
|
|
90
|
+
const state = argsOrState;
|
|
91
|
+
resourceInputs["budgetId"] = state?.budgetId;
|
|
92
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
93
|
+
resourceInputs["threshold"] = state?.threshold;
|
|
94
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
const args = argsOrState;
|
|
98
|
+
if (args?.budgetId === undefined && !opts.urn) {
|
|
99
|
+
throw new Error("Missing required property 'budgetId'");
|
|
100
|
+
}
|
|
101
|
+
if (args?.threshold === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'threshold'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["budgetId"] = args?.budgetId;
|
|
105
|
+
resourceInputs["threshold"] = args?.threshold;
|
|
106
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
super(BudgetAlert.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.BudgetAlert = BudgetAlert;
|
|
114
|
+
//# sourceMappingURL=budgetAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetAlert.js","sourceRoot":"","sources":["../../billing/budgetAlert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0CAA0C,CAAC;IAEjF;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;SAClD;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA7EL,kCA8EC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates and manages Scaleway Budget Alert Notifications.
|
|
4
|
+
*
|
|
5
|
+
* A Budget Alert Notification defines how to notify recipients when a budget alert is triggered.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
12
|
+
*
|
|
13
|
+
* const main = new scaleway.billing.Budget("main", {
|
|
14
|
+
* organizationId: "11111111-1111-1111-1111-111111111111",
|
|
15
|
+
* consumptionLimit: 10000,
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* });
|
|
18
|
+
* const mainBudgetAlert = new scaleway.billing.BudgetAlert("main", {
|
|
19
|
+
* budgetId: main.id,
|
|
20
|
+
* threshold: 80,
|
|
21
|
+
* });
|
|
22
|
+
* const email = new scaleway.billing.BudgetAlertNotification("email", {
|
|
23
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
24
|
+
* emailAddresses: [
|
|
25
|
+
* "alerts@example.com",
|
|
26
|
+
* "billing@example.com",
|
|
27
|
+
* ],
|
|
28
|
+
* });
|
|
29
|
+
* const sms = new scaleway.billing.BudgetAlertNotification("sms", {
|
|
30
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
31
|
+
* smsPhoneNumbers: ["+33612345678"],
|
|
32
|
+
* });
|
|
33
|
+
* const webhook = new scaleway.billing.BudgetAlertNotification("webhook", {
|
|
34
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
35
|
+
* webhookUrls: ["https://example.com/webhook"],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* Budget Alert Notification can be imported using the notification ID.
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import scaleway:billing/budgetAlertNotification:BudgetAlertNotification main 11111111-1111-1111-1111-111111111111
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class BudgetAlertNotification extends pulumi.CustomResource {
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing BudgetAlertNotification 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?: BudgetAlertNotificationState, opts?: pulumi.CustomResourceOptions): BudgetAlertNotification;
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of BudgetAlertNotification. 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 BudgetAlertNotification;
|
|
63
|
+
/**
|
|
64
|
+
* The ID of the budget alert to create notification for.
|
|
65
|
+
*/
|
|
66
|
+
readonly budgetAlertId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The date and time of budget alert notification creation
|
|
69
|
+
*/
|
|
70
|
+
readonly createdAt: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* List of email addresses to receive email notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
73
|
+
*/
|
|
74
|
+
readonly emailAddresses: pulumi.Output<string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* List of phone numbers to receive SMS notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
77
|
+
*/
|
|
78
|
+
readonly smsPhoneNumbers: pulumi.Output<string[] | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* The type of notification (sms, email, or webhook)
|
|
81
|
+
*/
|
|
82
|
+
readonly type: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The date and time when the budget alert notification was last updated
|
|
85
|
+
*/
|
|
86
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* List of webhook URLs to receive webhook notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
89
|
+
*/
|
|
90
|
+
readonly webhookUrls: pulumi.Output<string[] | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a BudgetAlertNotification resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: BudgetAlertNotificationArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering BudgetAlertNotification resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface BudgetAlertNotificationState {
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the budget alert to create notification for.
|
|
106
|
+
*/
|
|
107
|
+
budgetAlertId?: pulumi.Input<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* The date and time of budget alert notification creation
|
|
110
|
+
*/
|
|
111
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* List of email addresses to receive email notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
114
|
+
*/
|
|
115
|
+
emailAddresses?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* List of phone numbers to receive SMS notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
118
|
+
*/
|
|
119
|
+
smsPhoneNumbers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* The type of notification (sms, email, or webhook)
|
|
122
|
+
*/
|
|
123
|
+
type?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* The date and time when the budget alert notification was last updated
|
|
126
|
+
*/
|
|
127
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* List of webhook URLs to receive webhook notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
130
|
+
*/
|
|
131
|
+
webhookUrls?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The set of arguments for constructing a BudgetAlertNotification resource.
|
|
135
|
+
*/
|
|
136
|
+
export interface BudgetAlertNotificationArgs {
|
|
137
|
+
/**
|
|
138
|
+
* The ID of the budget alert to create notification for.
|
|
139
|
+
*/
|
|
140
|
+
budgetAlertId: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* List of email addresses to receive email notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
143
|
+
*/
|
|
144
|
+
emailAddresses?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* List of phone numbers to receive SMS notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
147
|
+
*/
|
|
148
|
+
smsPhoneNumbers?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* List of webhook URLs to receive webhook notifications. Precisely one of sms_phone_numbers, email_addresses, or webhookUrls must be set.
|
|
151
|
+
*/
|
|
152
|
+
webhookUrls?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=budgetAlertNotification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetAlertNotification.d.ts","sourceRoot":"","sources":["../../billing/budgetAlertNotification.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAA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AAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAClE"}
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.BudgetAlertNotification = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Creates and manages Scaleway Budget Alert Notifications.
|
|
33
|
+
*
|
|
34
|
+
* A Budget Alert Notification defines how to notify recipients when a budget alert is triggered.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
41
|
+
*
|
|
42
|
+
* const main = new scaleway.billing.Budget("main", {
|
|
43
|
+
* organizationId: "11111111-1111-1111-1111-111111111111",
|
|
44
|
+
* consumptionLimit: 10000,
|
|
45
|
+
* enabled: true,
|
|
46
|
+
* });
|
|
47
|
+
* const mainBudgetAlert = new scaleway.billing.BudgetAlert("main", {
|
|
48
|
+
* budgetId: main.id,
|
|
49
|
+
* threshold: 80,
|
|
50
|
+
* });
|
|
51
|
+
* const email = new scaleway.billing.BudgetAlertNotification("email", {
|
|
52
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
53
|
+
* emailAddresses: [
|
|
54
|
+
* "alerts@example.com",
|
|
55
|
+
* "billing@example.com",
|
|
56
|
+
* ],
|
|
57
|
+
* });
|
|
58
|
+
* const sms = new scaleway.billing.BudgetAlertNotification("sms", {
|
|
59
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
60
|
+
* smsPhoneNumbers: ["+33612345678"],
|
|
61
|
+
* });
|
|
62
|
+
* const webhook = new scaleway.billing.BudgetAlertNotification("webhook", {
|
|
63
|
+
* budgetAlertId: mainBudgetAlert.id,
|
|
64
|
+
* webhookUrls: ["https://example.com/webhook"],
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ## Import
|
|
69
|
+
*
|
|
70
|
+
* Budget Alert Notification can be imported using the notification ID.
|
|
71
|
+
*
|
|
72
|
+
* ```sh
|
|
73
|
+
* $ pulumi import scaleway:billing/budgetAlertNotification:BudgetAlertNotification main 11111111-1111-1111-1111-111111111111
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
class BudgetAlertNotification extends pulumi.CustomResource {
|
|
77
|
+
/**
|
|
78
|
+
* Get an existing BudgetAlertNotification resource's state with the given name, ID, and optional extra
|
|
79
|
+
* properties used to qualify the lookup.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resulting resource.
|
|
82
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
83
|
+
* @param state Any extra arguments used during the lookup.
|
|
84
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
85
|
+
*/
|
|
86
|
+
static get(name, id, state, opts) {
|
|
87
|
+
return new BudgetAlertNotification(name, state, { ...opts, id: id });
|
|
88
|
+
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
static __pulumiType = 'scaleway:billing/budgetAlertNotification:BudgetAlertNotification';
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if the given object is an instance of BudgetAlertNotification. This is designed to work even
|
|
93
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
94
|
+
*/
|
|
95
|
+
static isInstance(obj) {
|
|
96
|
+
if (obj === undefined || obj === null) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
return obj['__pulumiType'] === BudgetAlertNotification.__pulumiType;
|
|
100
|
+
}
|
|
101
|
+
constructor(name, argsOrState, opts) {
|
|
102
|
+
let resourceInputs = {};
|
|
103
|
+
opts = opts || {};
|
|
104
|
+
if (opts.id) {
|
|
105
|
+
const state = argsOrState;
|
|
106
|
+
resourceInputs["budgetAlertId"] = state?.budgetAlertId;
|
|
107
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
108
|
+
resourceInputs["emailAddresses"] = state?.emailAddresses;
|
|
109
|
+
resourceInputs["smsPhoneNumbers"] = state?.smsPhoneNumbers;
|
|
110
|
+
resourceInputs["type"] = state?.type;
|
|
111
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
112
|
+
resourceInputs["webhookUrls"] = state?.webhookUrls;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const args = argsOrState;
|
|
116
|
+
if (args?.budgetAlertId === undefined && !opts.urn) {
|
|
117
|
+
throw new Error("Missing required property 'budgetAlertId'");
|
|
118
|
+
}
|
|
119
|
+
resourceInputs["budgetAlertId"] = args?.budgetAlertId;
|
|
120
|
+
resourceInputs["emailAddresses"] = args?.emailAddresses;
|
|
121
|
+
resourceInputs["smsPhoneNumbers"] = args?.smsPhoneNumbers;
|
|
122
|
+
resourceInputs["webhookUrls"] = args?.webhookUrls;
|
|
123
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
124
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
126
|
+
}
|
|
127
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
128
|
+
super(BudgetAlertNotification.__pulumiType, name, resourceInputs, opts);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.BudgetAlertNotification = BudgetAlertNotification;
|
|
132
|
+
//# sourceMappingURL=budgetAlertNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetAlertNotification.js","sourceRoot":"","sources":["../../billing/budgetAlertNotification.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kEAAkE,CAAC;IAEzG;;;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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAA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AAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA5FL,0DA6FC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves information about a Scaleway Budget Alert.
|
|
4
|
+
*
|
|
5
|
+
* Use this data source to get details of an existing budget alert by its ID.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
12
|
+
*
|
|
13
|
+
* const main = scaleway.billing.getBudgetAlert({
|
|
14
|
+
* alertId: "11111111-1111-1111-1111-111111111111",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function getBudgetAlert(args: GetBudgetAlertArgs, opts?: pulumi.InvokeOptions): Promise<GetBudgetAlertResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking getBudgetAlert.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetBudgetAlertArgs {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the budget alert to retrieve.
|
|
25
|
+
*/
|
|
26
|
+
alertId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the budget. If not provided, it will be retrieved from the alert.
|
|
29
|
+
*/
|
|
30
|
+
budgetId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The organization ID. If not provided, the default organization configured in the provider is used.
|
|
33
|
+
*/
|
|
34
|
+
organizationId?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A collection of values returned by getBudgetAlert.
|
|
38
|
+
*/
|
|
39
|
+
export interface GetBudgetAlertResult {
|
|
40
|
+
readonly alertId: string;
|
|
41
|
+
readonly budgetId: string;
|
|
42
|
+
/**
|
|
43
|
+
* The date and time of budget alert creation
|
|
44
|
+
*/
|
|
45
|
+
readonly createdAt: string;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the budget alert
|
|
48
|
+
*/
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly organizationId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Threshold percentage above which the alert is sent
|
|
53
|
+
*/
|
|
54
|
+
readonly threshold: number;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time when the budget alert was last updated
|
|
57
|
+
*/
|
|
58
|
+
readonly updatedAt: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves information about a Scaleway Budget Alert.
|
|
62
|
+
*
|
|
63
|
+
* Use this data source to get details of an existing budget alert by its ID.
|
|
64
|
+
*
|
|
65
|
+
* ## Example Usage
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
70
|
+
*
|
|
71
|
+
* const main = scaleway.billing.getBudgetAlert({
|
|
72
|
+
* alertId: "11111111-1111-1111-1111-111111111111",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare function getBudgetAlertOutput(args: GetBudgetAlertOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBudgetAlertResult>;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of arguments for invoking getBudgetAlert.
|
|
79
|
+
*/
|
|
80
|
+
export interface GetBudgetAlertOutputArgs {
|
|
81
|
+
/**
|
|
82
|
+
* The ID of the budget alert to retrieve.
|
|
83
|
+
*/
|
|
84
|
+
alertId: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the budget. If not provided, it will be retrieved from the alert.
|
|
87
|
+
*/
|
|
88
|
+
budgetId?: pulumi.Input<string | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* The organization ID. If not provided, the default organization configured in the provider is used.
|
|
91
|
+
*/
|
|
92
|
+
organizationId?: pulumi.Input<string | undefined>;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=getBudgetAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBudgetAlert.d.ts","sourceRoot":"","sources":["../../billing/getBudgetAlert.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAOnH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC9B;AACD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAO3I;AAED;;GAEG;AACH,MAAM,WA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