@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:08:45.964Z") @Stability(value=Stable) public interface IAssumeRolePrincipal extends software.amazon.jsii.JsiiSerializable, IPrincipal
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.
Modifier and Type | Interface and Description |
---|---|
static interface |
IAssumeRolePrincipal.Jsii$Default
Internal default implementation for
IAssumeRolePrincipal . |
static class |
IAssumeRolePrincipal.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
void |
addToAssumeRolePolicy(PolicyDocument document)
Add the princpial to the AssumeRolePolicyDocument.
|
addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getPolicyFragment, getPrincipalAccount
getGrantPrincipal
@Stability(value=Stable) void addToAssumeRolePolicy(@NotNull PolicyDocument document)
Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.
document
- This parameter is required.Copyright © 2023. All rights reserved.