software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestination Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3-notifications Show documentation
Show all versions of s3-notifications Show documentation
Bucket Notifications API for AWS S3
package software.amazon.awscdk.services.s3.notifications;
/**
* Implemented by constructs that can be used as bucket notification destinations.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.7.8 (build 100f5ad)", date = "2018-11-06T21:12:02.109Z")
public interface IBucketNotificationDestination extends software.amazon.jsii.JsiiSerializable {
/**
* Registers this resource to receive notifications for the specified
* bucket. This method will only be called once for each destination/bucket
* pair and the result will be cached, so there is no need to implement
* idempotency in each destination.
* @param bucketArn The ARN of the bucket
* @param bucketId A unique ID of this bucket in the stack
*/
software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps asBucketNotificationDestination(final java.lang.String bucketArn, final java.lang.String bucketId);
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.s3.notifications.IBucketNotificationDestination {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* Registers this resource to receive notifications for the specified
* bucket. This method will only be called once for each destination/bucket
* pair and the result will be cached, so there is no need to implement
* idempotency in each destination.
* @param bucketArn The ARN of the bucket
* @param bucketId A unique ID of this bucket in the stack
*/
@Override
public software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps asBucketNotificationDestination(final java.lang.String bucketArn, final java.lang.String bucketId) {
return this.jsiiCall("asBucketNotificationDestination", software.amazon.awscdk.services.s3.notifications.BucketNotificationDestinationProps.class, java.util.stream.Stream.concat(java.util.stream.Stream.of(java.util.Objects.requireNonNull(bucketArn, "bucketArn is required")), java.util.stream.Stream.of(java.util.Objects.requireNonNull(bucketId, "bucketId is required"))).toArray());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy