Interface QueueAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
QueueAttributes.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.041Z") @Stability(Stable) public interface QueueAttributes extends software.amazon.jsii.JsiiSerializable
Reference to a queue.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sqs.*;
 QueueAttributes queueAttributes = QueueAttributes.builder()
         .queueArn("queueArn")
         // the properties below are optional
         .fifo(false)
         .keyArn("keyArn")
         .queueName("queueName")
         .queueUrl("queueUrl")
         .build();
 
  • Method Details

    • getQueueArn

      @Stability(Stable) @NotNull String getQueueArn()
      The ARN of the queue.
    • getFifo

      @Stability(Stable) @Nullable default Boolean getFifo()
      Whether this queue is an Amazon SQS FIFO queue. If false, this is a standard queue.

      In case of a FIFO queue which is imported from a token, this value has to be explicitly set to true.

      Default: - if fifo is not specified, the property will be determined based on the queue name (not possible for FIFO queues imported from a token)

    • getKeyArn

      @Stability(Stable) @Nullable default String getKeyArn()
      KMS encryption key, if this queue is server-side encrypted by a KMS key.

      Default: - None

    • getQueueName

      @Stability(Stable) @Nullable default String getQueueName()
      The name of the queue.

      Default: if queue name is not specified, the name will be derived from the queue ARN

    • getQueueUrl

      @Stability(Stable) @Nullable default String getQueueUrl()
      The URL of the queue.

      Default: - 'https://sqs.<region-endpoint>/<account-ID>/<queue-name>'

      See Also:
    • builder

      @Stability(Stable) static QueueAttributes.Builder builder()
      Returns:
      a QueueAttributes.Builder of QueueAttributes