# Identity and Access Management (IAM) v3beta API - Class PrincipalAccessBoundaryPolicyRule (1.0.0-beta03)

1.0.0-beta03 (latest) 1.0.0-beta02

    public sealed class PrincipalAccessBoundaryPolicyRule : IMessage<PrincipalAccessBoundaryPolicyRule>, IEquatable<PrincipalAccessBoundaryPolicyRule>, IDeepCloneable<PrincipalAccessBoundaryPolicyRule>, IBufferMessage, IMessage

Reference documentation and code samples for the Identity and Access Management (IAM) v3beta API class PrincipalAccessBoundaryPolicyRule.

Principal access boundary policy rule that defines the resource boundary.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PrincipalAccessBoundaryPolicyRule

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PrincipalAccessBoundaryPolicyRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PrincipalAccessBoundaryPolicyRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PrincipalAccessBoundaryPolicyRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Iam.V3Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta)

## Assembly

Google.Cloud.Iam.V3Beta.dll

## Constructors

### PrincipalAccessBoundaryPolicyRule()

    public PrincipalAccessBoundaryPolicyRule()

### PrincipalAccessBoundaryPolicyRule(PrincipalAccessBoundaryPolicyRule)

    public PrincipalAccessBoundaryPolicyRule(PrincipalAccessBoundaryPolicyRule other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule` |

## Properties

### Description

    public string Description { get; set; }

Optional. The description of the principal access boundary policy rule.
Must be less than or equal to 256 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Effect

    public PrincipalAccessBoundaryPolicyRule.Types.Effect Effect { get; set; }

Required. The access relationship of principals to the resources in this
rule.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRulehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PrincipalAccessBoundaryPolicyRule.Types.Effect` |   |

### Resources

    public RepeatedField<string> Resources { get; }

Required. A list of Resource Manager resources. If a resource is listed in
the rule, then the rule applies for that resource and its descendants. The
number of resources in a policy is limited to 500 across all rules in the
policy.

The following resource types are supported:

- Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`.
- Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`.
- Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` or `//cloudresourcemanager.googleapis.com/projects/my-project-id`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |