/// <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("-", ""); }
/// <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(); }