software.amazon.awscdk.services.s3.notifications.SqsDestination Maven / Gradle / Ivy
package software.amazon.awscdk.services.s3.notifications;
/**
* Use an SQS queue as a bucket notification destination.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.20.6 (build 17f281e)", date = "2019-11-19T17:18:05.064Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.s3.notifications.$Module.class, fqn = "@aws-cdk/aws-s3-notifications.SqsDestination")
public class SqsDestination extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.s3.IBucketNotificationDestination {
protected SqsDestination(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected SqsDestination(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param queue This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public SqsDestination(final software.amazon.awscdk.services.sqs.IQueue queue) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(queue, "queue is required") });
}
/**
* Allows using SQS queues as destinations for bucket notifications. Use `bucket.onEvent(event, queue)` to subscribe.
*
* @param _scope This parameter is required.
* @param bucket This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public software.amazon.awscdk.services.s3.BucketNotificationDestinationConfig bind(final software.amazon.awscdk.core.Construct _scope, final software.amazon.awscdk.services.s3.IBucket bucket) {
return this.jsiiCall("bind", software.amazon.awscdk.services.s3.BucketNotificationDestinationConfig.class, new Object[] { java.util.Objects.requireNonNull(_scope, "_scope is required"), java.util.Objects.requireNonNull(bucket, "bucket is required") });
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy