Enum RedrivePermission
- All Implemented Interfaces:
Serializable
,Comparable<RedrivePermission>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.095Z")
@Stability(Stable)
public enum RedrivePermission
extends Enum<RedrivePermission>
The permission type that defines which source queues can specify the current queue as the dead-letter 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
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAny source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.Only queues specified by thesourceQueueArns
parameter can specify this queue as the dead-letter queue.No source queues can specify this queue as the dead-letter queue. -
Method Summary
Modifier and TypeMethodDescriptionstatic RedrivePermission
Returns the enum constant of this type with the specified name.static RedrivePermission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALLOW_ALL
Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue. -
DENY_ALL
No source queues can specify this queue as the dead-letter queue. -
BY_QUEUE
Only queues specified by thesourceQueueArns
parameter can specify this queue as the dead-letter queue.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-