Class CfnOrganizationalUnitProps
Properties for defining a CfnOrganizationalUnit
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Organizations
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnOrganizationalUnitProps : Object, ICfnOrganizationalUnitProps
Syntax (vb)
Public Class CfnOrganizationalUnitProps
Inherits Object
Implements ICfnOrganizationalUnitProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Organizations;
var cfnOrganizationalUnitProps = new CfnOrganizationalUnitProps {
Name = "name",
ParentId = "parentId",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnOrganizationalUnitProps() |
Properties
Name | The friendly name of this OU. |
ParentId | The unique identifier (ID) of the parent root or OU that you want to create the new OU in. |
Tags | A list of tags that you want to attach to the newly created OU. |
Constructors
CfnOrganizationalUnitProps()
public CfnOrganizationalUnitProps()
Properties
Name
The friendly name of this OU.
public string Name { get; set; }
Property Value
System.String
Remarks
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
ParentId
The unique identifier (ID) of the parent root or OU that you want to create the new OU in.
public string ParentId { get; set; }
Property Value
System.String
Remarks
To update the ParentId
parameter value, you must first remove all accounts attached to the organizational unit (OU). OUs can't be moved within the organization with accounts still attached.
The regex pattern for a parent ID string requires one of the following:
Tags
A list of tags that you want to attach to the newly created OU.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null
. For more information about tagging, see Tagging AWS Organizations resources in the AWS Organizations User Guide.
If any one of the tags is not valid or if you exceed the allowed number of tags for an OU, then the entire request fails and the OU is not created.