CfnOrganizationalUnitPropsMixin

class aws_cdk.mixins_preview.aws_organizations.mixins.CfnOrganizationalUnitPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates 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:TagResource permission.

You can only call this operation from the management account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-organizations-organizationalunit.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental