public sealed class ResourcePolicyMember : IMessage<ResourcePolicyMember>, IEquatable<ResourcePolicyMember>, IDeepCloneable<ResourcePolicyMember>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class ResourcePolicyMember.
Output-only policy member strings of a Google Cloud resource's built-in
identity.
public string IamPolicyNamePrincipal { get; set; }
IAM policy binding member referring to a Google Cloud resource by
user-assigned name (https://google.aip.dev/122). If a resource is deleted
and recreated with the same name, the binding will be applicable to the new
resource.
IAM policy binding member referring to a Google Cloud resource by
system-assigned unique identifier (https://google.aip.dev/148#uid). If a
resource is deleted and recreated with the same name, the binding will not
be applicable to the new resource
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eResourcePolicyMember\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API, which is used for managing policy member strings of Google Cloud resources.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcePolicyMember\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message handling, equality checks, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eResourcePolicyMember\u003c/code\u003e class is 3.4.0, with older versions available, including 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.4.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties, \u003ccode\u003eIamPolicyNamePrincipal\u003c/code\u003e and \u003ccode\u003eIamPolicyUidPrincipal\u003c/code\u003e, which allow policy bindings to be applied to a resource by either a user assigned name or a unique system assigned ID respectively.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourcePolicyMember\u003c/code\u003e has two constructors, one empty and another that takes another \u003ccode\u003eResourcePolicyMember\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Identity and Access Management (IAM) v1 API - Class ResourcePolicyMember (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.3.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.2.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.1.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.0.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.4.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.3.0/Google.Cloud.Iam.V1.ResourcePolicyMember)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.2.0/Google.Cloud.Iam.V1.ResourcePolicyMember) \n\n public sealed class ResourcePolicyMember : IMessage\u003cResourcePolicyMember\u003e, IEquatable\u003cResourcePolicyMember\u003e, IDeepCloneable\u003cResourcePolicyMember\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class ResourcePolicyMember.\n\nOutput-only policy member strings of a Google Cloud resource's built-in\nidentity. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourcePolicyMember \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourcePolicyMember](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.ResourcePolicyMember), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourcePolicyMember](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.ResourcePolicyMember), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourcePolicyMember](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.ResourcePolicyMember), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Iam.V1](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iam.V1.dll\n\nConstructors\n------------\n\n### ResourcePolicyMember()\n\n public ResourcePolicyMember()\n\n### ResourcePolicyMember(ResourcePolicyMember)\n\n public ResourcePolicyMember(ResourcePolicyMember other)\n\nProperties\n----------\n\n### IamPolicyNamePrincipal\n\n public string IamPolicyNamePrincipal { get; set; }\n\nIAM policy binding member referring to a Google Cloud resource by\nuser-assigned name (\u003chttps://google.aip.dev/122\u003e). If a resource is deleted\nand recreated with the same name, the binding will be applicable to the new\nresource.\n\nExample:\n`principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`\n\n### IamPolicyUidPrincipal\n\n public string IamPolicyUidPrincipal { get; set; }\n\nIAM policy binding member referring to a Google Cloud resource by\nsystem-assigned unique identifier (\u003chttps://google.aip.dev/148#uid\u003e). If a\nresource is deleted and recreated with the same name, the binding will not\nbe applicable to the new resource\n\nExample:\n`principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`"]]