@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:48.099Z") @Stability(value=Experimental) public interface IQueue extends software.amazon.jsii.JsiiSerializable, IResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IQueue.Jsii$Default
Internal default implementation for
IQueue. |
static class |
IQueue.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Adds a statement to the IAM resource policy associated with this queue.
|
default IKey |
getEncryptionMasterKey()
(experimental) If this queue is server-side encrypted, this is the KMS encryption key.
|
Boolean |
getFifo()
(experimental) Whether this queue is an Amazon SQS FIFO queue.
|
String |
getQueueArn()
(experimental) The ARN of this queue.
|
String |
getQueueName()
(experimental) The name of this queue.
|
String |
getQueueUrl()
(experimental) The URL of this queue.
|
Grant |
grant(IGrantable grantee,
String... queueActions)
(experimental) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.
|
Grant |
grantConsumeMessages(IGrantable grantee)
(experimental) Grant permissions to consume messages from a queue.
|
Grant |
grantPurge(IGrantable grantee)
(experimental) Grant an IAM principal permissions to purge all messages from the queue.
|
Grant |
grantSendMessages(IGrantable grantee)
(experimental) Grant access to send messages to a queue to the given identity.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Queue.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Queue.
|
Metric |
metricApproximateAgeOfOldestMessage()
(experimental) The approximate age of the oldest non-deleted message in the queue.
|
Metric |
metricApproximateAgeOfOldestMessage(MetricOptions props)
(experimental) The approximate age of the oldest non-deleted message in the queue.
|
Metric |
metricApproximateNumberOfMessagesDelayed()
(experimental) The number of messages in the queue that are delayed and not available for reading immediately.
|
Metric |
metricApproximateNumberOfMessagesDelayed(MetricOptions props)
(experimental) The number of messages in the queue that are delayed and not available for reading immediately.
|
Metric |
metricApproximateNumberOfMessagesNotVisible()
(experimental) The number of messages that are in flight.
|
Metric |
metricApproximateNumberOfMessagesNotVisible(MetricOptions props)
(experimental) The number of messages that are in flight.
|
Metric |
metricApproximateNumberOfMessagesVisible()
(experimental) The number of messages available for retrieval from the queue.
|
Metric |
metricApproximateNumberOfMessagesVisible(MetricOptions props)
(experimental) The number of messages available for retrieval from the queue.
|
Metric |
metricNumberOfEmptyReceives()
(experimental) The number of ReceiveMessage API calls that did not return a message.
|
Metric |
metricNumberOfEmptyReceives(MetricOptions props)
(experimental) The number of ReceiveMessage API calls that did not return a message.
|
Metric |
metricNumberOfMessagesDeleted()
(experimental) The number of messages deleted from the queue.
|
Metric |
metricNumberOfMessagesDeleted(MetricOptions props)
(experimental) The number of messages deleted from the queue.
|
Metric |
metricNumberOfMessagesReceived()
(experimental) The number of messages returned by calls to the ReceiveMessage action.
|
Metric |
metricNumberOfMessagesReceived(MetricOptions props)
(experimental) The number of messages returned by calls to the ReceiveMessage action.
|
Metric |
metricNumberOfMessagesSent()
(experimental) The number of messages added to a queue.
|
Metric |
metricNumberOfMessagesSent(MetricOptions props)
(experimental) The number of messages added to a queue.
|
Metric |
metricSentMessageSize()
(experimental) The size of messages added to a queue.
|
Metric |
metricSentMessageSize(MetricOptions props)
(experimental) The size of messages added to a queue.
|
@Stability(value=Experimental) @NotNull Boolean getFifo()
If false, this is a standard queue.
@Stability(value=Experimental) @NotNull String getQueueArn()
@Stability(value=Experimental) @NotNull String getQueueName()
@Stability(value=Experimental) @NotNull String getQueueUrl()
@Stability(value=Experimental) @Nullable default IKey getEncryptionMasterKey()
@Stability(value=Experimental) @NotNull AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
If this queue was created in this stack (new Queue), a queue policy
will be automatically created upon the first call to addToPolicy. If
the queue is imported (Queue.import), then this is a no-op.
statement - This parameter is required.@Stability(value=Experimental) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... queueActions)
grantee - Principal to grant right to. This parameter is required.queueActions - The actions to grant. This parameter is required.@Stability(value=Experimental) @NotNull Grant grantConsumeMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantee - Principal to grant consume rights to. This parameter is required.@Stability(value=Experimental) @NotNull Grant grantPurge(@NotNull IGrantable grantee)
This will grant the following permissions:
grantee - Principal to grant send rights to. This parameter is required.@Stability(value=Experimental) @NotNull Grant grantSendMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantee - Principal to grant send rights to. This parameter is required.@Stability(value=Experimental) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Experimental) @NotNull Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricApproximateAgeOfOldestMessage()
Maximum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesDelayed(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesDelayed()
Maximum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesNotVisible()
Maximum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricApproximateNumberOfMessagesVisible()
Maximum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfEmptyReceives()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesDeleted()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesReceived()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesSent(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesSent()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricSentMessageSize(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricSentMessageSize()
Average over 5 minutes
Copyright © 2021. All rights reserved.