Interface IIdentity
- All Superinterfaces:
IConstruct
,software.constructs.IConstruct
,IDependable
,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.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.316Z")
@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
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIIdentity
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addManagedPolicy
(IManagedPolicy policy) Attaches a managed policy to this principal.void
attachInlinePolicy
(Policy policy) Attaches an inline policy to this principal.Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipal
Methods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccount
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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.
-