Skip to content

Commit

Permalink
Fix the policy parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitar-hristov committed Nov 5, 2022
1 parent e87fd5d commit a6a3dbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44425,7 +44425,7 @@ async function assumeRole(params) {

assumeRoleRequest.WebIdentityToken = webIdentityToken;
if(isDefined(inlineSessionPolicy)) {
assumeRoleRequest.inlineSessionPolicy = inlineSessionPolicy;
assumeRoleRequest.Policy = inlineSessionPolicy;
}
assumeFunction = sts.assumeRoleWithWebIdentity.bind(sts);
} else if(isDefined(webIdentityTokenFile)) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function assumeRole(params) {

assumeRoleRequest.WebIdentityToken = webIdentityToken;
if(isDefined(inlineSessionPolicy)) {
assumeRoleRequest.inlineSessionPolicy = inlineSessionPolicy;
assumeRoleRequest.Policy = inlineSessionPolicy;
}
assumeFunction = sts.assumeRoleWithWebIdentity.bind(sts);
} else if(isDefined(webIdentityTokenFile)) {
Expand Down

0 comments on commit a6a3dbc

Please sign in to comment.