Interface IAssumeRolePrincipal
- All Superinterfaces:
IGrantable
,IPrincipal
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAssumeRolePrincipal.Jsii$Default
- All Known Implementing Classes:
AccountPrincipal
,AccountRootPrincipal
,AnyPrincipal
,ArnPrincipal
,CanonicalUserPrincipal
,CompositePrincipal
,FederatedPrincipal
,IAssumeRolePrincipal.Jsii$Proxy
,OpenIdConnectPrincipal
,OrganizationPrincipal
,PrincipalBase
,PrincipalWithConditions
,SamlConsolePrincipal
,SamlPrincipal
,ServicePrincipal
,SessionTagsPrincipal
,StarPrincipal
,ViaServicePrincipal
,WebIdentityPrincipal
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:59.996Z")
@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
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIAssumeRolePrincipal
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToAssumeRolePolicy
(PolicyDocument document) Add the principal to the AssumeRolePolicyDocument.Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipal
Methods inherited from interface software.amazon.awscdk.services.iam.IPrincipal
addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccount
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
addToAssumeRolePolicy
Add the principal 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.
-