CfnGroupPropsMixin

class aws_cdk.mixins_preview.aws_iam.mixins.CfnGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a new group.

For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-group.html

CloudformationResource:

AWS::IAM::Group

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_iam import mixins as iam_mixins

# policy_document: Any

cfn_group_props_mixin = iam_mixins.CfnGroupPropsMixin(iam_mixins.CfnGroupMixinProps(
    group_name="groupName",
    managed_policy_arns=["managedPolicyArns"],
    path="path",
    policies=[iam_mixins.CfnGroupPropsMixin.PolicyProperty(
        policy_document=policy_document,
        policy_name="policyName"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::IAM::Group.

Parameters:
  • props (Union[CfnGroupMixinProps, 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:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['groupName', 'managedPolicyArns', 'path', 'policies']

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

PolicyProperty

class CfnGroupPropsMixin.PolicyProperty(*, policy_document=None, policy_name=None)

Bases: object

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role.

For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .

Parameters:
  • policy_document (Any) – The policy document.

  • policy_name (Optional[str]) – The friendly name (not ARN) identifying the policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group-policy.html

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.aws_iam import mixins as iam_mixins

# policy_document: Any

policy_property = iam_mixins.CfnGroupPropsMixin.PolicyProperty(
    policy_document=policy_document,
    policy_name="policyName"
)

Attributes

policy_document

The policy document.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group-policy.html#cfn-iam-group-policy-policydocument

policy_name

The friendly name (not ARN) identifying the policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group-policy.html#cfn-iam-group-policy-policyname