Class QueueState.Builder

  • Enclosing class:
    QueueState

    public static final class QueueState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(QueueState defaults)
    • Method Detail

      • arn

        public QueueState.Builder arn​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the SQS queue.
        Returns:
        builder
      • arn

        public QueueState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the SQS queue.
        Returns:
        builder
      • contentBasedDeduplication

        public QueueState.Builder contentBasedDeduplication​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> contentBasedDeduplication)
        Parameters:
        contentBasedDeduplication - Enables content-based deduplication for FIFO queues. For more information, see the [related documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing).
        Returns:
        builder
      • contentBasedDeduplication

        public QueueState.Builder contentBasedDeduplication​(java.lang.Boolean contentBasedDeduplication)
        Parameters:
        contentBasedDeduplication - Enables content-based deduplication for FIFO queues. For more information, see the [related documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing).
        Returns:
        builder
      • deduplicationScope

        public QueueState.Builder deduplicationScope​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> deduplicationScope)
        Parameters:
        deduplicationScope - Specifies whether message deduplication occurs at the message group or queue level. Valid values are `messageGroup` and `queue` (default).
        Returns:
        builder
      • deduplicationScope

        public QueueState.Builder deduplicationScope​(java.lang.String deduplicationScope)
        Parameters:
        deduplicationScope - Specifies whether message deduplication occurs at the message group or queue level. Valid values are `messageGroup` and `queue` (default).
        Returns:
        builder
      • delaySeconds

        public QueueState.Builder delaySeconds​(@Nullable
                                               com.pulumi.core.Output<java.lang.Integer> delaySeconds)
        Parameters:
        delaySeconds - Time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
        Returns:
        builder
      • delaySeconds

        public QueueState.Builder delaySeconds​(java.lang.Integer delaySeconds)
        Parameters:
        delaySeconds - Time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
        Returns:
        builder
      • fifoQueue

        public QueueState.Builder fifoQueue​(@Nullable
                                            com.pulumi.core.Output<java.lang.Boolean> fifoQueue)
        Parameters:
        fifoQueue - Boolean designating a FIFO queue. If not set, it defaults to `false` making it standard.
        Returns:
        builder
      • fifoQueue

        public QueueState.Builder fifoQueue​(java.lang.Boolean fifoQueue)
        Parameters:
        fifoQueue - Boolean designating a FIFO queue. If not set, it defaults to `false` making it standard.
        Returns:
        builder
      • fifoThroughputLimit

        public QueueState.Builder fifoThroughputLimit​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> fifoThroughputLimit)
        Parameters:
        fifoThroughputLimit - Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are `perQueue` (default) and `perMessageGroupId`.
        Returns:
        builder
      • fifoThroughputLimit

        public QueueState.Builder fifoThroughputLimit​(java.lang.String fifoThroughputLimit)
        Parameters:
        fifoThroughputLimit - Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are `perQueue` (default) and `perMessageGroupId`.
        Returns:
        builder
      • kmsDataKeyReusePeriodSeconds

        public QueueState.Builder kmsDataKeyReusePeriodSeconds​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Integer> kmsDataKeyReusePeriodSeconds)
        Parameters:
        kmsDataKeyReusePeriodSeconds - Length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
        Returns:
        builder
      • kmsDataKeyReusePeriodSeconds

        public QueueState.Builder kmsDataKeyReusePeriodSeconds​(java.lang.Integer kmsDataKeyReusePeriodSeconds)
        Parameters:
        kmsDataKeyReusePeriodSeconds - Length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
        Returns:
        builder
      • kmsMasterKeyId

        public QueueState.Builder kmsMasterKeyId​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> kmsMasterKeyId)
        Parameters:
        kmsMasterKeyId - ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see [Key Terms](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms).
        Returns:
        builder
      • kmsMasterKeyId

        public QueueState.Builder kmsMasterKeyId​(java.lang.String kmsMasterKeyId)
        Parameters:
        kmsMasterKeyId - ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see [Key Terms](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms).
        Returns:
        builder
      • maxMessageSize

        public QueueState.Builder maxMessageSize​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> maxMessageSize)
        Parameters:
        maxMessageSize - Limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 1048576 bytes (1024 KiB). The default for this attribute is 262144 (256 KiB).
        Returns:
        builder
      • maxMessageSize

        public QueueState.Builder maxMessageSize​(java.lang.Integer maxMessageSize)
        Parameters:
        maxMessageSize - Limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 1048576 bytes (1024 KiB). The default for this attribute is 262144 (256 KiB).
        Returns:
        builder
      • messageRetentionSeconds

        public QueueState.Builder messageRetentionSeconds​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Integer> messageRetentionSeconds)
        Parameters:
        messageRetentionSeconds - Number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
        Returns:
        builder
      • messageRetentionSeconds

        public QueueState.Builder messageRetentionSeconds​(java.lang.Integer messageRetentionSeconds)
        Parameters:
        messageRetentionSeconds - Number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
        Returns:
        builder
      • name

        public QueueState.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the queue. Queue names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 80 characters long. For a FIFO (first-in-first-out) queue, the name must end with the `.fifo` suffix. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
        Returns:
        builder
      • name

        public QueueState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the queue. Queue names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 80 characters long. For a FIFO (first-in-first-out) queue, the name must end with the `.fifo` suffix. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
        Returns:
        builder
      • namePrefix

        public QueueState.Builder namePrefix​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public QueueState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • policy

        public QueueState.Builder policy​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - JSON policy for the SQS queue. For more information about building AWS IAM policy documents see the AWS IAM Policy Document Guide. The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.QueuePolicy` resource instead.
        Returns:
        builder
      • policy

        public QueueState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - JSON policy for the SQS queue. For more information about building AWS IAM policy documents see the AWS IAM Policy Document Guide. The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.QueuePolicy` resource instead.
        Returns:
        builder
      • receiveWaitTimeSeconds

        public QueueState.Builder receiveWaitTimeSeconds​(@Nullable
                                                         com.pulumi.core.Output<java.lang.Integer> receiveWaitTimeSeconds)
        Parameters:
        receiveWaitTimeSeconds - Time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
        Returns:
        builder
      • receiveWaitTimeSeconds

        public QueueState.Builder receiveWaitTimeSeconds​(java.lang.Integer receiveWaitTimeSeconds)
        Parameters:
        receiveWaitTimeSeconds - Time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
        Returns:
        builder
      • redriveAllowPolicy

        public QueueState.Builder redriveAllowPolicy​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> redriveAllowPolicy)
        Parameters:
        redriveAllowPolicy - JSON policy to set up the Dead Letter Queue redrive permission, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.RedriveAllowPolicy` resource instead.
        Returns:
        builder
      • redriveAllowPolicy

        public QueueState.Builder redriveAllowPolicy​(java.lang.String redriveAllowPolicy)
        Parameters:
        redriveAllowPolicy - JSON policy to set up the Dead Letter Queue redrive permission, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.RedriveAllowPolicy` resource instead.
        Returns:
        builder
      • redrivePolicy

        public QueueState.Builder redrivePolicy​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> redrivePolicy)
        Parameters:
        redrivePolicy - JSON policy to set up the Dead Letter Queue, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.RedrivePolicy` resource instead. **Note:** when specifying `maxReceiveCount`, you must specify it as an integer (`5`), and not a string (`"5"`).
        Returns:
        builder
      • redrivePolicy

        public QueueState.Builder redrivePolicy​(java.lang.String redrivePolicy)
        Parameters:
        redrivePolicy - JSON policy to set up the Dead Letter Queue, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). The provider will only perform drift detection of its value when present in a configuration. It is preferred to use the `aws.sqs.RedrivePolicy` resource instead. **Note:** when specifying `maxReceiveCount`, you must specify it as an integer (`5`), and not a string (`"5"`).
        Returns:
        builder
      • region

        public QueueState.Builder region​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public QueueState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • sqsManagedSseEnabled

        public QueueState.Builder sqsManagedSseEnabled​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> sqsManagedSseEnabled)
        Parameters:
        sqsManagedSseEnabled - Boolean to enable server-side encryption (SSE) of message content with SQS-owned encryption keys. See [Encryption at rest](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html). The provider will only perform drift detection of its value when present in a configuration.
        Returns:
        builder
      • sqsManagedSseEnabled

        public QueueState.Builder sqsManagedSseEnabled​(java.lang.Boolean sqsManagedSseEnabled)
        Parameters:
        sqsManagedSseEnabled - Boolean to enable server-side encryption (SSE) of message content with SQS-owned encryption keys. See [Encryption at rest](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html). The provider will only perform drift detection of its value when present in a configuration.
        Returns:
        builder
      • tags

        public QueueState.Builder tags​(@Nullable
                                       com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the queue. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public QueueState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the queue. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public QueueState.Builder tagsAll​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public QueueState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • url

        public QueueState.Builder url​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> url)
        Parameters:
        url - Same as `id`: The URL for the created Amazon SQS queue.
        Returns:
        builder
      • url

        public QueueState.Builder url​(java.lang.String url)
        Parameters:
        url - Same as `id`: The URL for the created Amazon SQS queue.
        Returns:
        builder
      • visibilityTimeoutSeconds

        public QueueState.Builder visibilityTimeoutSeconds​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Integer> visibilityTimeoutSeconds)
        Parameters:
        visibilityTimeoutSeconds - Visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html).
        Returns:
        builder
      • visibilityTimeoutSeconds

        public QueueState.Builder visibilityTimeoutSeconds​(java.lang.Integer visibilityTimeoutSeconds)
        Parameters:
        visibilityTimeoutSeconds - Visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html).
        Returns:
        builder