AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IAM::UserToGroupAddition

CfnUserToGroupAddition

Adds the specified user to the specified group.

Import

import { CfnUserToGroupAddition } from 'aws-cdk-lib/aws-iam';

Or use the module namespace:

import * as iam from 'aws-cdk-lib/aws-iam';
// iam.CfnUserToGroupAddition

Properties

Configuration passed to the constructor as CfnUserToGroupAdditionProps.

groupNameRequired
string

The name of the group to update. This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex) ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

usersRequired
string[]

A list of the names of the users that you want to add to the group.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the AWS IAM Cheat Sheet

Everything you need to know about AWS IAM on one page. HD quality, print-friendly.

Download Free Infographic