import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Cost Management Scheduled Action. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.costmanagement.ScheduledAction("example", { * name: "examplescheduledaction", * displayName: "Report Last 6 Months", * viewId: "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService", * emailAddressSender: "platformteam@test.com", * emailSubject: "Cost Management Report", * emailAddresses: ["example@example.com"], * message: "Hi all, take a look at last 6 months spending!", * frequency: "Daily", * startDate: "2023-01-02T00:00:00Z", * endDate: "2023-02-02T00:00:00Z", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.CostManagement` - 2023-08-01 * * ## Import * * Azure Cost Management Scheduled Actions can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:costmanagement/scheduledAction:ScheduledAction example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/scheduledaction1 * ``` */ export declare class ScheduledAction extends pulumi.CustomResource { /** * Get an existing ScheduledAction resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ScheduledActionState, opts?: pulumi.CustomResourceOptions): ScheduledAction; /** * Returns true if the given object is an instance of ScheduledAction. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ScheduledAction; /** * UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. */ readonly dayOfMonth: pulumi.Output; /** * Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. */ readonly daysOfWeeks: pulumi.Output; /** * User visible input name of the Cost Management Scheduled Action. */ readonly displayName: pulumi.Output; /** * Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. */ readonly emailAddressSender: pulumi.Output; /** * Specifies a list of email addresses that will receive the Scheduled Action. */ readonly emailAddresses: pulumi.Output; /** * Subject of the email. Length is limited to 70 characters. */ readonly emailSubject: pulumi.Output; /** * The end date and time of the Scheduled Action (UTC). */ readonly endDate: pulumi.Output; /** * Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. */ readonly frequency: pulumi.Output; /** * UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. */ readonly hourOfDay: pulumi.Output; /** * Message to be added in the email. Length is limited to 250 characters. */ readonly message: pulumi.Output; /** * The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. */ readonly name: pulumi.Output; /** * The start date and time of the Scheduled Action (UTC). */ readonly startDate: pulumi.Output; /** * The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. */ readonly viewId: pulumi.Output; /** * Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. */ readonly weeksOfMonths: pulumi.Output; /** * Create a ScheduledAction resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ScheduledActionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScheduledAction resources. */ export interface ScheduledActionState { /** * UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. */ dayOfMonth?: pulumi.Input; /** * Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. */ daysOfWeeks?: pulumi.Input[]>; /** * User visible input name of the Cost Management Scheduled Action. */ displayName?: pulumi.Input; /** * Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. */ emailAddressSender?: pulumi.Input; /** * Specifies a list of email addresses that will receive the Scheduled Action. */ emailAddresses?: pulumi.Input[]>; /** * Subject of the email. Length is limited to 70 characters. */ emailSubject?: pulumi.Input; /** * The end date and time of the Scheduled Action (UTC). */ endDate?: pulumi.Input; /** * Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. */ frequency?: pulumi.Input; /** * UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. */ hourOfDay?: pulumi.Input; /** * Message to be added in the email. Length is limited to 250 characters. */ message?: pulumi.Input; /** * The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. */ name?: pulumi.Input; /** * The start date and time of the Scheduled Action (UTC). */ startDate?: pulumi.Input; /** * The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. */ viewId?: pulumi.Input; /** * Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. */ weeksOfMonths?: pulumi.Input[]>; } /** * The set of arguments for constructing a ScheduledAction resource. */ export interface ScheduledActionArgs { /** * UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. */ dayOfMonth?: pulumi.Input; /** * Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. */ daysOfWeeks?: pulumi.Input[]>; /** * User visible input name of the Cost Management Scheduled Action. */ displayName: pulumi.Input; /** * Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. */ emailAddressSender: pulumi.Input; /** * Specifies a list of email addresses that will receive the Scheduled Action. */ emailAddresses: pulumi.Input[]>; /** * Subject of the email. Length is limited to 70 characters. */ emailSubject: pulumi.Input; /** * The end date and time of the Scheduled Action (UTC). */ endDate: pulumi.Input; /** * Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. */ frequency: pulumi.Input; /** * UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. */ hourOfDay?: pulumi.Input; /** * Message to be added in the email. Length is limited to 250 characters. */ message?: pulumi.Input; /** * The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. */ name?: pulumi.Input; /** * The start date and time of the Scheduled Action (UTC). */ startDate: pulumi.Input; /** * The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. */ viewId: pulumi.Input; /** * Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. */ weeksOfMonths?: pulumi.Input[]>; }