Interface IQueue.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IQueue,IQueueRef,IQueueRef.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IQueue.Jsii$Proxy
- Enclosing interface:
IQueue
IQueue.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.sqs.IQueue
IQueue.Jsii$Default, IQueue.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sqs.IQueueRef
IQueueRef.Jsii$Default, IQueueRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.default IKeyIf this queue is server-side encrypted, this is the KMS encryption key.default QueueEncryptionWhether the contents of the queue are encrypted, and by what type of key.default BooleangetFifo()Whether this queue is an Amazon SQS FIFO queue.default StringThe ARN of this queue.default StringThe name of this queue.default StringThe URL of this queue.default Grantgrant(IGrantable grantee, String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.default GrantgrantConsumeMessages(IGrantable grantee) Grant permissions to consume messages from a queue.default GrantgrantPurge(IGrantable grantee) Grant an IAM principal permissions to purge all messages from the queue.default GrantgrantSendMessages(IGrantable grantee) Grant access to send messages to a queue to the given identity.default MetricReturn the given named metric for this Queue.default Metricmetric(String metricName, MetricOptions props) Return the given named metric for this Queue.default MetricThe approximate age of the oldest non-deleted message in the queue.default MetricThe approximate age of the oldest non-deleted message in the queue.default MetricThe number of messages in the queue that are delayed and not available for reading immediately.default MetricThe number of messages in the queue that are delayed and not available for reading immediately.default MetricThe number of messages that are in flight.default MetricThe number of messages that are in flight.default MetricThe number of messages available for retrieval from the queue.default MetricThe number of messages available for retrieval from the queue.default MetricThe number of ReceiveMessage API calls that did not return a message.default MetricThe number of ReceiveMessage API calls that did not return a message.default MetricThe number of messages deleted from the queue.default MetricThe number of messages deleted from the queue.default MetricThe number of messages returned by calls to the ReceiveMessage action.default MetricThe number of messages returned by calls to the ReceiveMessage action.default MetricThe number of messages added to a queue.default MetricThe number of messages added to a queue.default MetricThe size of messages added to a queue.default MetricThe size of messages added to a queue.Methods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.interfaces.sqs.IQueueRef.Jsii$Default
getQueueRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFifo
Whether this queue is an Amazon SQS FIFO queue.If false, this is a standard queue.
-
getQueueArn
The ARN of this queue.- Specified by:
getQueueArnin interfaceIQueue
-
getQueueName
The name of this queue.- Specified by:
getQueueNamein interfaceIQueue
-
getQueueUrl
The URL of this queue.- Specified by:
getQueueUrlin interfaceIQueue
-
getEncryptionMasterKey
If this queue is server-side encrypted, this is the KMS encryption key.- Specified by:
getEncryptionMasterKeyin interfaceIQueue
-
getEncryptionType
Whether the contents of the queue are encrypted, and by what type of key.- Specified by:
getEncryptionTypein interfaceIQueue
-
addToResourcePolicy
@Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.If this queue was created in this stack (
new Queue), a queue policy will be automatically created upon the first call toaddToPolicy. If the queue is imported (Queue.import), then this is a no-op.- Specified by:
addToResourcePolicyin interfaceIQueue- Parameters:
statement- This parameter is required.
-
grant
@Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource. -
grantConsumeMessages
Grant permissions to consume messages from a queue.This will grant the following permissions:
- sqs:ChangeMessageVisibility
- sqs:DeleteMessage
- sqs:ReceiveMessage
- sqs:GetQueueAttributes
- sqs:GetQueueUrl
- Specified by:
grantConsumeMessagesin interfaceIQueue- Parameters:
grantee- Principal to grant consume rights to. This parameter is required.
-
grantPurge
Grant an IAM principal permissions to purge all messages from the queue.This will grant the following permissions:
- sqs:PurgeQueue
- sqs:GetQueueAttributes
- sqs:GetQueueUrl
- Specified by:
grantPurgein interfaceIQueue- Parameters:
grantee- Principal to grant send rights to. This parameter is required.
-
grantSendMessages
Grant access to send messages to a queue to the given identity.This will grant the following permissions:
- sqs:SendMessage
- sqs:GetQueueAttributes
- sqs:GetQueueUrl
- Specified by:
grantSendMessagesin interfaceIQueue- Parameters:
grantee- Principal to grant send rights to. This parameter is required.
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Queue. -
metric
Return the given named metric for this Queue. -
metricApproximateAgeOfOldestMessage
@Stability(Stable) @NotNull default Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props) The approximate age of the oldest non-deleted message in the queue.Maximum over 5 minutes
- Specified by:
metricApproximateAgeOfOldestMessagein interfaceIQueue- Parameters:
props-
-
metricApproximateAgeOfOldestMessage
The approximate age of the oldest non-deleted message in the queue.Maximum over 5 minutes
- Specified by:
metricApproximateAgeOfOldestMessagein interfaceIQueue
-
metricApproximateNumberOfMessagesDelayed
@Stability(Stable) @NotNull default Metric metricApproximateNumberOfMessagesDelayed(@Nullable MetricOptions props) The number of messages in the queue that are delayed and not available for reading immediately.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesDelayedin interfaceIQueue- Parameters:
props-
-
metricApproximateNumberOfMessagesDelayed
The number of messages in the queue that are delayed and not available for reading immediately.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesDelayedin interfaceIQueue
-
metricApproximateNumberOfMessagesNotVisible
@Stability(Stable) @NotNull default Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props) The number of messages that are in flight.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesNotVisiblein interfaceIQueue- Parameters:
props-
-
metricApproximateNumberOfMessagesNotVisible
The number of messages that are in flight.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesNotVisiblein interfaceIQueue
-
metricApproximateNumberOfMessagesVisible
@Stability(Stable) @NotNull default Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props) The number of messages available for retrieval from the queue.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesVisiblein interfaceIQueue- Parameters:
props-
-
metricApproximateNumberOfMessagesVisible
The number of messages available for retrieval from the queue.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesVisiblein interfaceIQueue
-
metricNumberOfEmptyReceives
@Stability(Stable) @NotNull default Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props) The number of ReceiveMessage API calls that did not return a message.Sum over 5 minutes
- Specified by:
metricNumberOfEmptyReceivesin interfaceIQueue- Parameters:
props-
-
metricNumberOfEmptyReceives
The number of ReceiveMessage API calls that did not return a message.Sum over 5 minutes
- Specified by:
metricNumberOfEmptyReceivesin interfaceIQueue
-
metricNumberOfMessagesDeleted
@Stability(Stable) @NotNull default Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props) The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeletedin interfaceIQueue- Parameters:
props-
-
metricNumberOfMessagesDeleted
The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeletedin interfaceIQueue
-
metricNumberOfMessagesReceived
@Stability(Stable) @NotNull default Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props) The number of messages returned by calls to the ReceiveMessage action.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesReceivedin interfaceIQueue- Parameters:
props-
-
metricNumberOfMessagesReceived
The number of messages returned by calls to the ReceiveMessage action.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesReceivedin interfaceIQueue
-
metricNumberOfMessagesSent
@Stability(Stable) @NotNull default Metric metricNumberOfMessagesSent(@Nullable MetricOptions props) The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSentin interfaceIQueue- Parameters:
props-
-
metricNumberOfMessagesSent
The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSentin interfaceIQueue
-
metricSentMessageSize
The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSizein interfaceIQueue- Parameters:
props-
-
metricSentMessageSize
The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSizein interfaceIQueue
-