Skip to content
v2.278.0

CfnUserToGroupAdditionProps Struct ​

Properties for defining a CfnUserToGroupAddition.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const cfnUserToGroupAdditionProps: iam.CfnUserToGroupAdditionProps = {
  groupName: 'groupName',
  users: ['users'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam

cfn_user_to_group_addition_props = iam.CfnUserToGroupAdditionProps(
    group_name="groupName",
    users=["users"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;

CfnUserToGroupAdditionProps cfnUserToGroupAdditionProps = CfnUserToGroupAdditionProps.builder()
        .groupName("groupName")
        .users(List.of("users"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;

var cfnUserToGroupAdditionProps = new CfnUserToGroupAdditionProps {
    GroupName = "groupName",
    Users = new [] { "users" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserToGroupAdditionProps := &CfnUserToGroupAdditionProps{
	GroupName: jsii.String("groupName"),
	Users: []*string{
		jsii.String("users"),
	},
}

Properties ​

groupNamestringgroup_namestrgroupNameStringGroupNamestringGroupName*string required #
The name of the group to update.
notes

This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

usersstring[]userstyping.List[str]usersList<String>Usersstring[]Users*[]*string required #
A list of the names of the users that you want to add to the group.