CfnPolicyPropsMixin
- class aws_cdk.mixins_preview.aws_organizations.mixins.CfnPolicyPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a policy of a specified type that you can attach to a root, an organizational unit (OU), or an individual AWS account .
For more information about policies and their use, see Managing AWS Organizations policies .
If the request includes tags, then the requester must have the
organizations:TagResourcepermission.This operation can be called only from the organization’s management account or a member account designated as a delegated administrator. .. epigraph:
Before you can create a policy of a given type, you must first `enable that policy type <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_enable-disable.html>`_ in your organization.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-organizations-policy.html
- CloudformationResource:
AWS::Organizations::Policy
- 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 # content: Any cfn_policy_props_mixin = organizations_mixins.CfnPolicyPropsMixin(organizations_mixins.CfnPolicyMixinProps( content=content, description="description", name="name", tags=[CfnTag( key="key", value="value" )], target_ids=["targetIds"], type="type" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Organizations::Policy.- Parameters:
props (
Union[CfnPolicyMixinProps,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 = ['content', 'description', 'name', 'tags', 'targetIds', 'type']
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