Documentation ¶
Index ¶
- type AnomalyAlert
- type AnomalyAlertArgs
- type AnomalyAlertArray
- type AnomalyAlertArrayInput
- type AnomalyAlertArrayOutput
- func (AnomalyAlertArrayOutput) ElementType() reflect.Type
- func (o AnomalyAlertArrayOutput) Index(i pulumi.IntInput) AnomalyAlertOutput
- func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput
- func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutputWithContext(ctx context.Context) AnomalyAlertArrayOutput
- type AnomalyAlertInput
- type AnomalyAlertMap
- type AnomalyAlertMapInput
- type AnomalyAlertMapOutput
- func (AnomalyAlertMapOutput) ElementType() reflect.Type
- func (o AnomalyAlertMapOutput) MapIndex(k pulumi.StringInput) AnomalyAlertOutput
- func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutput() AnomalyAlertMapOutput
- func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutputWithContext(ctx context.Context) AnomalyAlertMapOutput
- type AnomalyAlertOutput
- func (o AnomalyAlertOutput) DisplayName() pulumi.StringOutput
- func (AnomalyAlertOutput) ElementType() reflect.Type
- func (o AnomalyAlertOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o AnomalyAlertOutput) EmailSubject() pulumi.StringOutput
- func (o AnomalyAlertOutput) Message() pulumi.StringPtrOutput
- func (o AnomalyAlertOutput) Name() pulumi.StringOutput
- func (o AnomalyAlertOutput) SubscriptionId() pulumi.StringOutput
- func (o AnomalyAlertOutput) ToAnomalyAlertOutput() AnomalyAlertOutput
- func (o AnomalyAlertOutput) ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput
- type AnomalyAlertState
- type ScheduledAction
- type ScheduledActionArgs
- type ScheduledActionArray
- type ScheduledActionArrayInput
- type ScheduledActionArrayOutput
- func (ScheduledActionArrayOutput) ElementType() reflect.Type
- func (o ScheduledActionArrayOutput) Index(i pulumi.IntInput) ScheduledActionOutput
- func (o ScheduledActionArrayOutput) ToScheduledActionArrayOutput() ScheduledActionArrayOutput
- func (o ScheduledActionArrayOutput) ToScheduledActionArrayOutputWithContext(ctx context.Context) ScheduledActionArrayOutput
- type ScheduledActionInput
- type ScheduledActionMap
- type ScheduledActionMapInput
- type ScheduledActionMapOutput
- func (ScheduledActionMapOutput) ElementType() reflect.Type
- func (o ScheduledActionMapOutput) MapIndex(k pulumi.StringInput) ScheduledActionOutput
- func (o ScheduledActionMapOutput) ToScheduledActionMapOutput() ScheduledActionMapOutput
- func (o ScheduledActionMapOutput) ToScheduledActionMapOutputWithContext(ctx context.Context) ScheduledActionMapOutput
- type ScheduledActionOutput
- func (o ScheduledActionOutput) DayOfMonth() pulumi.IntPtrOutput
- func (o ScheduledActionOutput) DaysOfWeeks() pulumi.StringArrayOutput
- func (o ScheduledActionOutput) DisplayName() pulumi.StringOutput
- func (ScheduledActionOutput) ElementType() reflect.Type
- func (o ScheduledActionOutput) EmailAddressSender() pulumi.StringOutput
- func (o ScheduledActionOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o ScheduledActionOutput) EmailSubject() pulumi.StringOutput
- func (o ScheduledActionOutput) EndDate() pulumi.StringOutput
- func (o ScheduledActionOutput) Frequency() pulumi.StringOutput
- func (o ScheduledActionOutput) HourOfDay() pulumi.IntPtrOutput
- func (o ScheduledActionOutput) Message() pulumi.StringPtrOutput
- func (o ScheduledActionOutput) Name() pulumi.StringOutput
- func (o ScheduledActionOutput) StartDate() pulumi.StringOutput
- func (o ScheduledActionOutput) ToScheduledActionOutput() ScheduledActionOutput
- func (o ScheduledActionOutput) ToScheduledActionOutputWithContext(ctx context.Context) ScheduledActionOutput
- func (o ScheduledActionOutput) ViewId() pulumi.StringOutput
- func (o ScheduledActionOutput) WeeksOfMonths() pulumi.StringArrayOutput
- type ScheduledActionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnomalyAlert ¶
type AnomalyAlert struct { pulumi.CustomResourceState // The display name which should be used for this Cost Anomaly Alert. DisplayName pulumi.StringOutput `pulumi:"displayName"` // Specifies a list of email addresses which the Anomaly Alerts are send to. EmailAddresses pulumi.StringArrayOutput `pulumi:"emailAddresses"` // The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70. EmailSubject pulumi.StringOutput `pulumi:"emailSubject"` // The message of the Cost Anomaly Alert. Maximum length of the message is 250. Message pulumi.StringPtrOutput `pulumi:"message"` // The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens. Name pulumi.StringOutput `pulumi:"name"` // The ID of the Subscription this Cost Anomaly Alert is scoped to. Changing this forces a new resource to be created. When not supplied this defaults to the subscription configured in the provider. SubscriptionId pulumi.StringOutput `pulumi:"subscriptionId"` }
Manages a Cost Anomaly Alert.
> **Note:** Anomaly alerts are sent based on the current access of the rule creator at the time that the email is sent. Learn more [here](https://learn.microsoft.com/en-us/azure/cost-management-billing/understand/analyze-unexpected-charges#create-an-anomaly-alert).
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/costmanagement" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := costmanagement.NewAnomalyAlert(ctx, "example", &costmanagement.AnomalyAlertArgs{ Name: pulumi.String("alertname"), DisplayName: pulumi.String("Alert DisplayName"), SubscriptionId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"), EmailSubject: pulumi.String("My Test Anomaly Alert"), EmailAddresses: pulumi.StringArray{ pulumi.String("example@test.net"), }, }) if err != nil { return err } return nil }) }
```
## Import
Cost Anomaly Alerts can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:costmanagement/anomalyAlert:AnomalyAlert example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyanomalybyresourcegroup ```
func GetAnomalyAlert ¶
func GetAnomalyAlert(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnomalyAlertState, opts ...pulumi.ResourceOption) (*AnomalyAlert, error)
GetAnomalyAlert gets an existing AnomalyAlert resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAnomalyAlert ¶
func NewAnomalyAlert(ctx *pulumi.Context, name string, args *AnomalyAlertArgs, opts ...pulumi.ResourceOption) (*AnomalyAlert, error)
NewAnomalyAlert registers a new resource with the given unique name, arguments, and options.
func (*AnomalyAlert) ElementType ¶
func (*AnomalyAlert) ElementType() reflect.Type
func (*AnomalyAlert) ToAnomalyAlertOutput ¶
func (i *AnomalyAlert) ToAnomalyAlertOutput() AnomalyAlertOutput
func (*AnomalyAlert) ToAnomalyAlertOutputWithContext ¶
func (i *AnomalyAlert) ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput
type AnomalyAlertArgs ¶
type AnomalyAlertArgs struct { // The display name which should be used for this Cost Anomaly Alert. DisplayName pulumi.StringInput // Specifies a list of email addresses which the Anomaly Alerts are send to. EmailAddresses pulumi.StringArrayInput // The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70. EmailSubject pulumi.StringInput // The message of the Cost Anomaly Alert. Maximum length of the message is 250. Message pulumi.StringPtrInput // The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens. Name pulumi.StringPtrInput // The ID of the Subscription this Cost Anomaly Alert is scoped to. Changing this forces a new resource to be created. When not supplied this defaults to the subscription configured in the provider. SubscriptionId pulumi.StringPtrInput }
The set of arguments for constructing a AnomalyAlert resource.
func (AnomalyAlertArgs) ElementType ¶
func (AnomalyAlertArgs) ElementType() reflect.Type
type AnomalyAlertArray ¶
type AnomalyAlertArray []AnomalyAlertInput
func (AnomalyAlertArray) ElementType ¶
func (AnomalyAlertArray) ElementType() reflect.Type
func (AnomalyAlertArray) ToAnomalyAlertArrayOutput ¶
func (i AnomalyAlertArray) ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput
func (AnomalyAlertArray) ToAnomalyAlertArrayOutputWithContext ¶
func (i AnomalyAlertArray) ToAnomalyAlertArrayOutputWithContext(ctx context.Context) AnomalyAlertArrayOutput
type AnomalyAlertArrayInput ¶
type AnomalyAlertArrayInput interface { pulumi.Input ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput ToAnomalyAlertArrayOutputWithContext(context.Context) AnomalyAlertArrayOutput }
AnomalyAlertArrayInput is an input type that accepts AnomalyAlertArray and AnomalyAlertArrayOutput values. You can construct a concrete instance of `AnomalyAlertArrayInput` via:
AnomalyAlertArray{ AnomalyAlertArgs{...} }
type AnomalyAlertArrayOutput ¶
type AnomalyAlertArrayOutput struct{ *pulumi.OutputState }
func (AnomalyAlertArrayOutput) ElementType ¶
func (AnomalyAlertArrayOutput) ElementType() reflect.Type
func (AnomalyAlertArrayOutput) Index ¶
func (o AnomalyAlertArrayOutput) Index(i pulumi.IntInput) AnomalyAlertOutput
func (AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutput ¶
func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput
func (AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutputWithContext ¶
func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutputWithContext(ctx context.Context) AnomalyAlertArrayOutput
type AnomalyAlertInput ¶
type AnomalyAlertInput interface { pulumi.Input ToAnomalyAlertOutput() AnomalyAlertOutput ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput }
type AnomalyAlertMap ¶
type AnomalyAlertMap map[string]AnomalyAlertInput
func (AnomalyAlertMap) ElementType ¶
func (AnomalyAlertMap) ElementType() reflect.Type
func (AnomalyAlertMap) ToAnomalyAlertMapOutput ¶
func (i AnomalyAlertMap) ToAnomalyAlertMapOutput() AnomalyAlertMapOutput
func (AnomalyAlertMap) ToAnomalyAlertMapOutputWithContext ¶
func (i AnomalyAlertMap) ToAnomalyAlertMapOutputWithContext(ctx context.Context) AnomalyAlertMapOutput
type AnomalyAlertMapInput ¶
type AnomalyAlertMapInput interface { pulumi.Input ToAnomalyAlertMapOutput() AnomalyAlertMapOutput ToAnomalyAlertMapOutputWithContext(context.Context) AnomalyAlertMapOutput }
AnomalyAlertMapInput is an input type that accepts AnomalyAlertMap and AnomalyAlertMapOutput values. You can construct a concrete instance of `AnomalyAlertMapInput` via:
AnomalyAlertMap{ "key": AnomalyAlertArgs{...} }
type AnomalyAlertMapOutput ¶
type AnomalyAlertMapOutput struct{ *pulumi.OutputState }
func (AnomalyAlertMapOutput) ElementType ¶
func (AnomalyAlertMapOutput) ElementType() reflect.Type
func (AnomalyAlertMapOutput) MapIndex ¶
func (o AnomalyAlertMapOutput) MapIndex(k pulumi.StringInput) AnomalyAlertOutput
func (AnomalyAlertMapOutput) ToAnomalyAlertMapOutput ¶
func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutput() AnomalyAlertMapOutput
func (AnomalyAlertMapOutput) ToAnomalyAlertMapOutputWithContext ¶
func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutputWithContext(ctx context.Context) AnomalyAlertMapOutput
type AnomalyAlertOutput ¶
type AnomalyAlertOutput struct{ *pulumi.OutputState }
func (AnomalyAlertOutput) DisplayName ¶
func (o AnomalyAlertOutput) DisplayName() pulumi.StringOutput
The display name which should be used for this Cost Anomaly Alert.
func (AnomalyAlertOutput) ElementType ¶
func (AnomalyAlertOutput) ElementType() reflect.Type
func (AnomalyAlertOutput) EmailAddresses ¶
func (o AnomalyAlertOutput) EmailAddresses() pulumi.StringArrayOutput
Specifies a list of email addresses which the Anomaly Alerts are send to.
func (AnomalyAlertOutput) EmailSubject ¶
func (o AnomalyAlertOutput) EmailSubject() pulumi.StringOutput
The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.
func (AnomalyAlertOutput) Message ¶
func (o AnomalyAlertOutput) Message() pulumi.StringPtrOutput
The message of the Cost Anomaly Alert. Maximum length of the message is 250.
func (AnomalyAlertOutput) Name ¶
func (o AnomalyAlertOutput) Name() pulumi.StringOutput
The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.
func (AnomalyAlertOutput) SubscriptionId ¶ added in v5.67.0
func (o AnomalyAlertOutput) SubscriptionId() pulumi.StringOutput
The ID of the Subscription this Cost Anomaly Alert is scoped to. Changing this forces a new resource to be created. When not supplied this defaults to the subscription configured in the provider.
func (AnomalyAlertOutput) ToAnomalyAlertOutput ¶
func (o AnomalyAlertOutput) ToAnomalyAlertOutput() AnomalyAlertOutput
func (AnomalyAlertOutput) ToAnomalyAlertOutputWithContext ¶
func (o AnomalyAlertOutput) ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput
type AnomalyAlertState ¶
type AnomalyAlertState struct { // The display name which should be used for this Cost Anomaly Alert. DisplayName pulumi.StringPtrInput // Specifies a list of email addresses which the Anomaly Alerts are send to. EmailAddresses pulumi.StringArrayInput // The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70. EmailSubject pulumi.StringPtrInput // The message of the Cost Anomaly Alert. Maximum length of the message is 250. Message pulumi.StringPtrInput // The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens. Name pulumi.StringPtrInput // The ID of the Subscription this Cost Anomaly Alert is scoped to. Changing this forces a new resource to be created. When not supplied this defaults to the subscription configured in the provider. SubscriptionId pulumi.StringPtrInput }
func (AnomalyAlertState) ElementType ¶
func (AnomalyAlertState) ElementType() reflect.Type
type ScheduledAction ¶ added in v5.42.0
type ScheduledAction struct { pulumi.CustomResourceState // UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. DayOfMonth pulumi.IntPtrOutput `pulumi:"dayOfMonth"` // Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. DaysOfWeeks pulumi.StringArrayOutput `pulumi:"daysOfWeeks"` // User visible input name of the Cost Management Scheduled Action. DisplayName pulumi.StringOutput `pulumi:"displayName"` // Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. EmailAddressSender pulumi.StringOutput `pulumi:"emailAddressSender"` // Specifies a list of email addresses that will receive the Scheduled Action. EmailAddresses pulumi.StringArrayOutput `pulumi:"emailAddresses"` // Subject of the email. Length is limited to 70 characters. EmailSubject pulumi.StringOutput `pulumi:"emailSubject"` // The end date and time of the Scheduled Action (UTC). EndDate pulumi.StringOutput `pulumi:"endDate"` // Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. Frequency pulumi.StringOutput `pulumi:"frequency"` // UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. HourOfDay pulumi.IntPtrOutput `pulumi:"hourOfDay"` // Message to be added in the email. Length is limited to 250 characters. Message pulumi.StringPtrOutput `pulumi:"message"` // The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. Name pulumi.StringOutput `pulumi:"name"` // The start date and time of the Scheduled Action (UTC). StartDate pulumi.StringOutput `pulumi:"startDate"` // The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. ViewId pulumi.StringOutput `pulumi:"viewId"` // Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. WeeksOfMonths pulumi.StringArrayOutput `pulumi:"weeksOfMonths"` }
Manages an Azure Cost Management Scheduled Action.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/costmanagement" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := costmanagement.NewScheduledAction(ctx, "example", &costmanagement.ScheduledActionArgs{ Name: pulumi.String("examplescheduledaction"), DisplayName: pulumi.String("Report Last 6 Months"), ViewId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/views/ms:CostByService"), EmailAddressSender: pulumi.String("platformteam@test.com"), EmailSubject: pulumi.String("Cost Management Report"), EmailAddresses: pulumi.StringArray{ pulumi.String("example@example.com"), }, Message: pulumi.String("Hi all, take a look at last 6 months spending!"), Frequency: pulumi.String("Daily"), StartDate: pulumi.String("2023-01-02T00:00:00Z"), EndDate: pulumi.String("2023-02-02T00:00:00Z"), }) if err != nil { return err } return nil }) }
```
## Import
Azure Cost Management Scheduled Actions can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:costmanagement/scheduledAction:ScheduledAction example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/scheduledaction1 ```
func GetScheduledAction ¶ added in v5.42.0
func GetScheduledAction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ScheduledActionState, opts ...pulumi.ResourceOption) (*ScheduledAction, error)
GetScheduledAction gets an existing ScheduledAction resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewScheduledAction ¶ added in v5.42.0
func NewScheduledAction(ctx *pulumi.Context, name string, args *ScheduledActionArgs, opts ...pulumi.ResourceOption) (*ScheduledAction, error)
NewScheduledAction registers a new resource with the given unique name, arguments, and options.
func (*ScheduledAction) ElementType ¶ added in v5.42.0
func (*ScheduledAction) ElementType() reflect.Type
func (*ScheduledAction) ToScheduledActionOutput ¶ added in v5.42.0
func (i *ScheduledAction) ToScheduledActionOutput() ScheduledActionOutput
func (*ScheduledAction) ToScheduledActionOutputWithContext ¶ added in v5.42.0
func (i *ScheduledAction) ToScheduledActionOutputWithContext(ctx context.Context) ScheduledActionOutput
type ScheduledActionArgs ¶ added in v5.42.0
type ScheduledActionArgs struct { // UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. DayOfMonth pulumi.IntPtrInput // Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. DaysOfWeeks pulumi.StringArrayInput // User visible input name of the Cost Management Scheduled Action. DisplayName pulumi.StringInput // Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. EmailAddressSender pulumi.StringInput // Specifies a list of email addresses that will receive the Scheduled Action. EmailAddresses pulumi.StringArrayInput // Subject of the email. Length is limited to 70 characters. EmailSubject pulumi.StringInput // The end date and time of the Scheduled Action (UTC). EndDate pulumi.StringInput // Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. Frequency pulumi.StringInput // UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. HourOfDay pulumi.IntPtrInput // Message to be added in the email. Length is limited to 250 characters. Message pulumi.StringPtrInput // The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. Name pulumi.StringPtrInput // The start date and time of the Scheduled Action (UTC). StartDate pulumi.StringInput // The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. ViewId pulumi.StringInput // Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. WeeksOfMonths pulumi.StringArrayInput }
The set of arguments for constructing a ScheduledAction resource.
func (ScheduledActionArgs) ElementType ¶ added in v5.42.0
func (ScheduledActionArgs) ElementType() reflect.Type
type ScheduledActionArray ¶ added in v5.42.0
type ScheduledActionArray []ScheduledActionInput
func (ScheduledActionArray) ElementType ¶ added in v5.42.0
func (ScheduledActionArray) ElementType() reflect.Type
func (ScheduledActionArray) ToScheduledActionArrayOutput ¶ added in v5.42.0
func (i ScheduledActionArray) ToScheduledActionArrayOutput() ScheduledActionArrayOutput
func (ScheduledActionArray) ToScheduledActionArrayOutputWithContext ¶ added in v5.42.0
func (i ScheduledActionArray) ToScheduledActionArrayOutputWithContext(ctx context.Context) ScheduledActionArrayOutput
type ScheduledActionArrayInput ¶ added in v5.42.0
type ScheduledActionArrayInput interface { pulumi.Input ToScheduledActionArrayOutput() ScheduledActionArrayOutput ToScheduledActionArrayOutputWithContext(context.Context) ScheduledActionArrayOutput }
ScheduledActionArrayInput is an input type that accepts ScheduledActionArray and ScheduledActionArrayOutput values. You can construct a concrete instance of `ScheduledActionArrayInput` via:
ScheduledActionArray{ ScheduledActionArgs{...} }
type ScheduledActionArrayOutput ¶ added in v5.42.0
type ScheduledActionArrayOutput struct{ *pulumi.OutputState }
func (ScheduledActionArrayOutput) ElementType ¶ added in v5.42.0
func (ScheduledActionArrayOutput) ElementType() reflect.Type
func (ScheduledActionArrayOutput) Index ¶ added in v5.42.0
func (o ScheduledActionArrayOutput) Index(i pulumi.IntInput) ScheduledActionOutput
func (ScheduledActionArrayOutput) ToScheduledActionArrayOutput ¶ added in v5.42.0
func (o ScheduledActionArrayOutput) ToScheduledActionArrayOutput() ScheduledActionArrayOutput
func (ScheduledActionArrayOutput) ToScheduledActionArrayOutputWithContext ¶ added in v5.42.0
func (o ScheduledActionArrayOutput) ToScheduledActionArrayOutputWithContext(ctx context.Context) ScheduledActionArrayOutput
type ScheduledActionInput ¶ added in v5.42.0
type ScheduledActionInput interface { pulumi.Input ToScheduledActionOutput() ScheduledActionOutput ToScheduledActionOutputWithContext(ctx context.Context) ScheduledActionOutput }
type ScheduledActionMap ¶ added in v5.42.0
type ScheduledActionMap map[string]ScheduledActionInput
func (ScheduledActionMap) ElementType ¶ added in v5.42.0
func (ScheduledActionMap) ElementType() reflect.Type
func (ScheduledActionMap) ToScheduledActionMapOutput ¶ added in v5.42.0
func (i ScheduledActionMap) ToScheduledActionMapOutput() ScheduledActionMapOutput
func (ScheduledActionMap) ToScheduledActionMapOutputWithContext ¶ added in v5.42.0
func (i ScheduledActionMap) ToScheduledActionMapOutputWithContext(ctx context.Context) ScheduledActionMapOutput
type ScheduledActionMapInput ¶ added in v5.42.0
type ScheduledActionMapInput interface { pulumi.Input ToScheduledActionMapOutput() ScheduledActionMapOutput ToScheduledActionMapOutputWithContext(context.Context) ScheduledActionMapOutput }
ScheduledActionMapInput is an input type that accepts ScheduledActionMap and ScheduledActionMapOutput values. You can construct a concrete instance of `ScheduledActionMapInput` via:
ScheduledActionMap{ "key": ScheduledActionArgs{...} }
type ScheduledActionMapOutput ¶ added in v5.42.0
type ScheduledActionMapOutput struct{ *pulumi.OutputState }
func (ScheduledActionMapOutput) ElementType ¶ added in v5.42.0
func (ScheduledActionMapOutput) ElementType() reflect.Type
func (ScheduledActionMapOutput) MapIndex ¶ added in v5.42.0
func (o ScheduledActionMapOutput) MapIndex(k pulumi.StringInput) ScheduledActionOutput
func (ScheduledActionMapOutput) ToScheduledActionMapOutput ¶ added in v5.42.0
func (o ScheduledActionMapOutput) ToScheduledActionMapOutput() ScheduledActionMapOutput
func (ScheduledActionMapOutput) ToScheduledActionMapOutputWithContext ¶ added in v5.42.0
func (o ScheduledActionMapOutput) ToScheduledActionMapOutputWithContext(ctx context.Context) ScheduledActionMapOutput
type ScheduledActionOutput ¶ added in v5.42.0
type ScheduledActionOutput struct{ *pulumi.OutputState }
func (ScheduledActionOutput) DayOfMonth ¶ added in v5.42.0
func (o ScheduledActionOutput) DayOfMonth() pulumi.IntPtrOutput
UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`.
func (ScheduledActionOutput) DaysOfWeeks ¶ added in v5.42.0
func (o ScheduledActionOutput) DaysOfWeeks() pulumi.StringArrayOutput
Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`.
func (ScheduledActionOutput) DisplayName ¶ added in v5.42.0
func (o ScheduledActionOutput) DisplayName() pulumi.StringOutput
User visible input name of the Cost Management Scheduled Action.
func (ScheduledActionOutput) ElementType ¶ added in v5.42.0
func (ScheduledActionOutput) ElementType() reflect.Type
func (ScheduledActionOutput) EmailAddressSender ¶ added in v5.42.0
func (o ScheduledActionOutput) EmailAddressSender() pulumi.StringOutput
Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails.
func (ScheduledActionOutput) EmailAddresses ¶ added in v5.42.0
func (o ScheduledActionOutput) EmailAddresses() pulumi.StringArrayOutput
Specifies a list of email addresses that will receive the Scheduled Action.
func (ScheduledActionOutput) EmailSubject ¶ added in v5.42.0
func (o ScheduledActionOutput) EmailSubject() pulumi.StringOutput
Subject of the email. Length is limited to 70 characters.
func (ScheduledActionOutput) EndDate ¶ added in v5.42.0
func (o ScheduledActionOutput) EndDate() pulumi.StringOutput
The end date and time of the Scheduled Action (UTC).
func (ScheduledActionOutput) Frequency ¶ added in v5.42.0
func (o ScheduledActionOutput) Frequency() pulumi.StringOutput
Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified.
func (ScheduledActionOutput) HourOfDay ¶ added in v5.42.0
func (o ScheduledActionOutput) HourOfDay() pulumi.IntPtrOutput
UTC time at which cost analysis data will be emailed. Must be between `0` and `23`.
func (ScheduledActionOutput) Message ¶ added in v5.42.0
func (o ScheduledActionOutput) Message() pulumi.StringPtrOutput
Message to be added in the email. Length is limited to 250 characters.
func (ScheduledActionOutput) Name ¶ added in v5.42.0
func (o ScheduledActionOutput) Name() pulumi.StringOutput
The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created.
func (ScheduledActionOutput) StartDate ¶ added in v5.42.0
func (o ScheduledActionOutput) StartDate() pulumi.StringOutput
The start date and time of the Scheduled Action (UTC).
func (ScheduledActionOutput) ToScheduledActionOutput ¶ added in v5.42.0
func (o ScheduledActionOutput) ToScheduledActionOutput() ScheduledActionOutput
func (ScheduledActionOutput) ToScheduledActionOutputWithContext ¶ added in v5.42.0
func (o ScheduledActionOutput) ToScheduledActionOutputWithContext(ctx context.Context) ScheduledActionOutput
func (ScheduledActionOutput) ViewId ¶ added in v5.42.0
func (o ScheduledActionOutput) ViewId() pulumi.StringOutput
The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created.
func (ScheduledActionOutput) WeeksOfMonths ¶ added in v5.42.0
func (o ScheduledActionOutput) WeeksOfMonths() pulumi.StringArrayOutput
Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`.
type ScheduledActionState ¶ added in v5.42.0
type ScheduledActionState struct { // UTC day on which cost analysis data will be emailed. Must be between `1` and `31`. This property is applicable when `frequency` is `Monthly`. DayOfMonth pulumi.IntPtrInput // Specifies a list of day names on which cost analysis data will be emailed. This property is applicable when frequency is `Weekly` or `Monthly`. Possible values are `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday` and `Wednesday`. DaysOfWeeks pulumi.StringArrayInput // User visible input name of the Cost Management Scheduled Action. DisplayName pulumi.StringPtrInput // Email address of the point of contact that should get the unsubscribe requests of Scheduled Action notification emails. EmailAddressSender pulumi.StringPtrInput // Specifies a list of email addresses that will receive the Scheduled Action. EmailAddresses pulumi.StringArrayInput // Subject of the email. Length is limited to 70 characters. EmailSubject pulumi.StringPtrInput // The end date and time of the Scheduled Action (UTC). EndDate pulumi.StringPtrInput // Frequency of the schedule. Possible values are `Daily`, `Monthly` and `Weekly`. Value `Monthly` requires either `weeksOfMonth` and `daysOfWeek` or `dayOfMonth` to be specified. Value `Weekly` requires `daysOfWeek` to be specified. Frequency pulumi.StringPtrInput // UTC time at which cost analysis data will be emailed. Must be between `0` and `23`. HourOfDay pulumi.IntPtrInput // Message to be added in the email. Length is limited to 250 characters. Message pulumi.StringPtrInput // The name which should be used for this Azure Cost Management Scheduled Action. Changing this forces a new Azure Cost Management Scheduled Action to be created. Name pulumi.StringPtrInput // The start date and time of the Scheduled Action (UTC). StartDate pulumi.StringPtrInput // The ID of the Cost Management View that is used by the Scheduled Action. Changing this forces a new resource to be created. ViewId pulumi.StringPtrInput // Specifies a list of weeks in which cost analysis data will be emailed. This property is applicable when `frequency` is `Monthly` and used in combination with `daysOfWeek`. Possible values are `First`, `Fourth`, `Last`, `Second` and `Third`. WeeksOfMonths pulumi.StringArrayInput }
func (ScheduledActionState) ElementType ¶ added in v5.42.0
func (ScheduledActionState) ElementType() reflect.Type