CfnGroupMembershipPropsMixin
- class aws_cdk.mixins_preview.aws_identitystore.mixins.CfnGroupMembershipPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a relationship between a member and a group.
The following identifiers must be specified:
GroupId,IdentityStoreId, andMemberId.- See:
- CloudformationResource:
AWS::IdentityStore::GroupMembership
- 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_identitystore import mixins as identitystore_mixins cfn_group_membership_props_mixin = identitystore_mixins.CfnGroupMembershipPropsMixin(identitystore_mixins.CfnGroupMembershipMixinProps( group_id="groupId", identity_store_id="identityStoreId", member_id=identitystore_mixins.CfnGroupMembershipPropsMixin.MemberIdProperty( user_id="userId" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IdentityStore::GroupMembership.- Parameters:
props (
Union[CfnGroupMembershipMixinProps,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 = ['groupId', 'identityStoreId', 'memberId']
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
MemberIdProperty
- class CfnGroupMembershipPropsMixin.MemberIdProperty(*, user_id=None)
Bases:
objectAn object that contains the identifier of a group member.
Setting the
UserIDfield to the specific identifier for a user indicates that the user is a member of the group.- Parameters:
user_id (
Optional[str]) – An object containing the identifiers of resources that can be members.- See:
- 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_identitystore import mixins as identitystore_mixins member_id_property = identitystore_mixins.CfnGroupMembershipPropsMixin.MemberIdProperty( user_id="userId" )
Attributes
- user_id
An object containing the identifiers of resources that can be members.