Skip to content
v2.276.0

UserPoolUserToGroupAttachmentReference Struct ​

A reference to a UserPoolUserToGroupAttachment resource.

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 interfaces_cognito } from 'aws-cdk-lib/interfaces';
const userPoolUserToGroupAttachmentReference: interfaces_cognito.UserPoolUserToGroupAttachmentReference = {
  groupName: 'groupName',
  username: 'username',
  userPoolId: 'userPoolId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_cognito as interfaces_cognito

user_pool_user_to_group_attachment_reference = interfaces_cognito.UserPoolUserToGroupAttachmentReference(
    group_name="groupName",
    username="username",
    user_pool_id="userPoolId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.cognito.*;

UserPoolUserToGroupAttachmentReference userPoolUserToGroupAttachmentReference = UserPoolUserToGroupAttachmentReference.builder()
        .groupName("groupName")
        .username("username")
        .userPoolId("userPoolId")
        .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.Interfaces.Cognito;

var userPoolUserToGroupAttachmentReference = new UserPoolUserToGroupAttachmentReference {
    GroupName = "groupName",
    Username = "username",
    UserPoolId = "userPoolId"
};
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"

userPoolUserToGroupAttachmentReference := &UserPoolUserToGroupAttachmentReference{
	GroupName: jsii.String("groupName"),
	Username: jsii.String("username"),
	UserPoolId: jsii.String("userPoolId"),
}

Properties ​

groupNamestringgroup_namestrgroupNameStringGroupNamestringGroupName*stringrequired#
The GroupName of the UserPoolUserToGroupAttachment resource.
usernamestringusernamestrusernameStringUsernamestringUsername*stringrequired#
The Username of the UserPoolUserToGroupAttachment resource.
userPoolIdstringuser_pool_idstruserPoolIdStringUserPoolIdstringUserPoolId*stringrequired#
The UserPoolId of the UserPoolUserToGroupAttachment resource.