Budget constructor

Budget(
  1. String name, {
  2. BudgetArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new Budget. name The Pulumi resource name. args Arguments used to configure this Budget. The set of arguments for Budget. options Resource options controlling this resource's behavior.

Implementation

Budget(
  String name, {
  BudgetArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'google-native:billingbudgets/v1:Budget',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  amount = registerOutput<GoogleCloudBillingBudgetsV1BudgetAmountResponse>('amount', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudBillingBudgetsV1BudgetAmountResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  billingAccountId = registerOutput<String>('billingAccountId');
  budgetFilter = registerOutput<GoogleCloudBillingBudgetsV1FilterResponse>('budgetFilter', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudBillingBudgetsV1FilterResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  displayName = registerOutput<String>('displayName');
  etag = registerOutput<String>('etag');
  this.name = registerOutput<String>('name');
  notificationsRule = registerOutput<GoogleCloudBillingBudgetsV1NotificationsRuleResponse>('notificationsRule', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudBillingBudgetsV1NotificationsRuleResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  ownershipScope = registerOutput<String>('ownershipScope');
  thresholdRules = registerOutput<List<Map<String, dynamic>>>('thresholdRules');
}