@Internal public static interface IQueue.Jsii$Default extends IQueue, IResource.Jsii$Default
IQueue.IQueue.Jsii$Default, IQueue.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this queue.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default IKey |
getEncryptionMasterKey()
If this queue is server-side encrypted, this is the KMS encryption key.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default Boolean |
getFifo()
Whether this queue is an Amazon SQS FIFO queue.
|
default software.constructs.Node |
getNode()
The tree node.
|
default String |
getQueueArn()
The ARN of this queue.
|
default String |
getQueueName()
The name of this queue.
|
default String |
getQueueUrl()
The URL of this queue.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
String... queueActions)
Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.
|
default Grant |
grantConsumeMessages(IGrantable grantee)
Grant permissions to consume messages from a queue.
|
default Grant |
grantPurge(IGrantable grantee)
Grant an IAM principal permissions to purge all messages from the queue.
|
default Grant |
grantSendMessages(IGrantable grantee)
Grant access to send messages to a queue to the given identity.
|
default Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Queue.
|
default Metric |
metricApproximateAgeOfOldestMessage(MetricOptions props)
The approximate age of the oldest non-deleted message in the queue.
|
default Metric |
metricApproximateNumberOfMessagesDelayed(MetricOptions props)
The number of messages in the queue that are delayed and not available for reading immediately.
|
default Metric |
metricApproximateNumberOfMessagesNotVisible(MetricOptions props)
The number of messages that are in flight.
|
default Metric |
metricApproximateNumberOfMessagesVisible(MetricOptions props)
The number of messages available for retrieval from the queue.
|
default Metric |
metricNumberOfEmptyReceives(MetricOptions props)
The number of ReceiveMessage API calls that did not return a message.
|
default Metric |
metricNumberOfMessagesDeleted(MetricOptions props)
The number of messages deleted from the queue.
|
default Metric |
metricNumberOfMessagesReceived(MetricOptions props)
The number of messages returned by calls to the ReceiveMessage action.
|
default Metric |
metricNumberOfMessagesSent(MetricOptions props)
The number of messages added to a queue.
|
default Metric |
metricSentMessageSize(MetricOptions props)
The size of messages added to a queue.
|
metric, metricApproximateAgeOfOldestMessage, metricApproximateNumberOfMessagesDelayed, metricApproximateNumberOfMessagesNotVisible, metricApproximateNumberOfMessagesVisible, metricNumberOfEmptyReceives, metricNumberOfMessagesDeleted, metricNumberOfMessagesReceived, metricNumberOfMessagesSent, metricSentMessageSize@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Boolean getFifo()
If false, this is a standard queue.
@Stability(value=Stable) @NotNull default String getQueueArn()
getQueueArn in interface IQueue@Stability(value=Stable) @NotNull default String getQueueName()
getQueueName in interface IQueue@Stability(value=Stable) @NotNull default String getQueueUrl()
getQueueUrl in interface IQueue@Stability(value=Stable) @Nullable default IKey getEncryptionMasterKey()
getEncryptionMasterKey in interface IQueue@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull default 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=Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... queueActions)
@Stability(value=Stable) @NotNull default 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=Stable) @NotNull default 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=Stable) @NotNull default 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=Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Stable) @NotNull default Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateAgeOfOldestMessage in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricApproximateNumberOfMessagesDelayed(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesDelayed in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesNotVisible in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesVisible in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfEmptyReceives in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesDeleted in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesReceived in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfMessagesSent(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesSent in interface IQueueprops - @Stability(value=Stable) @NotNull default Metric metricSentMessageSize(@Nullable MetricOptions props)
Average over 5 minutes
metricSentMessageSize in interface IQueueprops - Copyright © 2022. All rights reserved.