@Generated(value="jsii-pacmak/0.7.13 (build 311bf88)", date="2019-01-11T10:50:56.003Z") public interface IQueue extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.IConstruct, software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestination, software.amazon.awscdk.services.autoscaling.api.ILifecycleHookTarget
| Modifier and Type | Interface and Description |
|---|---|
static class |
IQueue.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToResourcePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this queue.
|
QueueImportProps |
export()
Export a queue
|
software.amazon.awscdk.services.kms.IEncryptionKey |
getEncryptionMasterKey()
If this queue is server-side encrypted, this is the KMS encryption key.
|
String |
getQueueArn()
The ARN of this queue
|
String |
getQueueUrl()
The URL of this queue
|
void |
grant(software.amazon.awscdk.services.iam.IPrincipal identity,
String... queueActions)
Grant the actions defined in queueActions to the identity Principal given
on this SQS queue resource.
|
void |
grantConsumeMessages()
Grant permissions to consume messages from a queue
This will grant the following permissions:
- sqs:ChangeMessageVisibility
- sqs:ChangeMessageVisibilityBatch
- sqs:DeleteMessage
- sqs:ReceiveMessage
- sqs:DeleteMessageBatch
- sqs:GetQueueAttributes
- sqs:GetQueueUrl
|
void |
grantConsumeMessages(software.amazon.awscdk.services.iam.IPrincipal identity)
Grant permissions to consume messages from a queue
This will grant the following permissions:
- sqs:ChangeMessageVisibility
- sqs:ChangeMessageVisibilityBatch
- sqs:DeleteMessage
- sqs:ReceiveMessage
- sqs:DeleteMessageBatch
- sqs:GetQueueAttributes
- sqs:GetQueueUrl
|
void |
grantPurge()
Grant an IAM principal permissions to purge all messages from the queue.
|
void |
grantPurge(software.amazon.awscdk.services.iam.IPrincipal identity)
Grant an IAM principal permissions to purge all messages from the queue.
|
void |
grantSendMessages()
Grant access to send messages to a queue to the given identity.
|
void |
grantSendMessages(software.amazon.awscdk.services.iam.IPrincipal identity)
Grant access to send messages to a queue to the given identity.
|
String getQueueArn()
String getQueueUrl()
software.amazon.awscdk.services.kms.IEncryptionKey getEncryptionMasterKey()
void addToResourcePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement)
QueueImportProps export()
void grant(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity, String... queueActions)
identity - Principal to grant right toqueueActions - The actions to grantvoid grantConsumeMessages(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
identity - Principal to grant consume rights tovoid grantConsumeMessages()
void grantPurge(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
identity - Principal to grant send rights tovoid grantPurge()
void grantSendMessages(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
identity - Principal to grant send rights tovoid grantSendMessages()
Copyright © 2019. All rights reserved.