Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::AwsMetadata::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.
(::String) — 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".
#id=
defid=(value)->::String
Parameter
value (::String) — 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".
Returns
(::String) — 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-09-09 UTC."],[],[],null,["# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::AwsMetadata::AwsOrganizationalUnit (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [1.2.0](/ruby/docs/reference/google-cloud-security_center-v2/1.2.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [1.1.1](/ruby/docs/reference/google-cloud-security_center-v2/1.1.1/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [1.0.0](/ruby/docs/reference/google-cloud-security_center-v2/1.0.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.6.0](/ruby/docs/reference/google-cloud-security_center-v2/0.6.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.5.0](/ruby/docs/reference/google-cloud-security_center-v2/0.5.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.4.1](/ruby/docs/reference/google-cloud-security_center-v2/0.4.1/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.3.0](/ruby/docs/reference/google-cloud-security_center-v2/0.3.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.2.0](/ruby/docs/reference/google-cloud-security_center-v2/0.2.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit)\n- [0.1.0](/ruby/docs/reference/google-cloud-security_center-v2/0.1.0/Google-Cloud-SecurityCenter-V2-AwsMetadata-AwsOrganizationalUnit) \nReference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::AwsMetadata::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\nInherits\n--------\n\n- [Object](./Google-Cloud-SecurityCenter-V2-Kubernetes-Object) \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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\".\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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\". \n**Returns**\n\n- (::String) --- 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\".\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The friendly name of the OU.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The friendly name of the OU. \n**Returns**\n\n- (::String) --- The friendly name of the OU."]]