Class: Aws::Organizations::Types::CreateOrganizationalUnitRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Organizations::Types::CreateOrganizationalUnitRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-organizations/types.rb
Overview
When making an API call, you may pass CreateOrganizationalUnitRequest data as a hash:
{
parent_id: "ParentId", # required
name: "OrganizationalUnitName", # required
}
Instance Attribute Summary collapse
-
#name ⇒ String
The friendly name to assign to the new OU.
-
#parent_id ⇒ String
The unique identifier (ID) of the parent root or OU in which you want to create the new OU.
Instance Attribute Details
#name ⇒ String
The friendly name to assign to the new OU.
507 508 509 510 511 |
# File 'lib/aws-sdk-organizations/types.rb', line 507 class CreateOrganizationalUnitRequest < Struct.new( :parent_id, :name) include Aws::Structure end |
#parent_id ⇒ String
The unique identifier (ID) of the parent root or OU in which you want to create the new OU.
The [regex pattern] for a parent ID string requires one of the following:
-
Root: a string that begins with “r-” followed by from 4 to 32 lower-case letters or digits.
-
Organizational unit (OU): a string that begins with “ou-” followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second “-” dash and from 8 to 32 additional lower-case letters or digits.
507 508 509 510 511 |
# File 'lib/aws-sdk-organizations/types.rb', line 507 class CreateOrganizationalUnitRequest < Struct.new( :parent_id, :name) include Aws::Structure end |