Interface IPrincipal.Jsii$Default
- All Superinterfaces:
IGrantable
,IGrantable.Jsii$Default
,IPrincipal
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAssumeRolePrincipal.Jsii$Default
,IComparablePrincipal.Jsii$Default
,IGroup.Jsii$Default
,IIdentity.Jsii$Default
,IRole.Jsii$Default
,IUser.Jsii$Default
- All Known Implementing Classes:
IAssumeRolePrincipal.Jsii$Proxy
,IComparablePrincipal.Jsii$Proxy
,IGroup.Jsii$Proxy
,IIdentity.Jsii$Proxy
,IPrincipal.Jsii$Proxy
,IRole.Jsii$Proxy
,IUser.Jsii$Proxy
- Enclosing interface:
IPrincipal
@Internal
public static interface IPrincipal.Jsii$Default
extends IPrincipal, IGrantable.Jsii$Default
Internal default implementation for
IPrincipal
.-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddToPrincipalPolicyResult
addToPrincipalPolicy
(PolicyStatement statement) Add to the policy of this principal.default String
When this Principal is used in an AssumeRole policy, the action to use.default IPrincipal
The principal to grant permissions to.default PrincipalPolicyFragment
Return the policy fragment that identifies this principal in a Policy.default String
The AWS account ID of this principal.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipal
in interfaceIGrantable
- Specified by:
getGrantPrincipal
in interfaceIGrantable.Jsii$Default
-
getAssumeRoleAction
When this Principal is used in an AssumeRole policy, the action to use.- Specified by:
getAssumeRoleAction
in interfaceIPrincipal
-
getPolicyFragment
Return the policy fragment that identifies this principal in a Policy.- Specified by:
getPolicyFragment
in interfaceIPrincipal
-
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 interfaceIPrincipal
-
addToPrincipalPolicy
@Stability(Stable) @NotNull default AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement) Add to the policy of this principal.- Specified by:
addToPrincipalPolicy
in interfaceIPrincipal
- Parameters:
statement
- This parameter is required.
-