Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a new access control policy statement with the specified
 /// effect.
 /// <para>
 /// Before a statement is valid and can be sent to AWS, callers must set the
 /// principals, resources, and actions (as well as any optional conditions)
 /// involved in the statement.
 /// </para>
 /// </summary>
 /// <param name="effect">The effect this statement has (allowing access or denying
 ///            access) when all conditions, resources, principals, and
 ///            actions are matched.</param>
 public Statement(StatementEffect effect)
 {
     this.effect = effect;
     this.id     = Guid.NewGuid().ToString().Replace("-", "");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a new access control policy statement with the specified
 /// effect.
 /// <para>
 /// Before a statement is valid and can be sent to AWS, callers must set the
 /// principals, resources, and actions (as well as any optional conditions)
 /// involved in the statement.
 /// </para>
 /// </summary>
 /// <param name="effect">The effect this statement has (allowing access or denying
 ///            access) when all conditions, resources, principals, and
 ///            actions are matched.</param>
 public Statement(StatementEffect effect)
 {
     this.effect = effect;
     this.id = Guid.NewGuid().ToString();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs a new access control policy statement with the specified
 /// effect.
 /// <para>
 /// Before a statement is valid and can be sent to AWS, callers must set the
 /// principals, resources, and actions (as well as any optional conditions)
 /// involved in the statement.
 /// </para>
 /// </summary>
 /// <param name="effect">The effect this statement has (allowing access or denying
 ///            access) when all conditions, resources, principals, and
 ///            actions are matched.</param>
 public Statement(StatementEffect effect)
 {
     this.effect = effect;
     this.id = Guid.NewGuid().ToString().Replace("-", "");
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs a new access control policy statement with the specified
 /// effect.
 /// <para>
 /// Before a statement is valid and can be sent to AWS, callers must set the
 /// principals, resources, and actions (as well as any optional conditions)
 /// involved in the statement.
 /// </para>
 /// </summary>
 /// <param name="effect">The effect this statement has (allowing access or denying
 ///            access) when all conditions, resources, principals, and
 ///            actions are matched.</param>
 public Statement(StatementEffect effect)
 {
     this.effect = effect;
     this.id     = Guid.NewGuid().ToString();
 }