@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.369Z") @Stability(value=Experimental) public abstract class QueueBase extends Resource implements IQueue
software.amazon.jsii.JsiiObject.InitializationModeIQueue.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
QueueBase(software.constructs.Construct scope,
String id) |
protected |
QueueBase(software.constructs.Construct scope,
String id,
ResourceProps props) |
protected |
QueueBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueueBase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Adds a statement to the IAM resource policy associated with this queue.
|
protected abstract Boolean |
getAutoCreatePolicy()
(experimental) Controls automatic creation of policy objects.
|
abstract IKey |
getEncryptionMasterKey()
(experimental) If this queue is server-side encrypted, this is the KMS encryption key.
|
abstract Boolean |
getFifo()
(experimental) Whether this queue is an Amazon SQS FIFO queue.
|
abstract String |
getQueueArn()
(experimental) The ARN of this queue.
|
abstract String |
getQueueName()
(experimental) The name of this queue.
|
abstract String |
getQueueUrl()
(experimental) The URL of this queue.
|
Grant |
grant(IGrantable grantee,
String... actions)
(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.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected QueueBase(software.amazon.jsii.JsiiObjectRef objRef)
protected QueueBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected QueueBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ResourceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
protected QueueBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public 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.
addToResourcePolicy in interface IQueuestatement - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
@Stability(value=Experimental) @NotNull public Grant grantConsumeMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantConsumeMessages in interface IQueuegrantee - Principal to grant consume rights to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPurge(@NotNull IGrantable grantee)
This will grant the following permissions:
grantPurge in interface IQueuegrantee - Principal to grant send rights to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantSendMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantSendMessages in interface IQueuegrantee - Principal to grant send rights to. This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
@Stability(value=Experimental) @NotNull public Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateAgeOfOldestMessage in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricApproximateAgeOfOldestMessage()
Maximum over 5 minutes
metricApproximateAgeOfOldestMessage in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesDelayed(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesDelayed in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesDelayed()
Maximum over 5 minutes
metricApproximateNumberOfMessagesDelayed in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesNotVisible in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesNotVisible()
Maximum over 5 minutes
metricApproximateNumberOfMessagesNotVisible in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesVisible in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricApproximateNumberOfMessagesVisible()
Maximum over 5 minutes
metricApproximateNumberOfMessagesVisible in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfEmptyReceives in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfEmptyReceives()
Sum over 5 minutes
metricNumberOfEmptyReceives in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesDeleted in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesDeleted()
Sum over 5 minutes
metricNumberOfMessagesDeleted in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesReceived in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesReceived()
Sum over 5 minutes
metricNumberOfMessagesReceived in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesSent(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesSent in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesSent()
Sum over 5 minutes
metricNumberOfMessagesSent in interface IQueue@Stability(value=Experimental) @NotNull public Metric metricSentMessageSize(@Nullable MetricOptions props)
Average over 5 minutes
metricSentMessageSize in interface IQueueprops - @Stability(value=Experimental) @NotNull public Metric metricSentMessageSize()
Average over 5 minutes
metricSentMessageSize in interface IQueue@Stability(value=Experimental) @NotNull protected abstract Boolean getAutoCreatePolicy()
Set by subclasses.
@Stability(value=Experimental) @NotNull public abstract Boolean getFifo()
If false, this is a standard queue.
@Stability(value=Experimental) @NotNull public abstract String getQueueArn()
getQueueArn in interface IQueue@Stability(value=Experimental) @NotNull public abstract String getQueueName()
getQueueName in interface IQueue@Stability(value=Experimental) @NotNull public abstract String getQueueUrl()
getQueueUrl in interface IQueue@Stability(value=Experimental) @Nullable public abstract IKey getEncryptionMasterKey()
getEncryptionMasterKey in interface IQueueCopyright © 2021. All rights reserved.