Module: AWSCDK::S3::IBucketNotificationDestination
- Included in:
- AWSCDK::S3Notifications::LambdaDestination, AWSCDK::S3Notifications::SNSDestination, AWSCDK::S3Notifications::SQSDestination
- Defined in:
- s3/i_bucket_notification_destination.rb
Overview
Implemented by constructs that can be used as bucket notification destinations.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, bucket) ⇒ AWSCDK::S3::BucketNotificationDestinationConfig
Registers this resource to receive notifications for the specified bucket.
Class Method Details
.jsii_overridable_methods ⇒ Object
22 23 24 25 26 |
# File 's3/i_bucket_notification_destination.rb', line 22 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, bucket) ⇒ AWSCDK::S3::BucketNotificationDestinationConfig
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.
16 17 18 19 20 |
# File 's3/i_bucket_notification_destination.rb', line 16 def bind(scope, bucket) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zMy5JQnVja2V0UmVmIn0=")), "bucket") jsii_call_method("bind", [scope, bucket]) end |