@Internal public static final class IUser.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IUser.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIUser.Jsii$Default, IUser.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addManagedPolicy(IManagedPolicy policy)
Attaches a managed policy to this principal.
|
void |
addToGroup(IGroup group)
Adds this user to a group.
|
AddToPrincipalPolicyResult |
addToPrincipalPolicy(PolicyStatement statement)
Add to the policy of this principal.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
void |
attachInlinePolicy(Policy policy)
Attaches an inline policy to this principal.
|
String |
getAssumeRoleAction()
When this Principal is used in an AssumeRole policy, the action to use.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
software.constructs.Node |
getNode()
The tree node.
|
PrincipalPolicyFragment |
getPolicyFragment()
Return the policy fragment that identifies this principal in a Policy.
|
String |
getPrincipalAccount()
The AWS account ID of this principal.
|
Stack |
getStack()
The stack in which this resource is defined.
|
String |
getUserArn()
The user's ARN.
|
String |
getUserName()
The user's name.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantablegetGrantPrincipal in interface IGrantable.Jsii$DefaultgetGrantPrincipal in interface IIdentity.Jsii$DefaultgetGrantPrincipal in interface IPrincipal.Jsii$DefaultgetGrantPrincipal in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final String getAssumeRoleAction()
getAssumeRoleAction in interface IIdentity.Jsii$DefaultgetAssumeRoleAction in interface IPrincipalgetAssumeRoleAction in interface IPrincipal.Jsii$DefaultgetAssumeRoleAction in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final PrincipalPolicyFragment getPolicyFragment()
getPolicyFragment in interface IIdentity.Jsii$DefaultgetPolicyFragment in interface IPrincipalgetPolicyFragment in interface IPrincipal.Jsii$DefaultgetPolicyFragment in interface IUser.Jsii$Default@Stability(value=Stable) @Nullable public final String getPrincipalAccount()
Can be undefined when the account is not known (for example, for service principals). Can be a Token - in that case, it's assumed to be AWS::AccountId.
getPrincipalAccount in interface IIdentity.Jsii$DefaultgetPrincipalAccount in interface IPrincipalgetPrincipalAccount in interface IPrincipal.Jsii$DefaultgetPrincipalAccount in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IIdentity.Jsii$DefaultgetNode in interface IUser.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface IIdentity.Jsii$DefaultgetEnv in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IIdentity.Jsii$DefaultgetStack in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final String getUserArn()
getUserArn in interface IUsergetUserArn in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final String getUserName()
getUserName in interface IUsergetUserName in interface IUser.Jsii$Default@Stability(value=Stable) @NotNull public final AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement)
addToPrincipalPolicy in interface IIdentity.Jsii$DefaultaddToPrincipalPolicy in interface IPrincipaladdToPrincipalPolicy in interface IPrincipal.Jsii$DefaultaddToPrincipalPolicy in interface IUser.Jsii$Defaultstatement - This parameter is required.@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IIdentity.Jsii$DefaultapplyRemovalPolicy in interface IUser.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable)
public final void addManagedPolicy(@NotNull
IManagedPolicy policy)
addManagedPolicy in interface IIdentityaddManagedPolicy in interface IIdentity.Jsii$DefaultaddManagedPolicy in interface IUser.Jsii$Defaultpolicy - The managed policy. This parameter is required.@Stability(value=Stable)
public final void attachInlinePolicy(@NotNull
Policy policy)
This is the same as calling policy.addToXxx(principal).
attachInlinePolicy in interface IIdentityattachInlinePolicy in interface IIdentity.Jsii$DefaultattachInlinePolicy in interface IUser.Jsii$Defaultpolicy - The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.@Stability(value=Stable)
public final void addToGroup(@NotNull
IGroup group)
addToGroup in interface IUseraddToGroup in interface IUser.Jsii$Defaultgroup - This parameter is required.Copyright © 2022. All rights reserved.