Class IQueue.Jsii$Proxy
- All Implemented Interfaces:
IEnvironmentAware,IEnvironmentAware.Jsii$Default,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.InitializationModeNested 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.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.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final IKeyIf this queue is server-side encrypted, this is the KMS encryption key.final QueueEncryptionWhether the contents of the queue are encrypted, and by what type of key.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final BooleangetFifo()Whether this queue is an Amazon SQS FIFO queue.final software.constructs.NodegetNode()The tree node.final StringThe ARN of this queue.final StringThe name of this queue.final StringThe URL of this queue.final StackgetStack()The stack in which this resource is defined.final Grantgrant(IGrantable grantee, String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.final GrantgrantConsumeMessages(IGrantable grantee) Grant permissions to consume messages from a queue.final GrantgrantPurge(IGrantable grantee) Grant an IAM principal permissions to purge all messages from the queue.final GrantgrantSendMessages(IGrantable grantee) Grant access to send messages to a queue to the given identity.final MetricReturn the given named metric for this Queue.final Metricmetric(String metricName, MetricOptions props) Return the given named metric for this Queue.final MetricThe approximate age of the oldest non-deleted message in the queue.final MetricThe approximate age of the oldest non-deleted message in the queue.final MetricThe number of messages in the queue that are delayed and not available for reading immediately.final MetricThe number of messages in the queue that are delayed and not available for reading immediately.final MetricThe number of messages that are in flight.final MetricThe number of messages that are in flight.final MetricThe number of messages available for retrieval from the queue.final MetricThe number of messages available for retrieval from the queue.final MetricThe number of ReceiveMessage API calls that did not return a message.final MetricThe number of ReceiveMessage API calls that did not return a message.final MetricThe number of messages deleted from the queue.final MetricThe number of messages deleted from the queue.final MetricThe number of messages returned by calls to the ReceiveMessage action.final MetricThe number of messages returned by calls to the ReceiveMessage action.final MetricThe number of messages added to a queue.final MetricThe number of messages added to a queue.final MetricThe size of messages added to a queue.final MetricThe 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIQueue.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIQueue.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIQueue.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getFifo
Whether this queue is an Amazon SQS FIFO queue.If false, this is a standard queue.
- Specified by:
getFifoin interfaceIQueue- Specified by:
getFifoin interfaceIQueue.Jsii$Default
-
getQueueArn
The ARN of this queue.- Specified by:
getQueueArnin interfaceIQueue- Specified by:
getQueueArnin interfaceIQueue.Jsii$Default
-
getQueueName
The name of this queue.- Specified by:
getQueueNamein interfaceIQueue- Specified by:
getQueueNamein interfaceIQueue.Jsii$Default
-
getQueueUrl
The URL of this queue.- Specified by:
getQueueUrlin interfaceIQueue- Specified by:
getQueueUrlin interfaceIQueue.Jsii$Default
-
getEncryptionMasterKey
If this queue is server-side encrypted, this is the KMS encryption key.- Specified by:
getEncryptionMasterKeyin interfaceIQueue- Specified by:
getEncryptionMasterKeyin interfaceIQueue.Jsii$Default
-
getEncryptionType
Whether the contents of the queue are encrypted, and by what type of key.- Specified by:
getEncryptionTypein interfaceIQueue- Specified by:
getEncryptionTypein 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:
applyRemovalPolicyin interfaceIQueue.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin 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:
addToResourcePolicyin interfaceIQueue- Specified by:
addToResourcePolicyin interfaceIQueue.Jsii$Default- Parameters:
statement- This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... queueActions) Grant the actions defined in queueActions to the identity Principal given on this SQS queue resource.- Specified by:
grantin interfaceIQueue- Specified by:
grantin 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:
grantConsumeMessagesin interfaceIQueue- Specified by:
grantConsumeMessagesin 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:
grantPurgein interfaceIQueue- Specified by:
grantPurgein 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:
grantSendMessagesin interfaceIQueue- Specified by:
grantSendMessagesin 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:
metricin interfaceIQueue- Specified by:
metricin 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:
metricApproximateAgeOfOldestMessagein interfaceIQueue- Specified by:
metricApproximateAgeOfOldestMessagein interfaceIQueue.Jsii$Default- 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 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:
metricApproximateNumberOfMessagesDelayedin interfaceIQueue- Specified by:
metricApproximateNumberOfMessagesDelayedin 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:
metricApproximateNumberOfMessagesDelayedin 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:
metricApproximateNumberOfMessagesNotVisiblein interfaceIQueue- Specified by:
metricApproximateNumberOfMessagesNotVisiblein interfaceIQueue.Jsii$Default- Parameters:
props-
-
metricApproximateNumberOfMessagesNotVisible
The number of messages that are in flight.Maximum over 5 minutes
- Specified by:
metricApproximateNumberOfMessagesNotVisiblein 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:
metricApproximateNumberOfMessagesVisiblein interfaceIQueue- Specified by:
metricApproximateNumberOfMessagesVisiblein interfaceIQueue.Jsii$Default- 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 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:
metricNumberOfEmptyReceivesin interfaceIQueue- Specified by:
metricNumberOfEmptyReceivesin interfaceIQueue.Jsii$Default- 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 public final Metric metricNumberOfMessagesDeleted(@Nullable MetricOptions props) The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeletedin interfaceIQueue- Specified by:
metricNumberOfMessagesDeletedin interfaceIQueue.Jsii$Default- Parameters:
props-
-
metricNumberOfMessagesDeleted
The number of messages deleted from the queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesDeletedin 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:
metricNumberOfMessagesReceivedin interfaceIQueue- Specified by:
metricNumberOfMessagesReceivedin interfaceIQueue.Jsii$Default- 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 public final Metric metricNumberOfMessagesSent(@Nullable MetricOptions props) The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSentin interfaceIQueue- Specified by:
metricNumberOfMessagesSentin interfaceIQueue.Jsii$Default- Parameters:
props-
-
metricNumberOfMessagesSent
The number of messages added to a queue.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesSentin 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:
metricSentMessageSizein interfaceIQueue- Specified by:
metricSentMessageSizein interfaceIQueue.Jsii$Default- Parameters:
props-
-
metricSentMessageSize
The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSizein interfaceIQueue
-