Class CfnQueueMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueueMixinProps>
- Enclosing interface:
CfnQueueMixinProps
CfnQueueMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofCfnQueueMixinProps.getContentBasedDeduplication()contentBasedDeduplication(IResolvable contentBasedDeduplication) Sets the value ofCfnQueueMixinProps.getContentBasedDeduplication()deduplicationScope(String deduplicationScope) Sets the value ofCfnQueueMixinProps.getDeduplicationScope()delaySeconds(Number delaySeconds) Sets the value ofCfnQueueMixinProps.getDelaySeconds()Sets the value ofCfnQueueMixinProps.getFifoQueue()fifoQueue(IResolvable fifoQueue) Sets the value ofCfnQueueMixinProps.getFifoQueue()fifoThroughputLimit(String fifoThroughputLimit) Sets the value ofCfnQueueMixinProps.getFifoThroughputLimit()kmsDataKeyReusePeriodSeconds(Number kmsDataKeyReusePeriodSeconds) Sets the value ofCfnQueueMixinProps.getKmsDataKeyReusePeriodSeconds()kmsMasterKeyId(String kmsMasterKeyId) Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()kmsMasterKeyId(IAliasRef kmsMasterKeyId) Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()kmsMasterKeyId(IKeyRef kmsMasterKeyId) Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()maximumMessageSize(Number maximumMessageSize) Sets the value ofCfnQueueMixinProps.getMaximumMessageSize()messageRetentionPeriod(Number messageRetentionPeriod) Sets the value ofCfnQueueMixinProps.getMessageRetentionPeriod()Sets the value ofCfnQueueMixinProps.getQueueName()receiveMessageWaitTimeSeconds(Number receiveMessageWaitTimeSeconds) Sets the value ofCfnQueueMixinProps.getReceiveMessageWaitTimeSeconds()redriveAllowPolicy(Object redriveAllowPolicy) Sets the value ofCfnQueueMixinProps.getRedriveAllowPolicy()redrivePolicy(Object redrivePolicy) Sets the value ofCfnQueueMixinProps.getRedrivePolicy()sqsManagedSseEnabled(Boolean sqsManagedSseEnabled) Sets the value ofCfnQueueMixinProps.getSqsManagedSseEnabled()sqsManagedSseEnabled(IResolvable sqsManagedSseEnabled) Sets the value ofCfnQueueMixinProps.getSqsManagedSseEnabled()Sets the value ofCfnQueueMixinProps.getTags()visibilityTimeout(Number visibilityTimeout) Sets the value ofCfnQueueMixinProps.getVisibilityTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentBasedDeduplication
@Stability(Stable) public CfnQueueMixinProps.Builder contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofCfnQueueMixinProps.getContentBasedDeduplication()- Parameters:
contentBasedDeduplication- For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication. During the deduplication interval, Amazon SQS treats messages that are sent with identical content as duplicates and delivers only one copy of the message. For more information, see theContentBasedDeduplicationattribute for the[CreateQueue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html)action in the Amazon SQS API Reference .- Returns:
this
-
contentBasedDeduplication
@Stability(Stable) public CfnQueueMixinProps.Builder contentBasedDeduplication(IResolvable contentBasedDeduplication) Sets the value ofCfnQueueMixinProps.getContentBasedDeduplication()- Parameters:
contentBasedDeduplication- For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication. During the deduplication interval, Amazon SQS treats messages that are sent with identical content as duplicates and delivers only one copy of the message. For more information, see theContentBasedDeduplicationattribute for the[CreateQueue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html)action in the Amazon SQS API Reference .- Returns:
this
-
deduplicationScope
Sets the value ofCfnQueueMixinProps.getDeduplicationScope()- Parameters:
deduplicationScope- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values aremessageGroupandqueue.To enable high throughput for a FIFO queue, set this attribute to
messageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Amazon SQS Developer Guide .- Returns:
this
-
delaySeconds
Sets the value ofCfnQueueMixinProps.getDelaySeconds()- Parameters:
delaySeconds- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of0to900(15 minutes). The default value is0.- Returns:
this
-
fifoQueue
Sets the value ofCfnQueueMixinProps.getFifoQueue()- Parameters:
fifoQueue- If set to true, creates a FIFO queue. If you don't specify this property, Amazon SQS creates a standard queue. For more information, see Amazon SQS FIFO queues in the Amazon SQS Developer Guide .- Returns:
this
-
fifoQueue
Sets the value ofCfnQueueMixinProps.getFifoQueue()- Parameters:
fifoQueue- If set to true, creates a FIFO queue. If you don't specify this property, Amazon SQS creates a standard queue. For more information, see Amazon SQS FIFO queues in the Amazon SQS Developer Guide .- Returns:
this
-
fifoThroughputLimit
@Stability(Stable) public CfnQueueMixinProps.Builder fifoThroughputLimit(String fifoThroughputLimit) Sets the value ofCfnQueueMixinProps.getFifoThroughputLimit()- Parameters:
fifoThroughputLimit- For high throughput for FIFO queues, specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values areperQueueandperMessageGroupId.To enable high throughput for a FIFO queue, set this attribute to
perMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Amazon SQS Developer Guide .- Returns:
this
-
kmsDataKeyReusePeriodSeconds
@Stability(Stable) public CfnQueueMixinProps.Builder kmsDataKeyReusePeriodSeconds(Number kmsDataKeyReusePeriodSeconds) Sets the value ofCfnQueueMixinProps.getKmsDataKeyReusePeriodSeconds()- Parameters:
kmsDataKeyReusePeriodSeconds- The length of time in seconds for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS again. The value must be an integer between 60 (1 minute) and 86,400 (24 hours). The default is 300 (5 minutes).A shorter time period provides better security, but results in more calls to AWS , which might incur charges after Free Tier. For more information, see Encryption at rest in the Amazon SQS Developer Guide .
- Returns:
this
-
kmsMasterKeyId
Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()- Parameters:
kmsMasterKeyId- The ID of an AWS Key Management Service (KMS) for Amazon SQS , or a custom KMS. To use the AWS managed KMS for Amazon SQS , specify a (default) alias ARN, alias name (for examplealias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Amazon SQS Developer Guide
- CreateQueue in the Amazon SQS API Reference
- Request Parameters in the AWS Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for AWS Key Management Service in the AWS Key Management Service Developer Guide
- Returns:
this
-
kmsMasterKeyId
Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()- Parameters:
kmsMasterKeyId- The ID of an AWS Key Management Service (KMS) for Amazon SQS , or a custom KMS. To use the AWS managed KMS for Amazon SQS , specify a (default) alias ARN, alias name (for examplealias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Amazon SQS Developer Guide
- CreateQueue in the Amazon SQS API Reference
- Request Parameters in the AWS Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for AWS Key Management Service in the AWS Key Management Service Developer Guide
- Returns:
this
-
kmsMasterKeyId
Sets the value ofCfnQueueMixinProps.getKmsMasterKeyId()- Parameters:
kmsMasterKeyId- The ID of an AWS Key Management Service (KMS) for Amazon SQS , or a custom KMS. To use the AWS managed KMS for Amazon SQS , specify a (default) alias ARN, alias name (for examplealias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Amazon SQS Developer Guide
- CreateQueue in the Amazon SQS API Reference
- Request Parameters in the AWS Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for AWS Key Management Service in the AWS Key Management Service Developer Guide
- Returns:
this
-
maximumMessageSize
Sets the value ofCfnQueueMixinProps.getMaximumMessageSize()- Parameters:
maximumMessageSize- The limit of how many bytes that a message can contain before Amazon SQS rejects it. You can specify an integer from 1,024 bytes (1 KiB) to 1,048,576 bytes (1 MiB). Default: 1,048,576 bytes (1 MiB).- Returns:
this
-
messageRetentionPeriod
@Stability(Stable) public CfnQueueMixinProps.Builder messageRetentionPeriod(Number messageRetentionPeriod) Sets the value ofCfnQueueMixinProps.getMessageRetentionPeriod()- Parameters:
messageRetentionPeriod- The number of seconds that Amazon SQS retains a message. You can specify an integer value from60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).- Returns:
this
-
queueName
Sets the value ofCfnQueueMixinProps.getQueueName()- Parameters:
queueName- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the.fifosuffix. For more information, see Amazon SQS FIFO queues in the Amazon SQS Developer Guide .If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the queue name. For more information, see Name type in the CloudFormation User Guide .
If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Returns:
this
-
receiveMessageWaitTimeSeconds
@Stability(Stable) public CfnQueueMixinProps.Builder receiveMessageWaitTimeSeconds(Number receiveMessageWaitTimeSeconds) Sets the value ofCfnQueueMixinProps.getReceiveMessageWaitTimeSeconds()- Parameters:
receiveMessageWaitTimeSeconds- Specifies the duration, in seconds, that the ReceiveMessage action call waits until a message is in the queue in order to include it in the response, rather than returning an empty response if a message isn't yet available. You can specify an integer from 1 to 20. Short polling is used as the default or when you specify 0 for this property. For more information, see Consuming messages using long polling in the Amazon SQS Developer Guide .- Returns:
this
-
redriveAllowPolicy
Sets the value ofCfnQueueMixinProps.getRedriveAllowPolicy()- Parameters:
redriveAllowPolicy- The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. The parameters are as follows:redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.denyAll: No source queues can specify this queue as the dead-letter queue.byQueue: Only queues specified by thesourceQueueArnsparameter can specify this queue as the dead-letter queue.sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when theredrivePermissionparameter is set tobyQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermissionparameter toallowAll.
- Returns:
this
-
redrivePolicy
Sets the value ofCfnQueueMixinProps.getRedrivePolicy()- Parameters:
redrivePolicy- The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The parameters are as follows:deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value ofmaxReceiveCountis exceeded.maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When theReceiveCountfor a message exceeds themaxReceiveCountfor a queue, Amazon SQS moves the message to the dead-letter-queue.
The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue.
JSON
{ "deadLetterTargetArn" : *String* , "maxReceiveCount" : *Integer* }YAML
deadLetterTargetArn : *String*maxReceiveCount : *Integer*- Returns:
this
-
sqsManagedSseEnabled
@Stability(Stable) public CfnQueueMixinProps.Builder sqsManagedSseEnabled(Boolean sqsManagedSseEnabled) Sets the value ofCfnQueueMixinProps.getSqsManagedSseEnabled()- Parameters:
sqsManagedSseEnabled- Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS ). WhenSqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.- Returns:
this
-
sqsManagedSseEnabled
@Stability(Stable) public CfnQueueMixinProps.Builder sqsManagedSseEnabled(IResolvable sqsManagedSseEnabled) Sets the value ofCfnQueueMixinProps.getSqsManagedSseEnabled()- Parameters:
sqsManagedSseEnabled- Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS ). WhenSqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.- Returns:
this
-
tags
Sets the value ofCfnQueueMixinProps.getTags()- Parameters:
tags- The tags that you attach to this queue. For more information, see Resource tag in the CloudFormation User Guide .- Returns:
this
-
visibilityTimeout
Sets the value ofCfnQueueMixinProps.getVisibilityTimeout()- Parameters:
visibilityTimeout- The length of time during which a message will be unavailable after a message is delivered from the queue. This blocks other components from receiving the same message and gives the initial component time to process and delete the message from the queue.Values must be from 0 to 43,200 seconds (12 hours). If you don't specify a value, AWS CloudFormation uses the default value of 30 seconds.
For more information about Amazon SQS queue visibility timeouts, see Visibility timeout in the Amazon SQS Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueueMixinProps>- Returns:
- a new instance of
CfnQueueMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-