CfnUserPoolUserToGroupAttachmentProps Struct
Properties for defining a CfnUserPoolUserToGroupAttachment.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnUserPoolUserToGroupAttachmentProps: cognito.CfnUserPoolUserToGroupAttachmentProps = {
groupName: 'groupName',
username: 'username',
userPoolId: 'userPoolId',
};
Properties
groupNamestring | IUserPoolGroupRefgroup_nametyping.Union[str, IUserPoolGroupRef]groupNameStringGroupNamestringGroupNameinterface{}required#The name of the group that you want to add your user to.
usernamestring | IUserPoolUserRefusernametyping.Union[str, IUserPoolUserRef]usernameStringUsernamestringUsernameinterface{}required#The user's username.
userPoolIdstring | IUserPoolRefuser_pool_idtyping.Union[str, IUserPoolRef]userPoolIdStringUserPoolIdstringUserPoolIdinterface{}required#The ID of the user pool that contains the group that you want to add the user to.