示例#1
0
 /// <summary>
 /// Returns true if the statement has been added
 /// </summary>
 /// <param name="role"></param>
 /// <param name="actions"></param>
 /// <param name="resources"></param>
 /// <param name="effect"></param>
 /// <returns></returns>
 public bool AddRolePolicyStatement(ref IRole role, string[] actions, string[] resources, Effect effect = Effect.ALLOW)
 {
     return(role.AddToPrincipalPolicy(
                new PolicyStatement(
                    new PolicyStatementProps()
     {
         Effect = effect,
         Actions = actions,
         Resources = resources
     })
                ).StatementAdded);
 }