Interface RedriveAllowPolicy
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RedriveAllowPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.095Z")
@Stability(Stable)
public interface RedriveAllowPolicy
extends software.amazon.jsii.JsiiSerializable
Permission settings for the dead letter source queue.
Example:
IQueue sourceQueue; // Only the sourceQueue can specify this queue as the dead-letter queue. Queue queue1 = Queue.Builder.create(this, "Queue2") .redriveAllowPolicy(RedriveAllowPolicy.builder() .sourceQueues(List.of(sourceQueue)) .build()) .build(); // No source queues can specify this queue as the dead-letter queue. Queue queue2 = Queue.Builder.create(this, "Queue") .redriveAllowPolicy(RedriveAllowPolicy.builder() .redrivePermission(RedrivePermission.DENY_ALL) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRedriveAllowPolicy
static final class
An implementation forRedriveAllowPolicy
-
Method Summary
Modifier and TypeMethodDescriptionstatic RedriveAllowPolicy.Builder
builder()
default RedrivePermission
Permission settings for source queues that can designate this queue as their dead-letter queue.Source queues that can designate this queue as their dead-letter queue.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRedrivePermission
Permission settings for source queues that can designate this queue as their dead-letter queue.Default: - `RedrivePermission.BY_QUEUE` if `sourceQueues` is specified,`RedrivePermission.ALLOW_ALL` otherwise.
-
getSourceQueues
Source queues that can designate this queue as their dead-letter queue.When
redrivePermission
is set toRedrivePermission.BY_QUEUE
, this parameter is required.You can specify up to 10 source queues. To allow more than 10 source queues to specify dead-letter queues, set the
redrivePermission
toRedrivePermission.ALLOW_ALL
.When
redrivePermission
is eitherRedrivePermission.ALLOW_ALL
orRedrivePermission.DENY_ALL
, this parameter cannot be set.Default: - Required when `redrivePermission` is `RedrivePermission.BY_QUEUE`, cannot be defined otherwise.
-
builder
- Returns:
- a
RedriveAllowPolicy.Builder
ofRedriveAllowPolicy
-