azure-native.costmanagement.ScheduledActionByScope
Explore with Pulumi AI
Scheduled action definition. API Version: 2022-04-01-preview.
Example Usage
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 = new[]
{
"Csv",
},
},
Kind = "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 = new[]
{
"Monday",
},
EndDate = "2021-06-19T22:21:51.1287144Z",
Frequency = "Monthly",
HourOfDay = 10,
StartDate = "2020-06-19T22:21:51.1287144Z",
WeeksOfMonth = new[]
{
"First",
"Third",
},
},
Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
Status = "Enabled",
ViewId = "/providers/Microsoft.CostManagement/views/swaggerExample",
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement"
"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("Csv"),
},
},
Kind: pulumi.String("Email"),
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("Monday"),
},
EndDate: pulumi.String("2021-06-19T22:21:51.1287144Z"),
Frequency: pulumi.String("Monthly"),
HourOfDay: pulumi.Int(10),
StartDate: pulumi.String("2020-06-19T22:21:51.1287144Z"),
WeeksOfMonth: pulumi.StringArray{
pulumi.String("First"),
pulumi.String("Third"),
},
},
Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
Status: pulumi.String("Enabled"),
ViewId: pulumi.String("/providers/Microsoft.CostManagement/views/swaggerExample"),
})
if err != nil {
return err
}
return nil
})
}
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 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 scheduledActionByScope = new ScheduledActionByScope("scheduledActionByScope", ScheduledActionByScopeArgs.builder()
.displayName("Monthly Cost By Resource")
.fileDestination(Map.of("fileFormats", "Csv"))
.kind("Email")
.name("monthlyCostByResource")
.notification(Map.ofEntries(
Map.entry("subject", "Cost by resource this month"),
Map.entry("to",
"user@gmail.com",
"team@gmail.com")
))
.schedule(Map.ofEntries(
Map.entry("daysOfWeek", "Monday"),
Map.entry("endDate", "2021-06-19T22:21:51.1287144Z"),
Map.entry("frequency", "Monthly"),
Map.entry("hourOfDay", 10),
Map.entry("startDate", "2020-06-19T22:21:51.1287144Z"),
Map.entry("weeksOfMonth",
"First",
"Third")
))
.scope("subscriptions/00000000-0000-0000-0000-000000000000")
.status("Enabled")
.viewId("/providers/Microsoft.CostManagement/views/swaggerExample")
.build());
}
}
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=azure_native.costmanagement.FileDestinationArgs(
file_formats=["Csv"],
),
kind="Email",
name="monthlyCostByResource",
notification=azure_native.costmanagement.NotificationPropertiesArgs(
subject="Cost by resource this month",
to=[
"user@gmail.com",
"team@gmail.com",
],
),
schedule=azure_native.costmanagement.SchedulePropertiesArgs(
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")
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: ["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",
});
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
new ScheduledActionByScope(name: string, args: ScheduledActionByScopeArgs, opts?: CustomResourceOptions);
@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)
func NewScheduledActionByScope(ctx *Context, name string, args ScheduledActionByScopeArgs, opts ...ResourceOption) (*ScheduledActionByScope, error)
public ScheduledActionByScope(string name, ScheduledActionByScopeArgs args, CustomResourceOptions? opts = null)
public ScheduledActionByScope(String name, ScheduledActionByScopeArgs args)
public ScheduledActionByScope(String name, ScheduledActionByScopeArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:ScheduledActionByScope
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScheduledActionByScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScheduledActionByScopeArgs
- The arguments to resource properties.
- 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 resource.
- args ScheduledActionByScopeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledActionByScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- 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 =
{
{ "subject", "string" },
{ "to", new[]
{
"string",
} },
{ "message", "string" },
},
Schedule =
{
{ "endDate", "string" },
{ "frequency", "string" },
{ "startDate", "string" },
{ "dayOfMonth", 0 },
{ "daysOfWeek", new[]
{
"string",
} },
{ "hourOfDay", 0 },
{ "weeksOfMonth", new[]
{
"string",
} },
},
Scope = "string",
Status = "string",
ViewId = "string",
FileDestination =
{
{ "fileFormats", new[]
{
"string",
} },
},
Kind = "string",
Name = "string",
});
example, err := costmanagement.NewScheduledActionByScope(ctx, "scheduledActionByScopeResource", &costmanagement.ScheduledActionByScopeArgs{
DisplayName: "string",
Notification: map[string]interface{}{
"subject": "string",
"to": []string{
"string",
},
"message": "string",
},
Schedule: map[string]interface{}{
"endDate": "string",
"frequency": "string",
"startDate": "string",
"dayOfMonth": 0,
"daysOfWeek": []string{
"string",
},
"hourOfDay": 0,
"weeksOfMonth": []string{
"string",
},
},
Scope: "string",
Status: "string",
ViewId: "string",
FileDestination: map[string]interface{}{
"fileFormats": []string{
"string",
},
},
Kind: "string",
Name: "string",
})
var scheduledActionByScopeResource = new ScheduledActionByScope("scheduledActionByScopeResource", ScheduledActionByScopeArgs.builder()
.displayName("string")
.notification(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.schedule(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.scope("string")
.status("string")
.viewId("string")
.fileDestination(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.kind("string")
.name("string")
.build());
scheduled_action_by_scope_resource = azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScopeResource",
display_name=string,
notification={
subject: string,
to: [string],
message: string,
},
schedule={
endDate: string,
frequency: string,
startDate: string,
dayOfMonth: 0,
daysOfWeek: [string],
hourOfDay: 0,
weeksOfMonth: [string],
},
scope=string,
status=string,
view_id=string,
file_destination={
fileFormats: [string],
},
kind=string,
name=string)
const scheduledActionByScopeResource = new azure_native.costmanagement.ScheduledActionByScope("scheduledActionByScopeResource", {
displayName: "string",
notification: {
subject: "string",
to: ["string"],
message: "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",
});
type: azure-native:costmanagement:ScheduledActionByScope
properties:
displayName: string
fileDestination:
fileFormats:
- string
kind: string
name: string
notification:
message: string
subject: string
to:
- 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.
Inputs
The ScheduledActionByScope resource accepts the following input properties:
- Display
Name string - Scheduled action name.
- Notification
Pulumi.
Azure Native. Cost Management. Inputs. Notification Properties - Notification properties based on scheduled action kind.
- Schedule
Pulumi.
Azure Native. Cost Management. Inputs. Schedule Properties - Schedule of the scheduled action.
- Scope string
- Cost Management scope like '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.
Azure Native. Cost Management. Scheduled Action Status - Status of the scheduled action.
- View
Id string - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- File
Destination Pulumi.Azure Native. Cost Management. Inputs. File Destination - Destination format of the view data.
- Kind
string | Pulumi.
Azure Native. Cost Management. Scheduled Action Kind - Kind of the scheduled action.
- Name string
- Scheduled action name.
- Display
Name string - Scheduled action name.
- Notification
Notification
Properties Args - Notification properties based on scheduled action kind.
- Schedule
Schedule
Properties Args - Schedule of the scheduled action.
- Scope string
- Cost Management scope like '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 | Scheduled
Action Status - Status of the scheduled action.
- View
Id string - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- File
Destination FileDestination Args - Destination format of the view data.
- Kind
string | Scheduled
Action Kind - Kind of the scheduled action.
- Name string
- Scheduled action name.
- display
Name String - Scheduled action name.
- notification
Notification
Properties - Notification properties based on scheduled action kind.
- schedule
Schedule
Properties - Schedule of the scheduled action.
- scope String
- Cost Management scope like '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 | Scheduled
Action Status - Status of the scheduled action.
- view
Id String - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file
Destination FileDestination - Destination format of the view data.
- kind
String | Scheduled
Action Kind - Kind of the scheduled action.
- name String
- Scheduled action name.
- display
Name string - Scheduled action name.
- notification
Notification
Properties - Notification properties based on scheduled action kind.
- schedule
Schedule
Properties - Schedule of the scheduled action.
- scope string
- Cost Management scope like '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 | Scheduled
Action Status - Status of the scheduled action.
- view
Id string - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file
Destination FileDestination - Destination format of the view data.
- kind
string | Scheduled
Action Kind - Kind of the scheduled action.
- name string
- Scheduled action name.
- display_
name str - Scheduled action name.
- notification
Notification
Properties Args - Notification properties based on scheduled action kind.
- schedule
Schedule
Properties Args - Schedule of the scheduled action.
- scope str
- Cost Management scope like '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 | Scheduled
Action Status - Status of the scheduled action.
- view_
id str - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file_
destination FileDestination Args - Destination format of the view data.
- kind
str | Scheduled
Action Kind - Kind of the scheduled action.
- name str
- Scheduled action name.
- display
Name String - Scheduled action name.
- notification Property Map
- Notification properties based on scheduled action kind.
- schedule Property Map
- Schedule of the scheduled action.
- scope String
- Cost Management scope like '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"
- Status of the scheduled action.
- view
Id String - Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'
- file
Destination Property Map - Destination format of the view data.
- kind String | "Email"
- Kind of the scheduled action.
- name String
- Scheduled action name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledActionByScope resource produces the following output properties:
- ETag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data Pulumi.Azure Native. Cost Management. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type.
- ETag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type.
- e
Tag String - Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type.
- e
Tag string - Resource Etag.
- id string
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Resource type.
- e_
tag str - Resource Etag.
- id str
- The provider-assigned unique ID for this managed resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Resource type.
- e
Tag String - Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type.
Supporting Types
DaysOfWeek, DaysOfWeekArgs
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Days
Of Week Monday - Monday
- Days
Of Week Tuesday - Tuesday
- Days
Of Week Wednesday - Wednesday
- Days
Of Week Thursday - Thursday
- Days
Of Week Friday - Friday
- Days
Of Week Saturday - Saturday
- Days
Of Week Sunday - Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- MONDAY
- Monday
- TUESDAY
- Tuesday
- WEDNESDAY
- Wednesday
- THURSDAY
- Thursday
- FRIDAY
- Friday
- SATURDAY
- Saturday
- SUNDAY
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
- "Sunday"
- Sunday
FileDestination, FileDestinationArgs
- File
Formats List<Union<string, Pulumi.Azure Native. Cost Management. File Format>> - Destination of the view data. Currently only csv format is supported.
- File
Formats []string - Destination of the view data. Currently only csv format is supported.
- file
Formats List<Either<String,FileFormat>> - Destination of the view data. Currently only csv format is supported.
- file
Formats (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.
- file
Formats List<String | "Csv"> - Destination of the view data. Currently only csv format is supported.
FileDestinationResponse, FileDestinationResponseArgs
- File
Formats List<string> - Destination of the view data. Currently only csv format is supported.
- File
Formats []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.
- file
Formats 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.
- file
Formats List<String> - Destination of the view data. Currently only csv format is supported.
FileFormat, FileFormatArgs
- Csv
- Csv
- File
Format Csv - Csv
- Csv
- Csv
- Csv
- Csv
- CSV
- Csv
- "Csv"
- Csv
NotificationProperties, NotificationPropertiesArgs
NotificationPropertiesResponse, NotificationPropertiesResponseArgs
ScheduleFrequency, ScheduleFrequencyArgs
- Daily
- DailyCost analysis data will be emailed every day.
- Weekly
- WeeklyCost analysis data will be emailed every week.
- Monthly
- MonthlyCost analysis data will be emailed every month.
- Schedule
Frequency Daily - DailyCost analysis data will be emailed every day.
- Schedule
Frequency Weekly - WeeklyCost analysis data will be emailed every week.
- Schedule
Frequency Monthly - MonthlyCost analysis data will be emailed every month.
- Daily
- DailyCost analysis data will be emailed every day.
- Weekly
- WeeklyCost analysis data will be emailed every week.
- Monthly
- MonthlyCost analysis data will be emailed every month.
- Daily
- DailyCost analysis data will be emailed every day.
- Weekly
- WeeklyCost analysis data will be emailed every week.
- Monthly
- MonthlyCost analysis data will be emailed every month.
- DAILY
- DailyCost analysis data will be emailed every day.
- WEEKLY
- WeeklyCost analysis data will be emailed every week.
- MONTHLY
- MonthlyCost analysis data will be emailed every month.
- "Daily"
- DailyCost analysis data will be emailed every day.
- "Weekly"
- WeeklyCost analysis data will be emailed every week.
- "Monthly"
- MonthlyCost analysis data will be emailed every month.
ScheduleProperties, SchedulePropertiesArgs
- End
Date string - The end date and time of the scheduled action (UTC).
- Frequency
string | Pulumi.
Azure Native. Cost Management. Schedule Frequency - Frequency of the schedule.
- Start
Date string - The start date and time of the scheduled action (UTC).
- Day
Of intMonth - 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 List<Union<string, Pulumi.Week Azure Native. Cost Management. Days Of Week>> - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- Hour
Of intDay - UTC time at which cost analysis data will be emailed.
- Weeks
Of List<Union<string, Pulumi.Month Azure Native. Cost Management. Weeks Of Month>> - 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 | Schedule
Frequency - Frequency of the schedule.
- Start
Date string - The start date and time of the scheduled action (UTC).
- Day
Of intMonth - 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 []stringWeek - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- Hour
Of intDay - UTC time at which cost analysis data will be emailed.
- Weeks
Of []stringMonth - 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 | Schedule
Frequency - Frequency of the schedule.
- start
Date String - The start date and time of the scheduled action (UTC).
- day
Of IntegerMonth - 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 List<Either<String,DaysWeek Of Week>> - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of IntegerDay - UTC time at which cost analysis data will be emailed.
- weeks
Of List<Either<String,WeeksMonth Of Month>> - 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 | Schedule
Frequency - Frequency of the schedule.
- start
Date string - The start date and time of the scheduled action (UTC).
- day
Of numberMonth - 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 (string | DaysWeek Of Week)[] - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of numberDay - UTC time at which cost analysis data will be emailed.
- weeks
Of (string | WeeksMonth Of Month)[] - 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 | Schedule
Frequency - Frequency of the schedule.
- start_
date str - The start date and time of the scheduled action (UTC).
- day_
of_ intmonth - 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_ Sequence[Union[str, Daysweek Of Week]] - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_
of_ intday - UTC time at which cost analysis data will be emailed.
- weeks_
of_ Sequence[Union[str, Weeksmonth Of Month]] - 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 NumberMonth - 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 List<String | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday">Week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of NumberDay - UTC time at which cost analysis data will be emailed.
- weeks
Of List<String | "First" | "Second" | "Third" | "Fourth" | "Last">Month - Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
SchedulePropertiesResponse, SchedulePropertiesResponseArgs
- 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 intMonth - 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 List<string>Week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- Hour
Of intDay - UTC time at which cost analysis data will be emailed.
- Weeks
Of List<string>Month - 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 intMonth - 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 []stringWeek - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- Hour
Of intDay - UTC time at which cost analysis data will be emailed.
- Weeks
Of []stringMonth - 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 IntegerMonth - 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 List<String>Week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of IntegerDay - UTC time at which cost analysis data will be emailed.
- weeks
Of List<String>Month - 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 numberMonth - 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 string[]Week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of numberDay - UTC time at which cost analysis data will be emailed.
- weeks
Of string[]Month - 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_ intmonth - 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_ Sequence[str]week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour_
of_ intday - UTC time at which cost analysis data will be emailed.
- weeks_
of_ Sequence[str]month - 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 NumberMonth - 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 List<String>Week - Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.
- hour
Of NumberDay - UTC time at which cost analysis data will be emailed.
- weeks
Of List<String>Month - Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.
ScheduledActionKind, ScheduledActionKindArgs
- EmailCost analysis data will be emailed.
- Scheduled
Action Kind Email - EmailCost analysis data will be emailed.
- EmailCost analysis data will be emailed.
- EmailCost analysis data will be emailed.
- EmailCost analysis data will be emailed.
- "Email"
- EmailCost analysis data will be emailed.
ScheduledActionStatus, ScheduledActionStatusArgs
- Disabled
- DisabledScheduled action is saved but will not be executed.
- Enabled
- EnabledScheduled action is saved and will be executed.
- Scheduled
Action Status Disabled - DisabledScheduled action is saved but will not be executed.
- Scheduled
Action Status Enabled - EnabledScheduled action is saved and will be executed.
- Disabled
- DisabledScheduled action is saved but will not be executed.
- Enabled
- EnabledScheduled action is saved and will be executed.
- Disabled
- DisabledScheduled action is saved but will not be executed.
- Enabled
- EnabledScheduled action is saved and will be executed.
- DISABLED
- DisabledScheduled action is saved but will not be executed.
- ENABLED
- EnabledScheduled action is saved and will be executed.
- "Disabled"
- DisabledScheduled action is saved but will not be executed.
- "Enabled"
- EnabledScheduled action is saved and will be executed.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WeeksOfMonth, WeeksOfMonthArgs
- First
- First
- Second
- Second
- Third
- Third
- Fourth
- Fourth
- Last
- Last
- Weeks
Of Month First - First
- Weeks
Of Month Second - Second
- Weeks
Of Month Third - Third
- Weeks
Of Month Fourth - Fourth
- Weeks
Of Month Last - Last
- First
- First
- Second
- Second
- Third
- Third
- Fourth
- Fourth
- Last
- Last
- First
- First
- Second
- Second
- Third
- Third
- Fourth
- Fourth
- Last
- Last
- FIRST
- First
- SECOND
- Second
- THIRD
- Third
- FOURTH
- Fourth
- LAST
- Last
- "First"
- First
- "Second"
- Second
- "Third"
- Third
- "Fourth"
- Fourth
- "Last"
- Last
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:ScheduledActionByScope monthlyCostByResource subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0