Class IQueue.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,IQueue
,IQueue.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IQueue
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.sqs.IQueue
IQueue.Jsii$Default, IQueue.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy
(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final IKey
If this queue is server-side encrypted, this is the KMS encryption key.final QueueEncryption
Whether the contents of the queue are encrypted, and by what type of key.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final Boolean
getFifo()
Whether this queue is an Amazon SQS FIFO queue.final software.constructs.Node
getNode()
The tree node.final String
The ARN of this queue.final String
The name of this queue.final String
The URL of this queue.final Stack
getStack()
The stack in which this resource is defined.final Grant
grant
(IGrantable grantee, @NotNull String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.final Grant
grantConsumeMessages
(IGrantable grantee) Grant permissions to consume messages from a queue.final Grant
grantPurge
(IGrantable grantee) Grant an IAM principal permissions to purge all messages from the queue.final Grant
grantSendMessages
(IGrantable grantee) Grant access to send messages to a queue to the given identity.final Metric
Return the given named metric for this Queue.final Metric
metric
(String metricName, MetricOptions props) Return the given named metric for this Queue.final Metric
The approximate age of the oldest non-deleted message in the queue.final Metric
The approximate age of the oldest non-deleted message in the queue.final Metric
The number of messages in the queue that are delayed and not available for reading immediately.final Metric
The number of messages in the queue that are delayed and not available for reading immediately.final Metric
The number of messages that are in flight.final Metric
The number of messages that are in flight.final Metric
The number of messages available for retrieval from the queue.final Metric
The number of messages available for retrieval from the queue.final Metric
The number of ReceiveMessage API calls that did not return a message.final Metric
The number of ReceiveMessage API calls that did not return a message.final Metric
The number of messages deleted from the queue.final Metric
The number of messages deleted from the queue.final Metric
The number of messages returned by calls to the ReceiveMessage action.final Metric
The number of messages returned by calls to the ReceiveMessage action.final Metric
The number of messages added to a queue.final Metric
The number of messages added to a queue.final Metric
The size of messages added to a queue.final Metric
The size of messages added to a queue.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIQueue.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnv
in interfaceIQueue.Jsii$Default
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIQueue.Jsii$Default
- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getFifo
Whether this queue is an Amazon SQS FIFO queue.If false, this is a standard queue.
- Specified by:
getFifo
in interfaceIQueue
- Specified by:
getFifo
in interfaceIQueue.Jsii$Default
-
getQueueArn
The ARN of this queue.- Specified by:
getQueueArn
in interfaceIQueue
- Specified by:
getQueueArn
in interfaceIQueue.Jsii$Default
-
getQueueName
The name of this queue.- Specified by:
getQueueName
in interfaceIQueue
- Specified by:
getQueueName
in interfaceIQueue.Jsii$Default
-
getQueueUrl
The URL of this queue.- Specified by:
getQueueUrl
in interfaceIQueue
- Specified by:
getQueueUrl
in interfaceIQueue.Jsii$Default
-
getEncryptionMasterKey
If this queue is server-side encrypted, this is the KMS encryption key.- Specified by:
getEncryptionMasterKey
in interfaceIQueue
- Specified by:
getEncryptionMasterKey
in interfaceIQueue.Jsii$Default
-
getEncryptionType
Whether the contents of the queue are encrypted, and by what type of key.- Specified by:
getEncryptionType
in interfaceIQueue
- Specified by:
getEncryptionType
in interfaceIQueue.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.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
).- Specified by:
applyRemovalPolicy
in interfaceIQueue.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final 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:
addToResourcePolicy
in interfaceIQueue
- Specified by:
addToResourcePolicy
in interfaceIQueue.Jsii$Default
- Parameters:
statement
- This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.- Specified by:
grant
in interfaceIQueue
- Specified by:
grant
in interfaceIQueue.Jsii$Default
- Parameters:
grantee
- Principal to grant right to. This parameter is required.queueActions
- The actions to grant. This parameter is required.
-
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:
grantConsumeMessages
in interfaceIQueue
- Specified by:
grantConsumeMessages
in interfaceIQueue.Jsii$Default
- 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:
grantPurge
in interfaceIQueue
- Specified by:
grantPurge
in interfaceIQueue.Jsii$Default
- 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:
grantSendMessages
in interfaceIQueue
- Specified by:
grantSendMessages
in interfaceIQueue.Jsii$Default
- Parameters:
grantee
- Principal to grant send rights to. This parameter is required.
-
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Queue.- Specified by:
metric
in interfaceIQueue
- Specified by:
metric
in interfaceIQueue.Jsii$Default
- Parameters:
metricName
- This parameter is required.props
-
-
metric
Return the given named metric for this Queue. -
metricApproximateAgeOfOldestMessage
@Stability(Stable) @NotNull public final Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props) The approximate age of the oldest non-deleted message in the queue.Maximum over 5 minutes
- Specified by:
metricApproximateAgeOfOldestMessage
in interfaceIQueue
- Specified by:
metricApproximateAgeOfOldestMessage
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricApproximateAgeOfOldestMessage
The approximate age of the oldest non-deleted message in the queue.Maximum over 5 minutes
- Specified by:
metricApproximateAgeOfOldestMessage
in interfaceIQueue
-
metricApproximateNumberOfMessagesDelayed
@Stability(Stable) @NotNull public final 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:
metricApproximateNumberOfMessagesDelayed
in interfaceIQueue
- Specified by:
metricApproximateNumberOfMessagesDelayed
in interfaceIQueue.Jsii$Default
- 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:
metricApproximateNumberOfMessagesDelayed
in interfaceIQueue
-
metricApproximateNumberOfMessagesNotVisible
@Stability(Stable) @NotNull public final Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props) The number of messages that are in flight.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesNotVisible
in interfaceIQueue
- Specified by:
metricApproximateNumberOfMessagesNotVisible
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricApproximateNumberOfMessagesNotVisible
The number of messages that are in flight.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesNotVisible
in interfaceIQueue
-
metricApproximateNumberOfMessagesVisible
@Stability(Stable) @NotNull public final Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props) The number of messages available for retrieval from the queue.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesVisible
in interfaceIQueue
- Specified by:
metricApproximateNumberOfMessagesVisible
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricApproximateNumberOfMessagesVisible
The number of messages available for retrieval from the queue.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesVisible
in interfaceIQueue
-
metricNumberOfEmptyReceives
@Stability(Stable) @NotNull public final Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props) The number of ReceiveMessage API calls that did not return a message.Sum over 5 minutes
- Specified by:
metricNumberOfEmptyReceives
in interfaceIQueue
- Specified by:
metricNumberOfEmptyReceives
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricNumberOfEmptyReceives
The number of ReceiveMessage API calls that did not return a message.Sum over 5 minutes
- Specified by:
metricNumberOfEmptyReceives
in interfaceIQueue
-
metricNumberOfMessagesDeleted
@Stability(Stable) @NotNull public final Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props) The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeleted
in interfaceIQueue
- Specified by:
metricNumberOfMessagesDeleted
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricNumberOfMessagesDeleted
The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeleted
in interfaceIQueue
-
metricNumberOfMessagesReceived
@Stability(Stable) @NotNull public final Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props) The number of messages returned by calls to the ReceiveMessage action.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesReceived
in interfaceIQueue
- Specified by:
metricNumberOfMessagesReceived
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricNumberOfMessagesReceived
The number of messages returned by calls to the ReceiveMessage action.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesReceived
in interfaceIQueue
-
metricNumberOfMessagesSent
@Stability(Stable) @NotNull public final Metric metricNumberOfMessagesSent(@Nullable MetricOptions props) The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSent
in interfaceIQueue
- Specified by:
metricNumberOfMessagesSent
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricNumberOfMessagesSent
The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSent
in interfaceIQueue
-
metricSentMessageSize
@Stability(Stable) @NotNull public final Metric metricSentMessageSize(@Nullable MetricOptions props) The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSize
in interfaceIQueue
- Specified by:
metricSentMessageSize
in interfaceIQueue.Jsii$Default
- Parameters:
props
-
-
metricSentMessageSize
The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSize
in interfaceIQueue
-