public sealed class AwsMetadata.Types.AwsOrganizationalUnit : IMessage<AwsMetadata.Types.AwsOrganizationalUnit>, IEquatable<AwsMetadata.Types.AwsOrganizationalUnit>, IDeepCloneable<AwsMetadata.Types.AwsOrganizationalUnit>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class AwsMetadata.Types.AwsOrganizationalUnit.
An Organizational Unit (OU) is a container of AWS accounts within a root of
an organization. Policies that are attached to an OU apply to all accounts
contained in that OU and in any child OUs.
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAwsOrganizationalUnit\u003c/code\u003e class within the Security Command Center v2 API, specifically under the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAwsOrganizationalUnit\u003c/code\u003e represents an Organizational Unit (OU) in AWS, which acts as a container for AWS accounts, applying policies to all accounts within it and its child OUs.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, indicating its capabilities for message handling, equality checks, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAwsOrganizationalUnit\u003c/code\u003e class has properties for \u003ccode\u003eId\u003c/code\u003e, representing the unique identifier of the OU, and \u003ccode\u003eName\u003c/code\u003e, representing the friendly name of the OU, both being of type \u003ccode\u003estring\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: A default, and another one that takes another \u003ccode\u003eAwsOrganizationalUnit\u003c/code\u003e object as parameter.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class AwsMetadata.Types.AwsOrganizationalUnit (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit) \n\n public sealed class AwsMetadata.Types.AwsOrganizationalUnit : IMessage\u003cAwsMetadata.Types.AwsOrganizationalUnit\u003e, IEquatable\u003cAwsMetadata.Types.AwsOrganizationalUnit\u003e, IDeepCloneable\u003cAwsMetadata.Types.AwsOrganizationalUnit\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class AwsMetadata.Types.AwsOrganizationalUnit.\n\nAn Organizational Unit (OU) is a container of AWS accounts within a root of\nan organization. Policies that are attached to an OU apply to all accounts\ncontained in that OU and in any child OUs. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AwsMetadata.Types.AwsOrganizationalUnit \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsOrganizationalUnit](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsOrganizationalUnit](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AwsMetadata](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types)[AwsOrganizationalUnit](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.AwsMetadata.Types.AwsOrganizationalUnit), [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.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### AwsOrganizationalUnit()\n\n public AwsOrganizationalUnit()\n\n### AwsOrganizationalUnit(AwsOrganizationalUnit)\n\n public AwsOrganizationalUnit(AwsMetadata.Types.AwsOrganizationalUnit other)\n\nProperties\n----------\n\n### Id\n\n public string Id { get; set; }\n\nThe unique identifier (ID) associated with this OU. The regex pattern for\nan organizational unit ID string requires \"ou-\" followed by from 4 to 32\nlowercase letters or digits (the ID of the root that contains the OU).\nThis string is followed by a second \"-\" dash and from 8 to 32 additional\nlowercase letters or digits. For example, \"ou-ab12-cd34ef56\".\n\n### Name\n\n public string Name { get; set; }\n\nThe friendly name of the OU."]]