Class IIdentity.Jsii$Proxy
- All Implemented Interfaces:
IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IGrantable,IGrantable.Jsii$Default,IIdentity,IIdentity.Jsii$Default,IPrincipal,IPrincipal.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IIdentity
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IIdentity
IIdentity.Jsii$Default, IIdentity.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IPrincipal
IPrincipal.Jsii$Default, IPrincipal.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddManagedPolicy(IManagedPolicy policy) Attaches a managed policy to this principal.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final voidattachInlinePolicy(Policy policy) Attaches an inline policy to this principal.final StringWhen this Principal is used in an AssumeRole policy, the action to use.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final IPrincipalThe principal to grant permissions to.final software.constructs.NodegetNode()The tree node.final PrincipalPolicyFragmentReturn the policy fragment that identifies this principal in a Policy.final StringThe AWS account ID of this principal.final StackgetStack()The stack in which this resource is defined.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin interfaceIGrantable.Jsii$Default- Specified by:
getGrantPrincipalin interfaceIIdentity.Jsii$Default- Specified by:
getGrantPrincipalin interfaceIPrincipal.Jsii$Default
-
getAssumeRoleAction
When this Principal is used in an AssumeRole policy, the action to use.- Specified by:
getAssumeRoleActionin interfaceIIdentity.Jsii$Default- Specified by:
getAssumeRoleActionin interfaceIPrincipal- Specified by:
getAssumeRoleActionin interfaceIPrincipal.Jsii$Default
-
getPolicyFragment
Return the policy fragment that identifies this principal in a Policy.- Specified by:
getPolicyFragmentin interfaceIIdentity.Jsii$Default- Specified by:
getPolicyFragmentin interfaceIPrincipal- Specified by:
getPolicyFragmentin interfaceIPrincipal.Jsii$Default
-
getPrincipalAccount
The AWS account ID of this principal.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.
- Specified by:
getPrincipalAccountin interfaceIIdentity.Jsii$Default- Specified by:
getPrincipalAccountin interfaceIPrincipal- Specified by:
getPrincipalAccountin interfaceIPrincipal.Jsii$Default
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIIdentity.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIIdentity.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIIdentity.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
addToPrincipalPolicy
@Stability(Stable) @NotNull public final AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement) Add to the policy of this principal.- Specified by:
addToPrincipalPolicyin interfaceIIdentity.Jsii$Default- Specified by:
addToPrincipalPolicyin interfaceIPrincipal- Specified by:
addToPrincipalPolicyin interfaceIPrincipal.Jsii$Default- Parameters:
statement- This parameter is required.
-
applyRemovalPolicy
Apply the given removal policy to this resource.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).- Specified by:
applyRemovalPolicyin interfaceIIdentity.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addManagedPolicy
Attaches a managed policy to this principal.- Specified by:
addManagedPolicyin interfaceIIdentity- Specified by:
addManagedPolicyin interfaceIIdentity.Jsii$Default- 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).- Specified by:
attachInlinePolicyin interfaceIIdentity- Specified by:
attachInlinePolicyin interfaceIIdentity.Jsii$Default- Parameters:
policy- The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.
-