public class SQSQueueResource extends Resource
This is an older style of referencing an Amazon SQS queue. You can also use the queue's Amazon
Resource Name (ARN), which you can obtain by calling
AmazonSQS.getQueueAttributes(com.amazonaws.services.sqs.model.GetQueueAttributesRequest)
and requesting the "QueueArn" attribute.
Constructor and Description |
---|
SQSQueueResource(java.lang.String accountId,
java.lang.String queueName)
Constructs a new SQS queue resource for an access control policy.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
formatAccountId(java.lang.String accountId) |
public SQSQueueResource(java.lang.String accountId, java.lang.String queueName)
accountId
- The AWS account ID of the queue owner.queueName
- The name of the Amazon SQS queue.