@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.769Z") @Stability(value=Stable) public interface IIdentity extends software.amazon.jsii.JsiiSerializable, IPrincipal, IResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IIdentity.Jsii$Default
Internal default implementation for
IIdentity. |
static class |
IIdentity.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addManagedPolicy(IManagedPolicy policy)
Attaches a managed policy to this principal.
|
void |
attachInlinePolicy(Policy policy)
Attaches an inline policy to this principal.
|
addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountgetGrantPrincipalapplyRemovalPolicy, getEnv, getStack@Stability(value=Stable)
void addManagedPolicy(@NotNull
IManagedPolicy policy)
policy - The managed policy. This parameter is required.@Stability(value=Stable)
void attachInlinePolicy(@NotNull
Policy policy)
This is the same as calling policy.addToXxx(principal).
policy - The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.Copyright © 2022. All rights reserved.