diff --git a/lib/alks-api.js b/lib/alks-api.js index 0749e8a..9be9d18 100644 --- a/lib/alks-api.js +++ b/lib/alks-api.js @@ -279,13 +279,14 @@ exports.createLongTermKey = function(account, auth, iamUserName, opts, callback) }); }; -exports.createIamRole = function(account, auth, roleName, roleType, includeDefaultPolicies, opts, callback){ +exports.createIamRole = function(account, auth, roleName, roleType, includeDefaultPolicies, enableAlksAccess, opts, callback){ var payload = _.extend({ account: account.alksAccount, role: account.alksRole, roleName: roleName, roleType: roleType, - includeDefaultPolicy: includeDefaultPolicies ? '1' : '0' + includeDefaultPolicy: includeDefaultPolicies ? '1' : '0', + enableAlksAccess: enableAlksAccess }, account), options = _.extend({ debug: false,