Namespace Pulumi.Gcp.Billing
Classes
AccountIamBinding
Allows creation and management of a single binding within IAM policy for an existing Google Cloud Platform Billing Account.
Note: This resource must not be used in conjunction with
gcp.billing.AccountIamMemberfor the same role or they will fight over what your policy should be.
Note: On create, this resource will overwrite members of any existing roles. Use
pulumi importand inspect the output to ensure your existing members are preserved.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var binding = new Gcp.Billing.AccountIamBinding("binding", new Gcp.Billing.AccountIamBindingArgs
{
BillingAccountId = "00AA00-000AAA-00AA0A",
Members =
{
"user:alice@gmail.com",
},
Role = "roles/billing.viewer",
});
}
}
AccountIamBindingArgs
AccountIamBindingState
AccountIamMember
Allows creation and management of a single member for a single binding within the IAM policy for an existing Google Cloud Platform Billing Account.
Note: This resource must not be used in conjunction with
gcp.billing.AccountIamBindingfor the same role or they will fight over what your policy should be.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var binding = new Gcp.Billing.AccountIamMember("binding", new Gcp.Billing.AccountIamMemberArgs
{
BillingAccountId = "00AA00-000AAA-00AA0A",
Member = "user:alice@gmail.com",
Role = "roles/billing.viewer",
});
}
}
AccountIamMemberArgs
AccountIamMemberState
AccountIamPolicy
Allows management of the entire IAM policy for an existing Google Cloud Platform Billing Account.
Warning: Billing accounts have a default user that can be overwritten by use of this resource. The safest alternative is to use multiple
gcp.billing.AccountIamBindingresources. If you do use this resource, the best way to be sure that you are not making dangerous changes is to start by importing your existing policy, and examining the diff very closely.
Note: This resource must not be used in conjunction with
gcp.billing.AccountIamMemberorgcp.billing.AccountIamBindingor they will fight over what your policy should be.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
{
Binding =
{
{
{ "role", "roles/billing.viewer" },
{ "members",
{
"user:jane@example.com",
} },
},
},
}));
var policy = new Gcp.Billing.AccountIamPolicy("policy", new Gcp.Billing.AccountIamPolicyArgs
{
BillingAccountId = "00AA00-000AAA-00AA0A",
PolicyData = admin.Apply(admin => admin.PolicyData),
});
}
}
AccountIamPolicyArgs
AccountIamPolicyState
Budget
Budget configuration for a billing account.
To get more information about Budget, see:
- API documentation
- How-to Guides
- Creating a budget