Class StringCondition
java.lang.Object
com.amazonaws.auth.policy.Condition
com.amazonaws.auth.policy.conditions.StringCondition
String conditions let you constrain AWS access control policy statements
using string matching rules.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of the supported ways a string comparison can be evaluated. -
Field Summary
Fields inherited from class Condition
conditionKey, type, values -
Constructor Summary
ConstructorsConstructorDescriptionStringCondition(StringCondition.StringComparisonType type, String key, String value) Constructs a new access control policy condition that compares two strings. -
Method Summary
Methods inherited from class Condition
getConditionKey, getType, getValues, setConditionKey, setType, setValues, withConditionKey, withType, withValues, withValues
-
Constructor Details
-
StringCondition
Constructs a new access control policy condition that compares two strings.- Parameters:
type- The type of comparison to perform.key- The access policy condition key specifying where to get the first string for the comparison (ex: aws:UserAgent). SeeConditionFactoryfor a list of the condition keys available for all services.value- The second string to compare against. When usingStringCondition.StringComparisonType.StringLikeorStringCondition.StringComparisonType.StringNotLikethis may contain the multi-character wildcard (*) or the single-character wildcard (?).
-