Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Billing
Assembly: Pulumi.Gcp.dll
Syntax
public class AccountIamMember : CustomResource
Constructors
View SourceAccountIamMember(String, AccountIamMemberArgs, CustomResourceOptions)
Create a AccountIamMember resource with the given unique name, arguments, and options.
Declaration
public AccountIamMember(string name, AccountIamMemberArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccountIamMemberArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBillingAccountId
The billing account id.
Declaration
public Output<string> BillingAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Condition
Declaration
public Output<AccountIamMemberCondition> Condition { get; }
Property Value
| Type | Description |
|---|---|
| Output<AccountIamMemberCondition> |
Etag
(Computed) The etag of the billing account's IAM policy.
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Member
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
Declaration
public Output<string> Member { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Role
The role that should be applied.
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AccountIamMemberState, CustomResourceOptions)
Get an existing AccountIamMember resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccountIamMember Get(string name, Input<string> id, AccountIamMemberState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccountIamMemberState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccountIamMember |