Interface IAssumeRolePrincipal
- All Superinterfaces:
IGrantable,IPrincipal,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAssumeRolePrincipal.Jsii$Default
- All Known Implementing Classes:
AccountPrincipal,AccountRootPrincipal,Anyone,AnyPrincipal,ArnPrincipal,CanonicalUserPrincipal,CompositePrincipal,FederatedPrincipal,IAssumeRolePrincipal.Jsii$Proxy,OpenIdConnectPrincipal,OrganizationPrincipal,PrincipalBase,PrincipalWithConditions,SamlConsolePrincipal,SamlPrincipal,ServicePrincipal,SessionTagsPrincipal,StarPrincipal,ViaServicePrincipal,WebIdentityPrincipal
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.313Z")
@Stability(Stable)
public interface IAssumeRolePrincipal
extends software.amazon.jsii.JsiiSerializable, IPrincipal
A type of principal that has more control over its own representation in AssumeRolePolicyDocuments.
More complex types of identity providers need more control over Role's policy documents
than simply { Effect: 'Allow', Action: 'AssumeRole', Principal: <Whatever> }.
If that control is necessary, they can implement IAssumeRolePrincipal to get full
access to a Role's AssumeRolePolicyDocument.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIAssumeRolePrincipal.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAssumeRolePolicy(PolicyDocument document) Add the princpial to the AssumeRolePolicyDocument.Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccountMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
addToAssumeRolePolicy
Add the princpial to the AssumeRolePolicyDocument.Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.
- Parameters:
document- This parameter is required.
-