Class SqsSubscriptionProps
Properties for an SQS subscription.
Inheritance
System.Object
SqsSubscriptionProps
Namespace: Amazon.CDK.AWS.SNS.Subscriptions
Assembly: Amazon.CDK.AWS.SNS.Subscriptions.dll
Syntax (csharp)
public class SqsSubscriptionProps : Object, ISqsSubscriptionProps, ISubscriptionProps
Syntax (vb)
Public Class SqsSubscriptionProps
Inherits Object
Implements ISqsSubscriptionProps, ISubscriptionProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SNS;
using Amazon.CDK.AWS.SNS.Subscriptions;
using Amazon.CDK.AWS.SQS;
Queue queue;
SubscriptionFilter subscriptionFilter;
var sqsSubscriptionProps = new SqsSubscriptionProps {
DeadLetterQueue = queue,
FilterPolicy = new Dictionary<string, SubscriptionFilter> {
{ "filterPolicyKey", subscriptionFilter }
},
RawMessageDelivery = false
};
Synopsis
Constructors
SqsSubscriptionProps() |
Properties
DeadLetterQueue | Queue to be used as dead letter queue. |
FilterPolicy | The filter policy. |
RawMessageDelivery | The message to the queue is the same as it was sent to the topic. |
Constructors
SqsSubscriptionProps()
public SqsSubscriptionProps()
Properties
DeadLetterQueue
Queue to be used as dead letter queue.
public IQueue DeadLetterQueue { get; set; }
Property Value
Remarks
If not passed no dead letter queue is enabled.
Default: - No dead letter queue enabled.
FilterPolicy
The filter policy.
public IDictionary<string, SubscriptionFilter> FilterPolicy { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, SubscriptionFilter>
Remarks
Default: - all messages are delivered
RawMessageDelivery
The message to the queue is the same as it was sent to the topic.
public Nullable<bool> RawMessageDelivery { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
If false, the message will be wrapped in an SNS envelope.
Default: false