Class IAssumeRolePrincipal.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.IAssumeRolePrincipal.Jsii$Proxy
- All Implemented Interfaces:
IAssumeRolePrincipal
,IAssumeRolePrincipal.Jsii$Default
,IGrantable
,IGrantable.Jsii$Default
,IPrincipal
,IPrincipal.Jsii$Default
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
IAssumeRolePrincipal
@Internal
public static final class IAssumeRolePrincipal.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements IAssumeRolePrincipal.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IAssumeRolePrincipal
IAssumeRolePrincipal.Jsii$Default, IAssumeRolePrincipal.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IPrincipal
IPrincipal.Jsii$Default, IPrincipal.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addToAssumeRolePolicy
(PolicyDocument document) Add the princpial to the AssumeRolePolicyDocument.final Boolean
addToPolicy
(PolicyStatement statement) Deprecated.addToPrincipalPolicy
(PolicyStatement statement) Add to the policy of this principal.final String
When this Principal is used in an AssumeRole policy, the action to use.final IPrincipal
The principal to grant permissions to.final PrincipalPolicyFragment
Return the policy fragment that identifies this principal in a Policy.final String
The AWS account ID of this principal.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getGrantPrincipal
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
getGrantPrincipal
in interfaceIGrantable
- Specified by:
getGrantPrincipal
in interfaceIGrantable.Jsii$Default
- Specified by:
getGrantPrincipal
in interfaceIPrincipal.Jsii$Default
-
getAssumeRoleAction
When this Principal is used in an AssumeRole policy, the action to use.- Specified by:
getAssumeRoleAction
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
getAssumeRoleAction
in interfaceIPrincipal
- Specified by:
getAssumeRoleAction
in interfaceIPrincipal.Jsii$Default
-
getPolicyFragment
Return the policy fragment that identifies this principal in a Policy.- Specified by:
getPolicyFragment
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
getPolicyFragment
in interfaceIPrincipal
- Specified by:
getPolicyFragment
in 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:
getPrincipalAccount
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
getPrincipalAccount
in interfaceIPrincipal
- Specified by:
getPrincipalAccount
in interfaceIPrincipal.Jsii$Default
-
addToPolicy
@Stability(Deprecated) @Deprecated @NotNull public final Boolean addToPolicy(@NotNull PolicyStatement statement) Deprecated.UseaddToPrincipalPolicy
instead.(deprecated) Add to the policy of this principal.- Specified by:
addToPolicy
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
addToPolicy
in interfaceIPrincipal
- Specified by:
addToPolicy
in interfaceIPrincipal.Jsii$Default
- Parameters:
statement
- This parameter is required.- Returns:
- true if the statement was added, false if the principal in question does not have a policy document to add the statement to.
-
addToPrincipalPolicy
@Stability(Stable) @NotNull public final AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement) Add to the policy of this principal.- Specified by:
addToPrincipalPolicy
in interfaceIAssumeRolePrincipal.Jsii$Default
- Specified by:
addToPrincipalPolicy
in interfaceIPrincipal
- Specified by:
addToPrincipalPolicy
in interfaceIPrincipal.Jsii$Default
- Parameters:
statement
- This parameter is required.
-
addToAssumeRolePolicy
Add the princpial to the AssumeRolePolicyDocument.Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.
- Specified by:
addToAssumeRolePolicy
in interfaceIAssumeRolePrincipal
- Specified by:
addToAssumeRolePolicy
in interfaceIAssumeRolePrincipal.Jsii$Default
- Parameters:
document
- This parameter is required.
-
addToPrincipalPolicy
instead.