Documentation
¶
Overview ¶
nolint: lll Package billing exports types, functions, subpackages for provisioning billing resources.
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-google) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-gcp` repo](https://github.com/pulumi/pulumi-gcp/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-google` repo](https://github.com/terraform-providers/terraform-provider-google/issues).
Index ¶
- type AccountIamBinding
- func (r *AccountIamBinding) BillingAccountId() *pulumi.StringOutput
- func (r *AccountIamBinding) Etag() *pulumi.StringOutput
- func (r *AccountIamBinding) ID() *pulumi.IDOutput
- func (r *AccountIamBinding) Members() *pulumi.ArrayOutput
- func (r *AccountIamBinding) Role() *pulumi.StringOutput
- func (r *AccountIamBinding) URN() *pulumi.URNOutput
- type AccountIamBindingArgs
- type AccountIamBindingState
- type AccountIamMember
- func (r *AccountIamMember) BillingAccountId() *pulumi.StringOutput
- func (r *AccountIamMember) Etag() *pulumi.StringOutput
- func (r *AccountIamMember) ID() *pulumi.IDOutput
- func (r *AccountIamMember) Member() *pulumi.StringOutput
- func (r *AccountIamMember) Role() *pulumi.StringOutput
- func (r *AccountIamMember) URN() *pulumi.URNOutput
- type AccountIamMemberArgs
- type AccountIamMemberState
- type AccountIamPolicy
- type AccountIamPolicyArgs
- type AccountIamPolicyState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountIamBinding ¶
type AccountIamBinding struct {
// contains filtered or unexported fields
}
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
`billing.AccountIamMember` for 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 `import` and inspect the preview output to ensure your existing members are preserved.
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/billing_account_iam_binding.html.markdown.
func GetAccountIamBinding ¶
func GetAccountIamBinding(ctx *pulumi.Context, name string, id pulumi.ID, state *AccountIamBindingState, opts ...pulumi.ResourceOpt) (*AccountIamBinding, error)
GetAccountIamBinding gets an existing AccountIamBinding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccountIamBinding ¶
func NewAccountIamBinding(ctx *pulumi.Context, name string, args *AccountIamBindingArgs, opts ...pulumi.ResourceOpt) (*AccountIamBinding, error)
NewAccountIamBinding registers a new resource with the given unique name, arguments, and options.
func (*AccountIamBinding) BillingAccountId ¶
func (r *AccountIamBinding) BillingAccountId() *pulumi.StringOutput
The billing account id.
func (*AccountIamBinding) Etag ¶
func (r *AccountIamBinding) Etag() *pulumi.StringOutput
(Computed) The etag of the billing account's IAM policy.
func (*AccountIamBinding) ID ¶
func (r *AccountIamBinding) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*AccountIamBinding) Members ¶
func (r *AccountIamBinding) Members() *pulumi.ArrayOutput
A list of users that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding
func (*AccountIamBinding) Role ¶
func (r *AccountIamBinding) Role() *pulumi.StringOutput
The role that should be applied.
func (*AccountIamBinding) URN ¶
func (r *AccountIamBinding) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type AccountIamBindingArgs ¶
type AccountIamBindingArgs struct { // The billing account id. BillingAccountId interface{} // A list of users that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding Members interface{} // The role that should be applied. Role interface{} }
The set of arguments for constructing a AccountIamBinding resource.
type AccountIamBindingState ¶
type AccountIamBindingState struct { // The billing account id. BillingAccountId interface{} // (Computed) The etag of the billing account's IAM policy. Etag interface{} // A list of users that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding Members interface{} // The role that should be applied. Role interface{} }
Input properties used for looking up and filtering AccountIamBinding resources.
type AccountIamMember ¶
type AccountIamMember struct {
// contains filtered or unexported fields
}
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
`billing.AccountIamBinding` for the __same role__ or they will fight over what your policy should be.
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/billing_account_iam_member.html.markdown.
func GetAccountIamMember ¶
func GetAccountIamMember(ctx *pulumi.Context, name string, id pulumi.ID, state *AccountIamMemberState, opts ...pulumi.ResourceOpt) (*AccountIamMember, error)
GetAccountIamMember gets an existing AccountIamMember resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccountIamMember ¶
func NewAccountIamMember(ctx *pulumi.Context, name string, args *AccountIamMemberArgs, opts ...pulumi.ResourceOpt) (*AccountIamMember, error)
NewAccountIamMember registers a new resource with the given unique name, arguments, and options.
func (*AccountIamMember) BillingAccountId ¶
func (r *AccountIamMember) BillingAccountId() *pulumi.StringOutput
The billing account id.
func (*AccountIamMember) Etag ¶
func (r *AccountIamMember) Etag() *pulumi.StringOutput
(Computed) The etag of the billing account's IAM policy.
func (*AccountIamMember) ID ¶
func (r *AccountIamMember) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*AccountIamMember) Member ¶
func (r *AccountIamMember) Member() *pulumi.StringOutput
The user that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding
func (*AccountIamMember) Role ¶
func (r *AccountIamMember) Role() *pulumi.StringOutput
The role that should be applied.
func (*AccountIamMember) URN ¶
func (r *AccountIamMember) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type AccountIamMemberArgs ¶
type AccountIamMemberArgs struct { // The billing account id. BillingAccountId interface{} // The user that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding Member interface{} // The role that should be applied. Role interface{} }
The set of arguments for constructing a AccountIamMember resource.
type AccountIamMemberState ¶
type AccountIamMemberState struct { // The billing account id. BillingAccountId interface{} // (Computed) The etag of the billing account's IAM policy. Etag interface{} // The user that the role should apply to. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding Member interface{} // The role that should be applied. Role interface{} }
Input properties used for looking up and filtering AccountIamMember resources.
type AccountIamPolicy ¶
type AccountIamPolicy struct {
// contains filtered or unexported fields
}
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 `billing.AccountIamBinding`
resources. 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
`billing.AccountIamMember` or `billing.AccountIamBinding` or they will fight over what your policy should be.
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/billing_account_iam_policy.html.markdown.
func GetAccountIamPolicy ¶
func GetAccountIamPolicy(ctx *pulumi.Context, name string, id pulumi.ID, state *AccountIamPolicyState, opts ...pulumi.ResourceOpt) (*AccountIamPolicy, error)
GetAccountIamPolicy gets an existing AccountIamPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccountIamPolicy ¶
func NewAccountIamPolicy(ctx *pulumi.Context, name string, args *AccountIamPolicyArgs, opts ...pulumi.ResourceOpt) (*AccountIamPolicy, error)
NewAccountIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*AccountIamPolicy) BillingAccountId ¶
func (r *AccountIamPolicy) BillingAccountId() *pulumi.StringOutput
The billing account id.
func (*AccountIamPolicy) Etag ¶
func (r *AccountIamPolicy) Etag() *pulumi.StringOutput
func (*AccountIamPolicy) ID ¶
func (r *AccountIamPolicy) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*AccountIamPolicy) PolicyData ¶
func (r *AccountIamPolicy) PolicyData() *pulumi.StringOutput
The `organizations.getIAMPolicy` data source that represents the IAM policy that will be applied to the billing account. This policy overrides any existing policy applied to the billing account.
func (*AccountIamPolicy) URN ¶
func (r *AccountIamPolicy) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type AccountIamPolicyArgs ¶
type AccountIamPolicyArgs struct { // The billing account id. BillingAccountId interface{} // The `organizations.getIAMPolicy` data source that represents // the IAM policy that will be applied to the billing account. This policy overrides any existing // policy applied to the billing account. PolicyData interface{} }
The set of arguments for constructing a AccountIamPolicy resource.
type AccountIamPolicyState ¶
type AccountIamPolicyState struct { // The billing account id. BillingAccountId interface{} Etag interface{} // The `organizations.getIAMPolicy` data source that represents // the IAM policy that will be applied to the billing account. This policy overrides any existing // policy applied to the billing account. PolicyData interface{} }
Input properties used for looking up and filtering AccountIamPolicy resources.