ScheduledActionArgs

data class ScheduledActionArgs(val dayOfMonth: Output<Int>? = null, val daysOfWeeks: Output<List<String>>? = null, val displayName: Output<String>? = null, val emailAddressSender: Output<String>? = null, val emailAddresses: Output<List<String>>? = null, val emailSubject: Output<String>? = null, val endDate: Output<String>? = null, val frequency: Output<String>? = null, val hourOfDay: Output<Int>? = null, val message: Output<String>? = null, val name: Output<String>? = null, val startDate: Output<String>? = null, val viewId: Output<String>? = null, val weeksOfMonths: Output<List<String>>? = null) : ConvertibleToJava<ScheduledActionArgs>

Manages an Azure Cost Management Scheduled Action.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.costmanagement.ScheduledAction;
import com.pulumi.azure.costmanagement.ScheduledActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ScheduledAction("example", ScheduledActionArgs.builder()
.displayName("Report Last 6 Months")
.emailAddressSender("platformteam@test.com")
.emailAddresses("example@example.com")
.emailSubject("Cost Management Report")
.endDate("2023-02-02T00:00:00Z")
.frequency("Daily")
.message("Hi all, take a look at last 6 months spending!")
.startDate("2023-01-02T00:00:00Z")
.viewId("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService")
.build());
}
}

Import

Azure Cost Management Scheduled Actions can be imported using the resource id, e.g.

$ pulumi import azure:costmanagement/scheduledAction:ScheduledAction example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/scheduledaction1

Constructors

Link copied to clipboard
fun ScheduledActionArgs(dayOfMonth: Output<Int>? = null, daysOfWeeks: Output<List<String>>? = null, displayName: Output<String>? = null, emailAddressSender: Output<String>? = null, emailAddresses: Output<List<String>>? = null, emailSubject: Output<String>? = null, endDate: Output<String>? = null, frequency: Output<String>? = null, hourOfDay: Output<Int>? = null, message: Output<String>? = null, name: Output<String>? = null, startDate: Output<String>? = null, viewId: Output<String>? = null, weeksOfMonths: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ScheduledActionArgs

Properties

Link copied to clipboard
val dayOfMonth: Output<Int>? = null

UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly.

Link copied to clipboard
val daysOfWeeks: Output<List<String>>? = null

Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.

Link copied to clipboard
val displayName: Output<String>? = null

User visible input name of the Cost Management Scheduled Action.

Link copied to clipboard
val emailAddresses: Output<List<String>>? = null

Specifies a list of email addresses that will receive the Scheduled Action.

Link copied to clipboard
val emailAddressSender: Output<String>? = null

Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.

Link copied to clipboard
val emailSubject: Output<String>? = null

Subject of the email. Length is limited to 70 characters.

Link copied to clipboard
val endDate: Output<String>? = null

The end date and time of the Scheduled Action (UTC).

Link copied to clipboard
val frequency: Output<String>? = null

Frequency of the schedule. Possible values are Daily, Monthly and Weekly. Value Monthly requires either weeks_of_month and days_of_week or day_of_month to be specified. Value Weekly requires days_of_week to be specified.

Link copied to clipboard
val hourOfDay: Output<Int>? = null

UTC time at which cost analysis data will be emailed. Must be between 0 and 23.

Link copied to clipboard
val message: Output<String>? = null

Message to be added in the email. Length is limited to 250 characters.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard
val startDate: Output<String>? = null

The start date and time of the Scheduled Action (UTC).

Link copied to clipboard
val viewId: Output<String>? = null

The ID of the Cost Management View that is used by the Scheduled Action.

Link copied to clipboard
val weeksOfMonths: Output<List<String>>? = null

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 days_of_week.