CfnOrganizationalUnitPropsMixin
- class aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationalUnitPropsMixin(props, *, strategy=None)
Bases:
MixinCreates an organizational unit (OU) within a root or parent OU.
An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that root. For service control policies, the limit is five.
For more information about OUs, see Managing organizational units (OUs) in the AWS Organizations User Guide .
If the request includes tags, then the requester must have the
organizations:TagResourcepermission.You can only call this operation from the management account.
- See:
- CloudformationResource:
AWS::Organizations::OrganizationalUnit
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_organizations import mixins as organizations_mixins cfn_organizational_unit_props_mixin = organizations_mixins.CfnOrganizationalUnitPropsMixin(organizations_mixins.CfnOrganizationalUnitMixinProps( name="name", parent_id="parentId", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Organizations::OrganizationalUnit.- Parameters:
props (
Union[CfnOrganizationalUnitMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['name', 'parentId', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental