UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

137 lines (136 loc) 7.9 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class ScheduledAction extends pulumi.CustomResource { /** * Get an existing ScheduledAction resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ScheduledAction; /** * Returns true if the given object is an instance of ScheduledAction. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ScheduledAction; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Scheduled action name. */ readonly displayName: pulumi.Output<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. */ readonly eTag: pulumi.Output<string>; /** * Destination format of the view data. This is optional. */ readonly fileDestination: pulumi.Output<outputs.costmanagement.FileDestinationResponse | undefined>; /** * Kind of the scheduled action. */ readonly kind: pulumi.Output<string | undefined>; /** * The name of the resource */ readonly name: pulumi.Output<string>; /** * Notification properties based on scheduled action kind. */ readonly notification: pulumi.Output<outputs.costmanagement.NotificationPropertiesResponse>; /** * Email address of the point of contact that should get the unsubscribe requests and notification emails. */ readonly notificationEmail: pulumi.Output<string | undefined>; /** * Schedule of the scheduled action. */ readonly schedule: pulumi.Output<outputs.costmanagement.SchedulePropertiesResponse>; /** * For private scheduled action(Create or Update), scope will be empty.<br /> 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. */ readonly scope: pulumi.Output<string | undefined>; /** * Status of the scheduled action. */ readonly status: pulumi.Output<string>; /** * Kind of the scheduled action. */ readonly systemData: pulumi.Output<outputs.costmanagement.SystemDataResponse>; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: pulumi.Output<string>; /** * Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample' */ readonly viewId: pulumi.Output<string>; /** * Create a ScheduledAction resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ScheduledActionArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a ScheduledAction resource. */ export interface ScheduledActionArgs { /** * Scheduled action name. */ displayName: pulumi.Input<string>; /** * Destination format of the view data. This is optional. */ fileDestination?: pulumi.Input<inputs.costmanagement.FileDestinationArgs>; /** * Kind of the scheduled action. */ kind?: pulumi.Input<string | enums.costmanagement.ScheduledActionKind>; /** * Scheduled action name. */ name?: pulumi.Input<string>; /** * Notification properties based on scheduled action kind. */ notification: pulumi.Input<inputs.costmanagement.NotificationPropertiesArgs>; /** * Email address of the point of contact that should get the unsubscribe requests and notification emails. */ notificationEmail?: pulumi.Input<string>; /** * Schedule of the scheduled action. */ schedule: pulumi.Input<inputs.costmanagement.SchedulePropertiesArgs>; /** * For private scheduled action(Create or Update), scope will be empty.<br /> 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. */ scope?: pulumi.Input<string>; /** * Status of the scheduled action. */ status: pulumi.Input<string | enums.costmanagement.ScheduledActionStatus>; /** * Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample' */ viewId: pulumi.Input<string>; }