Interface IUser
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IIdentity,IPrincipal,IResource,IUserRef,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IUser.Jsii$Default
- All Known Implementing Classes:
IUser.Jsii$Proxy,User
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:42.952Z")
@Stability(Stable)
public interface IUser
extends software.amazon.jsii.JsiiSerializable, IIdentity, IUserRef
Represents an IAM user.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIUser.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToGroup(IGroup group) Adds this user to a group.getEnv()The environment this resource belongs to.software.constructs.NodegetNode()The tree node.The user's ARN.The user's name.Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.services.iam.IIdentity
addManagedPolicy, attachInlinePolicyMethods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.services.iam.IUserRef
getUserRefMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUserArn
The user's ARN. -
getUserName
The user's name. -
addToGroup
Adds this user to a group.- Parameters:
group- This parameter is required.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware
-