@Generated(value="jsii-pacmak/0.7.13 (build 311bf88)", date="2019-01-11T10:50:56.006Z") public abstract class QueueBase extends software.amazon.awscdk.Construct implements IQueue
| Modifier | Constructor and Description |
|---|---|
protected |
QueueBase(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| 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.
|
software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps |
asBucketNotificationDestination(String bucketArn,
String bucketId)
Allows using SQS queues as destinations for bucket notifications.
|
software.amazon.awscdk.services.autoscaling.api.LifecycleHookTargetProps |
asLifecycleHookTarget(software.amazon.awscdk.services.autoscaling.api.ILifecycleHook lifecycleHook)
Allow using SQS queues as lifecycle hook targets
|
abstract QueueImportProps |
export()
Export a queue
|
protected Boolean |
getAutoCreatePolicy()
Controls automatic creation of policy objects.
|
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.
|
getNode, isInstance, prepare, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected QueueBase(software.amazon.jsii.JsiiObject.InitializationMode mode)
public void addToResourcePolicy(software.amazon.awscdk.services.iam.PolicyStatement statement)
addToResourcePolicy in interface IQueuepublic software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps asBucketNotificationDestination(String bucketArn, String bucketId)
asBucketNotificationDestination in interface software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestinationbucketArn - The ARN of the notifying bucket.bucketId - A unique ID for the notifying bucket.public software.amazon.awscdk.services.autoscaling.api.LifecycleHookTargetProps asLifecycleHookTarget(software.amazon.awscdk.services.autoscaling.api.ILifecycleHook lifecycleHook)
asLifecycleHookTarget in interface software.amazon.awscdk.services.autoscaling.api.ILifecycleHookTargetpublic abstract QueueImportProps export()
public void grant(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity, String... queueActions)
public void grantConsumeMessages(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
grantConsumeMessages in interface IQueueidentity - Principal to grant consume rights topublic void grantConsumeMessages()
grantConsumeMessages in interface IQueuepublic void grantPurge(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
grantPurge in interface IQueueidentity - Principal to grant send rights topublic void grantPurge()
grantPurge in interface IQueuepublic void grantSendMessages(@Nullable software.amazon.awscdk.services.iam.IPrincipal identity)
grantSendMessages in interface IQueueidentity - Principal to grant send rights topublic void grantSendMessages()
grantSendMessages in interface IQueueprotected Boolean getAutoCreatePolicy()
public String getQueueArn()
getQueueArn in interface IQueuepublic String getQueueUrl()
getQueueUrl in interface IQueue@Nullable public software.amazon.awscdk.services.kms.IEncryptionKey getEncryptionMasterKey()
getEncryptionMasterKey in interface IQueueCopyright © 2019. All rights reserved.