Class SqsDestination
Use an SQS queue as a bucket notification destination.
Inheritance
System.Object
SqsDestination
Implements
Namespace: Amazon.CDK.AWS.S3.Notifications
Assembly: Amazon.CDK.AWS.S3.Notifications.dll
Syntax (csharp)
public class SqsDestination : DeputyBase, IBucketNotificationDestination
Syntax (vb)
Public Class SqsDestination
Inherits DeputyBase
Implements IBucketNotificationDestination
Remarks
ExampleMetadata: infused
Examples
Queue myQueue;
var bucket = new Bucket(this, "MyBucket");
bucket.AddEventNotification(EventType.OBJECT_REMOVED,
new SqsDestination(myQueue), new NotificationKeyFilter { Prefix = "foo/", Suffix = ".jpg" });
Synopsis
Constructors
SqsDestination(IQueue) | |
SqsDestination(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SqsDestination(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct, IBucket) | Allows using SQS queues as destinations for bucket notifications. |
Constructors
SqsDestination(IQueue)
SqsDestination(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SqsDestination(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SqsDestination(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SqsDestination(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct, IBucket)
Allows using SQS queues as destinations for bucket notifications.
public virtual IBucketNotificationDestinationConfig Bind(Construct scope, IBucket bucket)
Parameters
Returns
IBucketNotificationDestinationConfig
Remarks
Use bucket.onEvent(event, queue)
to subscribe.