Interface IIdentity
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IPrincipal,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IGroup,IGroup.Jsii$Default,IIdentity.Jsii$Default,IRole,IRole.Jsii$Default,IUser,IUser.Jsii$Default
- All Known Implementing Classes:
Group,IGroup.Jsii$Proxy,IIdentity.Jsii$Proxy,IRole.Jsii$Proxy,IUser.Jsii$Proxy,LazyRole,Role,User
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:42.942Z")
@Stability(Stable)
public interface IIdentity
extends software.amazon.jsii.JsiiSerializable, IPrincipal, IResource
A construct that represents an IAM principal, such as a user, group or role.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIIdentity.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddManagedPolicy(IManagedPolicy policy) Attaches a managed policy to this principal.voidattachInlinePolicy(Policy policy) Attaches an inline policy to this principal.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods 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.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
addManagedPolicy
Attaches a managed policy to this principal.- Parameters:
policy- The managed policy. This parameter is required.
-
attachInlinePolicy
Attaches an inline policy to this principal.This is the same as calling
policy.addToXxx(principal).- Parameters:
policy- The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.
-