func NewBudgetSubscription(ctx *pulumi.Context,
	name string, args *BudgetSubscriptionArgs, opts ...pulumi.ResourceOption) (*BudgetSubscription, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.Amount == nil {
		return nil, errors.New("invalid value for required argument 'Amount'")
	}
	if args.Notifications == nil {
		return nil, errors.New("invalid value for required argument 'Notifications'")
	}
	if args.SubscriptionId == nil {
		return nil, errors.New("invalid value for required argument 'SubscriptionId'")
	}
	if args.TimePeriod == nil {
		return nil, errors.New("invalid value for required argument 'TimePeriod'")
	}
	var resource BudgetSubscription
	err := ctx.RegisterResource("azure:consumption/budgetSubscription:BudgetSubscription", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewBudgetSubscription registers a new resource with the given unique name, arguments, and options.
NewBudgetSubscription registers a new resource with the given unique name, arguments, and options.
// NewBudgetSubscription registers a new resource with the given unique name arguments and options .
func NewBudgetSubscription(ctx *pulumi.Context,
	name string, args *BudgetSubscriptionArgs, opts ...pulumi.ResourceOption) (*BudgetSubscription, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Amount == nil {
		return nil, errors.New("invalid value for required argument 'Amount'")
	}
	if args.Notifications == nil {
		return nil, errors.New("invalid value for required argument 'Notifications'")
	}
	if args.SubscriptionId == nil {
		return nil, errors.New("invalid value for required argument 'SubscriptionId'")
	}
	if args.TimePeriod == nil {
		return nil, errors.New("invalid value for required argument 'TimePeriod'")
	}
	var resource BudgetSubscription
	err := ctx.RegisterResource("azure:consumption/budgetSubscription:BudgetSubscription", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewBudgetSubscription ( ctx * pulumi . Context , name string , args * BudgetSubscriptionArgs , opts ... pulumi . ResourceOption ) ( * BudgetSubscription , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Amount == nil { return nil , errors . New ( " " ) } if args . Notifications == nil { return nil , errors . New ( " " ) } if args . SubscriptionId == nil { return nil , errors . New ( " " ) } if args . TimePeriod == nil { return nil , errors . New ( " " ) } var resource BudgetSubscription err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewBudgetSubscription registers a new resource with the given unique name, arguments, and options.
NewBudgetSubscription registers a new resource with the given unique name arguments and options .