googleBillingSubaccount
Allows creation and management of a Google Cloud Billing Subaccount.
!> WARNING: Deleting this Terraform resource will not delete or close the billing subaccount.
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.billingSubaccount.BillingSubaccount(this, "subaccount", {
display_name: "My Billing Account",
master_billing_account: "012345-567890-ABCDEF",
});
Argument Reference
-
displayName
(Required) - The display name of the billing account. -
masterBillingAccount
(Required) - The name of the master billing account that the subaccount will be created under in the form{billingAccountId}
orbillingAccounts/{billingAccountId}
. -
deletionPolicy
(Optional) - If set to "RENAME_ON_DESTROY" the billing account display_name will be changed to "Terraform Destroyed" along with a timestamp. If set to "" this will not occur. Default is "".
Attributes Reference
The following additional attributes are exported:
-
open
-true
if the billing account is open,false
if the billing account is closed. -
name
- The resource name of the billing account in the formbillingAccounts/{billingAccountId}
. -
billingAccountId
- The billing account id.
Import
Billing Subaccounts can be imported using any of these accepted formats: