Show / Hide Table of Contents

Interface IAssumeRolePrincipal

A type of principal that has more control over its own representation in AssumeRolePolicyDocuments.

Inherited Members
IPrincipal.AddToPrincipalPolicy(PolicyStatement)
IPrincipal.AssumeRoleAction
IPrincipal.PolicyFragment
IPrincipal.PrincipalAccount
IGrantable.GrantPrincipal
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAssumeRolePrincipal : IPrincipal, IGrantable
Syntax (vb)
Public Interface IAssumeRolePrincipal Inherits IPrincipal, IGrantable
Remarks

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.

Synopsis

Methods

AddToAssumeRolePolicy(PolicyDocument)

Add the principal to the AssumeRolePolicyDocument.

Methods

AddToAssumeRolePolicy(PolicyDocument)

Add the principal to the AssumeRolePolicyDocument.

void AddToAssumeRolePolicy(PolicyDocument document)
Parameters
document PolicyDocument
Remarks

Add the statements to the AssumeRolePolicyDocument necessary to give this principal permissions to assume the given role.

Back to top Generated by DocFX