Scheduled action definition.
Uses Azure REST API version 2024-08-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01.
Other available API versions: 2022-04-01-preview, 2022-06-01-preview, 2022-10-01, 2023-03-01, 2023-04-01-preview, 2023-07-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native costmanagement [ApiVersion]. See the version guide for details.
Example Usage
CreateOrUpdateInsightAlertScheduledActionByScope
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scheduledActionByScope = new AzureNative.CostManagement.ScheduledActionByScope("scheduledActionByScope", new()
{
DisplayName = "Daily anomaly by resource",
Kind = AzureNative.CostManagement.ScheduledActionKind.InsightAlert,
Name = "dailyAnomalyByResource",
Notification = new AzureNative.CostManagement.Inputs.NotificationPropertiesArgs
{
Subject = "Cost anomaly detected in the resource",
To = new[]
{
"user@gmail.com",
"team@gmail.com",
},
},
Schedule = new AzureNative.CostManagement.Inputs.SchedulePropertiesArgs
{
EndDate = "2021-06-19T22:21:51.1287144Z",
Frequency = AzureNative.CostManagement.ScheduleFrequency.Daily,
StartDate = "2020-06-19T22:21:51.1287144Z",
},
Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
Status = AzureNative.CostManagement.ScheduledActionStatus.Enabled,
ViewId = "/providers/Microsoft.CostManagement/views/swaggerExample",
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewScheduledActionByScope(ctx, "scheduledActionByScope", &costmanagement.ScheduledActionByScopeArgs{
DisplayName: pulumi.String("Daily anomaly by resource"),
Kind: pulumi.String(costmanagement.ScheduledActionKindInsightAlert),
Name: pulumi.String("dailyAnomalyByResource"),
Notification: &costmanagement.NotificationPropertiesArgs{
Subject: pulumi.String("Cost anomaly detected in the resource"),
To: pulumi.StringArray{
pulumi.String("user@gmail.com"),
pulumi.String("team@gmail.com"),
},
},
Schedule: &costmanagement.SchedulePropertiesArgs{
EndDate: pulumi.String("2021-06-19T22:21:51.1287144Z"),
Frequency: pulumi.String(costmanagement.ScheduleFrequencyDaily),
StartDate: pulumi.String("2020-06-19T22:21:51.1287144Z"),
},
Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
Status: pulumi.String(costmanagement.ScheduledActionStatusEnabled),
ViewId: pulumi.String("/providers/Microsoft.CostManagement/views/swaggerExample"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_costmanagement_scheduled_action_by_scope" "scheduledActionByScope" {
lifecycle {
create_before_destroy = true
}
display_name = "Daily anomaly by resource"
kind = "InsightAlert"
name = "dailyAnomalyByResource"
notification = {
subject = "Cost anomaly detected in the resource"
to = ["user@gmail.com", "team@gmail.com"]
}
schedule = {
end_date = "2021-06-19T22:21:51.1287144Z"
frequency = "Daily"
start_date = "2020-06-19T22:21:51.1287144Z"
}
scope = "subscriptions/00000000-0000-0000-0000-000000000000"
status = "Enabled"
view_id = "/providers/Microsoft.CostManagement/views/swaggerExample"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.ScheduledActionByScope;
import com.pulumi.azurenative.costmanagement.ScheduledActionByScopeArgs;
import com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs;
import com.pulumi.azurenative.costmanagement.inputs.SchedulePropertiesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 scheduledActionByScope = new ScheduledActionByScope("scheduledActionByScope", ScheduledActionByScopeArgs.builder()
.displayName("Daily anomaly by resource")
.kind("InsightAlert")
.name("dailyAnomalyByResource")
.notification(NotificationPropertiesArgs.builder()
.subject("Cost anomaly detected in the resource")
.to(
"user@gmail.com",
"team@gmail.com")
.build())
.schedule(SchedulePropertiesArgs.builder()
.endDate("2021-06-19T22:21:51.1287144Z")
.frequency("Daily")
.startDate("2020-06-19T22:21:51.1287144Z")
.build())
.scope("subscriptions/00000000-0000-0000-0000-000000000000")
.status("Enabled")
.viewId("/providers/Microsoft.CostManagement/views/swaggerExample")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledActionByScope = new azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScope", {
displayName: "Daily anomaly by resource",
kind: azure_native.costmanagement.ScheduledActionKind.InsightAlert,
name: "dailyAnomalyByResource",
notification: {
subject: "Cost anomaly detected in the resource",
to: [
"user@gmail.com",
"team@gmail.com",
],
},
schedule: {
endDate: "2021-06-19T22:21:51.1287144Z",
frequency: azure_native.costmanagement.ScheduleFrequency.Daily,
startDate: "2020-06-19T22:21:51.1287144Z",
},
scope: "subscriptions/00000000-0000-0000-0000-000000000000",
status: azure_native.costmanagement.ScheduledActionStatus.Enabled,
viewId: "/providers/Microsoft.CostManagement/views/swaggerExample",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_action_by_scope = azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScope",
display_name="Daily anomaly by resource",
kind=azure_native.costmanagement.ScheduledActionKind.INSIGHT_ALERT,
name="dailyAnomalyByResource",
notification={
"subject": "Cost anomaly detected in the resource",
"to": [
"user@gmail.com",
"team@gmail.com",
],
},
schedule={
"end_date": "2021-06-19T22:21:51.1287144Z",
"frequency": azure_native.costmanagement.ScheduleFrequency.DAILY,
"start_date": "2020-06-19T22:21:51.1287144Z",
},
scope="subscriptions/00000000-0000-0000-0000-000000000000",
status=azure_native.costmanagement.ScheduledActionStatus.ENABLED,
view_id="/providers/Microsoft.CostManagement/views/swaggerExample")
resources:
scheduledActionByScope:
type: azure-native:costmanagement:ScheduledActionByScope
properties:
displayName: Daily anomaly by resource
kind: InsightAlert
name: dailyAnomalyByResource
notification:
subject: Cost anomaly detected in the resource
to:
- user@gmail.com
- team@gmail.com
schedule:
endDate: 2021-06-19T22:21:51.1287144Z
frequency: Daily
startDate: 2020-06-19T22:21:51.1287144Z
scope: subscriptions/00000000-0000-0000-0000-000000000000
status: Enabled
viewId: /providers/Microsoft.CostManagement/views/swaggerExample
CreateOrUpdateScheduledActionByScope
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scheduledActionByScope = new AzureNative.CostManagement.ScheduledActionByScope("scheduledActionByScope", new()
{
DisplayName = "Monthly Cost By Resource",
FileDestination = new AzureNative.CostManagement.Inputs.FileDestinationArgs
{
FileFormats =
{
AzureNative.CostManagement.FileFormat.Csv,
},
},
Kind = AzureNative.CostManagement.ScheduledActionKind.Email,
Name = "monthlyCostByResource",
Notification = new AzureNative.CostManagement.Inputs.NotificationPropertiesArgs
{
Subject = "Cost by resource this month",
To = new[]
{
"user@gmail.com",
"team@gmail.com",
},
},
Schedule = new AzureNative.CostManagement.Inputs.SchedulePropertiesArgs
{
DaysOfWeek =
{
AzureNative.CostManagement.DaysOfWeek.Monday,
},
EndDate = "2021-06-19T22:21:51.1287144Z",
Frequency = AzureNative.CostManagement.ScheduleFrequency.Monthly,
HourOfDay = 10,
StartDate = "2020-06-19T22:21:51.1287144Z",
WeeksOfMonth =
{
AzureNative.CostManagement.WeeksOfMonth.First,
AzureNative.CostManagement.WeeksOfMonth.Third,
},
},
Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
Status = AzureNative.CostManagement.ScheduledActionStatus.Enabled,
ViewId = "/providers/Microsoft.CostManagement/views/swaggerExample",
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewScheduledActionByScope(ctx, "scheduledActionByScope", &costmanagement.ScheduledActionByScopeArgs{
DisplayName: pulumi.String("Monthly Cost By Resource"),
FileDestination: &costmanagement.FileDestinationArgs{
FileFormats: pulumi.StringArray{
pulumi.String(costmanagement.FileFormatCsv),
},
},
Kind: pulumi.String(costmanagement.ScheduledActionKindEmail),
Name: pulumi.String("monthlyCostByResource"),
Notification: &costmanagement.NotificationPropertiesArgs{
Subject: pulumi.String("Cost by resource this month"),
To: pulumi.StringArray{
pulumi.String("user@gmail.com"),
pulumi.String("team@gmail.com"),
},
},
Schedule: &costmanagement.SchedulePropertiesArgs{
DaysOfWeek: pulumi.StringArray{
pulumi.String(costmanagement.DaysOfWeekMonday),
},
EndDate: pulumi.String("2021-06-19T22:21:51.1287144Z"),
Frequency: pulumi.String(costmanagement.ScheduleFrequencyMonthly),
HourOfDay: pulumi.Int(10),
StartDate: pulumi.String("2020-06-19T22:21:51.1287144Z"),
WeeksOfMonth: pulumi.StringArray{
pulumi.String(costmanagement.WeeksOfMonthFirst),
pulumi.String(costmanagement.WeeksOfMonthThird),
},
},
Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
Status: pulumi.String(costmanagement.ScheduledActionStatusEnabled),
ViewId: pulumi.String("/providers/Microsoft.CostManagement/views/swaggerExample"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_costmanagement_scheduled_action_by_scope" "scheduledActionByScope" {
lifecycle {
create_before_destroy = true
}
display_name = "Monthly Cost By Resource"
file_destination = {
file_formats = ["Csv"]
}
kind = "Email"
name = "monthlyCostByResource"
notification = {
subject = "Cost by resource this month"
to = ["user@gmail.com", "team@gmail.com"]
}
schedule = {
days_of_week = ["Monday"]
end_date = "2021-06-19T22:21:51.1287144Z"
frequency = "Monthly"
hour_of_day = 10
start_date = "2020-06-19T22:21:51.1287144Z"
weeks_of_month = ["First", "Third"]
}
scope = "subscriptions/00000000-0000-0000-0000-000000000000"
status = "Enabled"
view_id = "/providers/Microsoft.CostManagement/views/swaggerExample"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.ScheduledActionByScope;
import com.pulumi.azurenative.costmanagement.ScheduledActionByScopeArgs;
import com.pulumi.azurenative.costmanagement.inputs.FileDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs;
import com.pulumi.azurenative.costmanagement.inputs.SchedulePropertiesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 scheduledActionByScope = new ScheduledActionByScope("scheduledActionByScope", ScheduledActionByScopeArgs.builder()
.displayName("Monthly Cost By Resource")
.fileDestination(FileDestinationArgs.builder()
.fileFormats("Csv")
.build())
.kind("Email")
.name("monthlyCostByResource")
.notification(NotificationPropertiesArgs.builder()
.subject("Cost by resource this month")
.to(
"user@gmail.com",
"team@gmail.com")
.build())
.schedule(SchedulePropertiesArgs.builder()
.daysOfWeek("Monday")
.endDate("2021-06-19T22:21:51.1287144Z")
.frequency("Monthly")
.hourOfDay(10)
.startDate("2020-06-19T22:21:51.1287144Z")
.weeksOfMonth(
"First",
"Third")
.build())
.scope("subscriptions/00000000-0000-0000-0000-000000000000")
.status("Enabled")
.viewId("/providers/Microsoft.CostManagement/views/swaggerExample")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scheduledActionByScope = new azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScope", {
displayName: "Monthly Cost By Resource",
fileDestination: {
fileFormats: [azure_native.costmanagement.FileFormat.Csv],
},
kind: azure_native.costmanagement.ScheduledActionKind.Email,
name: "monthlyCostByResource",
notification: {
subject: "Cost by resource this month",
to: [
"user@gmail.com",
"team@gmail.com",
],
},
schedule: {
daysOfWeek: [azure_native.costmanagement.DaysOfWeek.Monday],
endDate: "2021-06-19T22:21:51.1287144Z",
frequency: azure_native.costmanagement.ScheduleFrequency.Monthly,
hourOfDay: 10,
startDate: "2020-06-19T22:21:51.1287144Z",
weeksOfMonth: [
azure_native.costmanagement.WeeksOfMonth.First,
azure_native.costmanagement.WeeksOfMonth.Third,
],
},
scope: "subscriptions/00000000-0000-0000-0000-000000000000",
status: azure_native.costmanagement.ScheduledActionStatus.Enabled,
viewId: "/providers/Microsoft.CostManagement/views/swaggerExample",
});
import pulumi
import pulumi_azure_native as azure_native
scheduled_action_by_scope = azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScope",
display_name="Monthly Cost By Resource",
file_destination={
"file_formats": [azure_native.costmanagement.FileFormat.CSV],
},
kind=azure_native.costmanagement.ScheduledActionKind.EMAIL,
name="monthlyCostByResource",
notification={
"subject": "Cost by resource this month",
"to": [
"user@gmail.com",
"team@gmail.com",
],
},
schedule={
"days_of_week": [azure_native.costmanagement.DaysOfWeek.MONDAY],
"end_date": "2021-06-19T22:21:51.1287144Z",
"frequency": azure_native.costmanagement.ScheduleFrequency.MONTHLY,
"hour_of_day": 10,
"start_date": "2020-06-19T22:21:51.1287144Z",
"weeks_of_month": [
azure_native.costmanagement.WeeksOfMonth.FIRST,
azure_native.costmanagement.WeeksOfMonth.THIRD,
],
},
scope="subscriptions/00000000-0000-0000-0000-000000000000",
status=azure_native.costmanagement.ScheduledActionStatus.ENABLED,
view_id="/providers/Microsoft.CostManagement/views/swaggerExample")
resources:
scheduledActionByScope:
type: azure-native:costmanagement:ScheduledActionByScope
properties:
displayName: Monthly Cost By Resource
fileDestination:
fileFormats:
- Csv
kind: Email
name: monthlyCostByResource
notification:
subject: Cost by resource this month
to:
- user@gmail.com
- team@gmail.com
schedule:
daysOfWeek:
- Monday
endDate: 2021-06-19T22:21:51.1287144Z
frequency: Monthly
hourOfDay: 10
startDate: 2020-06-19T22:21:51.1287144Z
weeksOfMonth:
- First
- Third
scope: subscriptions/00000000-0000-0000-0000-000000000000
status: Enabled
viewId: /providers/Microsoft.CostManagement/views/swaggerExample
Create ScheduledActionByScope Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def ScheduledActionByScope(resource_name: str,
args: ScheduledActionByScopeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduledActionByScope(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
notification: Optional[NotificationPropertiesArgs] = None,
schedule: Optional[SchedulePropertiesArgs] = None,
scope: Optional[str] = None,
status: Optional[Union[str, ScheduledActionStatus]] = None,
view_id: Optional[str] = None,
file_destination: Optional[FileDestinationArgs] = None,
kind: Optional[Union[str, ScheduledActionKind]] = None,
name: Optional[str] = None,
notification_email: Optional[str] = None)
type: azure-native:costmanagement:ScheduledActionByScope
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_costmanagement_scheduled_action_by_scope" "name" {
# resource properties
}
Parameters
- name
String
- The unique name of the resource.
- args
ScheduledActionByScopeArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var scheduledActionByScopeResource = new AzureNative.CostManagement.ScheduledActionByScope("scheduledActionByScopeResource", new()
{
DisplayName = "string",
Notification = new AzureNative.CostManagement.Inputs.NotificationPropertiesArgs
{
Subject = "string",
To = new[]
{
"string",
},
Language = "string",
Message = "string",
RegionalFormat = "string",
},
Schedule = new AzureNative.CostManagement.Inputs.SchedulePropertiesArgs
{
EndDate = "string",
Frequency = "string",
StartDate = "string",
DayOfMonth = 0,
DaysOfWeek =
{
"string",
},
HourOfDay = 0,
WeeksOfMonth =
{
"string",
},
},
Scope = "string",
Status = "string",
ViewId = "string",
FileDestination = new AzureNative.CostManagement.Inputs.FileDestinationArgs
{
FileFormats =
{
"string",
},
},
Kind = "string",
Name = "string",
NotificationEmail = "string",
});
example, err := costmanagement.NewScheduledActionByScope(ctx, "scheduledActionByScopeResource", &costmanagement.ScheduledActionByScopeArgs{
DisplayName: pulumi.String("string"),
Notification: &costmanagement.NotificationPropertiesArgs{
Subject: pulumi.String("string"),
To: pulumi.StringArray{
pulumi.String("string"),
},
Language: pulumi.String("string"),
Message: pulumi.String("string"),
RegionalFormat: pulumi.String("string"),
},
Schedule: &costmanagement.SchedulePropertiesArgs{
EndDate: pulumi.String("string"),
Frequency: pulumi.String("string"),
StartDate: pulumi.String("string"),
DayOfMonth: pulumi.Int(0),
DaysOfWeek: pulumi.StringArray{
pulumi.String("string"),
},
HourOfDay: pulumi.Int(0),
WeeksOfMonth: pulumi.StringArray{
pulumi.String("string"),
},
},
Scope: pulumi.String("string"),
Status: pulumi.String("string"),
ViewId: pulumi.String("string"),
FileDestination: &costmanagement.FileDestinationArgs{
FileFormats: pulumi.StringArray{
pulumi.String("string"),
},
},
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
NotificationEmail: pulumi.String("string"),
})
resource "azure-native_costmanagement_scheduled_action_by_scope" "scheduledActionByScopeResource" {
lifecycle {
create_before_destroy = true
}
display_name = "string"
notification = {
subject = "string"
to = ["string"]
language = "string"
message = "string"
regional_format = "string"
}
schedule = {
end_date = "string"
frequency = "string"
start_date = "string"
day_of_month = 0
days_of_week = ["string"]
hour_of_day = 0
weeks_of_month = ["string"]
}
scope = "string"
status = "string"
view_id = "string"
file_destination = {
file_formats = ["string"]
}
kind = "string"
name = "string"
notification_email = "string"
}
var scheduledActionByScopeResource = new ScheduledActionByScope("scheduledActionByScopeResource", ScheduledActionByScopeArgs.builder()
.displayName("string")
.notification(com.pulumi.azurenative.costmanagement.inputs.NotificationPropertiesArgs.builder()
.subject("string")
.to("string")
.language("string")
.message("string")
.regionalFormat("string")
.build())
.schedule(com.pulumi.azurenative.costmanagement.inputs.SchedulePropertiesArgs.builder()
.endDate("string")
.frequency("string")
.startDate("string")
.dayOfMonth(0)
.daysOfWeek("string")
.hourOfDay(0)
.weeksOfMonth("string")
.build())
.scope("string")
.status("string")
.viewId("string")
.fileDestination(FileDestinationArgs.builder()
.fileFormats("string")
.build())
.kind("string")
.name("string")
.notificationEmail("string")
.build());
scheduled_action_by_scope_resource = azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScopeResource",
display_name="string",
notification={
"subject": "string",
"to": ["string"],
"language": "string",
"message": "string",
"regional_format": "string",
},
schedule={
"end_date": "string",
"frequency": "string",
"start_date": "string",
"day_of_month": 0,
"days_of_week": ["string"],
"hour_of_day": 0,
"weeks_of_month": ["string"],
},
scope="string",
status="string",
view_id="string",
file_destination={
"file_formats": ["string"],
},
kind="string",
name="string",
notification_email="string")
const scheduledActionByScopeResource = new azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScopeResource", {
displayName: "string",
notification: {
subject: "string",
to: ["string"],
language: "string",
message: "string",
regionalFormat: "string",
},
schedule: {
endDate: "string",
frequency: "string",
startDate: "string",
dayOfMonth: 0,
daysOfWeek: ["string"],
hourOfDay: 0,
weeksOfMonth: ["string"],
},
scope: "string",
status: "string",
viewId: "string",
fileDestination: {
fileFormats: ["string"],
},
kind: "string",
name: "string",
notificationEmail: "string",
});
type: azure-native:costmanagement:ScheduledActionByScope
properties:
displayName: string
fileDestination:
fileFormats:
- string
kind: string
name: string
notification:
language: string
message: string
regionalFormat: string
subject: string
to:
- string
notificationEmail: string
schedule:
dayOfMonth: 0
daysOfWeek:
- string
endDate: string
frequency: string
hourOfDay: 0
startDate: string
weeksOfMonth:
- string
scope: string
status: string
viewId: string
ScheduledActionByScope Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScheduledActionByScope resource accepts the following input properties:
- DisplayName
string
- Scheduled action name.
- Notification
Pulumi.AzureNative.CostManagement.Inputs.NotificationProperties
- Notification properties based on scheduled action kind.
- Schedule
Pulumi.AzureNative.CostManagement.Inputs.ScheduleProperties
- Schedule of the scheduled action.
- Scope
string
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- Status
string | Pulumi.AzureNative.CostManagement.ScheduledActionStatus
- Status of the scheduled action.
- ViewId
string
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- FileDestination
Pulumi.AzureNative.CostManagement.Inputs.FileDestination
- Destination format of the view data. This is optional.
- Kind
string | Pulumi.AzureNative.CostManagement.ScheduledActionKind
- Kind of the scheduled action.
- Name
string
- Scheduled action name.
- NotificationEmail
string
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- DisplayName
string
- Scheduled action name.
- Notification
NotificationPropertiesArgs
- Notification properties based on scheduled action kind.
- Schedule
SchedulePropertiesArgs
- Schedule of the scheduled action.
- Scope
string
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- Status
string | ScheduledActionStatus
- Status of the scheduled action.
- ViewId
string
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- FileDestination
FileDestinationArgs
- Destination format of the view data. This is optional.
- Kind
string | ScheduledActionKind
- Kind of the scheduled action.
- Name
string
- Scheduled action name.
- NotificationEmail
string
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- display_name
string
- Scheduled action name.
- notification
object
- Notification properties based on scheduled action kind.
- schedule
object
- Schedule of the scheduled action.
- scope
string
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- status
string | "Disabled" | "Enabled" | "Expired"
- Status of the scheduled action.
- view_id
string
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file_destination
object
- Destination format of the view data. This is optional.
- kind
string | "Email" | "InsightAlert"
- Kind of the scheduled action.
- name
string
- Scheduled action name.
- notification_email
string
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- displayName
String
- Scheduled action name.
- notification
NotificationProperties
- Notification properties based on scheduled action kind.
- schedule
ScheduleProperties
- Schedule of the scheduled action.
- scope
String
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- status
String | ScheduledActionStatus
- Status of the scheduled action.
- viewId
String
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- fileDestination
FileDestination
- Destination format of the view data. This is optional.
- kind
String | ScheduledActionKind
- Kind of the scheduled action.
- name
String
- Scheduled action name.
- notificationEmail
String
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- displayName
string
- Scheduled action name.
- notification
NotificationProperties
- Notification properties based on scheduled action kind.
- schedule
ScheduleProperties
- Schedule of the scheduled action.
- scope
string
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- status
string | ScheduledActionStatus
- Status of the scheduled action.
- viewId
string
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- fileDestination
FileDestination
- Destination format of the view data. This is optional.
- kind
string | ScheduledActionKind
- Kind of the scheduled action.
- name
string
- Scheduled action name.
- notificationEmail
string
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- display_name
str
- Scheduled action name.
- notification
NotificationPropertiesArgs
- Notification properties based on scheduled action kind.
- schedule
SchedulePropertiesArgs
- Schedule of the scheduled action.
- scope
str
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- status
str | ScheduledActionStatus
- Status of the scheduled action.
- view_id
str
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file_destination
FileDestinationArgs
- Destination format of the view data. This is optional.
- kind
str | ScheduledActionKind
- Kind of the scheduled action.
- name
str
- Scheduled action name.
- notification_email
str
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
- displayName
String
- Scheduled action name.
- notification
Property Map
- Notification properties based on scheduled action kind.
- schedule
Property Map
- Schedule of the scheduled action.
- scope
String
- For private scheduled action(Create or Update), scope will be empty. For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- status
String | "Disabled" | "Enabled" | "Expired"
- Status of the scheduled action.
- viewId
String
- Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- fileDestination
Property Map
- Destination format of the view data. This is optional.
- kind
String | "Email" | "InsightAlert"
- Kind of the scheduled action.
- name
String
- Scheduled action name.
- notificationEmail
String
- Email address of the point of contact that should get the unsubscribe requests and notification emails.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledActionByScope resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- ETag
string
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- Id
string
- The provider-assigned unique ID for this managed resource.
- SystemData
Pulumi.AzureNative.CostManagement.Outputs.SystemDataResponse
- Kind of the scheduled action.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- AzureApiVersion
string
- The Azure API version of the resource.
- ETag
string
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- Id
string
- The provider-assigned unique ID for this managed resource.
- SystemData
SystemDataResponse
- Kind of the scheduled action.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
string
- The Azure API version of the resource.
- e_tag
string
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- id
string
- The provider-assigned unique ID for this managed resource.
- system_data
object
- Kind of the scheduled action.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- eTag
String
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- id
String
- The provider-assigned unique ID for this managed resource.
- systemData
SystemDataResponse
- Kind of the scheduled action.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
string
- The Azure API version of the resource.
- eTag
string
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- id
string
- The provider-assigned unique ID for this managed resource.
- systemData
SystemDataResponse
- Kind of the scheduled action.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
str
- The Azure API version of the resource.
- e_tag
str
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- id
str
- The provider-assigned unique ID for this managed resource.
- system_data
SystemDataResponse
- Kind of the scheduled action.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- eTag
String
- Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.
- id
String
- The provider-assigned unique ID for this managed resource.
- systemData
Property Map
- Kind of the scheduled action.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Look up Existing ScheduledActionByScope Resource
Get an existing ScheduledActionByScope resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetScheduledActionByScope(ctx *Context, name string, id IDInput, state *ScheduledActionByScopeState, opts ...ResourceOption) (*ScheduledActionByScope, error)
public static ScheduledActionByScope get(String name, Output<String> id, CustomResourceOptions options)
resources: existingScheduledActionByScope: type: azure-native:costmanagement:ScheduledActionByScope get: id: ${id}
import {
to = azure-native_costmanagement_scheduled_action_by_scope.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
ScheduledActionByScopeState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
DaysOfWeek
Days of Week.
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| DaysOfWeekMonday | Monday |
| DaysOfWeekTuesday | Tuesday |
| DaysOfWeekWednesday | Wednesday |
| DaysOfWeekThursday | Thursday |
| DaysOfWeekFriday | Friday |
| DaysOfWeekSaturday | Saturday |
| DaysOfWeekSunday | Sunday |
| Value |
|---|
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Sunday |
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| MONDAY | Monday |
| TUESDAY | Tuesday |
| WEDNESDAY | Wednesday |
| THURSDAY | Thursday |
| FRIDAY | Friday |
| SATURDAY | Saturday |
| SUNDAY | Sunday |
| Value |
|---|
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Sunday |
FileDestination, FileDestinationArgs
Destination of the view data. This is optional. Currently only CSV format is supported.
- FileFormats
List<Union<string, Pulumi.AzureNative.CostManagement.FileFormat>>
- Destination of the view data. Currently only CSV format is supported.
- FileFormats
[]string
- Destination of the view data. Currently only CSV format is supported.
- file_formats
list(string | "Csv")
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
List<Either<String,FileFormat>>
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
(string | FileFormat)[]
- Destination of the view data. Currently only CSV format is supported.
- file_formats
Sequence[Union[str, FileFormat]]
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
List<String | "Csv">
- Destination of the view data. Currently only CSV format is supported.
FileDestinationResponse
Destination of the view data. This is optional. Currently only CSV format is supported.
- FileFormats
List<string>
- Destination of the view data. Currently only CSV format is supported.
- FileFormats
[]string
- Destination of the view data. Currently only CSV format is supported.
- file_formats
list(string)
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
List<String>
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
string[]
- Destination of the view data. Currently only CSV format is supported.
- file_formats
Sequence[str]
- Destination of the view data. Currently only CSV format is supported.
- fileFormats
List<String>
- Destination of the view data. Currently only CSV format is supported.
Destination of the view data. Currently only CSV format is supported.
| Name | Value |
|---|
| FileFormatCsv | Csv |
NotificationProperties, NotificationPropertiesArgs
The properties of the scheduled action notification.
- Subject
string
- Subject of the email. Length is limited to 70 characters.
- To
List<string>
- Array of email addresses.
- Language
string
- Locale of the email.
- Message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- RegionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- Subject
string
- Subject of the email. Length is limited to 70 characters.
- To
[]string
- Array of email addresses.
- Language
string
- Locale of the email.
- Message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- RegionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- subject
string
- Subject of the email. Length is limited to 70 characters.
- to
list(string)
- Array of email addresses.
- language
string
- Locale of the email.
- message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- regional_format
string
- Regional format used for formatting date/time and currency values in the email.
- subject
String
- Subject of the email. Length is limited to 70 characters.
- to
List<String>
- Array of email addresses.
- language
String
- Locale of the email.
- message
String
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
String
- Regional format used for formatting date/time and currency values in the email.
- subject
string
- Subject of the email. Length is limited to 70 characters.
- to
string[]
- Array of email addresses.
- language
string
- Locale of the email.
- message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- subject
str
- Subject of the email. Length is limited to 70 characters.
- to
Sequence[str]
- Array of email addresses.
- language
str
- Locale of the email.
- message
str
- Optional message to be added in the email. Length is limited to 250 characters.
- regional_format
str
- Regional format used for formatting date/time and currency values in the email.
- subject
String
- Subject of the email. Length is limited to 70 characters.
- to
List<String>
- Array of email addresses.
- language
String
- Locale of the email.
- message
String
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
String
- Regional format used for formatting date/time and currency values in the email.
NotificationPropertiesResponse
The properties of the scheduled action notification.
- Subject
string
- Subject of the email. Length is limited to 70 characters.
- To
List<string>
- Array of email addresses.
- Language
string
- Locale of the email.
- Message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- RegionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- Subject
string
- Subject of the email. Length is limited to 70 characters.
- To
[]string
- Array of email addresses.
- Language
string
- Locale of the email.
- Message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- RegionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- subject
string
- Subject of the email. Length is limited to 70 characters.
- to
list(string)
- Array of email addresses.
- language
string
- Locale of the email.
- message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- regional_format
string
- Regional format used for formatting date/time and currency values in the email.
- subject
String
- Subject of the email. Length is limited to 70 characters.
- to
List<String>
- Array of email addresses.
- language
String
- Locale of the email.
- message
String
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
String
- Regional format used for formatting date/time and currency values in the email.
- subject
string
- Subject of the email. Length is limited to 70 characters.
- to
string[]
- Array of email addresses.
- language
string
- Locale of the email.
- message
string
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
string
- Regional format used for formatting date/time and currency values in the email.
- subject
str
- Subject of the email. Length is limited to 70 characters.
- to
Sequence[str]
- Array of email addresses.
- language
str
- Locale of the email.
- message
str
- Optional message to be added in the email. Length is limited to 250 characters.
- regional_format
str
- Regional format used for formatting date/time and currency values in the email.
- subject
String
- Subject of the email. Length is limited to 70 characters.
- to
List<String>
- Array of email addresses.
- language
String
- Locale of the email.
- message
String
- Optional message to be added in the email. Length is limited to 250 characters.
- regionalFormat
String
- Regional format used for formatting date/time and currency values in the email.
ScheduleFrequency
Frequency of the schedule.
| Name | Value | Description |
|---|
| Daily | Daily | Cost analysis data will be emailed every day. |
| Weekly | Weekly | Cost analysis data will be emailed every week. |
| Monthly | Monthly | Cost analysis data will be emailed every month. |
| Name | Value | Description |
|---|
| ScheduleFrequencyDaily | Daily | Cost analysis data will be emailed every day. |
| ScheduleFrequencyWeekly | Weekly | Cost analysis data will be emailed every week. |
| ScheduleFrequencyMonthly | Monthly | Cost analysis data will be emailed every month. |
| Value | Description |
|---|
Daily | Cost analysis data will be emailed every day. |
Weekly | Cost analysis data will be emailed every week. |
Monthly | Cost analysis data will be emailed every month. |
| Name | Value | Description |
|---|
| Daily | Daily | Cost analysis data will be emailed every day. |
| Weekly | Weekly | Cost analysis data will be emailed every week. |
| Monthly | Monthly | Cost analysis data will be emailed every month. |
| Name | Value | Description |
|---|
| Daily | Daily | Cost analysis data will be emailed every day. |
| Weekly | Weekly | Cost analysis data will be emailed every week. |
| Monthly | Monthly | Cost analysis data will be emailed every month. |
| Name | Value | Description |
|---|
| DAILY | Daily | Cost analysis data will be emailed every day. |
| WEEKLY | Weekly | Cost analysis data will be emailed every week. |
| MONTHLY | Monthly | Cost analysis data will be emailed every month. |
| Value | Description |
|---|
Daily | Cost analysis data will be emailed every day. |
Weekly | Cost analysis data will be emailed every week. |
Monthly | Cost analysis data will be emailed every month. |
ScheduleProperties, SchedulePropertiesArgs
The properties of the schedule.
- EndDate
string
- The end date and time of the scheduled action (UTC).
- Frequency
string | Pulumi.AzureNative.CostManagement.ScheduleFrequency
- Frequency of the schedule.
- StartDate
string
- The start date and time of the scheduled action (UTC).
- DayOfMonth
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- DaysOfWeek
List<Union<string, Pulumi.AzureNative.CostManagement.DaysOfWeek>>
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- HourOfDay
int
- UTC time at which cost analysis data will be emailed.
- WeeksOfMonth
List<Union<string, Pulumi.AzureNative.CostManagement.WeeksOfMonth>>
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- EndDate
string
- The end date and time of the scheduled action (UTC).
- Frequency
string | ScheduleFrequency
- Frequency of the schedule.
- StartDate
string
- The start date and time of the scheduled action (UTC).
- DayOfMonth
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- DaysOfWeek
[]string
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- HourOfDay
int
- UTC time at which cost analysis data will be emailed.
- WeeksOfMonth
[]string
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- end_date
string
- The end date and time of the scheduled action (UTC).
- frequency
string | "Daily" | "Weekly" | "Monthly"
- Frequency of the schedule.
- start_date
string
- The start date and time of the scheduled action (UTC).
- day_of_month
number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- days_of_week
list(string | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday")
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_of_day
number
- UTC time at which cost analysis data will be emailed.
- weeks_of_month
list(string | "First" | "Second" | "Third" | "Fourth" | "Last")
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
String
- The end date and time of the scheduled action (UTC).
- frequency
String | ScheduleFrequency
- Frequency of the schedule.
- startDate
String
- The start date and time of the scheduled action (UTC).
- dayOfMonth
Integer
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
List<Either<String,DaysOfWeek>>
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
Integer
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
List<Either<String,WeeksOfMonth>>
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
string
- The end date and time of the scheduled action (UTC).
- frequency
string | ScheduleFrequency
- Frequency of the schedule.
- startDate
string
- The start date and time of the scheduled action (UTC).
- dayOfMonth
number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
(string | DaysOfWeek)[]
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
number
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
(string | WeeksOfMonth)[]
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- end_date
str
- The end date and time of the scheduled action (UTC).
- frequency
str | ScheduleFrequency
- Frequency of the schedule.
- start_date
str
- The start date and time of the scheduled action (UTC).
- day_of_month
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- days_of_week
Sequence[Union[str, DaysOfWeek]]
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_of_day
int
- UTC time at which cost analysis data will be emailed.
- weeks_of_month
Sequence[Union[str, WeeksOfMonth]]
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
String
- The end date and time of the scheduled action (UTC).
- frequency
String | "Daily" | "Weekly" | "Monthly"
- Frequency of the schedule.
- startDate
String
- The start date and time of the scheduled action (UTC).
- dayOfMonth
Number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
List<String | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday">
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
Number
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
List<String | "First" | "Second" | "Third" | "Fourth" | "Last">
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
SchedulePropertiesResponse
The properties of the schedule.
- EndDate
string
- The end date and time of the scheduled action (UTC).
- Frequency
string
- Frequency of the schedule.
- StartDate
string
- The start date and time of the scheduled action (UTC).
- DayOfMonth
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- DaysOfWeek
List<string>
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- HourOfDay
int
- UTC time at which cost analysis data will be emailed.
- WeeksOfMonth
List<string>
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- EndDate
string
- The end date and time of the scheduled action (UTC).
- Frequency
string
- Frequency of the schedule.
- StartDate
string
- The start date and time of the scheduled action (UTC).
- DayOfMonth
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- DaysOfWeek
[]string
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- HourOfDay
int
- UTC time at which cost analysis data will be emailed.
- WeeksOfMonth
[]string
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- end_date
string
- The end date and time of the scheduled action (UTC).
- frequency
string
- Frequency of the schedule.
- start_date
string
- The start date and time of the scheduled action (UTC).
- day_of_month
number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- days_of_week
list(string)
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_of_day
number
- UTC time at which cost analysis data will be emailed.
- weeks_of_month
list(string)
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
String
- The end date and time of the scheduled action (UTC).
- frequency
String
- Frequency of the schedule.
- startDate
String
- The start date and time of the scheduled action (UTC).
- dayOfMonth
Integer
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
List<String>
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
Integer
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
List<String>
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
string
- The end date and time of the scheduled action (UTC).
- frequency
string
- Frequency of the schedule.
- startDate
string
- The start date and time of the scheduled action (UTC).
- dayOfMonth
number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
string[]
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
number
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
string[]
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- end_date
str
- The end date and time of the scheduled action (UTC).
- frequency
str
- Frequency of the schedule.
- start_date
str
- The start date and time of the scheduled action (UTC).
- day_of_month
int
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- days_of_week
Sequence[str]
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_of_day
int
- UTC time at which cost analysis data will be emailed.
- weeks_of_month
Sequence[str]
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
- endDate
String
- The end date and time of the scheduled action (UTC).
- frequency
String
- Frequency of the schedule.
- startDate
String
- The start date and time of the scheduled action (UTC).
- dayOfMonth
Number
- UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.
- daysOfWeek
List<String>
- Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hourOfDay
Number
- UTC time at which cost analysis data will be emailed.
- weeksOfMonth
List<String>
- Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
ScheduledActionKind
Kind of the scheduled action.
| Name | Value | Description |
|---|
| Email | Email | Cost analysis data will be emailed. |
| InsightAlert | InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Name | Value | Description |
|---|
| ScheduledActionKindEmail | Email | Cost analysis data will be emailed. |
| ScheduledActionKindInsightAlert | InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Value | Description |
|---|
Email | Cost analysis data will be emailed. |
InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Name | Value | Description |
|---|
| Email | Email | Cost analysis data will be emailed. |
| InsightAlert | InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Name | Value | Description |
|---|
| Email | Email | Cost analysis data will be emailed. |
| InsightAlert | InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Name | Value | Description |
|---|
| EMAIL | Email | Cost analysis data will be emailed. |
| INSIGHT_ALERT | InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
| Value | Description |
|---|
Email | Cost analysis data will be emailed. |
InsightAlert | Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. |
ScheduledActionStatus
Status of the scheduled action.
| Name | Value | Description |
|---|
| Disabled | Disabled | Scheduled action is saved but will not be run. |
| Enabled | Enabled | Scheduled action is saved and will be run. |
| Expired | Expired | Scheduled action is expired. |
| Name | Value | Description |
|---|
| ScheduledActionStatusDisabled | Disabled | Scheduled action is saved but will not be run. |
| ScheduledActionStatusEnabled | Enabled | Scheduled action is saved and will be run. |
| ScheduledActionStatusExpired | Expired | Scheduled action is expired. |
| Value | Description |
|---|
Disabled | Scheduled action is saved but will not be run. |
Enabled | Scheduled action is saved and will be run. |
Expired | Scheduled action is expired. |
| Name | Value | Description |
|---|
| Disabled | Disabled | Scheduled action is saved but will not be run. |
| Enabled | Enabled | Scheduled action is saved and will be run. |
| Expired | Expired | Scheduled action is expired. |
| Name | Value | Description |
|---|
| Disabled | Disabled | Scheduled action is saved but will not be run. |
| Enabled | Enabled | Scheduled action is saved and will be run. |
| Expired | Expired | Scheduled action is expired. |
| Name | Value | Description |
|---|
| DISABLED | Disabled | Scheduled action is saved but will not be run. |
| ENABLED | Enabled | Scheduled action is saved and will be run. |
| EXPIRED | Expired | Scheduled action is expired. |
| Value | Description |
|---|
Disabled | Scheduled action is saved but will not be run. |
Enabled | Scheduled action is saved and will be run. |
Expired | Scheduled action is expired. |
SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
WeeksOfMonth
Weeks of month.
| Name | Value |
|---|
| First | First |
| Second | Second |
| Third | Third |
| Fourth | Fourth |
| Last | Last |
| Name | Value |
|---|
| WeeksOfMonthFirst | First |
| WeeksOfMonthSecond | Second |
| WeeksOfMonthThird | Third |
| WeeksOfMonthFourth | Fourth |
| WeeksOfMonthLast | Last |
| Value |
|---|
First |
Second |
Third |
Fourth |
Last |
| Name | Value |
|---|
| First | First |
| Second | Second |
| Third | Third |
| Fourth | Fourth |
| Last | Last |
| Name | Value |
|---|
| First | First |
| Second | Second |
| Third | Third |
| Fourth | Fourth |
| Last | Last |
| Name | Value |
|---|
| FIRST | First |
| SECOND | Second |
| THIRD | Third |
| FOURTH | Fourth |
| LAST | Last |
| Value |
|---|
First |
Second |
Third |
Fourth |
Last |
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:ScheduledActionByScope monthlyCostByResource /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0