@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
94 lines • 2.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves information about a Scaleway Budget Alert.
*
* Use this data source to get details of an existing budget alert by its ID.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = scaleway.billing.getBudgetAlert({
* alertId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getBudgetAlert(args: GetBudgetAlertArgs, opts?: pulumi.InvokeOptions): Promise<GetBudgetAlertResult>;
/**
* A collection of arguments for invoking getBudgetAlert.
*/
export interface GetBudgetAlertArgs {
/**
* The ID of the budget alert to retrieve.
*/
alertId: string;
/**
* The ID of the budget. If not provided, it will be retrieved from the alert.
*/
budgetId?: string;
/**
* The organization ID. If not provided, the default organization configured in the provider is used.
*/
organizationId?: string;
}
/**
* A collection of values returned by getBudgetAlert.
*/
export interface GetBudgetAlertResult {
readonly alertId: string;
readonly budgetId: string;
/**
* The date and time of budget alert creation
*/
readonly createdAt: string;
/**
* The ID of the budget alert
*/
readonly id: string;
readonly organizationId: string;
/**
* Threshold percentage above which the alert is sent
*/
readonly threshold: number;
/**
* The date and time when the budget alert was last updated
*/
readonly updatedAt: string;
}
/**
* Retrieves information about a Scaleway Budget Alert.
*
* Use this data source to get details of an existing budget alert by its ID.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = scaleway.billing.getBudgetAlert({
* alertId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getBudgetAlertOutput(args: GetBudgetAlertOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBudgetAlertResult>;
/**
* A collection of arguments for invoking getBudgetAlert.
*/
export interface GetBudgetAlertOutputArgs {
/**
* The ID of the budget alert to retrieve.
*/
alertId: pulumi.Input<string>;
/**
* The ID of the budget. If not provided, it will be retrieved from the alert.
*/
budgetId?: pulumi.Input<string | undefined>;
/**
* The organization ID. If not provided, the default organization configured in the provider is used.
*/
organizationId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getBudgetAlert.d.ts.map