Ern simpleQueueArn;
try {
simpleQueueArn = Ern.parse(deadLetterTargetArnJsonNode.textValue());
} catch (JSONException e) {
throw new InvalidParameterValueException("Value " + attribute.getValue() + " for parameter " +
<BUG>"RedrivePolicy is invalid. Reason: Invalid value for deadLetterTargetArn.");
}</BUG>
if (!simpleQueueArn.getRegion().equals(RegionConfigurations.getRegionNameOrDefault())) {
throw new InvalidParameterValueException("Value " + attribute.getValue() + " for parameter " +
"RedrivePolicy is invalid. Reason: Dead-letter target must be in same region as the source.");

Ern simpleQueueArn;
try {
simpleQueueArn = Ern.parse(deadLetterTargetArnJsonNode.textValue());
} catch (JSONException e) {
throw new InvalidParameterValueException("Value " + attribute.getValue() + " for parameter " +
"RedrivePolicy is invalid. Reason: Invalid value for " + Constants.DEAD_LETTER_TARGET_ARN + ".");
}
if (!simpleQueueArn.getRegion().equals(RegionConfigurations.getRegionNameOrDefault())) {
throw new InvalidParameterValueException("Value " + attribute.getValue() + " for parameter " +
"RedrivePolicy is invalid. Reason: Dead-letter target must be in same region as the source.");
