Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from awslabs/security-updates
Browse files Browse the repository at this point in the history
Update dependencies to address security vulnerabilities
  • Loading branch information
otterley committed Dec 26, 2022
2 parents 7bdd627 + 0799479 commit 3a790d5
Show file tree
Hide file tree
Showing 2 changed files with 1,146 additions and 300 deletions.
7 changes: 7 additions & 0 deletions lib/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,13 @@ export class Role extends Resource implements IRole {
public grantPassRole(identity: IPrincipal) {
return this.grant(identity, 'iam:PassRole');
}

/**
* Grant permissions to the given principal to assume this role.
*/
public grantAssumeRole(grantee: IPrincipal) {
return this.grant(grantee, 'sts:AssumeRole');
}
}


Expand Down
Loading

0 comments on commit 3a790d5

Please sign in to comment.