@Internal public static final class IRole.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRole.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIRole.Jsii$Default, IRole.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.
|
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.
|
String |
getRoleArn()
Returns the ARN of this role.
|
String |
getRoleName()
Returns the name of this role.
|
Stack |
getStack()
The stack in which this resource is defined.
|
Grant |
grant(IPrincipal grantee,
String... actions)
Grant the actions defined in actions to the identity Principal on this resource.
|
Grant |
grantAssumeRole(IPrincipal grantee)
Grant permissions to the given principal to assume this role.
|
Grant |
grantPassRole(IPrincipal grantee)
Grant permissions to the given principal to pass this role.
|
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 IRole.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 IRole.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 IRole.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 IRole.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 IRole.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 IRole.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 IRole.Jsii$Default@Stability(value=Stable) @NotNull public final String getRoleArn()
getRoleArn in interface IRolegetRoleArn in interface IRole.Jsii$Default@Stability(value=Stable) @NotNull public final String getRoleName()
getRoleName in interface IRolegetRoleName in interface IRole.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 IRole.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 IRole.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 IRole.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 IRole.Jsii$Defaultpolicy - The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IPrincipal grantee, @NotNull String... actions)
grant in interface IRolegrant in interface IRole.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantAssumeRole(@NotNull IPrincipal grantee)
grantAssumeRole in interface IRolegrantAssumeRole in interface IRole.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPassRole(@NotNull IPrincipal grantee)
grantPassRole in interface IRolegrantPassRole in interface IRole.Jsii$Defaultgrantee - This parameter is required.Copyright © 2022. All rights reserved.