CfnUserPoolUserToGroupAttachmentPropsMixin
- class aws_cdk.mixins_preview.aws_cognito.mixins.CfnUserPoolUserToGroupAttachmentPropsMixin(props, *, strategy=None)
Bases:
MixinAdds a user to a group.
A user who is in a group can present a preferred-role claim to an identity pool, and populates a
cognito:groupsclaim to their access and identity tokens. .. epigraph:Amazon Cognito evaluates AWS Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. **Learn more** - `Signing AWS API Requests <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html>`_ - `Using the Amazon Cognito user pools API and user pool endpoints <https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html>`_
- See:
- CloudformationResource:
AWS::Cognito::UserPoolUserToGroupAttachment
- 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_cognito import mixins as cognito_mixins cfn_user_pool_user_to_group_attachment_props_mixin = cognito_mixins.CfnUserPoolUserToGroupAttachmentPropsMixin(cognito_mixins.CfnUserPoolUserToGroupAttachmentMixinProps( group_name="groupName", username="username", user_pool_id="userPoolId" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Cognito::UserPoolUserToGroupAttachment.- Parameters:
props (
Union[CfnUserPoolUserToGroupAttachmentMixinProps,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 = ['groupName', 'username', 'userPoolId']
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