public class ArnCondition extends Condition
An Amazon Resource Name (ARN) takes the following format: arn:aws:<vendor>:<region>:<namespace>:<relative-id>
For example, an Amazon SQS queue might be addressed with the following ARN: arn:aws:sqs:us-east-1:987654321000:MyQueue
Currently the only valid condition key to use in an ARN condition is
ConditionFactory.SOURCE_ARN_CONDITION_KEY, which indicates the
source resource that is modifying another resource, for example, an SNS topic
is the source ARN when publishing messages from the topic to an SQS queue.
|Modifier and Type||Class and Description|
Enumeration of the supported ways an ARN comparison can be evaluated.
|Constructor and Description|
Constructs a new access control policy condition that compares ARNs (Amazon Resource Names).
getConditionKey, getType, getValues, setConditionKey, setType, setValues, withConditionKey, withType, withValues, withValues
public ArnCondition(ArnCondition.ArnComparisonType type, String key, String value)
type- The type of comparison to perform.
key- The access policy condition key specifying where to get the first ARN for the comparison (ex:
value- The second ARN to compare against. When using
ArnCondition.ArnComparisonType.ArnNotLikethis may contain the multi-character wildcard (*) or the single-character wildcard (?).