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,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.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 -
Method Summary
Modifier and TypeMethodDescriptiondefault AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.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 ResourceEnvironmentgetEnv()The environment this resource belongs to.default BooleangetFifo()Whether this queue is an Amazon SQS FIFO queue.default software.constructs.NodegetNode()The tree node.default StringThe ARN of this queue.default StringThe name of this queue.default StringThe URL of this queue.default StackgetStack()The stack in which this resource is defined.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 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 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 available for retrieval from the queue.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 returned by calls to the ReceiveMessage action.default MetricThe number of messages added to a queue.default MetricThe size of messages added to a queue.Methods inherited from interface software.amazon.awscdk.services.sqs.IQueue
metric, metricApproximateAgeOfOldestMessage, metricApproximateNumberOfMessagesDelayed, metricApproximateNumberOfMessagesNotVisible, metricApproximateNumberOfMessagesVisible, metricNumberOfEmptyReceives, metricNumberOfMessagesDeleted, metricNumberOfMessagesReceived, metricNumberOfMessagesSent, metricSentMessageSizeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.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 interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- 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.
-
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
-
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 interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
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. -
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-
-
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-
-
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-
-
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-
-
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-
-
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-
-
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-
-
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-
-
metricSentMessageSize
The size of messages added to a queue.Average over 5 minutes
- Specified by:
metricSentMessageSizein interfaceIQueue- Parameters:
props-
-