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:
  • Method Details

    • getUserArn

      @Stability(Stable) @NotNull String getUserArn()
      The user's ARN.
    • getUserName

      @Stability(Stable) @NotNull String getUserName()
      The user's name.
    • addToGroup

      @Stability(Stable) void addToGroup(@NotNull IGroup group)
      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:
      getNode in interface software.constructs.IConstruct
    • getEnv

      @Stability(Stable) @NotNull ResourceEnvironment 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:
      getEnv in interface IEnvironmentAware