Class IAMMember
Allows creation and management of a single member for a single binding within the IAM policy for an existing Google Cloud Platform Organization.
Note: This resource must not be used in conjunction with
gcp.organizations.IAMBindingfor 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.Organizations.IAMMember("binding", new Gcp.Organizations.IAMMemberArgs
{
Member = "user:alice@gmail.com",
OrgId = "0123456789",
Role = "roles/editor",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Organizations
Assembly: Pulumi.Gcp.dll
Syntax
public class IAMMember : CustomResource
Constructors
View SourceIAMMember(String, IAMMemberArgs, CustomResourceOptions)
Create a IAMMember resource with the given unique name, arguments, and options.
Declaration
public IAMMember(string name, IAMMemberArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| IAMMemberArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCondition
Declaration
public Output<IAMMemberCondition> Condition { get; }
Property Value
| Type | Description |
|---|---|
| Output<IAMMemberCondition> |
Etag
(Computed) The etag of the organization'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> |
OrgId
The numeric ID of the organization in which you want to create a custom role.
Declaration
public Output<string> OrgId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Role
The role that should be applied. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, IAMMemberState, CustomResourceOptions)
Get an existing IAMMember resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static IAMMember Get(string name, Input<string> id, IAMMemberState 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. |
| IAMMemberState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| IAMMember |