Example #1
0
 /// <summary>
 /// Constructs a new access control policy condition that compares two
 /// strings.
 /// </summary>
 /// <param name="type">The type of comparison to perform</param>
 /// <param name="key">The access policy condition key specifying where to get the
 ///            first string for the comparison (ex: aws:UserAgent).
 ///            <see cref="Amazon.Auth.Conditions.AWSCommonConditions"/>
 /// </param>
 /// <param name="value">The second string to compare against. When using
 ///            StringComparisonType.StringLike or
 ///            StringComparisonType.StringNotLike this may contain
 ///            the multi-character wildcard (*) or the single-character
 ///            wildcard (?).
 /// </param>
 public static Condition NewCondition(StringComparisonType type, string key, string value)
 {
     return(new Condition(type.ToString(), key, value));
 }
Example #2
0
 /// <summary>
 /// Constructs a new access control policy condition that compares two
 /// strings.
 /// </summary>
 /// <param name="type">The type of comparison to perform</param>
 /// <param name="key">The access policy condition key specifying where to get the
 ///            first string for the comparison (ex: aws:UserAgent). 
 ///            <see cref="Amazon.Auth.Conditions.AWSCommonConditions"/>
 /// </param>
 /// <param name="value">The second string to compare against. When using
 ///            StringComparisonType.StringLike or
 ///            StringComparisonType.StringNotLike this may contain
 ///            the multi-character wildcard (*) or the single-character
 ///            wildcard (?).
 /// </param>
 public static Condition NewCondition(StringComparisonType type, string key, string value)
 {
     return new Condition(type.ToString(), key, value);
 }