@Internal public static final class IQueue.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IQueue.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationMode
IQueue.Jsii$Default, IQueue.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this queue.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
IKey |
getEncryptionMasterKey()
If this queue is server-side encrypted, this is the KMS encryption key.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
Boolean |
getFifo()
Whether this queue is an Amazon SQS FIFO queue.
|
software.constructs.Node |
getNode()
The tree node.
|
String |
getQueueArn()
The ARN of this queue.
|
String |
getQueueName()
The name of this queue.
|
String |
getQueueUrl()
The URL of this queue.
|
Stack |
getStack()
The stack in which this resource is defined.
|
Grant |
grant(IGrantable grantee,
String... queueActions)
Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.
|
Grant |
grantConsumeMessages(IGrantable grantee)
Grant permissions to consume messages from a queue.
|
Grant |
grantPurge(IGrantable grantee)
Grant an IAM principal permissions to purge all messages from the queue.
|
Grant |
grantSendMessages(IGrantable grantee)
Grant access to send messages to a queue to the given identity.
|
Metric |
metric(String metricName)
Return the given named metric for this Queue.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Queue.
|
Metric |
metricApproximateAgeOfOldestMessage()
The approximate age of the oldest non-deleted message in the queue.
|
Metric |
metricApproximateAgeOfOldestMessage(MetricOptions props)
The approximate age of the oldest non-deleted message in the queue.
|
Metric |
metricApproximateNumberOfMessagesDelayed()
The number of messages in the queue that are delayed and not available for reading immediately.
|
Metric |
metricApproximateNumberOfMessagesDelayed(MetricOptions props)
The number of messages in the queue that are delayed and not available for reading immediately.
|
Metric |
metricApproximateNumberOfMessagesNotVisible()
The number of messages that are in flight.
|
Metric |
metricApproximateNumberOfMessagesNotVisible(MetricOptions props)
The number of messages that are in flight.
|
Metric |
metricApproximateNumberOfMessagesVisible()
The number of messages available for retrieval from the queue.
|
Metric |
metricApproximateNumberOfMessagesVisible(MetricOptions props)
The number of messages available for retrieval from the queue.
|
Metric |
metricNumberOfEmptyReceives()
The number of ReceiveMessage API calls that did not return a message.
|
Metric |
metricNumberOfEmptyReceives(MetricOptions props)
The number of ReceiveMessage API calls that did not return a message.
|
Metric |
metricNumberOfMessagesDeleted()
The number of messages deleted from the queue.
|
Metric |
metricNumberOfMessagesDeleted(MetricOptions props)
The number of messages deleted from the queue.
|
Metric |
metricNumberOfMessagesReceived()
The number of messages returned by calls to the ReceiveMessage action.
|
Metric |
metricNumberOfMessagesReceived(MetricOptions props)
The number of messages returned by calls to the ReceiveMessage action.
|
Metric |
metricNumberOfMessagesSent()
The number of messages added to a queue.
|
Metric |
metricNumberOfMessagesSent(MetricOptions props)
The number of messages added to a queue.
|
Metric |
metricSentMessageSize()
The size of messages added to a queue.
|
Metric |
metricSentMessageSize(MetricOptions props)
The size of messages added to a queue.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode
in interface IResource.Jsii$Default
getNode
in interface IQueue.Jsii$Default
getNode
in interface software.constructs.IConstruct
getNode
in interface software.constructs.IConstruct.Jsii$Default
@Stability(value=Stable) @NotNull public final 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 IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface IQueue.Jsii$Default
@Stability(value=Stable) @NotNull public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IQueue.Jsii$Default
@Stability(value=Stable) @NotNull public final Boolean getFifo()
If false, this is a standard queue.
getFifo
in interface IQueue
getFifo
in interface IQueue.Jsii$Default
@Stability(value=Stable) @NotNull public final String getQueueArn()
getQueueArn
in interface IQueue
getQueueArn
in interface IQueue.Jsii$Default
@Stability(value=Stable) @NotNull public final String getQueueName()
getQueueName
in interface IQueue
getQueueName
in interface IQueue.Jsii$Default
@Stability(value=Stable) @NotNull public final String getQueueUrl()
getQueueUrl
in interface IQueue
getQueueUrl
in interface IQueue.Jsii$Default
@Stability(value=Stable) @Nullable public final IKey getEncryptionMasterKey()
getEncryptionMasterKey
in interface IQueue
getEncryptionMasterKey
in interface IQueue.Jsii$Default
@Stability(value=Stable) public final 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 IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface IQueue.Jsii$Default
policy
- This parameter is required.@Stability(value=Stable) @NotNull public final 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 IQueue
addToResourcePolicy
in interface IQueue.Jsii$Default
statement
- This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... queueActions)
grant
in interface IQueue
grant
in interface IQueue.Jsii$Default
grantee
- Principal to grant right to. This parameter is required.queueActions
- The actions to grant. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantConsumeMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantConsumeMessages
in interface IQueue
grantConsumeMessages
in interface IQueue.Jsii$Default
grantee
- Principal to grant consume rights to. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPurge(@NotNull IGrantable grantee)
This will grant the following permissions:
grantPurge
in interface IQueue
grantPurge
in interface IQueue.Jsii$Default
grantee
- Principal to grant send rights to. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantSendMessages(@NotNull IGrantable grantee)
This will grant the following permissions:
grantSendMessages
in interface IQueue
grantSendMessages
in interface IQueue.Jsii$Default
grantee
- Principal to grant send rights to. This parameter is required.@Stability(value=Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metric
in interface IQueue
metric
in interface IQueue.Jsii$Default
metricName
- This parameter is required.props
- @Stability(value=Stable) @NotNull public final Metric metric(@NotNull String metricName)
@Stability(value=Stable) @NotNull public final Metric metricApproximateAgeOfOldestMessage(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateAgeOfOldestMessage
in interface IQueue
metricApproximateAgeOfOldestMessage
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricApproximateAgeOfOldestMessage()
Maximum over 5 minutes
metricApproximateAgeOfOldestMessage
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesDelayed(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesDelayed
in interface IQueue
metricApproximateNumberOfMessagesDelayed
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesDelayed()
Maximum over 5 minutes
metricApproximateNumberOfMessagesDelayed
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesNotVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesNotVisible
in interface IQueue
metricApproximateNumberOfMessagesNotVisible
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesNotVisible()
Maximum over 5 minutes
metricApproximateNumberOfMessagesNotVisible
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesVisible(@Nullable MetricOptions props)
Maximum over 5 minutes
metricApproximateNumberOfMessagesVisible
in interface IQueue
metricApproximateNumberOfMessagesVisible
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricApproximateNumberOfMessagesVisible()
Maximum over 5 minutes
metricApproximateNumberOfMessagesVisible
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricNumberOfEmptyReceives(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfEmptyReceives
in interface IQueue
metricNumberOfEmptyReceives
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricNumberOfEmptyReceives()
Sum over 5 minutes
metricNumberOfEmptyReceives
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesDeleted
in interface IQueue
metricNumberOfMessagesDeleted
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesDeleted()
Sum over 5 minutes
metricNumberOfMessagesDeleted
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesReceived(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesReceived
in interface IQueue
metricNumberOfMessagesReceived
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesReceived()
Sum over 5 minutes
metricNumberOfMessagesReceived
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesSent(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesSent
in interface IQueue
metricNumberOfMessagesSent
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricNumberOfMessagesSent()
Sum over 5 minutes
metricNumberOfMessagesSent
in interface IQueue
@Stability(value=Stable) @NotNull public final Metric metricSentMessageSize(@Nullable MetricOptions props)
Average over 5 minutes
metricSentMessageSize
in interface IQueue
metricSentMessageSize
in interface IQueue.Jsii$Default
props
- @Stability(value=Stable) @NotNull public final Metric metricSentMessageSize()
Average over 5 minutes
metricSentMessageSize
in interface IQueue
Copyright © 2022. All rights reserved.